By resetting the database, it will make a dump of the database and utilize it for the appropriate tests by the script.
The procedure can be divided into two distinct flows.
1. Making a dump of the database
The first stage in the proposed method is to embed a script to run, and then request a dump file from the database. The dumped file will be the most recent version of the OpenMRS Database.
2. Resetting the database
After receiving the dump file, the procedure will restore the dump prior to proceeding to reset the database. The embedded script will be instructed to reset the database by the testing tool. The frameworks will start seeding the database by making relevant API requests if needed and executing the tests.