Skip to content
angelozerr edited this page Jan 15, 2016 · 7 revisions

Protractor

AngularJS Eclipse provides a support for Protractor:

  • completion, hyperlink, validation, hover for protractor inside the JavaScript Editor (see Tern Protractor support):

Protractor Completion

  • run/debug a JavaScript protractor config file:

Run As Protractor

Preferences

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:

Protractor Preferences

Launch

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.

Run

Run As Protractor

Debug

To debug a protractor configuration file, you must install a JavaScript debugger and select in the Protractor Preferences the installed debugger.

Debug As Protractor