Forum Discussion

Devakara's avatar
Devakara
Occasional Contributor
17 years ago

load test with SOAP request having variable parameter

Hi All,

I have a problem in load tesing a small webservice, called GenReportService. There is a node called in the SOAP request that is sent to GenReportService.  And the service responds only to unique refIds, basically the node carries int values.

When I select some Load Test Strategy with say 5 threads,50 Total runs on Simple Strategy; the requirement is every SOAP request that hits the service should have a unique value in that node. Because, as said the service responds only to unique refIds

I tried including some property step before the Request step while load testing, but i see that steps are not getting executed parallely.

Please help me in load testing this WS for which the request should carry a variable parameter (or any other solution to break this out!)

Thanks in advance for any help...

Devakara,
www.groovyinsoapui.wordpress.com
  • omatzura's avatar
    omatzura
    Super Contributor
    Hi Devara,

    If you are willing to use the 2.5 beta version, you can use the new inline-scripting possibility as described at http://www.eviware.com/blogs/oleblog/?p=6, otherwise your property-transfer should work providing that the property it transfers has a unique value. How are you generating it now?

    regards!

    /Ole
    eviware.com
  • Devakara's avatar
    Devakara
    Occasional Contributor
    Thanks Ole,

    I am now using the SOAP UI 2.5 beta-1 version.
    I just included the logic for fetching the current timestamp to serve the purpose of an UID, and its working great!

    (I mean to say each request that hits my web service is carrying a unique refId as required to invoke the service)

    Thanks again,
    Devakara,
    www.groovyinsoapui.wordpress.com
  • omatzura's avatar
    omatzura
    Super Contributor
    Great!

    be sure to report any issues you may have!

    regards,

    /Ole
    eviware.com
  • kiran_load's avatar
    kiran_load
    Occasional Contributor
    Hi Ole,

    I am using SOAP 2.5.1. I am using property to set a value and i am incrementing that for evry run to make it unique which is going to be sent it the API as an input.
    1, Create a set PROperty
    2. Pass into API input
    3. Increment that property...
    It is working fine for single run but when i run as thread it is not working..for concurrent threads it is faling to send the uniuq one...i mean say i set 111 in property and do the execution i will have to pass 112 for next thread and 113 for the next one...so on...
    could you suggest me to make it work under concurrency