{"id":43352192,"url":"https://github.com/dimagi/dimagi-qa-sureadhere","last_synced_at":"2026-02-02T02:32:42.547Z","repository":{"id":305085042,"uuid":"1017231614","full_name":"dimagi/dimagi-qa-sureadhere","owner":"dimagi","description":"This repository is for SureAdhere Automation","archived":false,"fork":false,"pushed_at":"2026-01-22T18:11:37.000Z","size":26646,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-23T01:28:52.116Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dimagi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-10T08:14:45.000Z","updated_at":"2026-01-22T18:11:40.000Z","dependencies_parsed_at":"2025-07-18T09:05:39.844Z","dependency_job_id":"980fcd98-5757-4c59-b916-867cdd8a5da2","html_url":"https://github.com/dimagi/dimagi-qa-sureadhere","commit_stats":null,"previous_names":["dimagi/dimagi-qa-sureadhere"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dimagi/dimagi-qa-sureadhere","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimagi%2Fdimagi-qa-sureadhere","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimagi%2Fdimagi-qa-sureadhere/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimagi%2Fdimagi-qa-sureadhere/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimagi%2Fdimagi-qa-sureadhere/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dimagi","download_url":"https://codeload.github.com/dimagi/dimagi-qa-sureadhere/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimagi%2Fdimagi-qa-sureadhere/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29001654,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T01:32:03.847Z","status":"online","status_checked_at":"2026-02-02T02:00:07.448Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-02-02T02:32:41.902Z","updated_at":"2026-02-02T02:32:42.538Z","avatar_url":"https://github.com/dimagi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# dimagi-qa-sureadhere\r\n\r\n## SureAdhere Test Script\r\n\r\nThis script contains the happy paths workflows of the SureAdhere app. Here are the scripted [automated workflows.](https://docs.google.com/spreadsheets/d/1EE2S3J4i964P_C-FCFxxHUYNxK3iP6XEoyKVoeWvZzs/edit?gid=530160723#gid=530160723)\r\n\r\n## Executing Scripts\r\n\r\n### \u003cins\u003e On Local Machine \u003c/ins\u003e\r\n\r\n#### Setting up the test environment\r\n\r\n```sh\r\n\r\n# Create and activate a virtualenv using your preferred method. Example:\r\npython -m venv venv\r\nsource venv/bin/activate\r\n\r\n\r\n# install requirements\r\npip install -r requires.txt\r\n\r\n```\r\n\r\n[More on setting up virtual environments](https://confluence.dimagi.com/display/GTD/QA+and+Python+Virtual+Environments)\r\n\r\n\r\n#### Running Tests\r\n\r\n\r\n -   Copy `settings-sample.cfg` to `settings.cfg` and populate `settings.cfg` for\r\nthe environment you want to test.\r\n- Run tests using pytest command like:\r\n\r\n```sh\r\n\r\n# To execute all the test cases \r\npytest -v testCases --browser=chrome --reruns 1 --dashboard --html=report.html\r\n\r\n```\r\n- You could also pass the following arguments\r\n  - ` -n auto --dist=loadfile` - This will run the tests parallelly in instances assigned automatically. The number of reruns is configurable.\r\n  - ` --reruns 1` - This will re-run the tests once in case of failures. The number of reruns is configurable too.\r\n\r\n### \u003cins\u003e Trigger Manually on Gitaction \u003c/ins\u003e\r\n\r\nTo manually trigger the script,\r\n  - Go to [SA Workflows action](https://github.com/dimagi/dimagi-qa-sureadhere/actions/workflows/sa-workflows.yml)\r\n  - Run workflow\r\n  - Use workflow from ```main```\r\n  - Use the environment as desired\r\n  - Run!\r\n\r\n## Script Results\r\n\r\n -  Failures would be triggered on the Slack channel **##qa-sureadhere-automated-test-results**\r\n\r\n\u003cimg width=\"517\" height=\"172\" alt=\"image\" src=\"https://github.com/user-attachments/assets/20248e98-84df-4217-accb-b176fc3c8107\" /\u003e\r\n\r\n\r\n\r\n -  You should be able to find the zipped results in the **Artifacts** section, of the corresponding run (after a run is complete).\r\n\r\n\u003cimg width=\"738\" height=\"115\" alt=\"image\" src=\"https://github.com/user-attachments/assets/71fc1a5a-d388-4c1a-ad2d-57f49016ae91\" /\u003e\r\n\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimagi%2Fdimagi-qa-sureadhere","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimagi%2Fdimagi-qa-sureadhere","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimagi%2Fdimagi-qa-sureadhere/lists"}