列表 第页
我有一个简单的端到端测试,以验证路由重定向作品I have a simple e2e test to verify that route redirection worksEnd2end Test Runner...阅读全文
使用:的Mac OS 10.8.4 节点0.10.12 NPM 1.3.1 咕噜-CLI 0.1.9 哟1.0.0-RC.1 亭子0.9.2 generator-angular@0.3.0 我遇到一个干净的哟角项目下面的错误,其次是咕噜服务器然后咕噜测试:I encounter the following e...阅读全文
我的团队正在从步兵移动吞掉。我有一个咕噜测试任务工作正常,但是当我尝试运行测试(使用一饮而尽 - 卡玛)我得到一个错误,指出的ReferenceError:找不到变量:模块My team is working on moving from Grunt to Gulp. I have a Grunt test task...阅读全文
我试图运行firsttest.js:Am trying to run firsttest.js:// firsttest.jsdescribe('angularjs homepage', function() {var firstNumber = element(by.model('first'));var se...阅读全文
由于以下指令directive('myDirective', function() {return {restrict: 'A',scope: {},replace: false,template: '',link: function...阅读全文
我下面从这里的 AngularJS文档问题是,该文档描述只有成功/幸福的code的分支,不存在如何测试失败分支的例子。我想要做的,就是设置precondition用于触发 $ scope.status =错误! code 下面是一个最小的例子。 //控制器功能myController的($范围,$ HTTP){ t...阅读全文
我想我想念的东西。已经花了一些时间试图了解为什么我的测试是行不通的。I guess I miss something. Have spent some time trying to understand why my test is not working.在code。angular.module('servic...阅读全文
我已经从棱角分明的UI /引导使用对话框中的控制器:I've a controller that uses a Dialog from angular-ui/bootstrap:function ClientFeatureController($dialog, $scope, ClientFeature, Count...阅读全文
我用的量角器端到端的角度应用测试。我想点击的选择框的选择,但我有如下因素误差元素当前不可见,不可操作。 I am using Protractor for end to end testing in Angular application. I am trying to click on option in sele...阅读全文
我在使用下划线的去抖服务的方法。 I have a method in a service that uses underscore's debounce. 内该方法是在一个不同的服务的方法的调用。我想测试不同的服务被调用。Inside that method is a call to a method on a...阅读全文
我正在开发一个REST API一个前端。我使用的终端到终端的测试量角器与API嘲笑,因为我希望能够测试前端隔离。I'm developing a frontend for a REST API. I'm using Protractor for end-to-end tests with the API mocked...阅读全文
我有一个服务调用外部Web服务: angular.module('myApp.services',[])。服务('autoCmpltDataSvc',函数($ HTTP){ VAR innerMatch =功能(数据){ 返回$ .MAP(数据,功能(项目){ 返回{...阅读全文
我尝试写一些活动测试的应用程序,我想测试一个特殊的情况是,当我点击某个按钮时,活动视图相应更新。但是,单击该按钮会稍微长时间运行的异步任务开始后,才任务完成不认为改变。I am trying to write some Activity tests for an app, and one particular sce...阅读全文
我目前运行Eclipse朱诺的Android开发工具插件,这样我就可以开发Android应用程序并对其进行测试。为了获得code中的应用范围(和$ P $的Android本身pferably这些API),我安装EclEmma到Eclipse中,但就在我正要运行它的第一次,它给了我一个错误:I am curre...阅读全文
我无法找到一个方法来测试 InApp订阅与=的productIDandroid.test.purchased由谷歌即私有最终字符串测试产品ID; //由谷歌测试产品编号 I couldn't find a way to test InApp Subscription with the test product ID...阅读全文
我正在写一个应用程序,它会从一个web服务(可能通过kSOAP2)读取XML。我相当满意SAX解析,因为我已经做了XML解析iPhone应用程序。 I'm writing an app which will read XML from a webservice (probably via kSOAP2). I'm...阅读全文
我已经安装运行JUnit测试一个Android测试项目。它使用两个Eclipse项目应用和ApplicationTest在我的测试是在ApplicationTest项目。在我的测试之一,我需要访问一个文件,这个工作正常,如果我把文件的SD卡和使File对象指向它。不过,我想访问该文件作为资源,但似乎并没有工作。这是我做...阅读全文
我所有的单元测试,而不是E2E测试,即做一个明确的rootScope.digest()或httpBackend.flush()来刷新异步回调,遇到错误: 如何避免错误:意外的请求:GET没有更多的要求预期 我认为这是因为httpBackend调用用户界面路由器模板。我不知道为什么它要这么做。我不要求这一点。我只希望它叫...阅读全文
这是我的功能$scope.buildForm = function (majorObjectId, name) {$window.open("/FormBuilder/Index#/" + $scope.currentAppId + "/form/" + majorObjectId + "/" + name);};这是...阅读全文
我会尽力解决这个问题上与抽象一下,因为进入了code细节将是无用的。I'll try to approach this question with a little bit of abstraction, since going into the code details would be useless.我有一个...阅读全文
我想获得一个基本的单元测试工作,并在用角mocks.js运行到一个问题。希望这code会解释我的情况。 描述(peconfigApp功能(){ beforeEach(函数(){ angular.mock.module('peconfigApp'); }); 描述(二进制控制器,函数(){...阅读全文
我试图用噶/茉莉花一个非常简单的测试,单元测试我的AngularJS应用程序。这似乎是工作。I'm trying a very simple test with Karma/Jasmine, to unit test my AngularJS app. This seems to work beforeEach(m...阅读全文
我有角的测试问题。我试图测试$广播已成功发射。我有一些奇怪的行为试图用spyOn。如果您有任何建议,请帮助我一直在试图解决这个好几个小时。我的测试是这样的: 描述(注册器',函数(){ beforeEach(模块('对myApp')); 描述(SignupCtrl',函数(){ 变量$范围,CTRL $ ht...阅读全文
我是新来量角器,想测试一个链接工作。我明白试图让元素的id,但我应该期待什么该链接等于?另外有没有人上了车比如量角器测试任何好的文档?我已经通过这个 http://angular.github.io/protractor/#/tutorial 这是有益的,但我需要的可能的测试,我可以做更多的例子。我有这个至今: 它...阅读全文
我试图注入$ urlRouterProvider到我的测试,但我不断收到不明供应商的问题。我使用ui.router和测试指令,需要能够获得访问这些供应商,或所有的测试失败... I'm trying to inject the $urlRouterProvider into my tests but I keep g...阅读全文
我写的 QUnit 为角控制器测试。在模块的设置功能,我写了下面的语句来获取对象的 $ httpBackend I am writing QUnit tests for an Angular controller. In the setup function of module, I have written th...阅读全文
我想创建单元测试来测试导航列表控制器,和我在与创建测试的问题。下面是code的控制器。 navListModule.controller('NavListCtrl',['$范围,NavList', 功能($范围,NavList){ $范围。在('$ routeChangeSuccess'$,功能(...阅读全文
我测试用因果报应测试用例angularjs一个焦点事件。但该元素是没有得到关注。我这样做之后的 element.focus()并检查元素重点是,我得到错误的。和 document.activeElement 在这一点上是全身。I am testing a focus event in angularjs using...阅读全文
我有以下测试:it('should maintain a bind between the data at the $scope to the data at the ingredientsService', function(){$scope.addFilters('val1', $scope.customFilt...阅读全文
我想开始使用卡玛 - 茉莉,我不知道为什么这个测试失败:I'm trying to get started with karma-jasmine and I'm wondering why this test fails:it("should call fakeFunction", function() {spyO...阅读全文
我测试的角度JS应用链接角的js应用 当我点击该Web应用程序我收到以下错误UI套件链接 - when i click on the UI Kit link on the web application i am getting the following error -在demoaj.Ajapp.main(...阅读全文
在运行咕噜测试在约曼(1.0RC1)脚手架角(1.0.7)的应用程序,我得到了以下错误:While running grunt test on a Yeoman (1.0RC1) scaffolded Angular (1.0.7) app, I'm getting the following error:Type...阅读全文
我有一些code在我AngularJS应用程序,它显示/隐藏动画,使用像一些div: $(EL).fadeOut() I have some code in my AngularJS app which displays/hides some divs using animations like: $(el).fad...阅读全文
我要创建一个调用在其链接服务的元素指令功能:I'm creating an element directive that calls a service in its link function:app.directive('depositList', ['depositService', function (de...阅读全文
我试图测试一个NG-如果由编译视图针对pre定义的范围和运行$范围。$消化我的模板之一。I'm attempting to test an ng-if in one of my templates by compiling the view against a pre-defined scope and runnin...阅读全文
我试图访问$范围的端到端测试中都没有成功... I'm trying to access $scope's within an E2E test without success...作为一个测试,我尝试这样做:(我的网站不使用JQuery ..)As a test I tried this: (My site...阅读全文
我使用噶测试运行和茉莉花。我知道如何测试的scope.But功能在这样的情况下情况下,我该怎么做呢?I am using Karma test runner and Jasmine. I know how to test functions on the scope.But in case of a situatio...阅读全文
我有一个AngularJS应用。我想实现一些终端到终端的测试,我可以按需运行。在努力做到这一点,我已经建立了一个基本的测试屏幕如下: <!DOCTYPE HTML>< HTML的xmlns =http://www.w3.org/1999/xhtml>< HEAD> <...阅读全文