Questions tagged [angularjs-e2e]

The End-to-End testing framework for AngularJS.

The End-to-End testing framework for AngularJS. For large and small applications that grow in size and complexity it allows automatic testing to verify the correctness of new features, catch bugs and notice regressions.

The solution for testing used by the framework is an Angular Scenario Runner which simulates user interactions that will help to verify the health of the Angular application.

Issues related to the E2E Testing provided by AngularJS (http://docs.angularjs.org/guide/dev_guide.e2e-testing) and distributed as ng-scenario.

546 questions
7
votes
1 answer

Protractor: open window and test url

I'm trying to test a link in a table that opens a new window. I want to test the url of the new window. What I have so far is this: it('Should verify new window url', function () { page.list.get(0).click().then(function () { …
Thibs
  • 8,058
  • 13
  • 54
  • 85
7
votes
1 answer

when running protractor with phantomjs browser, only able to run tests once

test code: describe('mysite', function(){ var init_url = 'http://localhost/mySite/#/home'; beforeEach(function(){ // driver = new webdriver.Builder(). // withCapabilities(webdriver.Capabilities.phantomjs()).build(); }) it('should click on…
user2167582
  • 5,986
  • 13
  • 64
  • 121
7
votes
1 answer

How to run AngularJS end to end tests on Jenkins?

How can I run AngularJS end to end tests on Jenkins? As far as I understand, e2e tests require a web server. I can run e2e tests locally with karma while node.js web server script is running.
Evgenii
  • 36,389
  • 27
  • 134
  • 170
6
votes
3 answers

'$' selector in Protractor

I have seen in many examples like this $('.selector') and I am also using this. So what this $ variable does. This is what I got from the protractor docs. Calls to $ may be chained to find elements within a parent. There is no example in docs…
Vishnu Sureshkumar
  • 2,246
  • 6
  • 35
  • 52
6
votes
2 answers

setting environment parameter for protractor e2e tests

We are using protractor to test our front end angular app that we are building. Currently we are using browser.get() to specify our environement we wish to test again(localhost:9000, staging, UAT) however I am wanting to parameterize this so that…
user249656
  • 164
  • 1
  • 11
6
votes
1 answer

Get element's offset position with protractor

I am trying to make sure the page scrolls to an element when a certain span is clicked. So I need to check the element's y position. Can someone explain how I can get an element's…
Subtubes
  • 15,851
  • 22
  • 70
  • 105
6
votes
0 answers

e2e $httpBackend fake file upload service

I work on an angular front-end based on a fake backend implementation for development. This fake storage is built using localStorage and the http request are handled by the e2e $httpBackend. All of this works nicely until i tried to fake a file…
gontard
  • 28,720
  • 11
  • 94
  • 117
6
votes
2 answers

AngularJS Protractor: Step-by-step progress logs

In the (now deprecated) angular scenario test runner, there was an option to create a runner.html page that would run the tests in an iFrame while reporting the progress, step-by-step, in the main page. Is there any way to get a similar…
Ryan Gross
  • 6,423
  • 2
  • 32
  • 44
6
votes
2 answers

Protractor e2e throwing webdriver is not defined

I had my protractor running untill few days ago when i started encountering: Using the selenium server at http://localhost:4444/wd/hub **** UNCAUGHT EXCEPTION **** Error: connect ECONNREFUSED at exports._errnoException (util.js:682:11) at…
vaibhav
  • 3,929
  • 8
  • 45
  • 81
6
votes
1 answer

Protractor 0.16.1 e2e AngularJS - Starting selenium standalone server... events.js:72 Error: spawn ENOENT

Attempted Project: https://github.com/yearofmoo/angularjs-seed-repo Environment: Windows 7 64-bit NodeJS v 0.10.24 Protractor v 0.16.1 grunt v0.4.2 grunt-cli v0.1.11 Notes: For selenium, install_selenium_standalone has been replaced by…
AdidasPHP
  • 73
  • 1
  • 5
6
votes
3 answers

protractor double click in a specific location

I'm developing a system (with AngularJS) that has a feature that is invoked by double clicking in a place on a web page and then I get the coordinates of the mouse and do what I want. I'm trying to do e2e testing using protractor and I can't find…
Menshawi
  • 91
  • 1
  • 8
6
votes
2 answers

Should I use Cucumber for an AngularJS single page application?

I'm fairly new to both Cucumber and Angular. I have a rails application that is a single page application. Should I bother with Cucumber or should I just use AngularJS's e2e testing? Any insight, comparison and past experience is appreciated!
kenttam
  • 740
  • 4
  • 9
6
votes
5 answers

Angularjs E2E Testing with Angular-UI Select2 Element

I have a partial with a select2 element utilizing Angular UI http://angular-ui.github.io/ The issue I am running into is that the element is required and although i have successfully set the field through the following code, the required attribute…
Brian
  • 2,294
  • 6
  • 30
  • 51
6
votes
5 answers

AngularJS - Karma (e2e) : Executed 0 of 0 ERROR

I am experiencing a problem which I could not solve for some time, and getting very frustrating since I don't have an idea what I am doing wrong in it. :) Any help is much appreciated. I am using requirejs in my applications as well. This is…
Cengiz Ulusoy
  • 86
  • 1
  • 5
5
votes
3 answers

Protractor file download test fails when headless chrome

I am having an issue with a protractor test. It was working, but now (even thought nothing has changed) it is not. The test is just opening the app (web application) and clicking on a button to download an image. The download should start straight…