Protractor Test in Eclipse

1,706 views
Skip to first unread message

ankit garg

unread,
Feb 10, 2017, 6:27:16 AM2/10/17
to seleniu...@googlegroups.com
Hi,

Can we run Protractor tests in Eclipse?

If yes,Can you please let me know the steps?

Regards,
Ankit Garg

arjunbm13

unread,
Feb 13, 2017, 9:40:38 PM2/13/17
to seleniu...@googlegroups.com

Yes it is possible, 

First method: https://github.com/angelozerr/angularjs-eclipse/wiki/Protractor

Second method:

you can use protractor plugin in eclipse.

  1. Go to help-->Marketplace
  2. Search for tern.java
  3. Install Tern Eclipse IDE
  4. and accept the licence.

Now create a project in eclipse

  1. Right click on project,
  2. Mouse hover to configure and
  3. Click on convert to tern project
  4. Properties window pop-up>> goto Modules
  5. you will be able to see Protractor,
  6. Select the check box and click on the Protractor and
  7. Also check the dependencies as well.

Now you are ready to write scripts using protractor.

For Running, create an bat file with content as "protractor conf.js" and save it under external tools configuration as runner file and run the same.

Please let me know if more info required.


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAKOTObMFOLVYLbUCo1rQCSVW14b%2B%3D64n%3D24VF_FZTL%3D-LeQpHA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
thanks and regards
arjunbm

Serguei Kouzmine

unread,
Mar 1, 2017, 8:01:26 PM3/1/17
to Selenium Users

Hello Ankit,

With Angular apps you usually do not want use  java (and c# ports) 
of 
Protractor which natively is in Javascript:
https://github.com/angular/protractor, and it is less natural to do from Eclipse.

I was able to test Angular apps using those java ports/eclipse and C#/ShareDevelop or Visual Studio (in fact i am a active contributor and co-owner for java ones)
Please free to follow up with specific questions 
Reply all
Reply to author
Forward
0 new messages