From 3fb47c47b301bf8f401cabf63b13f17a39182d85 Mon Sep 17 00:00:00 2001 From: ayalaben Date: Sun, 24 Jun 2018 10:42:43 +0300 Subject: BDD cucumber Change-Id: I34f9950dab1c15f8c19da5f696783d793ee3511f Issue-ID: SDC-1442 Signed-off-by: ayalaben --- .../features/Workflow_Create_Update.feature | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 workflow-bdd/features/Workflow_Create_Update.feature (limited to 'workflow-bdd/features') 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" -- cgit 1.2.3-korg