Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

QAFramework is an OpenMRS’ behaviour driven development (BDD) quality assurance framework. 

...

How to run locally tests for  2.x Reference Application

For  BDD workflow tests

 i.  Ensure to have followed the respective first two steps in Setup wizard above 

     cd openmrs-contrib-qaframework

 ii. See the list of test workflows  present in the module by running the command:

     npm run

 iii.Trigger any test workflow by running the command:

     npm run workflowName

     For example a workflow whose name is refapp2ClinicalVisit can be triggered by running the command:

     npm run refapp2ClinicalVisit

     Note: If you want to watch the test via UI then set headless property value within test.properties file to false.


For selenium legacy tests

i.  Ensure to have followed  the first step in the Setup wizard above

    cd openmrs-distro-referenceapplication

ii. Trigger the selenium legacy tests by running the command:   

    mvn clean install -DskipTests=false

   Note: Running the tests using the default set online instance takes more time compared with spinning from a local

   instance. So you can change the webUrl property value within test.properties file to point to your local server url.

...