Skip to content

dimagi/dimagi-qa-sureadhere

Repository files navigation

dimagi-qa-sureadhere

SureAdhere Test Script

This script contains the happy paths workflows of the SureAdhere app. Here are the scripted automated workflows.

Executing Scripts

On Local Machine

Setting up the test environment

# Create and activate a virtualenv using your preferred method. Example:
python -m venv venv
source venv/bin/activate


# install requirements
pip install -r requires.txt

More on setting up virtual environments

Running Tests

  • Copy settings-sample.cfg to settings.cfg and populate settings.cfg for the environment you want to test.
  • Run tests using pytest command like:
# To execute all the test cases 
pytest -v testCases --browser=chrome --reruns 1 --dashboard --html=report.html
  • You could also pass the following arguments
    • -n auto --dist=loadfile - This will run the tests parallelly in instances assigned automatically. The number of reruns is configurable.
    • --reruns 1 - This will re-run the tests once in case of failures. The number of reruns is configurable too.

Trigger Manually on Gitaction

To manually trigger the script,

  • Go to SA Workflows action
  • Run workflow
  • Use workflow from main
  • Use the environment as desired
  • Run!

Script Results

  • Failures would be triggered on the Slack channel ##qa-sureadhere-automated-test-results
image
  • You should be able to find the zipped results in the Artifacts section, of the corresponding run (after a run is complete).
image

About

This repository is for SureAdhere Automation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages