Protractor

If you are using Protractor for automating AngularJS application testing, you have a choice to use a paid IDE like Webstorm or can also choose Atom or Sublime. Eclipse one of the most popular open source IDE’s has a plugin Tern that is a stand alone code-analysis engine for JavaScript.

But before using eclipse Tern IDE, Eclipse needs to be configured.

Steps for eclipse configuration:

  1. Install “Tern Eclipse IDE” from the eclipse marketplace, accept the license.
  2. Create a new Java Project.
  3. Remove src and JRE, as those are not required.
  4. Now right-click on Project and configure it by clicking convert to Tern project.
  5. Once done, do select Protractor from the library set on the Modules selection window.
  6. Click on save and configure.

Once done, you can create a Protractor project, helping you with in-built library methods. But the configuration file cannot be run directly from Eclipse run. In order to configure Eclipse run, follow the steps:

  1. Create conf and spec file inside your project.
  2. Create runner.bat file, containing run command e.g. Protractor conf.js.
  3. Now click on run ->External Tool Configuration.
  4. Select New Configuration within program.
  5. Select respective project folder in working directory section and runner.bat file in main section.
  6. Once done, click on save and apply.
  7. Now user can run project just by clicking on the “Run Last Tool” button.

Neova has expertise in automation testing of AngularJS applications using Protractor.