Skip to content

Resolved conflicts for previously raised PR #220

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 854 commits into
base: QA-2857-automation-formplayer-tests-automation
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
854 commits
Select commit Hold shift + click to select a range
5fb0cf3
Merge pull request #330 from dimagi/QA-6444-script-fix-update-submit-…
kbo001 May 1, 2024
98199ee
QA-6444 fix for profile locators and longer time for excel dashboard
kbo001 May 1, 2024
6a4f354
QA-6444 fix for profile locators and steps for deletion
kbo001 May 2, 2024
a38266c
add tests for non-ideal case as defined in https://docs.google.com/do…
AmitPhulera May 2, 2024
bd1d848
QA-6444 fix for tescase 54
kbo001 May 2, 2024
048e02f
Merge pull request #331 from dimagi/QA-6444-script-fix-update-submit-…
kbo001 May 2, 2024
8bacf3e
feedback from review
AmitPhulera May 2, 2024
438f72d
Merge pull request #332 from dimagi/ap/add-test-for-non-ideal-user-case
AmitPhulera May 2, 2024
d80a10e
QA-6444 fix for casesearch split screen failure
kbo001 May 3, 2024
eae78fc
QA-6444 updated login_as steps in the common utilities webapps file
kbo001 May 6, 2024
e77d63b
Merge pull request #334 from dimagi/QA-6444-script-fix-update-submit-…
kbo001 May 6, 2024
d05f367
Update user_credentials.json
esoergel May 6, 2024
bcc3e8d
Merge pull request #335 from dimagi/esoergel-patch-1
AmitPhulera May 7, 2024
7715b9d
expect user_deatils to be of type RandomItems
AmitPhulera May 15, 2024
22d616a
update all the places where user_details were used as list and make t…
AmitPhulera May 15, 2024
637d921
Merge pull request #336 from dimagi/ap/randomise-users-in-every-test
AmitPhulera May 15, 2024
b7db1e3
QA-6520 BS app URl update and CS alert locators update
kbo001 May 16, 2024
43f9c91
Merge pull request #337 from dimagi/QA-6520-script-fix-bs-url-update-…
kbo001 May 17, 2024
e22e1d7
QA-5339 added settings to run scripts on india server
kbo001 May 17, 2024
5b6859e
QA-5339 updated email and user inputs for india server
kbo001 May 17, 2024
8a0dc83
QA-5339 updated user inputs and export testcases
kbo001 May 17, 2024
66061ad
QA-5339 updated steps for sms export
kbo001 May 17, 2024
ac67db1
Merge pull request #338 from dimagi/QA-5339-add-ability-to-manually-t…
kbo001 May 17, 2024
8ab38ed
QA-5339 set up for api scripts on india server
kbo001 May 20, 2024
3e04538
QA-5339 updated api conftest
kbo001 May 20, 2024
a4e6106
QA-5339 updated hq smoke test conftest and import cases steps
kbo001 May 20, 2024
5ca834d
QA-5339 updated sleep time for export data
kbo001 May 20, 2024
30f402f
QA-5339 added exceptions for export case and form data, updated ymls
kbo001 May 20, 2024
06f18f6
QA-5339 updated exceptions for export case and form data along with w…
kbo001 May 20, 2024
932797a
QA-5339 updated user input data
kbo001 May 20, 2024
610407a
Merge pull request #339 from dimagi/QA-5339-add-ability-to-manually-t…
kbo001 May 20, 2024
c678ebc
QA-5339 updated india webhook urls in ymls
kbo001 May 21, 2024
3181eb0
QA-5339 updated india webhook urls in ymls
kbo001 May 21, 2024
c2f4d64
Merge pull request #340 from dimagi/QA-5339-add-ability-to-manually-t…
kbo001 May 21, 2024
7641ada
QA-6520 made changes to all USH scripts, updated hq and api ymls, add…
kbo001 May 27, 2024
500520b
QA-6520 more fixes for USH scripts
kbo001 May 28, 2024
df87eff
QA-6520 more fixes for USH scripts
kbo001 May 28, 2024
e0778aa
QA-6520 updated locators for casesearch and multiselect scripts
kbo001 May 28, 2024
d2e9a34
QA-6520 updated a setp
kbo001 May 28, 2024
49a09db
Merge pull request #341 from dimagi/QA-6520-script-fix-bs-url-update-…
kbo001 May 28, 2024
efa0604
QA-6520 fixes for CaseSearch failures
kbo001 May 29, 2024
90628e4
QA-6520 updated locators for MS case tile tests and marked CS and SSC…
kbo001 May 30, 2024
e867058
QA-6520 updated locators for row checkbox
kbo001 May 30, 2024
5eb339d
QA-6520 updated locator for close button and steps for fuzzy search a…
kbo001 May 31, 2024
4bc2ee5
QA-6520 locators updated for HQSmokeTest scripts
kbo001 May 31, 2024
5e3b5bb
QA-6520 fixes for HQSmokeTest scripts and Casesearch
kbo001 Jun 3, 2024
7e5d6bc
QA-6520 increased wait time for export data in HQSmokeTest
kbo001 Jun 3, 2024
6f76232
QA-6520 fixed a step in SSCS testcase
kbo001 Jun 3, 2024
0dd0cd2
QA-6520 removed xfail conditions for CS and SSCS tests
kbo001 Jun 4, 2024
e83d0fb
QA-6520 updated steps for SSCS tests
kbo001 Jun 4, 2024
9daa6c5
Merge pull request #342 from dimagi/QA-6520-script-fix-bs-url-update-…
kbo001 Jun 4, 2024
3506006
QA-6520 removed xfail tags from CS and SSCS tests, fixed BHA test
kbo001 Jun 5, 2024
eed1c91
QA-6520 updated steps for BHA and casesearch tests
kbo001 Jun 5, 2024
281d007
Merge pull request #343 from dimagi/QA-6520-script-fix-bs-url-update-…
kbo001 Jun 5, 2024
be06272
QA-6520 changed domain parameters for BHA testsuite and changed steps…
kbo001 Jun 7, 2024
5e7041f
QA-6520 commented search steps for pending requests in BHA scripts
kbo001 Jun 7, 2024
8770530
QA-6520 added wait time in login-as function
kbo001 Jun 7, 2024
8f55723
QA-6520 fixes for BHA testcases
kbo001 Jun 7, 2024
35722b7
Merge pull request #344 from dimagi/QA-6520-script-fix-bs-url-update-…
kbo001 Jun 7, 2024
e934774
QA-6273 bulk testing of form submissions automated scripts
kbo001 Jun 10, 2024
46185a8
QA-6273 updated README.md and main.py
kbo001 Jun 10, 2024
cf5ee92
Merge pull request #345 from dimagi/QA-6273-bulk-testing-of-form-subm…
kbo001 Jun 10, 2024
ce462ad
Update test_01_admit_client_and_locks.py
kbo001 Jun 13, 2024
69ed798
Merge pull request #346 from dimagi/kbo001-patch-1
kbo001 Jun 13, 2024
583ad3f
QA-6683 BHA and CS script updates
kbo001 Jun 14, 2024
d85928f
QA-6683 MS and HQ locator and step updated
kbo001 Jun 14, 2024
0d344a0
QA-6683 MS locator and step updated
kbo001 Jun 14, 2024
1876b8d
QA-6683 CS locator updated
kbo001 Jun 14, 2024
fdb205a
Merge pull request #347 from dimagi/QA-6683-script-fix-bha-script-upd…
kbo001 Jun 14, 2024
07b4ed9
QA-6683 BHA locator and CS user input updated
kbo001 Jun 18, 2024
d765967
QA-6683 updated BS app url for the month
kbo001 Jun 18, 2024
ac277f9
Merge pull request #348 from dimagi/QA-6683-script-fix-bha-script-upd…
kbo001 Jun 18, 2024
0efb0e8
QA-6683 expection handled for email and keyword scenarios
kbo001 Jun 20, 2024
408d38f
Merge pull request #349 from dimagi/QA-6683-script-fix-bha-script-upd…
kbo001 Jun 20, 2024
4ab7380
QA-6683 updated data for CaseSearch failures
kbo001 Jun 20, 2024
cf6b4ce
QA-6683 Lookup Table locators updated
kbo001 Jun 21, 2024
815e548
QA-6683 Lookup Table locator for staging updated
kbo001 Jun 21, 2024
7b6cec0
Merge pull request #350 from dimagi/QA-6683-script-fix-bha-script-upd…
kbo001 Jun 21, 2024
d31201e
QA-6683 BHA user input updated
kbo001 Jun 28, 2024
bf8155b
QA-6683 BHA test steps and HQ steps updated
kbo001 Jul 2, 2024
a493163
Merge pull request #351 from dimagi/QA-6683-script-fix-bha-script-upd…
kbo001 Jul 2, 2024
6453b56
Update report_page.py
kbo001 Jul 4, 2024
7e5fcf2
QA-6761 implemented login changes for BHA testsuite
kbo001 Jul 4, 2024
6302274
Update bha-tests.yml
kbo001 Jul 4, 2024
307079a
Merge pull request #353 from dimagi/kbo001-patch-2
kbo001 Jul 4, 2024
2127650
Merge branch 'master' of https://github.com/dimagi/dimagi-qa into QA-…
kbo001 Jul 4, 2024
c6393e9
QA-6761 removed xfail mark from test_case_discharge_client_1
kbo001 Jul 4, 2024
0fdc078
QA-6761 updated the lohin cred for bha suites and the login functions
kbo001 Jul 9, 2024
4de2830
QA-6761 updated the conftest
kbo001 Jul 9, 2024
a0bdc3a
Merge pull request #352 from dimagi/QA-6761-script-enhancement-implem…
kbo001 Jul 9, 2024
0e44616
Update conftest.py
kbo001 Jul 9, 2024
328b1ef
Update test_01_admit_client_and_locks.py
kbo001 Jul 9, 2024
45ae817
QA-6761 BHA scripts updated with latest changes
kbo001 Jul 10, 2024
5d3a717
Merge branch 'master' into QA-6761-script-enhancement-implement-bha-u…
kbo001 Jul 10, 2024
f17602b
Merge pull request #354 from dimagi/QA-6761-script-enhancement-implem…
kbo001 Jul 10, 2024
762ee8b
Update import_cases_page.py
kbo001 Jul 18, 2024
97e005d
QA-6864 BS app url updated for the month
kbo001 Jul 19, 2024
9136395
Merge pull request #355 from dimagi/QA-6864-script-fix-bs-app-url-change
kbo001 Jul 19, 2024
19ad6e8
QA-6752 Locust script updated with new login changes
kbo001 Jul 22, 2024
ef9d5a2
QA-6752 Separated old and updated Locust scripts
kbo001 Jul 30, 2024
5c8778c
Update user_inputs.py
kbo001 Jul 30, 2024
34c4fdc
Merge branch 'master' of https://github.com/dimagi/dimagi-qa into QA-…
kbo001 Jul 31, 2024
ec446d3
QA-6752 Fixes for CS, SSCS and india server HQSmokeTest
kbo001 Jul 31, 2024
b6af631
Revert "QA-6752 Fixes for CS, SSCS and india server HQSmokeTest"
kbo001 Jul 31, 2024
34563e8
QA-6864 Fixes for CS, SSCS and india server HQSmokeTest
kbo001 Jul 31, 2024
9360cf8
QA-6864 Fixes for CS, SSCS and india server HQSmokeTest
kbo001 Jul 31, 2024
7f7173f
Merge pull request #357 from dimagi/QA-6864-script-fix-bs-app-url-change
kbo001 Jul 31, 2024
7591c6e
Update casesearch_page.py
kbo001 Jul 31, 2024
21e4016
QA-6864 Added conditions on date format based on OS
kbo001 Jul 31, 2024
1bd970f
Merge pull request #358 from dimagi/QA-6864-script-fix-bs-app-url-change
kbo001 Jul 31, 2024
005b4c9
Update casesearch_page.py
kbo001 Aug 1, 2024
715a83e
QA-6864 locator and condition updated for location cleanup
kbo001 Aug 1, 2024
91432af
Merge pull request #359 from dimagi/QA-6864-script-fix-bs-app-url-change
kbo001 Aug 1, 2024
fbc265b
QA-6864 fixed conflict
kbo001 Aug 1, 2024
170c03f
Merge branch 'master' of https://github.com/dimagi/dimagi-qa into QA-…
kbo001 Aug 1, 2024
5ed3ff5
QA-6864 fix for CS testcase 28
kbo001 Aug 5, 2024
5735e14
QA-6864 locators updated for USH scripts
kbo001 Aug 5, 2024
00c6a05
QA-6864 locators updated for USH scripts
kbo001 Aug 5, 2024
dca1acc
QA-6864 locator updated for HQ scripts
kbo001 Aug 5, 2024
1f76a78
Merge pull request #360 from dimagi/QA-6864-script-fix-bs-app-url-change
kbo001 Aug 5, 2024
56bb063
Merge branch 'master' of https://github.com/dimagi/dimagi-qa into QA-…
kbo001 Aug 6, 2024
53bef12
QA-6864 changes related to HQ Smoketest testcase 78
kbo001 Aug 8, 2024
5b2bdc6
QA-6864 removed unwanted step from messaging page
kbo001 Aug 8, 2024
9ab6b16
QA-6864 updated settings locator
kbo001 Aug 8, 2024
8f51de8
Merge pull request #361 from dimagi/QA-6864-script-fix-bs-app-url-change
kbo001 Aug 9, 2024
b75ea2e
QA-5310 updated slack notification for Request API testsuits
kbo001 Aug 13, 2024
5585b37
QA-5310 fixing request_api.yml
kbo001 Aug 13, 2024
5d60bbb
QA-5310 fixing request_api.yml
kbo001 Aug 13, 2024
4b9ec87
QA-5310 made changes to conftest and api yaml
kbo001 Aug 13, 2024
60affd3
QA-5310 made changes to conftest and api yaml
kbo001 Aug 13, 2024
39d6ba9
QA-5310 made changes to conftest
kbo001 Aug 13, 2024
0ca5e4f
QA-5310 made changes to api yml
kbo001 Aug 13, 2024
5a81740
QA-5310 made changes to api yml
kbo001 Aug 13, 2024
142a5f2
QA-5310 made slack changes to HQSmoke testsuite and workflow
kbo001 Aug 13, 2024
453d949
QA-5310 made slack changes to api and smoke test yml
kbo001 Aug 13, 2024
0f58c05
QA-5310 made slack changes to api yml
kbo001 Aug 13, 2024
2add2d6
QA-5310 made slack changes to api and hq yml
kbo001 Aug 13, 2024
d848775
QA-5310 made slack changes to api yml
kbo001 Aug 13, 2024
43d4194
QA-5310 made slack changes to api and hq yml
kbo001 Aug 13, 2024
a386d3b
QA-5310 made slack changes to all active conftest and ymls
kbo001 Aug 13, 2024
7b1ebe0
QA-5310 fixed syntax in all ymls
kbo001 Aug 13, 2024
2aa6d1a
QA-5310 fixed syntax in hq yml
kbo001 Aug 13, 2024
89e291d
QA-5310 fixed syntax in all ymls
kbo001 Aug 13, 2024
992d34e
QA-5310 fixed syntax in all ymls
kbo001 Aug 13, 2024
bb7bcf6
QA-5310 updated all ymls with new slack message format
kbo001 Aug 14, 2024
67fa468
QA-5310 fixed hq smoke test yml
kbo001 Aug 14, 2024
4134f31
QA-5310 updated artifact version for api yml
kbo001 Aug 14, 2024
8ad3bc4
QA-5310 updated artifact steps in api yml
kbo001 Aug 14, 2024
dbcba29
QA-5310 updated artifact steps in all ymls
kbo001 Aug 14, 2024
21cefa6
QA-5310 updated artifact name for all ymls
kbo001 Aug 14, 2024
622bc6f
QA-5310 updated artifact name for all ymls
kbo001 Aug 14, 2024
8799a7e
QA-5310 updated texts and button for all ymls
kbo001 Aug 14, 2024
3c9cdb7
QA-5310 updated slack success job for all ymls
kbo001 Aug 14, 2024
8d677f2
QA-5310 fixed report name in all ymls
kbo001 Aug 14, 2024
39b5174
Merge pull request #362 from dimagi/QA-5310-send-attachments-on-slack…
kbo001 Aug 14, 2024
a7b5867
Update casesearch-split-screen-tests.yml
kbo001 Aug 14, 2024
4483e01
Update case-search-tests.yml
kbo001 Aug 14, 2024
414429a
QA-7010 checking if the tests are compatible with firefox
kbo001 Aug 16, 2024
50c680a
QA-7010 separated testsuits for exports and escap defects
kbo001 Aug 19, 2024
321a278
QA-7010 updated the export requires,txt
kbo001 Aug 19, 2024
542f000
QA-7010 updated the ymls and export wait times
kbo001 Aug 19, 2024
e058df2
QA-7010 updated few of the assertions
kbo001 Aug 20, 2024
f7900c3
QA-7010 locators fixed for webapps, app_preview and ymls updated
kbo001 Aug 20, 2024
7fe8498
QA-7010 corrected p1p2 yml, fix for language testcase
kbo001 Aug 20, 2024
d57bfb7
QA-7010 updated correct path in p1p2 yml
kbo001 Aug 20, 2024
5d1ef5e
QA-7010 added new method to delete location
kbo001 Aug 20, 2024
50247f2
QA-7010 fix users failure
kbo001 Aug 20, 2024
6f8bd44
Merge pull request #363 from dimagi/QA-7010-separate-testsuites-for-e…
kbo001 Aug 20, 2024
5b312dc
QA-7048 CaseSearch fixes
kbo001 Aug 29, 2024
1a40302
Merge pull request #364 from dimagi/QA-7048-script-fix-case-search-te…
kbo001 Aug 29, 2024
fda0fc4
Merge branch 'master' of https://github.com/dimagi/dimagi-qa into QA-…
kbo001 Aug 30, 2024
a4a2fed
QA-6752 updated all the devs created files as per new changes and inp…
kbo001 Aug 30, 2024
781882c
QA-6752 deleted locenv folder
kbo001 Sep 2, 2024
53af83d
Merge pull request #356 from dimagi/QA-6752-regular-bha-specific-perf…
kbo001 Sep 2, 2024
276bf2a
QA-7048 updated all ush ymls and fixed languages testcase
kbo001 Sep 3, 2024
7ff2277
QA-7048 made modifications to BHA users and added new password and up…
kbo001 Sep 4, 2024
307a223
QA-7048 uncomments steps
kbo001 Sep 4, 2024
d0c9e58
Merge pull request #365 from dimagi/QA-7048-script-fix-case-search-te…
kbo001 Sep 4, 2024
921c41c
QA-7048 updated locators to delete saved reports
kbo001 Sep 6, 2024
e4baa3e
QA-7048 updated elastic search yml and conftest
kbo001 Sep 6, 2024
79d808f
QA-7048 updated elastic search and lookup table yml and conftest
kbo001 Sep 6, 2024
dce84ce
QA-7048 updated slack notifications for lookup table and es tests
kbo001 Sep 6, 2024
0df5586
Merge pull request #366 from dimagi/QA-7048-script-fix-case-search-te…
kbo001 Sep 6, 2024
c7a6312
QA-6752 changes for outgoing referrals
kbo001 Sep 12, 2024
12f9a43
QA-6752 changes for outgoing referrals and search for beds
kbo001 Sep 18, 2024
e95c413
QA-6752 changes for all scripts as per new app changes
kbo001 Sep 18, 2024
03b6502
QA-6752 changes for all scripts as per new app changes
kbo001 Sep 18, 2024
43aff75
Merge pull request #367 from dimagi/QA-6752-regular-bha-specific-perf…
kbo001 Sep 19, 2024
596cfb9
QA-6613 added proper assertion messages to all USH scripts
kbo001 Sep 19, 2024
20ef960
QA-6613 corrected type errors
kbo001 Sep 19, 2024
2db7606
QA-6613 added new testcase to delete all test created cond alerts
kbo001 Sep 19, 2024
0dd83f6
QA-6613 updated logic to search test alerts
kbo001 Sep 20, 2024
91652e4
Merge pull request #368 from dimagi/QA-6613-make-our-existing-test-su…
kbo001 Sep 20, 2024
4a32a29
QA-7156 updated BS app url, all ymls and MS log in user
kbo001 Oct 15, 2024
18ceb09
QA-7156 fix for data dictionary
kbo001 Oct 15, 2024
af1391b
Merge pull request #369 from dimagi/QA-7156-script-fix-update-bs-app-…
kbo001 Oct 15, 2024
931ee8e
QA-7156 added conditions on yml to skip staging deployments
kbo001 Oct 16, 2024
ed62fed
QA-7156 updated locator for odata feed testcase
kbo001 Oct 16, 2024
f01c552
QA-7156 updated locator for export save/submit button
kbo001 Oct 16, 2024
188df57
QA-7156 updated locator for export update data button
kbo001 Oct 16, 2024
4442844
QA-7156 updated locators and steps for export dashboard
kbo001 Oct 16, 2024
b82ff5f
QA-7156 updated locators, steps for export odata
kbo001 Oct 16, 2024
6fd02cd
Merge pull request #370 from dimagi/QA-7156-script-fix-update-bs-app-…
kbo001 Oct 16, 2024
d76a240
QA-7156 updated locators, steps for export data page
kbo001 Oct 23, 2024
9a89ae7
QA-7156 export tests and steps updated
kbo001 Oct 23, 2024
40c0cb4
QA-7156 updated dse testcases
kbo001 Oct 23, 2024
7825645
QA-7156 updated export data page steps
kbo001 Oct 23, 2024
035cb52
QA-7156 updated export data page steps
kbo001 Oct 23, 2024
af081d3
Merge pull request #371 from dimagi/QA-7156-script-fix-update-bs-app-…
kbo001 Oct 23, 2024
b46a8dc
QA-7156 updated locators for Org structure and exports
kbo001 Oct 29, 2024
64dbefe
QA-7156 updated testcases for P1P2 and exports
kbo001 Oct 29, 2024
6ea7628
QA-7156 updated locators and steps for mobile workers and org structures
kbo001 Oct 29, 2024
d565b36
QA-7156 updated steps for mobile workers
kbo001 Oct 29, 2024
e4d384b
QA-7156 updated steps for escape defects
kbo001 Oct 30, 2024
14305a8
QA-7156 removed duplicate testcase
kbo001 Oct 30, 2024
177dd1c
Merge pull request #372 from dimagi/QA-7156-script-fix-update-bs-app-…
kbo001 Oct 30, 2024
24c10c8
Update app_config_referrals_platform.json
kbo001 Oct 31, 2024
786bb32
QA-7204 updated bs app url for the month
kbo001 Nov 20, 2024
deaefad
QA-7204 updated steps in webapps.py file
kbo001 Nov 20, 2024
b1882cd
Merge pull request #373 from dimagi/QA-7204-script-fix-update-bs-app-…
kbo001 Nov 20, 2024
a7a93b6
QA-7204 fix for testcase 29 and 42 in prod
kbo001 Nov 27, 2024
f80dad9
Merge pull request #374 from dimagi/QA-7204-script-fix-update-bs-app-…
kbo001 Nov 27, 2024
81e4b9c
QA-7204 fix for staging failures and updated locust script
kbo001 Dec 3, 2024
8ce501a
Merge pull request #375 from dimagi/QA-7204-script-fix-update-bs-app-…
kbo001 Dec 3, 2024
a9adc8f
QA-7229 created the scripts for the badge load validations for Badge …
kbo001 Dec 20, 2024
c4a8efa
QA-7229 updated the time display and logs
kbo001 Dec 20, 2024
668496e
Merge pull request #377 from dimagi/QA-7229-request-for-performance-t…
kbo001 Dec 20, 2024
22c8cfa
Update android_screen.py
kbo001 Jan 7, 2025
8b3fb04
Update web_apps_page.py
kbo001 Jan 9, 2025
1c17eca
QA-7400 added steps to handle Asynchronous restore banner
kbo001 Jan 16, 2025
452b890
QA-7400 updated steps and locators for all USH scripts
kbo001 Jan 21, 2025
262b735
QA-7400 marked TC 38 as Xfail on staging
kbo001 Jan 21, 2025
a9ba9e5
QA-7400 added overriden function in webapps.py
kbo001 Jan 22, 2025
9272ded
QA-7400 added overriden function in webapps.py
kbo001 Jan 22, 2025
ead887f
QA-7400 updated step in webapps.py
kbo001 Jan 22, 2025
b846ced
QA-7400 removed wait_for_ajax calls from webapps.py
kbo001 Jan 27, 2025
3264e5f
QA-7400 fixed a function in base_page.py
kbo001 Jan 27, 2025
de04997
QA-7400 changed a locator call in webapps.py
kbo001 Jan 27, 2025
9aa2258
QA-7400 updated a locator in webapps.py
kbo001 Jan 27, 2025
d876108
QA-7400 added new constant for BHA failures and updated steps accordi…
kbo001 Jan 27, 2025
e22de6d
QA-7400 updated more case search and multiselect functions
kbo001 Jan 28, 2025
aa9ad71
QA-7400 reduced all wait times
kbo001 Jan 29, 2025
000a42e
QA-7400 marked MS TC 17 as skip fotr prod
kbo001 Jan 29, 2025
ebf39ef
QA-7400 updated webapps and casesearch steps
kbo001 Jan 29, 2025
38f81ae
Merge pull request #379 from dimagi/QA-7400-script-fix-fixes-for-the-…
kbo001 Jan 29, 2025
66e8882
QA-7428 added the scripts for Oncho load tests
kbo001 Feb 12, 2025
f9380cd
Merge pull request #380 from dimagi/QA-7428-oncho-campaign-apps-perfo…
kbo001 Feb 12, 2025
588d7af
QA-7414 added script for USH media file stress test
kbo001 Feb 13, 2025
9da5747
Merge pull request #381 from dimagi/QA-7414-stress-test-media-uploads…
kbo001 Feb 13, 2025
1f2e66f
resolving conflicts after new changes
nsaxena03 Feb 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
335 changes: 335 additions & 0 deletions .github/workflows/bha-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,335 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: CO BHA Smoke Tests

on:
repository_dispatch:
types: [ deploy_success ]
workflow_dispatch:
inputs:
environment:
description: 'Environment to run tests against'
required: true
default: 'staging'
type: choice
options:
- staging
- production
schedule:
- cron: '30 7 * * 1-5'

jobs:
set_matrix:
runs-on: ubuntu-latest
if: ${{ !(github.event_name == 'repository_dispatch' && github.event.client_payload.environment == 'staging') }}
outputs:
matrix: ${{ steps.set-matrix-schedule.outputs.matrix || steps.set-matrix-deploy.outputs.matrix || steps.set-matrix-manual.outputs.matrix || steps.set-matrix-default.outputs.matrix }}
steps:
- id: set-matrix-schedule
if: ${{ github.event_name == 'schedule' }}
run: |
echo "::set-output name=matrix::{\"environment\": [\"staging\"]}"
- id: set-matrix-deploy
if: ${{ github.event_name == 'repository_dispatch' && github.event.client_payload.environment == 'production' }}
run: |
echo "::set-output name=matrix::{\"environment\": [\"${{ github.event.client_payload.environment }}\"]}"
- id: set-matrix-manual
if: ${{ github.event_name == 'workflow_dispatch' }}
run: |
echo "::set-output name=matrix::{\"environment\": [\"${{ inputs.environment }}\"]}"
- id: set-matrix-default
if: ${{ github.event_name != 'repository_dispatch' }}
run: |
echo "::set-output name=matrix::{\"environment\": [\"production\", \"staging\"]}"


build:
needs: set_matrix
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.set_matrix.outputs.matrix) }}
concurrency:
group: ${{ github.workflow }}-${{ matrix.environment }}
cancel-in-progress: true
name: BHA Tests on '${{ matrix.environment }}'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r USH_Apps/CO_BHA/requires.txt

- name: BHA Smoke Tests
env:
DIMAGIQA_ENV: ${{ matrix.environment }} #${{ secrets.DIMAGIQA_URL }}
DIMAGIQA_BHA_USERNAME: ${{ secrets.DIMAGIQA_BHA_USERNAME }}
DIMAGIQA_BHA_PASSWORD: ${{ secrets.DIMAGIQA_BHA_PASSWORD }}
DIMAGIQA_USH_USER_PROD_AUTH_KEY: ${{ secrets.DIMAGIQA_PROD_AUTH_KEY }}
DIMAGIQA_MAIL_USERNAME: ${{ secrets.DIMAGIQA_MAIL_USERNAME }}
DIMAGIQA_MAIL_PASSWORD: ${{ secrets.DIMAGIQA_MAIL_PASSWORD }}
DIMAGIQA_LOGIN_USERNAME: ${{ secrets.DIMAGIQA_LOGIN_USERNAME }}
DIMAGIQA_LOGIN_PASSWORD: ${{ secrets.DIMAGIQA_LOGIN_PASSWORD }}
DIMAGIQA_USER_B_PWD: ${{ secrets.DIMAGIQA_USER_B_PWD }}
run: |
echo "client_payload: ${{ toJson(github.event.client_payload) }}"
echo "matrix environment: ${{ matrix.environment }}"
echo "NOW=$(date +'%m-%d %H:%M')" >> $GITHUB_ENV
echo ${{env.NOW}}
pytest -v "./USH_Apps/CO_BHA/test_cases" --dist=loadfile --reruns 1 --html=report_${{ matrix.environment }}.html

- name: Parse test counts
id: parse_counts
if: always()
run: |
# Extract variables from the api_test_counts.txt file
while IFS= read -r line; do
echo "::set-output name=${line%=*}::${line#*=}"
done < bha_test_counts_${{ matrix.environment }}.txt

- name: Archive test results
id: artifact-upload-step
if: ${{ success() || failure() }}
uses: actions/upload-artifact@v4
with:
name: test-result-reports--${{ matrix.environment }}-${{ github.run_id }}
path: /home/runner/work/dimagi-qa/dimagi-qa/report_${{ matrix.environment }}.html
retention-days: 2

- name: Fetch artifact ID
run: echo 'Artifact ID is ${{ steps.artifact-upload-step.outputs.artifact-id }}'


- name: Set email vars
if: ${{ success() || failure() }}
id: configure_email
uses: actions/github-script@v6
env:
JOB_STATUS: ${{ job.status }}
CC_ENV: ${{ matrix.environment }}
with:
script: |
const { promises: fs } = require('fs')

const {JOB_STATUS, NOW, CC_ENV, GITHUB_HEAD_REF} = process.env
const prefix = `[${CC_ENV}] BHA - ${JOB_STATUS.toUpperCase()} - Run #${context.runNumber}`
const suffix = `at ${NOW}`

let subject = `${prefix} on "deploy_success" ${suffix}`
if (context.eventName !== "repository_dispatch") {
subject = `${prefix} on branch "${GITHUB_HEAD_REF}" ${suffix}`
}

let bodyFile = './common_utilities/mail_templates/email_pass.md'
if (JOB_STATUS !== 'success') {
bodyFile = './common_utilities/mail_templates/email_fail.md'
}

let actionRunLink = context.payload.repository.html_url + `/actions/runs/${context.runId}`
let testSuite = 'BHA Smoke'
let bodyContent = await fs.readFile(bodyFile, 'utf8')
bodyContent = bodyContent.replace(/{{actionRunLink}}/g, actionRunLink)
.replace(/{{runNumber}}/g, context.runNumber)
.replace(/{{environment}}/g, CC_ENV)
.replace(/{{testSuite}}/g, testSuite)

let receivers = 'qa-automation@dimagi.com'
if (context.eventName !== "pull_request" || context.eventName !== "push") {
receivers = 'qa@dimagi.com, sameena.shaik@fissionlabs.com'
}

return {
"subject": subject,
"body": bodyContent,
"reference": Math.random().toString(36).substr(2), // used to prevent threading of similar emails
"receivers": receivers
}

- name: Send Result Email
if: ${{ failure() }}
uses: dawidd6/action-send-mail@v3
with:
server_address: smtp.gmail.com
server_port: 465
username: ${{secrets.DIMAGIQA_MAIL_USERNAME}}
password: ${{secrets.DIMAGIQA_MAIL_PASSWORD}}
subject: ${{ fromJSON(steps.configure_email.outputs.result).subject }}
to: ${{ fromJSON(steps.configure_email.outputs.result).receivers }}
from: <${{secrets.DIMAGIQA_MAIL_USERNAME}}>
html_body: ${{ fromJSON(steps.configure_email.outputs.result).body }}
convert_markdown: true
attachments: ${{ github.workspace }}/report_${{ matrix.environment }}.html
in_reply_to: ${{ fromJSON(steps.configure_email.outputs.result).reference }}

- name: Set slack vars
if: ${{ always() }}
id: configure_slack
uses: actions/github-script@v6
env:
JOB_STATUS: ${{ job.status }}
CC_ENV: ${{ matrix.environment }}
CC_EVENT: ${{ github.event_name }}
with:
result-encoding: string
script: |
const {CC_ENV, JOB_STATUS, CC_EVENT} = process.env
let SLACK_WEBHOOK_URL = '${{ secrets.SLACK_WEBHOOK_URL_BHA }}'
if (CC_EVENT == 'repository_dispatch' && CC_ENV == 'production') {
SLACK_WEBHOOK_URL = '${{ secrets.SLACK_WEBHOOK_URL_PROD_RESULTS }}'
console.log( "Prod deploy")
} else if (CC_EVENT != 'repository_dispatch' && CC_ENV == 'production') {
SLACK_WEBHOOK_URL = '${{ secrets.SLACK_WEBHOOK_URL_BHA }}'
console.log( "Not Prod deploy but Prof failure")
} else if (CC_ENV == 'staging') {
SLACK_WEBHOOK_URL = '${{ secrets.SLACK_WEBHOOK_URL_BHA }}'
console.log("Staging Failure")
} else {
SLACK_WEBHOOK_URL = ' '
console.log("No notification sent")
}

return SLACK_WEBHOOK_URL

- name: Post to Slack channel on Failure
id: slack_fail
uses: slackapi/slack-github-action@v1.23.0
if: ${{ steps.configure_slack.outputs.result != ' ' && failure() }}
with:
payload: |
{
"attachments": [
{
"color": "#FF0000",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": " Hey :bye_boo: \n*${{ github.workflow }}* were just triggered! \n"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Passed:* ${{ steps.parse_counts.outputs.PASSED }} *Failed:* ${{ steps.parse_counts.outputs.FAILED }} *Error:* ${{ steps.parse_counts.outputs.ERROR }} *Skipped:* ${{ steps.parse_counts.outputs.SKIPPED }} *XFail:* ${{ steps.parse_counts.outputs.XFAIL }}\n"
}
},
{
"type": "context",
"elements": [
{
"type": "mrkdwn",
"text": "*Environment: *\n ${{ matrix.environment }} \n"
},
{
"type": "mrkdwn",
"text": " "
},
{
"type": "mrkdwn",
"text": "*Status: *\n ${{ job.status }} :x:"
}
]
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Here's the corresponding report :arrow_right::arrow_right:"
},
"accessory": {
"type": "button",
"text": {
"type": "plain_text",
"text": "Click to Downlaod",
"emoji": true
},
"value": "click_me_123",
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts/${{ steps.artifact-upload-step.outputs.artifact-id }}",
"action_id": "button-action",
"style": "danger"
}
}
]
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ steps.configure_slack.outputs.result }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK

- name: Post to Slack channel on Success
id: slack_pass
uses: slackapi/slack-github-action@v1.23.0
if: ${{ steps.configure_slack.outputs.result != ' ' && success() }}
with:
payload: |
{
"attachments": [
{
"color": "#36a64f",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": " Hey :bye_boo: \n*${{ github.workflow }}* were just triggered! \n"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Passed:* ${{ steps.parse_counts.outputs.PASSED }} *Failed:* ${{ steps.parse_counts.outputs.FAILED }} *Error:* ${{ steps.parse_counts.outputs.ERROR }} *Skipped:* ${{ steps.parse_counts.outputs.SKIPPED }} *XFail:* ${{ steps.parse_counts.outputs.XFAIL }}\n"
}
},
{
"type": "context",
"elements": [
{
"type": "mrkdwn",
"text": "*Environment: *\n ${{ matrix.environment }} \n"
},
{
"type": "mrkdwn",
"text": " "
},
{
"type": "mrkdwn",
"text": "*Status: *\n ${{ job.status }} :white_check_mark:"
}
]
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Here's the corresponding report :arrow_right::arrow_right:"
},
"accessory": {
"type": "button",
"text": {
"type": "plain_text",
"text": "Click to Download",
"emoji": true
},
"value": "click_me_123",
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts/${{ steps.artifact-upload-step.outputs.artifact-id }}",
"action_id": "button-action",
"style": "primary"
}
}
]
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ steps.configure_slack.outputs.result }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
Loading