We are using OpenSTA for an Insurance application. We are trying to record two processes together - Payment Entry and Payment Tagging. In the payment entry process, we enter all the payment details and at the end of this process the system generates a unique payment ID. Then we continue with the payment tagging process.
The Payment ID value, which is generated at the end of the payment entry process, is getting hard coded in the OpenSTA script. Now, replaying the script for these two processes with the same set of data doesn't work properly, as the old payment ID is already hard coded in the script. Ideally, this payment ID value should be obtained from the system as and when it dynamically generates at the end of the payment entry process. For this we tried to replace the payment ID value with a variable, but not sure on how to make this variable obtain the data from the system as when the script is running (dynamically).
Can you please help us out on how the script should be modified such that the value for this payment ID variable is fetched dynamically from the system.
Used load response_info command immediately after post "payment details ". In the particular log file, extract the dynamically created "Payment ID". Then Parmeterized that Paymentid in the subsequent places where the paymentid is used in your Script.
Use Locate and Extract SCL command to extract PAYMENTID.
To parameterize the Paymentid use the following format "+variablename+"
where variablename is the variable on which you store the extracted paymentid.