-
Notifications
You must be signed in to change notification settings - Fork 89
Protractor
AngularJS Eclipse provides a support for Protractor:
- completion, hyperlink, validation, hover for protractor inside the JavaScript Editor (see Tern Protractor support):

- run/debug a JavaScript protractor config file:

To run/debug protractor configuration file, you need to install it with with npm like explained here.
AngularJS Eclipse searches the lib/cli.js from protractor npm module to execute protractor
- from your project inside
node_modules/protractor/lib/cli.js - from the preferences (global configuration).
Before starting to run/debug your protractor configuration file, you must configure Window / Preferences / AngularJS / Protractor:

You can run/debug your protractor configuration file. At first you must convert your project to AngularJS Project in order to Run/Debug Protractor appears in the contextual menu.
You can do Run / Protractor:

The result of protractor is displayed in the Eclipse Console.
To debug a protractor configuration file, you must install a JavaScript debugger and select in the Protractor Preferences the installed debugger.

After that you can do Debug / Protractor:

and you can debug your protractor configuration file in your JavaScript editor:
