Software Quality Assurance & Testing Asked by Ankita on February 9, 2021
Is there a way to read data from excel set global variable in SOAP UI and send those global variable in request payload and how to call multiple rest services?
Absolutely. You can use a Groovy test script. Use Apache-POI to read the spreadsheet, and store values in SoapUI properties, e.g.:
testRunner.testCase.setPropertyValue("MyProperty", "MyValue")
Then, in the XML request, parameterise it with:
<SomeNode>${#TestCase#MyPropName}</SomeNode>
You can have your Groovy test script loop over the spreadsheet and call e.g. a test case for each record:
def soapTestStep = testRunner.testCase.getTestStepByName("SOAP Request1").name
testRunner.runTestStepByName(soapTestStep)
The second part of your question I don't have an answer for.
Answered by ou_ryperd on February 9, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP