I will create a simple automation test using Selenium Python, Pytest and Unittest, for reporting, I will use Allure Report on the Swag Labs Website.
- clone this project
- install required.txt
-
1. Login using standard user
- Test Step
- Open the website
- Input username as standard_user
- Input password as secret_sauce
- Click button login
- Expected : Successfully logged in and redirects to the product page.
- Test Step
-
2. Login using locked user
- Test Step
- Open the website
- Input username as locked_out_user
- Input password as secret_sauce
- Click button login
- Expected : Will display an error message "Epic sadface: Sorry, this user has been locked out."
- Test Step
-
3. Login using problem user
- Test Step
- Open the website
- Input username as problem_user
- Input password as secret_sauce
- Click button login
- Expected : Successfully logged in but an inappropriate image is displayed.
- Test Step
- 4. Login using performance user
- Test Step
- Open the website
- Input username as performance_glitch_user
- Input password as secret_sauce
- Click button login
- Expected : Login is successful but it takes a longer time.
- Test Step
selenium-web-swaglabs.mp4
for reporting Allure Report, check this.