Created
April 15, 2019 03:27
-
-
Save bcarun/8458d1a3feb61f87d49314b118cceb85 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Feature: Get Employee | |
| Background: | |
| ---------------------------------------------------- | |
| Here an employee is setup to test get employee by id | |
| ---------------------------------------------------- | |
| Given an employee with the following attributes | |
| | id | firstName | lastName | dateOfBirth | startDate | employmentType | email | | |
| | 200 | Rachel | Green | 1990-01-01 | 2018-01-01 | Permanent | [email protected] | | |
| And with the following phone numbers | |
| | id | type | isdCode | phoneNumber | extension | | |
| | 201 | Mobile | +1 | 2141112222 | | | |
| | 202 | Office | +1 | 8362223000 | 333 | | |
| When employee already exists | |
| Scenario: GET BY ID | |
| When user wants to get employee by id 200 | |
| Then the get 'IS SUCCESSFUL' | |
| And following employee is returned | |
| | id | firstName | lastName | dateOfBirth | startDate | employmentType | email | | |
| | 200 | Rachel | Green | 1990-01-01 | 2018-01-01 | Permanent | [email protected] | | |
| And following employee phone numbers are returned | |
| | id | type | isdCode | phoneNumber | extension | | |
| | 201 | Mobile | +1 | 2141112222 | | | |
| | 202 | Office | +1 | 8362223000 | 333 | | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment