Skip to content

Conversation

@mahanadh
Copy link

@mahanadh mahanadh commented Mar 4, 2022

Summary/Motivation:
The PR contains a complete automation framework designed using Cypress which automates a few test cases for the Income Expense app.

Documentation:
Please refer to the README.md file inside e2e folder for added documentation of the automation script.

Test Cases Covered:

  • Verify sign-up of multiple users.
  • Verify log-in functionality.
  • Verify budgets can be created.
  • Verify budget can be allocated to another user.
  • Verify multiple categories can be added to a single user budget.
  • Verify multiple categories can be added to a multi-user budget.
  • Compare the expense for categories with respect to users in Stats page.
  • Verify deletion of the budget created.

Dependencies:

  • In order to use test runner locally, node and cypress must be installed. To install Cypress - npm install cypress --save-dev.

Screenshots, Videos or GIF:
Please find the automated test run recorded from the test runner:

Screen.Recording.2022-03-05.at.02.38.15.mov

Deployment/Testing Strategy:
Multiple deployment/testing strategies have been added for easy execution of the test scripts. Below are the details regarding these strategies.

  1. Using shell file
  • The shell file can be used to run all services and automation suite using a single command.
./cypress-run.sh
  1. Using Makefile
  • A makefile has been included to perform some of the basic tasks required.

  • Build services:

make docker-build
  • Run services:
make docker-up
  • Run tests headlessly:
make test
  • Run tests using a test runner:
make test-gui
  1. Using Cypress Test Runner
  • Test runner can be built locally and used to test the automated scripts. For this test runner should be opened. In order to open the test run, go inside the e2e folder and then use the command below:
npx cypress open

@mahanadh mahanadh force-pushed the master branch 3 times, most recently from ecea616 to 900bec9 Compare March 4, 2022 19:40
@mahanadh
Copy link
Author

mahanadh commented Mar 4, 2022

One issue found through automated test:

#2

@mahanadh mahanadh changed the title Added automated scripts for Income Expense App [Ready-To-Review] Added automated scripts for Income Expense App Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant