Skip to content

Instantly share code, notes, and snippets.

@bcarun
Created April 15, 2019 03:27
Show Gist options
  • Select an option

  • Save bcarun/8458d1a3feb61f87d49314b118cceb85 to your computer and use it in GitHub Desktop.

Select an option

Save bcarun/8458d1a3feb61f87d49314b118cceb85 to your computer and use it in GitHub Desktop.
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