sheetalm | 65029c3 | 2018-03-20 12:25:00 +0530 | [diff] [blame] | 1 | #Feature: ActivitySpec Flow |
| 2 | # |
| 3 | #Given Default prefix "activity_spec" |
| 4 | # |
| 5 | # Scenario: Test Invalid Status Transition for Activity Spec |
| 6 | # #Create Activity Spec |
| 7 | # When I want to set the input data to file "resources/json/createActivitySpec.json" |
| 8 | # Then I want to update the input property "name" with a random value |
| 9 | # When I want to create an ActivitySpec |
| 10 | # Then I want to check property "id" exists |
| 11 | # And I want to check property "versionId" exists |
| 12 | # |
| 13 | # #Get Activity Spec and verify status |
| 14 | # When I want to get the ActivitySpec for the current item |
| 15 | # Then I want to check property "status" for value "Draft" |
| 16 | # |
sheetalm | 40bd5b8 | 2018-04-02 18:12:54 +0530 | [diff] [blame] | 17 | # #Deprecate "Draft" activity status and verify error message |
| 18 | # Then I want the following to fail with error message "Activity Spec is in an invalid state" |
sheetalm | 65029c3 | 2018-03-20 12:25:00 +0530 | [diff] [blame] | 19 | # When I want to call action "DEPRECATE" on this ActivitySpec item |
| 20 | # |
| 21 | # #Delete "Draft" activity spec and verify error code |
sheetalm | 40bd5b8 | 2018-04-02 18:12:54 +0530 | [diff] [blame] | 22 | # Then I want the following to fail with error message "Activity Spec is in an invalid state" |
sheetalm | 65029c3 | 2018-03-20 12:25:00 +0530 | [diff] [blame] | 23 | # When I want to call action "DELETE" on this ActivitySpec item |
| 24 | # |
| 25 | # #Certify activity spec |
| 26 | # When I want to call action "CERTIFY" on this ActivitySpec item |
| 27 | # #Certify "certified" activity spec and verify error code |
sheetalm | 40bd5b8 | 2018-04-02 18:12:54 +0530 | [diff] [blame] | 28 | # Then I want the following to fail with error message "Activity Spec is in an invalid state" |
| 29 | # When I want to call action "CERTIFY" on this ActivitySpec item |