Install Gradle and put it in your path
TIP: Unix only you can copy & paste the following shell snippet):
curl http://downloads.gradle.org/distributions/gradle-1.4-bin.zip > $HOME/gradle.zip
mkdir -p Groovy/gradle
cd Groovy/gradle
unzip $HOME/gradle.zip
mv gradle-1.4 1.4
rm $HOME/gradle.zip
export GRADLE_HOME=$HOME/Groovy/gradle/1.4
export PATH=$PATH:$GRADLE_HOME/bin
echo 'export GRADLE_HOME=$HOME/Groovy/gradle/1.4' >> $HOME/.profile
echo 'export PATH=$PATH:$GRADLE_HOME/bin' >> $HOME/.profile
cd $HOME
Windows Users:
Download the zip
unpack
Environment variables
add GRADLE_HOME to gradle unziped files
add %GRADLE_HOME%\bin to PATH variable
before runing it you should invoke some commands in order to download the dependencies and create the correct IDE project files
I'll use IDEA coz is nice
gradle cleanIdea -PtestSuite=smoke
gradle idea -PtestSuite=smoke
that should build the project (downloading the dependencies if you dont already have them on your local m2) and create the idea ipr, iws and stuff
This project contains the automation for Web Pages. The technology used to automate these tests are Selenium + Geb + TestNG using groovy as language. We use TestNG as runner to group test cases in suites as regression or sanity check.
The way to execute this project is using Gradle:
** Note: user and pass parameter are optionals, they have defaults at Properties class
gradle -PtestSuite=smoke test
this bottom lines are refence to see that parameter can be passed through command line but all the need for this expample are at build.gradle already
gradle -Dgeb.build.baseUrl=https://example.com/ -Duser="[email protected]" -Dpass="el pass" -i -PtestSuite=smoke test