Skip to content

Sample Gherkin

Adam De Fouw edited this page Oct 19, 2021 · 19 revisions

REDCap Testing Using Gherkin Syntax

Record Status Dashboard Tests


Scenario: A standard user logs in and expects to see no records exist in Record Status Dashboard

Given a standard user logs into REDCap

And Project 1 has 0 Records

When they visit the Record Status Dashboard for Project ID 1

Then they should see “No Records Exist


Scenario: A standard user logs in and expects to see records exist in Record Status Dashboard


Given a standard user logs into REDCap

And Project 1 has 10 Records

When they visit the Record Status Dashboard for Project ID 1

Then they should see “10 Records


Survey Entry Tests


Scenario: A standard user enters data into the a public survey


Given a standard user logs into REDCap

And they visit the public survey URL for Project ID 9

And they enter "[email protected]" into the "Email" survey field

When they click the "Submit" button

Then they should see “Thank you for taking the survey."

Clone this wiki locally