Forum Discussion

Asander79's avatar
12 years ago

Dynamic list of test steps in test case

I have a list of soap RequestTypes in file, e.g.:

RetrieveFList
RetrieveSuperUserList
RetrievePower
UpdateNotes
RetrieveColors
RetrieveSuperUserList
RetrievePower
UpdateNotes
...

This list is generated dynamically according to some requirement, so each test can looks differently.

My problem is that this list can be very long, e.g. 1000 requests in particular order, so I cannot just hardcode these requests manualy in the SoapUI GUI and run it, so I ask how can I read the requests from text file or excel and then create Soap requests dynamically from SoapUI? Can the list of test steps be dynamically created?

Each soap request looks similar to this:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:com="com.xxx.yyy.zzz">
<soapenv:Header/>
<soapenv:Body>
<com:GetData>
<com:iRequest><![CDATA[<?xml version="1.0" standalone="yes"?>
<RequestsSet>
<Requests>
<RequestType>RetrieveFList</RequestType>
<Parameters>
<Name>LIST1</Name>
</Parameters>

</Requests>
</RequestsSet>
]]></com:iRequest>
</com:GetData>
</soapenv:Body>
</soapenv:Envelope>


My script has to proceed this list of requests and choose proper xml soap request and send it to server. How can I achieve it?

2 Replies

  • nmrao's avatar
    nmrao
    Community Hero
    1. You may have to create a template project which may have different test steps available.
    2. Use programatic way whatever you are comfortable(java or groovy are good to use) and pass your runtime list, template project as input to the program and based on your list you need create a soap project which contains all the steps based on your list.