Skip to content

Instantly share code, notes, and snippets.

@pocha
Forked from anonymous/TestNG Griggi setup
Last active September 14, 2016 06:11
Show Gist options
  • Save pocha/f66d84445ddd2d7f6065fadc7cef2f9d to your computer and use it in GitHub Desktop.
Save pocha/f66d84445ddd2d7f6065fadc7cef2f9d to your computer and use it in GitHub Desktop.
TestNG Griggi setup
Install IDE
https://eclipse.org/downloads/packages/eclipse-ide-java-developers/mars2
Install testNG plugin for eclipse:
http://testng.org/doc/download.html
Verify if plugin is installed:
http://wiki.eclipse.org/FAQ_How_do_I_find_out_what_plug-ins_have_been_installed%3F
If its first time with Eclipse, you need to add JRE to the project as well . Without this, you will see errors like java.lang.Object not resolved because java isnt accessible.
Project -> Properties -> Java build Path -> Select Libraries tab -> Add Library -> JRE System Library (Next) -> Workspace default JRE (it should show the latest jdk installed on your system) -> Finish
(Below steps are probably not needed, just informational here as chromedriver binary is part of GriggiTests repo)
Install chrome or chromium and take note of the version you have installed.
Then install chrome driver from here:
https://sites.google.com/a/chromium.org/chromedriver/
Insaller Getting started: https://sites.google.com/a/chromium.org/chromedriver/getting-started
Get your OS chromedriver
Git clone: GriggiTests
Import above as project in eclipse IDE GUI.
File > Import... > Existing Project into workspace > select root directory of the GriggiTests
From the eclipse GUI project source tree, find src/mainTest.xml; right click on it and select "run as TestNG".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment