ilanap | 637206b | 2018-02-04 17:06:22 +0200 | [diff] [blame] | 1 | Feature: VLM Example File |
| 2 | Scenario: VLM Defaults |
| 3 | |
| 4 | When I want to create a VLM |
| 5 | Then I want to make sure this Item has status "Draft" |
| 6 | When I want to submit this VLM |
| 7 | Then I want to make sure this Item has status "Certified" |
| 8 | Then I want to create a new version for this Item |
| 9 | |
| 10 | Scenario: Testing revisions with VLM |
| 11 | When I want to create a VLM |
| 12 | |
| 13 | When I want to get path "/items/{item.id}/versions/{item.versionId}/revisions" |
| 14 | Then I want to check property "listCount" for value 1 |
| 15 | |
| 16 | # example creating input data |
| 17 | Then I want to create input data |
| 18 | Then I want to update the input property "name" with a random value |
| 19 | Then I want to update the input property "type" with value "Universal" |
| 20 | Then I want to create for path "/vendor-license-models/{item.id}/versions/{item.versionId}/license-key-groups" with the input data from the context |
| 21 | Then I want to copy to property "lastProcessId" from response data path "value" |
| 22 | Then I want to commit this Item |
| 23 | |
| 24 | Then I want to get path "/items/{item.id}/versions/{item.versionId}/revisions" |
| 25 | Then I want to check property "listCount" for value 2 |
| 26 | Then I want to copy to property "setRevision" from response data path "results[1].id" |
| 27 | |
| 28 | When I want to revert this Item to the revision with the value from saved property "setRevision" |
| 29 | Then I want to get path "/items/{item.id}/versions/{item.versionId}/revisions" |
| 30 | Then I want to check property "listCount" for value 2 |
| 31 | |
| 32 | When I want to get path "/vendor-license-models/{item.id}/versions/{item.versionId}/license-key-groups" |
| 33 | Then I want to check property "listCount" for value 0 |
| 34 | |
| 35 | Then I want to create input data |
| 36 | Then I want to update the input property "name" with a random value |
| 37 | Then I want to update the input property "type" with value "Universal" |
| 38 | Then I want to create for path "/vendor-license-models/{item.id}/versions/{item.versionId}/license-key-groups" with the input data from the context |
| 39 | Then I want to copy to property "newLKG" from response data path "value" |
| 40 | Then I want to delete for path "/vendor-license-models/{item.id}/versions/{item.versionId}/license-key-groups" with the value from saved property "newLKG" |
| 41 | |
| 42 | When I want to set property "NotExisting" to value "NotExisting" |
| 43 | Then I want the following to fail with error code "GENERAL_ERROR_REST_ID" |
| 44 | Then I want to revert this Item to the revision with the value from saved property "NotExisting" |
| 45 | Then I want to revert this Item to the revision with the value from saved property "setRevision" |
| 46 | |