aboutsummaryrefslogtreecommitdiffstats
path: root/workflow/workflow-bdd/features/Version_Create_Update.feature
diff options
context:
space:
mode:
Diffstat (limited to 'workflow/workflow-bdd/features/Version_Create_Update.feature')
-rw-r--r--workflow/workflow-bdd/features/Version_Create_Update.feature36
1 files changed, 18 insertions, 18 deletions
diff --git a/workflow/workflow-bdd/features/Version_Create_Update.feature b/workflow/workflow-bdd/features/Version_Create_Update.feature
index 2cb05804..656cdaf0 100644
--- a/workflow/workflow-bdd/features/Version_Create_Update.feature
+++ b/workflow/workflow-bdd/features/Version_Create_Update.feature
@@ -3,26 +3,26 @@ Feature: Workflow Versions
Background: Init
Given I want to create a Workflow
- Scenario: Create and get version
+ Scenario: Create first empty version
When I want to create input data
- Then I want to update the input property "description" with value "workflow version description"
- Then I want to create for path "/workflows/{item.id}/versions" with the input data from the context
- Then I want to copy to property "versionId" from response data path "id"
- Then I want to get path "/workflows/{item.id}/versions/{versionId}"
- Then I want to check that property "id" in the response equals to value of saved property "versionId"
-
- When I want to get path "/workflows/{item.id}/versions"
- Then I want to check that element in the response list with "id" equals to value of saved property "versionId" exists
+ And I want to update the input property "description" with value "first empty version"
+ 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 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
Scenario: Update version
- When I want to create input data
- Then I want to update the input property "description" with value "workflow version description"
- Then I want to create for path "/workflows/{item.id}/versions" with the input data from the context
- Then I want to copy to property "versionId" from response data path "id"
+ And I want to create input data
+ And I want to update the input property "description" with value "workflow version description"
+ 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 property "updatedDesc" to value "workflow version description updated"
+ And I want to update the input property "description" with value of property "updatedDesc"
+ And I want to update for path "/workflows/{item.id}/versions/{item.versionId}" with the input data from the context
- Then I want to update the input property "description" with value "workflow version description updated"
- Then I want to set property "desc" to value "workflow version description updated"
- Then I want to update for path "/workflows/{item.id}/versions/{versionId}" with the input data from the context
- Then I want to get path "/workflows/{item.id}/versions/{versionId}"
- Then I want to check that property "description" in the response equals to value of saved property "desc" \ No newline at end of file
+ Then I want to get path "/workflows/{item.id}/versions/{item.versionId}"
+ And I want to check that property "description" in the response equals to value of saved property "updatedDesc" \ No newline at end of file