How to fetch value from database base and pass in another call
I am using DB tool to write query and fetching All Id messages (will have in xml)and then i am using rest client and want to pass those messages details in payload but how to do that?
I want to use individual req for each id and want to pass directly to payload
Answers
-
Add a Writable data source to your test suite then chain an XML Data Bank to your DB Tool's "Results as XML" output. Configure the Data Bank with an extraction for "id" with "Writable data source column" selected. Lastly, create a child test suite with a REST Client that has its request payload configured to use "id" from the Writable data source. The REST Client in this child suite will iterate over the rows of the Writable data source, generating an individual request for each "id".
0