Skip to content

somyaak/Codingchallengedemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

-- Overview

The script automates the following flow:

1.Launches the Chrome browser. 2.Navigates to the SauceDemo login page. 3.Enters a valid username and password. 4.Logs into the application. 5.Selects two products (including Sauce Labs Backpack). 6.Adds them to the cart. 7.Validates that the first product name and prices in the cart are correct. 8.Captures a screenshot of the cart page for verification.

Validates that the product name and price in the cart are correct.

If both values match, the script prints “Test Passed: Item and price are correct!”, otherwise it prints “Test Failed: Validation mismatch!”.

-- Tools & Technologies :

Language: Java Automation Framework: Selenium WebDriver Browser: Google Chrome IDE : Eclipse

--Setup Instructions:

1.Install Prerequisites 2.Java JDK 8 or above 3.Eclipse IDE 4.Chrome Browser 5.Selenium Java Client Library 6.Configure the ChromeDriver 7.Download the ChromeDriver that matches your Chrome version.

-- Steps to run the project:

1.Add it to your system PATH or specify the path in your code (if needed). 2.Run the Script 3.Open the project in Eclipse. 4.Navigate to demoscript.java. 5.Run the file as a Java Application.

About

AIVS Pincodekart Pvt Ltd - Coding Challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages