Example 1 - Substitution of the document number for test type PI inbound

Definition of the object for Inbound test type (PI inbound). The original Purchase order number will be substituted during test case execution.

In this example, we can see variable processing of variable called PO (Purchase Order number). We have two actions in the variable processing: 

  1. The variable is being populated before execution (1)

  • the variable processor used is: READ_MSG (1.a)

  • the Processing Parameter value is an Xpath expression: /glob:PurchaseOrderRequest/PurchaseOrder/ID/text()

This fact means that the variable "PO" will be loaded with data from the payload stored in the test case. The above XPath expression will read the specific field. 

  1. A new value would be generated for current test case execution (2): 

  • the variable processor used is: RANDOM (2.d)

  • the Processing Parameter value is set as -1000000

This fact means that a new value is being generated for the newly created message. In this case, it would be generated randomly from -1 to -1000000 interval. 

© 2017 - 2022 Int4 AG All rights reserved