Forum Discussion

Andrew_H's avatar
Andrew_H
Occasional Contributor
17 years ago

Evaluating soapUI for company use: Value pair URL calls?

Hi

I am evaluating the soapUI tool to see if we can use this for integration testing at work.  We have a service called via http w/ a value pair URL.  We need to be able to do load testing with different URL values fed off a spreadsheet data source and capture the http reply from the service which indicates success or failure.  For example:

The URL

https://www.someserver.com&value1=123&value2=234


-Repeat calling this URL for each row in the spreadsheet
-The value 1 and value 2 must feed from a spreadsheet(a column for value 1 and a column for value 2). 
-If value 1 is populated, value 2 is populated
-Values need to be sent together sequentially in descending order on the spreadsheet
-The number of rows will vary per test so there must be some way to either detect the # of rows in the file or know to stop making the calls once there is no more data in the spreadsheet (could be several hundred rows)
-The http reply from the service should be captured for confirmation of each test and logged for review some how on the soapUI tool for review (dont really need a file or report just something that can be visually confirmed)
-The frequency and number of simultaneous requests would be nice to have

I tried some of the demos for the data source and looping but there is no wsdl for this and was unsure how to handle the value pair URL through groovy scripting.  Any advice pointers, or scripts would be appreciated.

Thanks

Andrew

5 Replies

  • You will need to create an httpRequest step, using a URL to your service, which will generate the parameters from that, you do not need a WSDL.

    I hope that works for you, let me know if you have any further questions
    /Nenad
    http://eviware.com
  • Andrew_H's avatar
    Andrew_H
    Occasional Contributor
    Thanks for the info.  I set up a HTTP Test Request which generated the parameters.  I then added my data source to the Test Steps and then a datasource loop, defining the data source and http test request steop. 

    How do I specify which parameter in the URL is being fed from the data source.  I am thinking this is done from the parameter details for the http request step for the parameter I want fed from the data source?

    Thanks!
  • Andrew_H's avatar
    Andrew_H
    Occasional Contributor
    By the way, my data source is a Excel spreadsheet with a single column (A)
  • Hi!

    your setup should thus be

    datasource (excel) with one property
    httprequest with one parameter
    datasourceloop

    the value of the parameter in the httprequest should contain a property-expansion

    ${#}

    for example

    ${DataSource#A}

    does that help?

    regards,

    /Ole
    eviware.com