AngularJS End to End testing with selenium

896 views
Skip to first unread message

John

unread,
Nov 10, 2012, 8:05:31 AM11/10/12
to ang...@googlegroups.com
Hi,

We have implemented angularjs e2e tests on our webapp. Since, we already have selenium tests running as Hudson job, I would like to launch the angularjs e2e tests page via selenium.
Has anybody got this working yet?

Any help is appreciated.

Regards,
John

Pawel Kozlowski

unread,
Nov 10, 2012, 8:21:03 AM11/10/12
to ang...@googlegroups.com
John,

If I'm not mistaken Selenium and angular's e2e tests are kind of
competing technologies so probably mixing them together will be
tricky. I could (in my wild dreams) imagine Selenium hitting a page
with the e2e tests runner and then Selenium verifying that e2e tests
have finished and passing but this is not a "standard" usage. For
example you would have to somehow wait in Selenium while e2e tests are
executing and I'm not sure that Selenium will like it....

Cheers,
Pawel
> --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" group.
> To post to this group, send email to ang...@googlegroups.com.
> To unsubscribe from this group, send email to
> angular+u...@googlegroups.com.
> Visit this group at http://groups.google.com/group/angular?hl=en.
>
>



--
Question? Send a fiddle
(http://jsfiddle.net/pkozlowski_opensource/Q2NpJ/) or a plunk
(http://plnkr.co/)
Need help with jsFiddle? Check this:
http://pkozlowskios.wordpress.com/2012/08/12/using-jsfiddle-with-angularjs/

Looking for UI widget library for AngularJS? Here you go:
http://angular-ui.github.com/

John

unread,
Nov 10, 2012, 11:41:44 AM11/10/12
to ang...@googlegroups.com

Hi Pawel,
Thank you for the reply.

I was planning to use  Selenium the way you have described. Anyways, how do you propose to use angularjs e2e testing in a continuous build environment?

Regards,
John

John

unread,
Nov 11, 2012, 6:17:57 PM11/11/12
to ang...@googlegroups.com
I did go ahead and implement my solution which works on my local maven set-up. But for some reasons the tests failed on the Hudson build server. I printed the contents of the div having id "json" and found this: $injector is undefined

Any help is appreciated

Regards,
John

James Cook

unread,
Dec 10, 2012, 11:57:14 AM12/10/12
to ang...@googlegroups.com
John,

Any progress on your E2E tests using Selenium. This is the direction I am interested in also. 

-- jim

John

unread,
Dec 10, 2012, 6:43:58 PM12/10/12
to ang...@googlegroups.com
Hi Jim,

As  described in the second post, I use selenium to kick off the angularjs e2e page in Hudson.

Regards,
John
Reply all
Reply to author
Forward
0 new messages