blob: c4e77a7c1bdd8b8a0fc48258f38335ae27e84d2c [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#
sheetalm40bd5b82018-04-02 18:12:54 +053038# #Pass Invalid Id to Get and verify error message
sheetalm65029c32018-03-20 12:25:00 +053039# Then I want to set property "item.id" to value "invalidId"
sheetalm40bd5b82018-04-02 18:12:54 +053040# Then I want the following to fail with error message "No Activity Spec found for the given identifiers"
sheetalm65029c32018-03-20 12:25:00 +053041# 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#
sheetalm40bd5b82018-04-02 18:12:54 +053052# #Again Create ActivitySpec with name "test" and verify error message
sheetalm65029c32018-03-20 12:25:00 +053053# 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"
sheetalm40bd5b82018-04-02 18:12:54 +053055# Then I want the following to fail with error message "name already in use"
sheetalm65029c32018-03-20 12:25:00 +053056# 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!@"
sheetalm40bd5b82018-04-02 18:12:54 +053062# Then I want the following to fail with error message "name should match with \"^[a-zA-Z0-9-]*$\" pattern"
sheetalm65029c32018-03-20 12:25:00 +053063# 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 ""
sheetalm40bd5b82018-04-02 18:12:54 +053069# Then I want the following to fail with error message "Mandatory name field is missing/null"
sheetalm65029c32018-03-20 12:25:00 +053070# When I want to create an ActivitySpec