Browse Source

Rewrite using returnValues as implicit arguments

pull/2059/head
Philipp Theyssen 1 year ago
parent
commit
af295f945a
4 changed files with 68 additions and 66 deletions
  1. +53
    -3
      scenario-definition/operations/op_catalog_get_items.json
  2. +0
    -0
      scenario-definition/operations/op_catalog_replenish_stock.json
  3. +1
    -49
      scenario-definition/transactions/add_items_to_basket.json
  4. +14
    -14
      scenario-definition/transactions/update_catalog_item_price.json

+ 53
- 3
scenario-definition/operations/op_catalog_get_items.json View File

@ -17,7 +17,42 @@
{
"key": "item-1-id",
"value": "response.payload.data[0].id",
"type": "unsignedInt"
},
{
"key": "item-1-description",
"value": "response.payload.data[0].description",
"type": "string"
},
{
"key": "item-1-picture-file-name",
"value": "response.payload.data[0].pictureFileName",
"type": "string"
},
{
"key": "item-1-picture-uri",
"value": "response.payload.data[0].pictureUri",
"type": "string"
},
{
"key": "item-1-catalog-type-id",
"value": "response.payload.data[0].catalogTypeId",
"type": "unsignedInt"
},
{
"key": "item-1-catalog-type",
"value": "response.payload.data[0].catalogType",
"type": "object"
},
{
"key": "item-1-catalog-brand-id",
"value": "response.payload.data[0].catalogBrandId",
"type": "unsignedInt"
},
{
"key": "item-1-catalog-brand",
"value": "response.payload.data[0].catalogBrand",
"type": "object"
},
{
"key": "item-1-name",
@ -31,9 +66,24 @@
},
{
"key": "item-1-avialable-stock",
"value": "response.payload.data[0].availablestock",
"value": "response.payload.data[0].availableStock",
"type": "unsignedInt"
},
{
"key": "item-1-restock-threshold",
"value": "response.payload.data[0].restockThreshold",
"type": "unsignedInt"
},
{
"key": "item-1-max-stock-threshold",
"value": "response.payload.data[0].maxStockThreshold",
"type": "unsignedInt"
},
{
"key": "item-1-on-reorder",
"value": "response.payload.data[0].onReorder",
"type": "bool"
},
{
"key": "item-2",
"value": "response.payload.data[1]",
@ -42,7 +92,7 @@
{
"key": "item-2-id",
"value": "response.payload.data[1].id",
"type": "string"
"type": "unsignedInt"
},
{
"key": "item-2-name",
@ -67,7 +117,7 @@
{
"key": "item-3-id",
"value": "response.payload.data[2].id",
"type": "string"
"type": "unsignedInt"
},
{
"key": "item-3-name",


+ 0
- 0
scenario-definition/operations/op_catalog_replenish_stock.json View File


+ 1
- 49
scenario-definition/transactions/add_items_to_basket.json View File

@ -5,55 +5,7 @@
{
"name": "user-id",
"type": "guid"
},
{
"name": "item-1-id",
"type": "string"
},
{
"name": "item-1-name",
"type": "string"
},
{
"name": "item-1-price",
"type": "unsignedInt"
},
{
"name": "item-1-available-stock",
"type": "unsignedInt"
},
{
"name": "item-2-id",
"type": "string"
},
{
"name": "item-2-name",
"type": "string"
},
{
"name": "item-2-price",
"type": "unsignedInt"
},
{
"name": "item-2-available-stock",
"type": "unsignedInt"
},
{
"name": "item-3-id",
"type": "string"
},
{
"name": "item-3-name",
"type": "string"
},
{
"name": "item-3-price",
"type": "unsignedInt"
},
{
"name": "item-3-available-stock",
"type": "unsignedInt"
},
}
],
"operations": [
{


+ 14
- 14
scenario-definition/transactions/update_catalog_item_price.json View File

@ -20,20 +20,20 @@
"key": "item-1",
"value":
{
"id": "@@op-1.response.data[0].id@@"
"name": "@@op-1.response.data[0].name@@"
"description": "@@op-1.response.data[0].description@@"
"price": "{{new-price}}"
"pictureFileName": "@@op-1.response.data[0].pictureFileName@@"
"pictureUri": "@@op-1.response.data[0].pictureUri@@"
"catalogTypeId": "@@op-1.response.data[0].catalogTypeId@@"
"catalogType": "@@op-1.response.data[0].catalogType@@"
"catalogBrandId": "@@op-1.response.data[0].catalogBrandId@@"
"catalogBrand": "@@op-1.response.data[0].catalogBrand@@"
"availableStock": "@@op-1.response.data[0].availableStock@@"
"restockThreshold": "@@op-1.response.data[0].restockThreshold@@"
"maxStockThreshold": "@@op-1.response.data[0].maxStockThreshold@@"
"onReorder": "@@op-1.response.data[0].onReorder@@"
"id": "{{item-1-id}}",
"name": "{{item-1-name}}",
"description": "{{item-1-description}}",
"price": "{{new-price}}",
"pictureFileName": "{{item-1-picture-file-name}}",
"pictureUri": "{{item-1-picture-uri}}",
"catalogTypeId": "{{item-1-catalog-type-id}}",
"catalogType": "{{item-1-catalog-type}}",
"catalogBrandId": "{{item-1-catalog-brand-id}}",
"catalogBrand": "{{item-1-catalog-brand}}}",
"availableStock": "{{item-1-avialable-stock}}",
"restockThreshold": "{{item-1-restock-threshold}}",
"maxStockThreshold": "{{item-1-max-stock-threshold}}",
"onReorder": "{{item-1-on-reorder}}"
}
]
}


Loading…
Cancel
Save