selenium-test-project
Homework Description
In order to complete this homework you will need to
- Create a fork from my repo (https://guides.github.com/activities/forking/) - this will create a copy of this project in your GitHub account
- Complete Task 1
- Create a Pull Request for my original project (https://help.github.com/articles/creating-a-pull-request-from-a-fork/) - this will enable to easily review your code in GitHub
Task 1:
- Open a browser and maximize it.
- Go to ss.com
- Change language to russian if needed
- Search for on a Search page
- Choose different search criterias
- Press "Search" button
- Verify that at least one advertisment is displyed
Task 2:
- Sort search results by price and select "продажа" option from the dropdown
- Go to advanced search
- Set the price from 0 to 300 as a search parameter
- Select at least 3 any advertisments
- Press "Show selected advertisments" button
- Check that the ads on the page match the selected previously.
NOTE -
- Think about - how to make the tests Small, Atomic (One test - one clear goal, TC should verify only one functionality) and Autonomous. In order to do that, examine
- how many features are tested
- can or should those features be divided into separate test
- Try to use CSS Selectors instead of XPath
How this template was created
This template was generated with following command:
mvn archetype:generate -DgroupId=com.mycompany.selenium -DartifactId=selenium-test-project -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
Afterwards, following was added:
- Selenium and TestNg dependencies into pom.xml
- .gitignore file for not git tracking unnecessary files, which we don`t want to commit
- Test resources folder into src/test. Also marked as "Test Resources" in IDEA
- Added drivers into src/test/resources folder. NOTE - it might be needed to update the driver versions
In Russian
Task 1:
- Открыть браузер и развернуть на весь экран.
- Зайти на ss.com.
- Поменять язык на русский.
- в поиске ввести искомую фразу (напр. Компьютер....)
- выбрать разные параметры поиска.
- Нажать кнопку Искать
- удостовериться что отображается хотя бы одно объявление
Task 2:
- Отсортировать результаты по цене и выбрать закладку ‘продажа’.
- Зайти в расширенный поиск.
- Задать параметр поиска по цене от 0 до 300.
- Выбрать не менее 3 любых объявлений.
- Нажать кнопку Показать выбранные объявления. (proveritj chto cifra v skobkah praviljanaja)
- Проверить, что объявления на странице совпадают с выбранными ранее