Web UI smoke test for NBS interface and search

On this page

  1. Usage

The nbs-test-webui.sh script is included in the infrastructure zip file at scripts/observability/nbs-test-webui.

This script will:

  • Log in
  • Save required tokens
  • Navigate to Advanced Search
  • Search for all female patients and check the count
  • Report an error if the count is 0

This Bash script can run using CloudShell if NBS is hosted in AWS, or on any system with Bash installed. curl is the only other dependency.

Usage

nbs-test-webui.sh [-h] [-?] [-d] [-D] [-P] [-H BASE_HOST] [-U USER] [-c count]

For example:

./nbs-test-webui.sh -d -H http://app.<your-site>.<your-domain>.com -U exampleuser
Flag Description
-h will echo usage
-? will echo usage
-d will turn on debugging
-D will turn on debugging
-P will prompt at each step
-H base host for hitting webui
-B baseurl url for hitting API
-U user in the database with access to create and delete patients
-c count number of iterations, default is 1