Can't seem to run the e2e test in angularjs.org tutorial

731 views
Skip to first unread message

Niclas S

unread,
Feb 13, 2013, 5:35:14 AM2/13/13
to ang...@googlegroups.com
Hi.

I have cloned the repo, did the git checkout -f step-0 until step 3.
I haven't changed any file.
I start the webserver with ./web-server.js.
I can run the unittests fine:
./test.sh gives me:
info: Testacular server started at http://localhost:9876/
info (launcher): Starting browser Chrome
info (Chrome 24.0): Connected on socket id p85ORqom_uquE_MT_8UB
Chrome 24.0: Executed 4 of 4 SUCCESS (0.142 secs / 0.04 secs)
^Cinfo: Disconnecting all browsers

Thats great!

However when i run ./e2e-test.sh:
INFO [testacular]: Testacular server started at http://localhost:9876/
INFO [launcher]: Starting browser Chrome
INFO [Chrome 24.0 (Linux)]: Connected on socket id 16269743691446583489
Chrome 24.0 (Linux): Executed 0 of 0 SUCCESS (0.144 secs / 0 secs)


Not so great :( seems that is skips the tests ...?

And when I run the git checkout -f step-0 until step 4 and then run ./e2e-test.sh:
INFO [testacular]: Testacular server started at http://localhost:9876/
INFO [launcher]: Starting browser Chrome
INFO [Chrome 24.0 (Linux)]: Connected on socket id 1384276634651728329
Chrome 24.0 (Linux) PhoneCat App Phone list view should filter the phone list as user types into the search box FAILED
    expect repeater '.phones li' count toBe 3
    /home/niclas/dev/js/angular-phonecat/test/e2e/scenarios.js:15:7: expected 3 but was 0
Chrome 24.0 (Linux) PhoneCat App Phone list view should be possible to control phone order via the drop down select box FAILED
    input 'query' enter 'tablet'
    /home/niclas/dev/js/angular-phonecat/test/e2e/scenarios.js:26:7: Selector [ng\:model="query"] did not match any elements.
Chrome 24.0 (Linux): Executed 2 of 2 (2 FAILED) (0.311 secs / 0.136 secs)

Not so great either ...

I use nodejs 0.8.19
I have tried with testacular 0.4 and 0.59

I'm I doing something wrong?

Thanks in advance!
Niclas



Philip Bulley

unread,
Feb 17, 2013, 12:16:54 PM2/17/13
to ang...@googlegroups.com
I'm experiencing the same problem:

C:\Users\Philip\Documents\Work\Web\Play\AngularJS\angular-phonecat>scripts\e2e-t
est.bat
info: Testacular server started at http://localhost:9876/
info (launcher): Starting browser Chrome
info (Chrome 24.0): Connected on socket id X6CSRuXM4oPvNkQHJFP8
info (Chrome 24.0): Connected on socket id rzkgnvqSR3aeP6W9JFP9
Chrome 24.0 PhoneCat App Phone list view should filter the phone list as user ty
pes into the search box FAILED
        expect repeater '.phones li' count toBe 3
        C:/Users/Philip/Documents/Work/Web/Play/AngularJS/angular-phonecat/test/
e2e/scenarios.js:15:7: expected 3 but was 0
Chrome 24.0 PhoneCat App Phone list view should filter the phone list as user ty
pes into the search box FAILED
        expect repeater '.phones li' count toBe 3
        C:/Users/Philip/Documents/Work/Web/Play/AngularJS/angular-phonecat/test/
e2e/scenarios.js:15:7: expected 3 but was 0
Chrome 24.0: Executed 1 of 1 (1 FAILED) (0.704 secs / 0.162 secs)
Chrome 24.0: Executed 1 of 1 (1 FAILED) (0.969 secs / 0.209 secs)
TOTAL: 2 FAILED, 0 SUCCESS
info: Disconnecting all browsers

guduj...@gmail.com

unread,
Mar 6, 2013, 6:52:31 PM3/6/13
to ang...@googlegroups.com
I am experiencing a similar problem when running e2e-test.sh in the newly cloned project. The first problem I had is that I my web server was running on port 80 and the script assumes port 8000. After editing testacular-e2e.conf.js to have the correct port number I ran into the problem below.

bash-3.2$ ./e2e-test.sh

Starting Testacular Server (http://vojtajina.github.com/testacular)
-------------------------------------------------------------------
[2013-03-06 17:46:54.746] [WARN] config - urlRoot set to /__testacualar__/ because of "/" proxy
INFO [testacular]: Testacular server started at http://localhost:9876/__testacualar__/
INFO [launcher]: Starting browser Firefox
INFO [Firefox 17.0 (Mac)]: Connected on socket id B-1N0-B96EXZCUrdGbin
Firefox 17.0 (Mac) PhoneCat App Phone list view should filter the phone list as user types into the search box FAILED
    expect repeater '.phones li' count toBe 20
    http://localhost:9876/adapter/lib/angular-scenario.js?1361514199000:25281: expected 20 but was 0
Firefox 17.0 (Mac) PhoneCat App Phone list view should be possible to control phone order via the drop down select box FAILED
    input 'query' enter 'tablet'
    http://localhost:9876/adapter/lib/angular-scenario.js?1361514199000:25281: Selector [ng\:model="query"] did not match any elements.
Firefox 17.0 (Mac) PhoneCat App Phone list view should render phone specific links FAILED
    input 'query' enter 'nexus'
    http://localhost:9876/adapter/lib/angular-scenario.js?1361514199000:25281: Selector [ng\:model="query"] did not match any elements.
Firefox 17.0 (Mac) PhoneCat App Phone detail view should display nexus-s page FAILED
    http://localhost:9876/adapter/lib/angular-scenario.js?1361514199000:25281: TypeError: $window.angular is undefined
Firefox 17.0 (Mac) PhoneCat App Phone detail view should display the first phone image as the main phone image FAILED
    element 'img.phone' get attr 'src'
    http://localhost:9876/adapter/lib/angular-scenario.js?1361514199000:25281: Selector img.phone did not match any elements.
Firefox 17.0 (Mac) PhoneCat App Phone detail view should swap main image if a thumbnail image is clicked on FAILED
    element '.phone-thumbs li:nth-child(3) img' click
    http://localhost:9876/adapter/lib/angular-scenario.js?1361514199000:25281: Selector .phone-thumbs li:nth-child(3) img did not match any elements.
Firefox 17.0 (Mac) PhoneCat App should redirect index.html to index.html#/phones FAILED
    http://localhost:9876/adapter/lib/angular-scenario.js?1361514199000:25281: TypeError: $document.injector is not a function
Firefox 17.0 (Mac): Executed 7 of 7 (7 FAILED) (0.591 secs / 0.353 secs)

Reply all
Reply to author
Forward
0 new messages