Giter Site home page Giter Site logo

saucedemorobotframework's Introduction

SauceDemoRobotFramework

📜Sauce Demo website

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 & Robot version

  • Python version: 3.12.3
  • Robot version: 7.0

🖥️Installation

  1. Install Python (https://www.python.org/downloads/)
  2. Install Robot Framework
    pip install robotframework
    
  3. Install Selenium Library
    pip install --upgrade robotframework-seleniumlibrary
    
  4. [For VS Code User] Install RobotCode extension (https://marketplace.visualstudio.com/items?itemName=d-biehl.robotcode)

🏃‍♀️How to Run (VS Code)

1. Set Up browser for Test Driver

a. Set Up all browser that will be used in variables files

b. Set Up browser that will be used when executing the test case in steps files

2. Run Test Script

a. Via VS Code Run Test Button

b. Via Terminal Command
- Run this script to execute selected test case
robot -t "test_cases_name" --report report --outputdir output --logtitle "Task log" features_file_location
For example:
robot -t "Login using valid credential" --report report --outputdir output --logtitle "Task log" C:\\RobotFramework\\SauceDemoRobot\\testcases\\login_features.robot
- Run this script to execute all test cases
robot .

✔️Test scenario Name

  1. Login using valid credential
  2. Login using invalid credential
  3. Login using user locked_out_user
  4. Purchase product as standard_user
  5. Purchase product as standard_user when user didn't fill data in Your Information page

📹Running Result

Here is an example of a running video

Report

Report can be accessed in the following ways:

  1. 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

2. If run test cases via Terminal Command using script to execute all test case, then open file report.html on your project folder after test running has been finished

Here is an example of Robot Framework report

saucedemorobotframework's People

Contributors

mithaputrianty avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.