Question
I could really use some help on this Python/Selenium/Cucumber practice problem. Screenshots and detailed explanations would helpful. Thank you! Selenium WebDriver and Cucumber - Practice
I could really use some help on this Python/Selenium/Cucumber practice problem. Screenshots and detailed explanations would helpful. Thank you!
Selenium WebDriver and Cucumber - Practice Exercise
*Objective:
The objective of this exercise is to test a live application using the procedures, practices, and techniques of Selenium WebDriver and Cucumber.
*Exercise:
Using Python programming (and Google Chrome), create 5 test cases from the ecommerce website 'www.bestbuy.com'. The following features must be implemented in each automated script:
-All tests should be designed using a Page Object Model
-All tests should follow good coding practices and standards
-All tests should be clear and easy to follow
-All tests should have corresponding features in feature file
-All tests should contain appropriate assertions and verifications to ensure the application is working correctly under a variety of different scenarios
*Example test cases for ecommerce applications:
*Test Search an item (multiple items):
-Make changes to the different choices available (like brand, size, color etc.);
-Test changing sort by options
*Test add an item to cart
-Test by changing quantity:
-Test for "in stock" and "out of stock" items
*Test proceed to checkout:
-Test if the item which you added is the same which you have on checkout page:
-Test for the total price and quantity
*What is needed to complete exercise:
1. test folder - order the tests to run
2. pages folder - entails locator code
3. conftest folder - entails name of the first file pytest which will read to config all the tests
4. step folder - entails step definitions file(s) feature folder - features of test (using Cucumber)
5. feature folder - features of test (using Cucumber)
**Lastly, please add JSON data file if need be to include all the hard code needed to pass to the fields in the tests.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started