jeudi 12 novembre 2015

Create a data-driven test for a REST API using SOAP UI 5.0 (Not Pro version)

Using SOAP UI 5.0 (free version) I am testing a REST API say for example http://ift.tt/1BFEAhs name}. This API has a Parameter city-name. In SOAP UI free version This can be passed as a parameter with a value in table view with Parameter-Value pairs along with other info (Style & Level). Is there a way where we can pass 100 city names from a csv file, parameterize the city-name in and loop through all 100 cities? In SOAP-over-http webservices - we can easily parameterize a request XML using groovy script using below approach.

  • Create a SetUp script - which reads a value from a csv file containing values to be parameterized in request xml

  • Save the value read from input-file as property

  • Parameterize using the property in request XML for Request-Test-Step

  • Add a Groovy Script Step after Request-Test-Step to Read Next Line in the

Aucun commentaire:

Enregistrer un commentaire