Forum Discussion

PhilMT's avatar
PhilMT
Occasional Contributor
5 years ago
Solved

Best way to repeatedly invoke a WebService which takes JSON as the input?

Hi,   I am trying to use SoapUI to repeatedly invoke a Web Service (which is a Test Step), but supply a different application/json as the media type each time. I do not know the best way to perfo...
  • BernardV's avatar
    5 years ago

    I think you might be able to get away without using groovy, I would suggest the following approach (this answer is only applicable for SoapUI Pro:

     

    1. Add step, Datasource: using a Directory (containing .json files) OR JSON info: https://support.smartbear.com/readyapi/docs/testing/data-driven/types/json.html)

    2. Add step, REST Request

    3. Add step, Datasource loop 

    4. Add step, Assertions etc.