Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bcarun/6426215a827ad9b9c5664843eb53c3ce to your computer and use it in GitHub Desktop.
Save bcarun/6426215a827ad9b9c5664843eb53c3ce to your computer and use it in GitHub Desktop.
Feature: Create Employee
Scenario: WITH ALL REQUIRED FIELDS IS SUCCESSFUL
--------------------------------------------------------------------------------
IMPORTANT NOTE - Field name in Employee.java is used as DataTable column header.
--------------------------------------------------------------------------------
Given user wants to create an employee with the following attributes
| id | firstName | lastName | dateOfBirth | startDate | employmentType | email |
| 100 | Rachel | Green | 1990-01-01 | 2018-01-01 | Permanent | [email protected] |
And with the following phone numbers
| id | type | isdCode | phoneNumber | extension |
| 102 | Mobile | +1 | 2141112222 | |
| 103 | Office | +1 | 8362223000 | 333 |
When user saves the new employee 'WITH ALL REQUIRED FIELDS'
Then the save 'IS SUCCESSFUL'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment