Skip to content

Kathorsiii/swag-labs-automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧪 Swag Labs Automation Test

Sauce Demo is a demo e-commerce built by Sauce Labs for software testing.

🚀 Project Overview

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.

🧰 Tools and Technologies Used

Tool Purpose
Robot Framework Test automation framework
SeleniumLibrary Browser automation in Robot
Google Sheets Manual test case documentation
GitHub Portfolio hosting

⚙️ Test Environment

Tool Purpose
Operating System Windows 11
Browser Google Chrome Testing v1137.07151.119
Integrated Development Environment Visual Studio Code

📋 Test Cases Overview

All test cases were designed and documented in Google Sheets before automation.

📄 View the Full Test Case Sheet

🔗 Sauce Demo Test Cases - Google Sheets (View Only)

✅ Sample Test Case Summary

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

📁 Project Structure

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

🧪 Sample Automated Test File (Robot Framework)

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}

📊 Test Report

After execution, log.html, report.html, and output.xml are generated in the Output/ folder for detailed review.

📝 Sample Test Report

image

👩🏻‍💻 About Me

©️ Katherine Mariñas

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published