This repository is for the homework of the Proxyclick interview.
- Java: It was written in java 15
- Maven: Building tool (Apache Maven 3.6.3)
- Chromedriver: currently it uses only chromedriver, the exec file is in the src/main/recources directory (ChromeDriver 86.0.4240.22), but if you have your own chromedriver, just point the relevant variable in the .env file to that.
- Chrome: The chosen browser is Chrome. It requires Chrome workd with ChromeDriver 86, or just change the ChromeDriver exec file to your need and run the tests with it
- .env: The file contains the test settings. It contains sensitive data (like username and password), so you have to fill the file with the necessary information.
-
Clone the repo
git clone https://github.com/kilimandzsaro/proxyclick
-
Fill up the .env file
-
Run the test:
mvn test
or clean run
mvn clean install
The test will create a target directory. Under it you can find the reports. The html report is target/surefire-reports/index.html. In case of error the created screenshot stored in the target/screenshots directory, but you can reach it from the html report.
Sometimes the page is loading extra slowly or has some strange behaviour, in this case the test will fail. Need to rerun it.
Happy testing!