Advertisement
Guest User

Untitled

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