blob: 452570e421f0438d3f0bd43f22f909114a616c6b [file] [log] [blame]
sheetalm65029c32018-03-20 12:25:00 +05301#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#
sheetalm40bd5b82018-04-02 18:12:54 +053017# #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"
sheetalm65029c32018-03-20 12:25:00 +053019# When I want to call action "DEPRECATE" on this ActivitySpec item
20#
21# #Delete "Draft" activity spec and verify error code
sheetalm40bd5b82018-04-02 18:12:54 +053022# Then I want the following to fail with error message "Activity Spec is in an invalid state"
sheetalm65029c32018-03-20 12:25:00 +053023# 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
sheetalm40bd5b82018-04-02 18:12:54 +053028# 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