Skip to content

Automation test script for saucedemo website using python selenium and pytest framework. It majorly covers the functional testing of the website and provides normal as well as extent report generation. In case of errors or test failures, it takes in screenshots saved in the local directory

Notifications You must be signed in to change notification settings

NikeshMan16/ProjectAutomation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Read me file This is a practice automation test script for a Test ecommerce site Test Cases for Login Page

Test CaseID TestCase Description Precondition Test Steps Expected Result Actual Result
TC_001 Test Login for valid users User must be on the Login Page 1.Go to url:"saucedemo.com"
2.Enter the credentials for valid_user
3.Click on submit button
The user must be directed to the main page.
TC_002 Test Login for problem_user User must be on the Login Page 1.Go to url:"saucedemo.com"
2.Enter the credentials for problem_user
#3.Click on submit button
The user must directed to the main page.
TC_003 Test Login for invalid or locked out users User must be on the Login Page 1.Go to url:"saucedemo.com"
2.Enter the credentials for locked_out_user
3.Click on submit button
Validation error message must be displayed and user should still be on the login page
TC_004 Test Login for empty username and valid password User must be on the Login Page 1.Go to url:"saucedemo.com"
2.Enter the valid password
3.Click on submit button
Validation error message indicating user field is required should be shown.
TC_005 Test Login for valid username and empty password User must be on the Login Page 1.Go to url:"saucedemo.com"
2.Enter the valid username and empty password.
3. Click on submit button
Validation error message incdicating password is required should be shown.

Test Logins are done for all the users provided by the test automation site within the script but all are not mentioned in the test case.

Test Cases for Functional Requirement of the Ecommerce site including add to cart functionalit,view product functionality, checkout functionality

Test CaseID TestCase Description Precondition Test Steps Expected Results Actual Result
TC_006 Test Item indicator superscript in Cart icon for addition items from inventory The user must be logged-in. 1. Add an item to cart
2. Check the cart icon number
3. Repeat Steps 1 and 2
The superscript number should be equal to the number of items added to the cart
TC_007 Test Item indicator superscript in Cart icon after removing items from inventory The user must be logged-in. 1. Remove items from cart
2. Check the cart icon number
3. Repeat Steps 1 and 2
The superscript number should be equal to the total number of items in cart
TC_008 Verify all items added to cart appears in the Cart page 1. The user must be logged in
2. Atleast one item should added from the main page.
1. Add items to cart from inventory page.
2. Go to Cart Page
3. Verify all items add appear on the cart page.
All items added should appear ni the cart page with their price.
TC_009 Verify sorting of items based on alphabetical order 1. The user must be logged in 1. Click on Name(A to Z) option in dropdown The inventory items must be display alphabetically.
TC_010 Verify sorting of items based on alphabetical order 1. The user must be logged in 1. Click on Name(Z to A) option in dropdown The inventory items must be displayed in reversed alphabetically.
TC_011 Verify sorting of items based on price(Low to High) 1. The user must be logged in 1. Click on Price(A to Z) option in dropdown The inventory items must be display from based on price , low to high.
TC_012 Verify sorting of items based on price(High to Low) 1. The user must be logged in 1. Click on Name(A to Z) option in dropdown The inventory items must be display from based on price , low to high.
TC_013 Verify Remove Button appears after clicking add to cart for each inventory item 1. The user must be logged in 1. Click on Add to Cart button The Add to Cart button should be changed to Remove button
TC_014 Verify Add to Cart function for single item, includes Check for change of text from Add to Cart to 'Remove', Cart count 1. The use must be logged in 1. Click on Add to Cart button
2. Click on Remove button
The Remove button should be changed to Add to Cart

About

Automation test script for saucedemo website using python selenium and pytest framework. It majorly covers the functional testing of the website and provides normal as well as extent report generation. In case of errors or test failures, it takes in screenshots saved in the local directory

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published