Uploaded image for project: 'QA Framework'
  1. QA Framework
  2. RATEST-150

E2E Test: Search for Patient Workflows

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Must
    • Resolution: Done
    • Affects Version/s: Reference Application 2.11.0
    • Fix Version/s: None
    • Component/s: Quality Assurance (QA)
    • Labels:
    • Complexity:
      Medium

      Description

      Goal: We want an automated test case that will give users confidence that the Search & Registration workflow is working as expected.

      Steps in this test include:

      1. Log in as an admin.
      2. Click on the find patient record app.
      3. Search for a patient using a name or unique identifier. Sample data is provided below:
        1.  
          Scenario Name  Unique Identifier Expectation
          No Match Andria Faiza 1000MJK Proceed to step 4
          There is a match  Use an existing patient name  Use an existing patient ID that matches the name The test stops.

      If no match, click on the registration app.


      1. Register the patient. 
        1. Scenario Registration details
          Successful registration  Given name: Andria
          Middle: Kumbha
          Family name: Faiza
          Gender:Female
          Birth Date: 28th March 1990
          Adress: 55372,test
          City: Nairobi
          State: Nairobi
          Country: Kenya
          Postal code:00100
          Phone number: +211 34 567890
          Unsuccessful registration Given name: leave blank
          Middle: Kumbha
          Family name: Mwangi
          Gender:leave blank
          Age:12
          Adress: leave blank
          City: leave blank
          State: leave blank
          Country: leave blank
          Postal code:leave blank
          Phone number: leave blank
          successful registration Unidentified patient Gender: male

        1. Check in the patient for a visit by starting a visit.

      Expected results: If the patient exists a match is displayed in a tabular format. If no match exists and the patient is registered, the patient dashboard is displayed.

      Guidance: 

      To complete this task, you will need to do the following within https://github.com/openmrs/openmrs-contrib-qaframework

      1. Create Feature File in the correct location here: https://github.com/openmrs/openmrs-contrib-qaframework/tree/master/src/test/resources/features 
      2. Create Page: Follow sample page files at https://wiki.openmrs.org/pages/viewpage.action?pageId=235277297
      3. Write Steps in Gherkin (Guidance here: https://cucumber.io/docs/gherkin/reference/)
      4. Complete the test in Selenium using the OMRS QA Framework
      5. Add a "Search and Registration" test status pill to the QA Framework Repo README under the 2.x RefApp section, like this: 

       

      Additional guidance: https://wiki.openmrs.org/display/docs/QA+Framework%3A+Overview+of+Frontend+Test+Steps

       

       

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                sharif Sharif Magembe
                Reporter:
                christine Christine Gichuki
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: