Automation Test Case and Test Scripts for a Health Care Domain Application

Below are the List of all top level test cases for Testing a Health Care Domain Application. For each test case there has to be unique and independent automation test case.

Will publish the Automation test case for the same shortly.

URL: https://demo.openmrs.org/openmrs/login.htm

User name/Password: admin / Admin123

Test Case 1/New Auto Test: Check Register a Patient Feature

  1. Open URL and Login and validate Login is Successful
  2. Click on Register a Patient
  3. Enter all the relevant patient details.
  4. Confirm the Details and capture Patient ID.
  5. Click on Show Contact info and validate the patient details u entered in earlier step.
  6. Go back to Home page and Click on Find Patient Record
  7. Search By Patient ID.
  8. validate Details are Displayed. Check name, id, age and date of birth
  9. Search By Patient Name.
  10. validate details are correctly displayed. Check name, id, age and date of birth

Test Case 2/New Auto Test: Negative-Check patient id is not displayed in active visit when visit not started

  1. Open URL and Login and validate Login is Successful
  2. Click on Register a Patient
  3. Enter all the relevant patient details.
  4. Confirm the Details and capture Patient ID.
  5. Do not Start Visit
  6. Go back to Home page and Click on Active Visits
  7. Search By Patient ID.
  8. validate Patient is not displayed

Test Case 3/New Auto Test: Check Active Visit Patient Feature

  1. Open URL and Login and validate Login is Successful
  2. Click on Register a Patient
  3. Enter all the relevant patient details.
  4. Confirm the Details and capture Patient ID
  5. Click on Start Visit
  6. Validate the Visit has been started by checking various fields and elements.
  7. Go back to Home page and Click on Active Visits
  8. Patient Details should be displayed in Active Visits Table

Test Case 4/New Auto Test: Add vitals from Home page, validate BMI is correctly calculated

  1. Data Pre-requisite Steps:
    1. Add Patient and Start Visit based on the Steps above.
    2. Capture Patient ID
  2. Go To Home page
  3. Click on capture Vitals Tab
  4. Add Patient Vitals with the Data.
  5. validate BMI is correctly calculated based on Height and Weight Details entered.
  6. After filling all the details, click Confirm and Save.
  7. Validation of Capture Vitals:
    1. Go to Home Page
    2. Click on Active Visits and Click on the Patient Name
    3. Under Vitals Section all the Details should match with the Details entered in previous Steps

Test Case 5/New Auto Test: Add vitals from Patient View 

  1. Data Pre-requisite Steps:
    1. Add Patient and Start Visit based on the Steps above.
    2. Capture Patient ID
  2. In the Right Side Panel, click on the Capture Vitals Link
  3. Add Patient Vitals with the Data.
  4. validate BMI is correctly calculated based on Height and Weight Details entered.
  5. After filling all the details, click Confirm and Save.
  6. Validation of Capture Vitals:
    1. Under Vitals Section all the Details should match with the Details entered in previous Steps

Test Case 6/New Auto Test: Add Visit note for active patient and End Visit

  1. Data Pre-requisite Steps:
    1. Add Patient and Start Visit based on the Steps above.
    2. Capture Patient ID
  2. In the Right Side Panel, click on the Add Visit Note
  3. Visit Note Form will be opened.
  4. Add details including Confirmed Diagnosis as Eczima.
  5. Click Save
  6. Validation of Diagnosis
    1. Under Diagnosis Section, Disease name should be displayed.
  7. Click on End Visit
  8. Patient Should not be displayed in Active Visit Section
  9. Patient Should be Displayed in Find Patient

Test Case 7/New Auto Test: Add Allergies

  1. Data Pre-requisite Steps:
    1. Add Patient and Start Visit based on the Steps above.
    2. Capture Patient ID
    3. In the Right Side Panel, click on the Add Allergies
  2. Add at least two allergies with the allergy name and effects and save the allergies.
  3. Validation of Allergies
    1. Under Allergies Section, all the allergies should be displayed.