pasindur2
(Pasindu Rupasinghe)
July 21, 2022, 3:59pm
6
Project updates to 2022-07-20T18:30:00Z
Worked on fixing the data mutation issue.
Jira ticket -
https://issues.openmrs.org/browse/O3-1316
Pull request -
openmrs:main
← pasindur99:O3-1376
opened 07:37PM - 10 Jul 22 UTC
## Purpose
The pull request is created to implement a feature in 3.x E2E testin… g tool to avoid data mutations in tests. And this pull request is related to the issue ticket number [O3-1316](https://issues.openmrs.org/browse/O3-1316)
## Goals.
- This pr aim is to avoid the data mutation issues related to some tests in 3.X E2E testing tool.
## Approach
- Create Script files for the following purposes.
1. Take a Dump File of a database.
2. Restore the database.
- Create npm commands to run the following scripts.
Had a few issues with;
Setting up the back end - Got fixed (Talk discussion )
Errors with MySQL connection for making a dump of the database; the connection issue got fixed by mysqldump -h localhost -P 3306 --protocol=tcp -u openmrs -popenmrs openmrs > openmrs.sql
command. And it worked after setting the database port to 3036 in docker. So I could be able to make a dump of the database. But dumping data for tables is stopped at the first execution. Error log - mysqldump error log - Pastebin.com
Slack thread - Slack
Worked on fixing two existing tests.
Patient registration test.
Jira ticket -
https://issues.openmrs.org/browse/O3-1403
Pull request -
openmrs:main
← pasindur99:O3-1402
opened 05:35AM - 19 Jul 22 UTC
## Purpose
The pull request is created to fix the existing patient registration… E2E test. And this pull request is related to the issue ticket number [O3-1403](https://issues.openmrs.org/browse/O3-1403)
## Goals.
- This pr is to place the existing patient registration test in 3.X test framework.
## Approach
- Create a feature file and a step definition file for the patient registration test.
- Creat GitHub workflow.
- Migrate the test result to the dashboard.
The test checks have passed. And the pull request is ready for review and merge.
Jira ticket -
https://issues.openmrs.org/browse/O3-1406
Pull request -
openmrs:main
← jnsereko:O3-1406
opened 02:48AM - 11 Jul 22 UTC
As all seam to be working, i got a thing with verifying that there is no duplica… tion in returning of results.
By this i mean that the names might be the same but the uuid is always different.
Anchor's href is always different (unique) however much the patient names might be the same.
How can we use the anchor to verify that there is no duplication in results
### Issue Link -> https://issues.openmrs.org/browse/O3-1406
cc @dkayiwa @jayasanka-sack @pasindur99 @ibacher
The test checks have passed. And the pull request is ready for review and merge.
cc: @jayasanka @ibacher @bistenes
1 Like