How to parameterize static values in Select
-
Find the static value in the Select request body. You shall
get it in the “parameters” node. -
Select a value in the list of parameters, right click and
select “Replace with Parameter” -> “Create new
parameter”. -
Enter the parameter name.
-
Repeat step 2 to 3 until all values are parameterized
In the example script below, the Select request has been
parameterized with the parameters <customerID> and
<NotName>:12345678910111213141516web_custom_request("SelectWithParm","URL=<span><strong>http://192.168.178.125:5001/api/ServerApi/SelectWithParm</strong></span>","Method=<span><strong>POST</strong></span>","Resource=<span><strong>0</strong></span>","RecContentType=<span><strong>application/json</strong></span>","Referer=","Snapshot=<span><strong>t358.inf</strong></span>","Mode=<span><strong>HTTP</strong></span>","EncType=<span><strong>application/json</strong></span>;charset=<span><strong>UTF-8</strong></span>","Body=<span><strong>{</strong></span>"version":"1.0","requestid":"7C362898-230B-4858-AB15-2241DC3FD982","appname":"psapi4loadrunner","namespace":"Psapi4loadrunner","session":"""<gs_SessionID>","type":11,"transaction":{"transactionid":"""<gs_TransactionID>","transactionname":"sqlca"},"content":{"esqlselect":{"modulename":"","sqlid":"sqlHandle_01_2763E2FE","parameters""":[{"category":1,"name":"name","type":"int","value":<customerID>},{"category":1,"name":"name","type":"string","value":"<NotName>"}]}}}",<span><strong>LAST</strong></span>);
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest