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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!