Appearance
AireFrame Commands
A library of test commands to use when testing AireFrame.
Login and Authentication
gherkin
When we login to AireFrame as '<username>'Logs into AireFrame with the specified user credentials from your Configuration.json.
gherkin
#Example:
When we login to AireFrame as 'test.user'
Then we are logged into AireFrameVerifies that the login was successful.
Navigation
Department
gherkin
Then the Select a Department panel is shownConfirms that the “Select a Department” panel is visible.
gherkin
When we select department '<department-name>'Chooses the named department from the department panel:
gherkin
#Example:
When we select department 'Radiology'Dashboard
gherkin
When we select dashboard '<dashboard-name>'Navigates to the given dashboard view:
gherkin
#Example:
When we select dashboard 'Organisation'Location
gherkin
When we select location '<location-name>'Selects the specified location (e.g. a site or region):
gherkin
#Example:
When we select location 'London'Subject Lookup
Details Page
gherkin
Then the subject details page is shown for '<subject-id>'Checks that the details page for the given subject identifier is displayed:
gherkin
#Example:
Then the subject details page is shown for '12345'Subject Matching
gherkin
When we view a subject matchingLoads a subject ready to be used in subsequent steps. Supply a data table:
gherkin
#Example:
Then a subject matches
| FirstName | Jane |
| Surname | Smith |
| DOB | 1980-05-12 |Note: Other steps can then refer to this subject as 'our subject'. This will be specified in the steps which support it.
gherkin
Then a subject matchesVerifies that at least one subject record matches all of the provided field/value pairs. Supply a data table:
gherkin
#Example:
Then a subject matches
| FirstName | Jane |
| Surname | Smith |
| DOB | 1980-05-12 |Launching Forms
gherkin
When we launch form '<form-key>' for a subject matchingOpens the specified form for the first subject matching the given criteria. Supply a data table of field/value pairs:
gherkin
#Example:
When we launch form 'BMIForm' for a subject matching
| NHSNumber | 1234567890 |Alternatively, if you have previously run a 'When we view a subject matching' command you can simply use
gherkin
When we launch form '<form-key>' for our subjectwithout the datatable.
Modifying subjects
gherkin
When we create a subjectCreates a new subject using the data in the supplied datatable
gherkin
#Example:
When we create a subject
| FirstName | Jane |
| Surname | Smith |
| DOB | 1980-05-12 |gherkin
When we update our subjectModifies the subject previously loaded by a 'When we view a subject matching command'
gherkin
#Full example:
When view a subject matching
| FirstName | Jane |
| Surname | Smith |
| DOB | 1980-05-12 |
Then we update our subject
| FirstName | Jennifer |