Coder Social home page Coder Social logo

selenium-saucedemo's Introduction

Selenium SauceDemo Automation

This repository contains automation scripts for the SauceDemo website using Selenium and SpecFlow in C#.

Features

  • Login Feature: Automates the login process for the SauceDemo website. It includes scenarios for successful login with valid credentials.

  • Shopping Feature: Automates the shopping process on the SauceDemo website. It includes scenarios for adding items to the cart, proceeding through the checkout process, and completing the purchase.

Project Structure

  • Features: Contains the SpecFlow feature files and their corresponding step definitions.

  • Hooks: Contains configuration and setup for dependency injection and other pre/post scenario actions.

  • Interactions: Defines tasks or actions that an actor can perform.

  • Pages: Contains page object models for different pages of the SauceDemo website.

  • Steps: Contains step definitions for the SpecFlow scenarios.

Setup & Execution

  1. Clone the repository.
  2. Open the solution in Visual Studio.
  3. Restore NuGet packages.
  4. Build the solution.
  5. Run the tests using the Test Explorer.

Screenshots

Screenshots of failed tests can be found in the screenshots directory.

Living doc

Run this command to install SpecFlow.Plus.LivingDoc.CLI

dotnet tool install --global SpecFlow.Plus.LivingDoc.CLI

After that, run this command to generate the file LivingDoc.html, suppose you have run the tests

livingdoc.exe test-assembly .\bin\Debug\net6.0\tests.dll -t .\bin\Debug\net6.0\TestExecution.json

selenium-saucedemo's People

Contributors

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