Verisoft Wiki

Given:

Key Sentence Type Description Example
user on {string} page Business process Business process of login Given user on "LoginScreen" page
"user starts the activity {string} in package {string}" Action start an application Given "user starts the activity "activityID" in package "activityID""
"user uploads driver" Action Given "user uploads driver"

When:

Key Sentence Type Description Example
user taps on "btnId" button Action click on the button When user taps on "SELECT_MESIRA" buttonn
user taps on "fieldId" field Action click on the field When user taps on "TAKING_LOAN" field
user inserts into "fieldId" the value "value" Action set the value on text field When user inserts into "user_NAME" the value "qa37art"
user deletes the value from the field "fieldId" Action deleting value from field When user deletes the value from the field "fieldId"
user selects "date" from the calendar "calendarID" Action date selecting process When user selects "15/10/2020" from the calendar "calendarID"
user taps on the "checkboxId" checkbox Action click on the checkbox When user taps on the "checkboxId" checkbox
user taps on the icon "iconId" icon Action click on the icon When user taps on the icon "iconId"
user swipes "DirectionId" Action a swipe action (up, down, right, left) When user swipes "down"
user logs into the system with the username "username" and password "password" Action login into the system When uuser logs into the system with the username "username" and password "password"

When:

Key Sentence Type Description Example
user should see the title "titleId" Action check if screen sub title equals to expected Then user should see the subtitle "titleId"
user should see the text ""textString" in the element  "textId" Action check if the text is as expected Then user should see the text "textId"
user should see the button "btnId" Action check if the button is as expected Then user should see the button "btnId"
user should see the field "fieldId" Action check if the field displayed as expected Then user should see the field "fieldId"
user should see the field "fieldId" with placeholder of "PlaceholderId" Action check if place holder of specific field displayed as expected Then user should see the field "fieldId" with placeholder of "PlaceholderId"
user should see the error message "errorMessageText" in the element "errorMessageElementID" Action check if the error is as expected Then user should see the error message "errorMessageId" in the element "errorMessageElementID"