Skip to content

Latest commit

 

History

History
30 lines (26 loc) · 1.55 KB

File metadata and controls

30 lines (26 loc) · 1.55 KB

Support engineer test task

Test assignment

  1. Create a Selenium (https://selenium-python.readthedocs.io/) script as a part of test_shopping test case. Replace pass statement (Line 2) with the script
  2. It's only allowed to define UI elements using:
  1. The script should be based on the following scenario:
  • user visits amazon.com website
  • user fills out a search field with the product name and activates search ==>
    ==> a page with search results is displayed.
  • user looks for the product of specified color having maximum reviews count
  • user extracts minimum product price (with applied discount) from the page
  • user assigns amazon_price = product price
  • user visits bestbuy.com website
  • user chooses United States country
  • user fills out a search field with the product name and activates search ==>
    ==> a page with search results is displayed.
  • user looks for the product of specified color having maximum reviews count
  • user extracts minimum product price (with applied discount) from the page
  • user assigns bestbuy_price = product price
  1. Uncomment the last assert from the test script (Line 4).
  2. Run the test case with Selenium in headless mode. From project root it would be:
    pytest tests/test_shopping.py
    There's a 50/50 possibility it fails. That's OK.
  3. Provide the results as a new Git repository.