Small web UI automation tests project to only show how tests can be done.
There are 2 ways of using it:
-
As automation engineer - develop, run and debug tests.
-
As anybody else - just run tests and analyze results.
Pre-requisites:
-
Java (please download from http://java.com and follow embedded instructions on how to install)
-
Create new environment variable called JAVA_HOME with full path to installed java (e.g.c:\Program Files\Java\jdk1.7.0_51). YOu can follow nice picture instructions from here http://www.wikihow.com/Set-Java-Home or here https://confluence.atlassian.com/display/DOC/Setting+the+JAVA_HOME+Variable+in+Windows or simply run from command line: setx JAVA_HOME=
Additional pre-requisites for automation engineers:
-
Setup maven (http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html)
-
Setup IntelliJIdea (or any other IDE for Java)
-
Setup required webdrivers
Unpack bin/automation_project-bin.zip to dedicated folder.
startCompiledTests.bat
Couple of examples:
- startCompiledTests.bat => will start all tests in chrome
- startCompiledTests.bat Login chrome => will start only Login related tests in chrome
- startCompiledTests.bat ActivityStream firefox => will start only ActivityStream related tests in firefox
- startCompiledTests.bat * firefox => will start all tests in firefox
NOTES:
- very first run will take much more time because maven will download all dependencies
- sometimes it is not working from first time, try to execute same test again then
- all parameters are case sensitive
- results are not cleared between runs, but only same tests results are overwriten
Results are opened automatically when test run finishes. To clean results you can run clean.bat.