Sauce Demo is Sauce Labs' open source websites. This website is a simple E-Commerce that can be used as an alternative website to show validation and possible errors that will occur on a website.
- Python version: 3.12.3
- Robot version: 7.0
- Install Python (https://www.python.org/downloads/)
- Install Robot Framework
pip install robotframework
- Install Selenium Library
pip install --upgrade robotframework-seleniumlibrary
- [For VS Code User] Install RobotCode extension (https://marketplace.visualstudio.com/items?itemName=d-biehl.robotcode)
robot -t "test_cases_name" --report report --outputdir output --logtitle "Task log" features_file_location
robot -t "Login using valid credential" --report report --outputdir output --logtitle "Task log" C:\\RobotFramework\\SauceDemoRobot\\testcases\\login_features.robot
robot .
- Login using valid credential
- Login using invalid credential
- Login using user locked_out_user
- Purchase product as standard_user
- Purchase product as standard_user when user didn't fill data in Your Information page
-
If run test cases via VS Code Run Test Button or via Terminal Command using script to execute selected test case, then:
a. Open file report.html on results folder after test running has been finished
b. Open file report.html on Terminal after test running has been finished