Eclipse
Download Eclipse
Download Eclipse IDE for Java Developers
Clone Project
Download a release version based on the testing needs: service (api, db testing), web, iOS, Android, WinApp. See Getting Started:
Unpack
Run Setup
Run autonomx -> setup.sh/.bat

Wait until the download of the maven dependencies are complete (~5 mins)
Launch Automation Project Through Eclipse
Open eclipse
Select File → Import → Maven → Import existing maven project
Select Next
Root Directory: Select the automation project folder
Select the project

Select finish
If project has errors, Clean the project
Projects -> Clean...

Download TestNG Plugin
Select Help -> Eclipse Marketplace
Search for Testng
Install and restart
Install Plugin Manually
If the TestNG plugin is not found in the eclipse market place:
Go to latest TestNG version link
Copy the url of the version. eg. http://dl.bintray.com/testng-team/testng-eclipse-release/6.14.3/
In Eclipse: Navigate: Help -> Install New Software
Paste the link in the work with field

Select Add
Set Name: testNG
Select testNG from the result and then Next

Security warning could be displayed. Install anyways
Restart eclipse to apply changes
TestNG plugin should now be installed
Disable Refresh Using Native Hooks Or Polling
Select Eclipse -> Preferences -> Workspace
Deselect "Refresh using native hooks or polling"
This is important, so the code generator will not be called more than once per file update

Install CSV plugin
CSV plugin allows for the csv files to be displayed
Go to: Helper -> Eclipse Marketplace -> Search for csv Edit resurrector
Install the csv Edit resurrector plugin

Csv Files will not look like this:

Enable Annotations
Right click on the project folder -> properties -> Java Compiler -> Annotation Processing
Enable "Enable Annotation Process"
Set "Generated source directory" to "./target/generated-sources/annotations"
Apply and Close

Select Package View
Select Package Explorer → Package Presentation → Hierarchical
Verify The Setup
Select login test from:
src → test → java → module -> web -> tests → VerifyLoginTest.java
Right click and select: Run As → TestNG Tests

Test should pass

Last updated
Was this helpful?