diff options
author | talig <talig@amdocs.com> | 2018-08-05 10:47:36 +0300 |
---|---|---|
committer | talig <talig@amdocs.com> | 2018-08-05 10:47:36 +0300 |
commit | 02201e449b644790e99bbb230579d96cae4a53da (patch) | |
tree | 3e5973374ff5c6d2527e5ff9d1ae2249b033a581 /workflow-bdd/features/Version.feature | |
parent | d7d290e97e8403e0feffaef20fa7de4fa0e84b91 (diff) |
Refactor and add test flows
Small fix in version state filter
Change-Id: I015cbc52b8620b92ebb4f8f0167711e39d9d30a8
Issue-ID: SDC-1503
Signed-off-by: talig <talig@amdocs.com>
Diffstat (limited to 'workflow-bdd/features/Version.feature')
-rw-r--r-- | workflow-bdd/features/Version.feature | 32 |
1 files changed, 25 insertions, 7 deletions
diff --git a/workflow-bdd/features/Version.feature b/workflow-bdd/features/Version.feature index e43971cb..a5327fd7 100644 --- a/workflow-bdd/features/Version.feature +++ b/workflow-bdd/features/Version.feature @@ -25,15 +25,16 @@ Feature: Workflow Versions Then I want to get path "/workflows/{item.id}/versions/{item.versionId}" And I want to check that property "id" in the response equals to value of saved property "item.versionId" And I want to get path "/workflows/{item.id}/versions" - And I want to check that element in the response list with "id" equals to value of saved property "item.versionId" exists + And I want to check in the list "items" property "id" with value of saved property "item.versionId" exists Scenario: Create first version with inputs/outputs - When I want to set the input data to file "resources/json/createVersionWithInputsOutputs.json" + When I want to set the input data to file "resources/json/versionWith2Inputs2Outputs1.json" And I want to create for path "/workflows/{item.id}/versions" with the input data from the context - And I want to copy to property "item.versionId" from response data path "id" - Then I want to check property "inputs[0].name" for value "in1" - And I want to check property "outputs[0].name" for value "out1" + Then I want to check in the list "inputs" property "name" with value "in1" exists + And I want to check in the list "inputs" property "name" with value "in2" exists + And I want to check in the list "outputs" property "name" with value "out1" exists + And I want to check in the list "outputs" property "name" with value "out2" exists Scenario: Create second version And I want to update the input property "description" with value "first empty version" @@ -50,7 +51,7 @@ Feature: Workflow Versions Then I want to get path "/workflows/{item.id}/versions/{item.versionId}" And I want to check that property "id" in the response equals to value of saved property "item.versionId" And I want to get path "/workflows/{item.id}/versions" - And I want to check that element in the response list with "id" equals to value of saved property "item.versionId" exists + And I want to check in the list "items" property "id" with value of saved property "item.versionId" exists Scenario: Update version And I want to create input data @@ -62,4 +63,21 @@ Feature: Workflow Versions And I want to update for path "/workflows/{item.id}/versions/{item.versionId}" with the input data from the context Then I want to get path "/workflows/{item.id}/versions/{item.versionId}" - And I want to check property "description" for value "workflow version description updated"
\ No newline at end of file + And I want to check property "description" for value "workflow version description updated" + + Scenario: Update version with inputs/outputs (create/update/delete parameters) + And I want to set the input data to file "resources/json/versionWith2Inputs2Outputs1.json" + And I want to create for path "/workflows/{item.id}/versions" with the input data from the context + And I want to copy to property "item.versionId" from response data path "id" + + When I want to set the input data to file "resources/json/versionWith2Inputs2Outputs2.json" + And I want to update for path "/workflows/{item.id}/versions/{item.versionId}" with the input data from the context + + Then I want to get path "/workflows/{item.id}/versions/{item.versionId}" + And I want to check in the list "inputs" property "name" with value "in1" exists + And I want to check in the list "inputs" property "name" with value "in2" does not exist + And I want to check in the list "inputs" property "name" with value "in3" exists + And I want to check in the list "outputs" property "name" with value "out1" exists + And I want to check in the list "outputs" property "name" with value "out2" does not exist + And I want to check in the list "outputs" property "name" with value "out3" exists + |