Automation test with Python and Selenium
Remember to download chromedriver.exe to a 'Drivers' folder in the root.
Run the command
- pip install
- pip install pytest-bdd
- pip install html-testRunner
- pip install pytest-html-reporter
- pip install pytest-html
- pip install -U pytest
- pip install pytesseract
- python -m pip install requests
Pluing recomended: Ranorex Selocity
pip freeze > requirements.txt
- POMDemo: Tets for http://automationpractice.com/
- Store: Test for https://automationteststore.com/
cd Store cd Tests pytest LoginTest.py RegisterTest.py
python -m pytest -k "searchResults"
- TAU: Behavior-Driven Python with pytest-bdd)
- Udemy: Learn Selenium Python from scratch with Sample Projects
- Darwoft
Scenarios:
- Cart Dropdown
- See 2 products names in cart dropdown
- See price in Dollars of 2 products in cart dropdown
- See price in Euros of 2 products in cart dropdown
- See price in Libras of 2 products in cart dropdown
- Cat
- Get a fact about cat and check response
- Checkout
- Buy in the Store and check order ID
- ContactUs
- Send a contactUs message and check text
- Login
- Login in Store Page correctly
- Error in Login
- Review
- Add a product review without verification code
- Add a product review with wrong verification code
- Add a product review with OK verification code
- Add a short product review with ok verification code
- Search
- Search a Product correctly
- Not found a product during search
- SearchResults
- Check quantity of products
- Wishlist
- Add product to wishlist and check
Scenarios:
- Login
- test_invalid_login_noUser_noPass
- test_login(self)
- Register
- test_registration_fields_incomplete
- test_registration_fail_alredy_register
- test_registration_checkLongText
- Checkout
- checkout_flow_with_product
Scenarios:
- Login
- test_invalid_username_password
- test_invalid_without_username_password
- test_invalid_without_password
- test_valid_login
- test_try_create_account
-
Visual testing sobre boton gris-naranja del login
-
Forgot your login - verificar error -mensaje bien - cerrarlo
-
En las special/offer ver el cartelito sale y la cantidad de objetos de la página. VERIFICAR que al cambiar de moneda, cambia la cookie
python -m pytest -k "Contribute" pytest -m -b python -m pytest --html=Reportes/EjemploReporte.html python -m pytest -k test_contribute_steps python -m pytest -k test_contribute_steps --html=EjemploReporte.html --self --container
python -m pytest
- Presionar la lupa, buscar por categoría, checkbox
- Home ->Loguearse -> Manage Address Book -> Edit -> Cambiar dirección -> Verificar mensaje verde y nueva dirección
- Verificar que el banner sea diferente
- Los BRANDS SCROLLING LIST abrirlos en pestañas nuevas
En el homepage, verificar los 3 banner... por defecto los botones neck back no son visibles... al poner el mouse encima...los botones nect y back se visualizan
Move to Element https://stackoverflow.com/questions/34562095/scrollintoview-vs-movetoelement https://stackoverflow.com/questions/41744368/scrolling-to-element-using-webdriver