Protractor | Using Eclipse for our automation framework
Setup
Step 1 - Open Eclipse
Step 2 - From menu choose, Help -> Eclipse Marketplace
Step 3 - Search for "Angularjs", and choose "Angular JS Eclipse 1.2.0" Plugin, which supports angular JS code in eclipse
Step 4 - Install the same, after acceptance of license agreement
Step 5 - Restart Eclipse
First Project
Step 1 - Create a new javascript project, say "FirstProject"
Step 2 - Copy the Conf file and spec file
Step 3 - Copy the node modules folder from protractor setup to the FirstProject Folder structure
Step 4 - Right click on project -> Configure -> convert to
tern project
else right click ->
properties -.> javascript -> tern -> modules
Step 5 - Check options -
angularJS, protractor, jasmine, click OK
Step 6 - Right click -> run
as -> run configuration, choose protractor and click on New
Step 7 - Under main tab, Choose
the Protractor configuration file , say conf.js and working directory , say
FirstProject
Step 8 - Under protractor tab,
Choose cli.js file (this can be located in the node modules folder) copied
(nodemodules -> protractor -> built -> cli.js)
Step 9 - Apply and run the
configuration
x

Comments
Post a Comment