This script contains the happy paths workflows of the SureAdhere app. Here are the scripted automated workflows.
# 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
- Copy
settings-sample.cfg
tosettings.cfg
and populatesettings.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.
To manually trigger the script,
- Go to SA Workflows action
- Run workflow
- Use workflow from
main
- Use the environment as desired
- Run!
- Failures would be triggered on the Slack channel ##qa-sureadhere-automated-test-results

- You should be able to find the zipped results in the Artifacts section, of the corresponding run (after a run is complete).
