1 #Feature: ActivitySpec Flow - Test Create Activity Spec
3 #Given Default prefix "activity_spec"
6 # Scenario: Test Create Activity Spec functionality
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
16 # And I want to list ActivitySpecs with status "Draft"
17 # And I want to check property "listCount" exists
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"
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"
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"
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"
38 # #Pass Invalid Id to Get and verify error message
39 # Then I want to set property "item.id" to value "invalidId"
40 # Then I want the following to fail with error message "No Activity Spec found for the given identifiers"
41 # And I want to get the ActivitySpec for the current item
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
52 # #Again Create ActivitySpec with name "test" and verify error message
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"
55 # Then I want the following to fail with error message "name already in use"
56 # When I want to create an ActivitySpec
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!@"
62 # Then I want the following to fail with error message "name should match with \"^[a-zA-Z0-9-]*$\" pattern"
63 # When I want to create an ActivitySpec
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 ""
69 # Then I want the following to fail with error message "Mandatory name field is missing/null"
70 # When I want to create an ActivitySpec