###Project description:
Automation test project for regression testing of zoomdata application.
- Java 8 + Maven + TestNG + Selenium + Selenide + Allure project.
- TestNG suite location: \src\test\resources\testng\testng.xml
- By a default suite will be executed in 5 parallel threads > could be changed in testng.xml, property
- Tests could be launched on Firefox, Chrome or IE browsers
⚠️ Warning: firefox browser version 47.0.0 is not stackable with last webdriver version!
Please ensure than last firefox v.47.0.1 is installed on computer, where tests should be executed. - Remote git location is here
###Maven installation:
mvn --version
Info how to install Maven is here
###How to start test execution in IDE:
- To run full test suite: make right click on testng.xml file > Run with testNG
- To run separate package/class: make right click on package/class file > Run with testNG
###How to start test execution in cmd:
0. Open cmd 😉
- go to local root project directory
- execute next command:
mvn clean test -Dtest=%classname -Dbrowser=%browsername site
Where:
%classname
- name of the test class
site
- maven goal to build allure reports
%browsername
- indicate browser in which tests should be executed, possible values:
chrome
firefox
internetexplorer
If no browser property set - tests will be executed in chrome by a default.
If no class name property provided - full test suite will be executed by a default.
###Bug reports:
Possible 🪲 bugs found in application reported in package bugReport
###Allure reporting:
Please ensure that test run was executed with 'site' goal in order to generate allure reports. File location is:
\target\site\allure-maven-plugin\index.hml
If test run was started without site
goal or index.html file was not created after test run finished - it's possible to create reports by executing mvn site
in cmd from project root directory.
###Tests description:
- Each test located in separate class.
- Each test started from homePage (user already logged in), except @Tests with groupName 'GENERAL', which will start from login page.
- By a default to start any action from home page - two methods allowed:
- fromHome() - returns homePage
- menu() - opens hamburger menu and returns leftMenuPage
- After each test browser will be automatically closed.
- Upon each test failure - screenshot named with className + timeFailure (and page html code) will be stored to target directory, mentioned in property "store_screen_to".