Sauce Demo is a demo e-commerce built by Sauce Labs for software testing.
This repository contains automated testing of Sauce Demo using Robot Framework, utilizing SeleniumLibrary and DataDriver to run various scenarios on the website. The tests are designed to validate key functionalities such as login, product selection, and checkout flow.
Tool | Purpose |
---|---|
Robot Framework | Test automation framework |
SeleniumLibrary | Browser automation in Robot |
Google Sheets | Manual test case documentation |
GitHub | Portfolio hosting |
Tool | Purpose |
---|---|
Operating System | Windows 11 |
Browser | Google Chrome Testing v1137.07151.119 |
Integrated Development Environment | Visual Studio Code |
All test cases were designed and documented in Google Sheets before automation.
🔗 Sauce Demo Test Cases - Google Sheets (View Only)
Test Case ID | Title | Description |
---|---|---|
TC_HomePage_001 | Verify Elements on Home Page | Verify all essential elements are present on the Page |
TC_Login_001 | Successful Login | Verify user can log in with valid credentials |
TC_Products_001 | Verify Elements on Products Page | Verify UI Elements on Products Page |
TC_Products_002 | Add a Product to Cart | Verify user can add a product to cart |
TC_Cart_001 | Verify Added Products in Cart | Verify that product/s are added to cart |
TC_Checkout_001 | Proceed to Checkout: Your Information | Verify user can proceed to checkout |
TC_Checkout_002 | Verify Order Overview Details and Finish Checkout | Verify user can review order details and complete checkout |
TC_Checkout_003 | Verify Checkout Complete Page | Verify user sees confirmation message |
TC_Cart_002 | Remove an Item from the Cart | Verify user can remove an item from the cart |
swag-labs-automation/
├── keywords/ # user keywords for test cases
├── Output/ # output folder for reports and screenshots
├── test_cases/ # automated test cases
├── test_data/ # test data for data driven testing
├── variables/ # locators and variables
Filename: TC_001_Login_Page.robot
*** Keywords ***
Verify Elements on Home Page and User can login
[Arguments] ${username} ${password}
Enter Username ${username}
Enter Password ${password}
Click Login Button
Filename: login_screen_keywords.robot
*** Keywords ***
Enter Username
[Arguments] ${username}
Input Text ${username_field} ${username}
Enter Password
[Arguments] ${password}
Input Text ${password__field} ${password}
Click Login Button
Click Element ${login_btn}
After execution, log.html
, report.html
, and output.xml
are generated in the Output/
folder for detailed review.
©️ Katherine Mariñas