Test task for QA Automation position using Java, Maven, Selenium WebDriver, Junit. This test worked on Windows 10 and chrome browser ver. 86.0.4240.111
- The user visits the Yandex website: www.yandex.ru
- Enters the phrase «расчет расстояний между городами» into the search line and starts the search
- Among the search results, the user searches for a result from the site «avtodispetcher.ru»
- Having found the desired result from this site - the user clicks on this result and goes to the site www.avtodispetcher.ru/distance/
- After making sure that the correct link has opened, the user enters the following values into the fields:
- Field «Откуда» - «Тула»
- Field «Куда» - «Санкт-Петербург»
- Field «Расход топлива» - «9»
- Field «Цена топлива» - «46»
- User clicks a button «Рассчитать»
- The user checks that the calculated distance = 897 км, and the cost of fuel = 3726 руб.
- User clicks on «Изменить маршрут»
- In the form that opens, in the field «Через города» user enters «Великий Новгород» and clicks "Calculate"
- The user checks that the distance is now = 966 км, and the cost of fuel = 4002 руб.
To run this autotest, you need an installed and configured path variable for maven 3.6.3 or latest and jdk 14. Also you need installed chrome browser ver. 86.0.4240.111 or old version.
- Download this code, put in random folder
- Open the console and go to the folder where the pom.xml file is located
- Type: mvn -Dtest=TestWebsite test , and press Enter
If there are any problems with the operation of this autotest, or other questions, please write to me [email protected]