blob: accae6ad118c7452a7b9ef1aca8b6efe781320d8 [file] [log] [blame]
sheetalm65029c32018-03-20 12:25:00 +05301#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#
38# #Pass Invalid Id to Get and verify error code
39# Then I want to set property "item.id" to value "invalidId"
40# Then I want the following to fail with error code "ACTIVITYSPEC_NOT_FOUND"
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#
52# #Again Create ActivitySpec with name "test" and verify error code
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 code "UNIQUE_VALUE_VIOLATION"
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!@"
62# Then I want the following to fail with error code "FIELD_VALIDATION_ERROR_ERR_ID"
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 ""
69# Then I want the following to fail with error code "FIELD_VALIDATION_ERROR_ERR_ID"
70# When I want to create an ActivitySpec