Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. Feature: Update Employee
  2.  
  3. Background:
  4.  
  5. Given an employee with the following attributes
  6. | id | firstName | lastName | dateOfBirth | startDate | employmentType | email |
  7. | 300 | Rachel | Green | 1990-01-01 | 2018-01-01 | Permanent | rachel.green@fs.com |
  8.  
  9. And with the following phone numbers
  10. | id | type | isdCode | phoneNumber | extension |
  11. | 301 | Mobile | +1 | 2141112222 | |
  12. | 302 | Office | +1 | 8362223000 | 333 |
  13.  
  14. When employee already exists
  15.  
  16.  
  17. Scenario Outline: <testCase> <expectedResult>
  18.  
  19. Given user wants to update an employee with the following attributes
  20. | id | firstName | lastName | dateOfBirth | startDate | employmentType | email |
  21. | <id> | <firstName> | <lastName> | <dateOfBirth> | <startDate> | <employmentType> | <email> |
  22.  
  23. And with the following phone numbers
  24. | id | type | isdCode | phoneNumber | extension |
  25. | 301 | Mobile | +1 | 2141112222 | |
  26. | 302 | Office | +1 | 8362223000 | 333 |
  27.  
  28. When user saves the employee '<testCase>'
  29. Then the save '<expectedResult>'
  30.  
  31. Examples:
  32. | testCase | expectedResult | id | firstName | lastName | dateOfBirth | startDate | employmentType | email |
  33. | WITHOUT ID | FAILS | | Rachel | Green | 1990-01-01 | 2018-01-01 | Permanent | rachel.green@fs.com |
  34. | WITHOUT FIRST NAME | FAILS | 300 | | Green | 1990-01-01 | 2018-01-01 | Permanent | rachel.green@fs.com |
  35. | WITHOUT LAST NAME | FAILS | 300 | Rachel | | 1990-01-01 | 2018-01-01 | Permanent | rachel.green@fs.com |
  36. | WITHOUT DATE OF BIRTH | FAILS | 300 | Rachel | Green | | 2018-01-01 | Permanent | rachel.green@fs.com |
  37. | WITHOUT START DATE | FAILS | 300 | Rachel | Green | 1990-01-01 | | Permanent | rachel.green@fs.com |
  38. | WITHOUT EMPLOYMENT TYPE | FAILS | 300 | Rachel | Green | 1990-01-01 | 2018-01-01 | | rachel.green@fs.com |
  39. | WITHOUT EMAIL | FAILS | 300 | Rachel | Green | 1990-01-01 | 2018-01-01 | Permanent | |
  40. | WITH ALL REQUIRED FIELDS | IS SUCCESSFUL | 300 | Rachel | Green | 1990-01-01 | 2018-01-01 | Permanent | rachel.green@fs.com |
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement