sheetalm | 65029c3 | 2018-03-20 12:25:00 +0530 | [diff] [blame] | 1 | #Feature: ActivitySpec Flow - Test Create Activity Spec |
| 2 | # |
| 3 | #Given Default prefix "activity_spec" |
| 4 | # |
| 5 | # # SDC-6350 |
| 6 | # Scenario: Test Create Activity Spec functionality |
| 7 | # #Create ActivitySpec |
| 8 | # When I want to set the input data to file "resources/json/createActivitySpec.json" |
| 9 | # Then I want to update the input property "name" with a random value |
| 10 | # When I want to create an ActivitySpec |
| 11 | # #Check id and versionId returned in response |
| 12 | # Then I want to check property "id" exists |
| 13 | # And I want to check property "versionId" exists |
| 14 | # |
| 15 | # #List ActivitySpec |
| 16 | # And I want to list ActivitySpecs with status "Draft" |
| 17 | # And I want to check property "listCount" exists |
| 18 | # |
| 19 | # #Get ActivitySpec and verify its status |
| 20 | # And I want to get the ActivitySpec for the current item |
| 21 | # And I want to check property "status" for value "Draft" |
| 22 | # |
| 23 | # #Certify and Get ActivitySpec and verify its status |
| 24 | # And I want to call action "CERTIFY" on this ActivitySpec item |
| 25 | # And I want to get the ActivitySpec for the current item |
| 26 | # And I want to check property "status" for value "Certified" |
| 27 | # |
| 28 | # #Deprecate and Get ActivitySpec and verify its status |
| 29 | # And I want to call action "DEPRECATE" on this ActivitySpec item |
| 30 | # And I want to get the ActivitySpec for the current item |
| 31 | # And I want to check property "status" for value "Deprecated" |
| 32 | # |
| 33 | # #Delete and Get ActivitySpec and verify its status |
| 34 | # And I want to call action "DELETE" on this ActivitySpec item |
| 35 | # And I want to get the ActivitySpec for the current item |
| 36 | # And I want to check property "status" for value "Deleted" |
| 37 | # |
sheetalm | 40bd5b8 | 2018-04-02 18:12:54 +0530 | [diff] [blame] | 38 | # #Pass Invalid Id to Get and verify error message |
sheetalm | 65029c3 | 2018-03-20 12:25:00 +0530 | [diff] [blame] | 39 | # Then I want to set property "item.id" to value "invalidId" |
sheetalm | 40bd5b8 | 2018-04-02 18:12:54 +0530 | [diff] [blame] | 40 | # Then I want the following to fail with error message "No Activity Spec found for the given identifiers" |
sheetalm | 65029c3 | 2018-03-20 12:25:00 +0530 | [diff] [blame] | 41 | # And I want to get the ActivitySpec for the current item |
| 42 | # |
| 43 | # # SDC-6353 |
| 44 | # Scenario: Test Create Activity Spec With Duplicate Name |
| 45 | # #Create ActivitySpec with name "test" |
| 46 | # When I want to set the input data to file "resources/json/createActivitySpec.json" |
| 47 | # Then I want to update the input property "name" with value "test" |
| 48 | # When I want to create an ActivitySpec |
| 49 | # Then I want to check property "id" exists |
| 50 | # And I want to check property "versionId" exists |
| 51 | # |
sheetalm | 40bd5b8 | 2018-04-02 18:12:54 +0530 | [diff] [blame] | 52 | # #Again Create ActivitySpec with name "test" and verify error message |
sheetalm | 65029c3 | 2018-03-20 12:25:00 +0530 | [diff] [blame] | 53 | # When I want to set the input data to file "resources/json/createActivitySpec.json" |
| 54 | # Then I want to update the input property "name" with value "test" |
sheetalm | 40bd5b8 | 2018-04-02 18:12:54 +0530 | [diff] [blame] | 55 | # Then I want the following to fail with error message "name already in use" |
sheetalm | 65029c3 | 2018-03-20 12:25:00 +0530 | [diff] [blame] | 56 | # When I want to create an ActivitySpec |
| 57 | # |
| 58 | # # SDC-6354 |
| 59 | # Scenario: Test Create Activity Spec With Invalid Name Format |
| 60 | # When I want to set the input data to file "resources/json/createActivitySpec.json" |
| 61 | # Then I want to update the input property "name" with value "test!@" |
sheetalm | 40bd5b8 | 2018-04-02 18:12:54 +0530 | [diff] [blame] | 62 | # Then I want the following to fail with error message "name should match with \"^[a-zA-Z0-9-]*$\" pattern" |
sheetalm | 65029c3 | 2018-03-20 12:25:00 +0530 | [diff] [blame] | 63 | # When I want to create an ActivitySpec |
| 64 | # |
| 65 | # # SDC-6355 |
| 66 | # Scenario: Test Create Activity Spec With Null/Blank Name |
| 67 | # When I want to set the input data to file "resources/json/createActivitySpec.json" |
| 68 | # Then I want to update the input property "name" with value "" |
sheetalm | 40bd5b8 | 2018-04-02 18:12:54 +0530 | [diff] [blame] | 69 | # Then I want the following to fail with error message "Mandatory name field is missing/null" |
sheetalm | 65029c3 | 2018-03-20 12:25:00 +0530 | [diff] [blame] | 70 | # When I want to create an ActivitySpec |