Uploaded image for project: 'OpenMRS 3.x'
  1. OpenMRS 3.x
  2. O3-1316

Implement feature for 3.x E2E framework to avoid data mutations in tests.

    XMLWordPrintable

Details

    • Task
    • Status: Done
    • TBD
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      Proposed implementation -

      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.

      Gliffy Diagrams

        Attachments

          Issue Links

            Activity

              People

                pasindur2 Pasindu Rupasinghe
                pasindur2 Pasindu Rupasinghe
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: