Topic 5: Lesson Review & Project Assignment


Project Assignment: Automated Testing with Git 

Objective:

The objective of this project is to create an automated test suite using Git. 

Your Role:

In this project, you will document and automate test cases for the standard_user login, utilizing a GitHub repository for version control and submission.

  1. Project Initialization: Initialize a new GitHub repository for this project. Open the Cypress App and add the repository folder on your local machine as a project in Cypress.
  2. Test Case Documentation: Document at least 5 test cases for the www.saucedemo.com website’s standard_user login. Consider different scenarios, such as valid login, invalid login, navigating through pages, adding items to the cart, and checking out.
    1. Create a separate file, e.g., “test_cases.md,” in the repository to document the test cases. 
    2. Each test case should include a title, description, steps to execute, expected results, and any necessary test data.
  3. Test Automation: Automate the test cases you have documented using Cypress.io.
    1. These tests should be pointing toward the www.saucedemo.com website’s standard user login.
    2. If you are having trouble figuring out how to write the automated tests, don’t forget you can write pseudo-code to help you.
    3. Use functions and variables where you can.
  4. Test Execution and Verification: Execute your automated tests against the www.saucedemo.com website and ensure that all the automated tests pass successfully.
  5. Repository Documentation: Before submitting, create a README file in the repository, explaining the purpose and usage of your automated test suite. Ensure that the instructions in your README file are up to date and allow users to download and run the test cases.

By participating in this “Automated Testing with Git” project, students will gain hands-on experience in automating tests for a website using Git for version control. This self-paced project enables them to practice test case documentation, automation, and leveraging collaborative tools like Github. Additionally, it reinforces their understanding of test execution, verification, and reflective documentation practices.

Submission:

Push your code and test case documentation to the initialized Github repository. Make sure it includes the automated test scripts and the “test_cases.md” file. Please commit regularly and use descriptive commit messages to track your progress. Submit the link to your Github repository for assessment.

Skip to content