aboutsummaryrefslogtreecommitdiffstats
path: root/workflow-bdd/features
diff options
context:
space:
mode:
authorayalaben <ayala.benzvi@amdocs.com>2018-06-24 10:42:43 +0300
committerayalaben <ayala.benzvi@amdocs.com>2018-06-24 10:42:43 +0300
commit3fb47c47b301bf8f401cabf63b13f17a39182d85 (patch)
treecef77fe574ee1c24ad4da42149fea42cedd8e450 /workflow-bdd/features
parent61c926695f5bd5977dc10a77010b0500a16bb6a1 (diff)
BDD cucumber
Change-Id: I34f9950dab1c15f8c19da5f696783d793ee3511f Issue-ID: SDC-1442 Signed-off-by: ayalaben <ayala.benzvi@amdocs.com>
Diffstat (limited to 'workflow-bdd/features')
-rw-r--r--workflow-bdd/features/Workflow_Create_Update.feature27
1 files changed, 27 insertions, 0 deletions
diff --git a/workflow-bdd/features/Workflow_Create_Update.feature b/workflow-bdd/features/Workflow_Create_Update.feature
new file mode 100644
index 00000000..04a64bf8
--- /dev/null
+++ b/workflow-bdd/features/Workflow_Create_Update.feature
@@ -0,0 +1,27 @@
+Feature: Workflow Example File
+
+ Scenario: Create and get workflow
+ When I want to create input data
+ Then I want to update the input property "name" with a random value
+ Then I want to update the input property "description" with value "workflow desc"
+ Then I want to update the input property "category" with value "workflow category"
+
+ Then I want to create for path "/workflows" with the input data from the context
+ Then I want to copy to property "workflowId" from response data path "id"
+ When I want to get path "/workflows"
+ Then I want to check that element in the response list with "id" equals to value of saved property "workflowId" exists
+
+
+ Scenario: Update workflow
+ When I want to create input data
+ Then I want to update the input property "name" with a random value
+ Then I want to update the input property "description" with value "workflow desc"
+ Then I want to update the input property "category" with value "workflow category"
+ Then I want to create for path "/workflows" with the input data from the context
+ Then I want to copy to property "workflowId" from response data path "id"
+
+ Then I want to update the input property "description" with value "workflow desc updated"
+ Then I want to set property "desc" to value "workflow desc updated"
+ Then I want to update for path "/workflows/{workflowId}" with the input data from the context
+ Then I want to get path "/workflows/{workflowId}"
+ Then I want to check that property "description" in the response equals to value of saved property "desc"