Test cases in Gherkin - SmkZs/interview GitHub Wiki
Environment: UI Testing Site
ID: REQ-UI- 05, REQ-UI- 06, REQ-UI- 11, REQ-UI- 12
Priority: High
Feauture: Form page, it will allow users redirect to the Hello page
Scenario: When a user types a value and submits the form, it redirects them to the Hello page with the correct value
Given website is open
When clicks on the form button
Then form button should turn to active status
And should get navigated to the Form page
And form should be visible with one input field and one submit button
Given Form page is opened
When types <value>
and submits the form
Then should get redirect to the Hello page
And <result>
text should appear
<value>
| <result>
John
| Hello John!
Sophia
| Hello Sophia!
Charlie
| Hello Charlie!
Emily
| Hello Emily!
ID: REQ-UI- 03, REQ-UI- 04, REQ-UI- 08
Priority: High, Low
Feature: Home page, There is a short introduction about the UI Testing Site website
Scenario: Main page, user can open by Home and UI Testing buttons
Given Form page is opened
When clicks on the Home button
Then should get navigated to the Home page
And Home button should turn to active status
Given Home page is opened
When clicks on the UI Testing button
Then should stay on the Home page
ID: REQ-UI- 07
Priority: High
Feature: Error page
Scenario: There is 404 HTTP response code
Given Home page is opened
When clicks on the Error button
Then should get a 404 HTTP response code
ID: REQ-UI- 01, REQ-UI- 02, REQ-UI- 09, REQ-UI- 10
Priority: Moderate, Low
Feature: Formal requirements in all pages
Scenario: The title is UI Testing Site and Company Logo is visible on every site
Given website is opened
When check for <tag>
in all the pages
Then <tag>
with the correct <attribute>
appears
Examples
<tag>
| attributes
<title>
| UI Testing Site
<img>
| Docler Holding
Feature: Formal requirements in Home page
Scenario: Some text should be visible on the Home page
Given home page is opened
When check for<tag>
Then <tag>
with the correct<attribute>
appears
Examples
<tag>
| attirbute
<h1>
| Welcome to the Docler Holding QA Department
<p>
| This site is dedicated to perform some exercises and demonstrate automated web testing.