Forum Discussion

phanisrikar's avatar
phanisrikar
Contributor
14 years ago

Load Test a soapui test case scenario using LoadUI

Hi,

I have scenario created in Soapui pro.

1. Create a user
2. Read the user data
3. Update the user data
4. Read the user data
5. Delete the user data

Everytime a user is created a new reference id is created (similar to guid) using the guid only I will be able to perform the rest of the actions/steps.
The above scenario works for single user.

When I try to import the soap project with the above scenario in to load ui and execute with 10 virtual users. the variable used to store the guid will be replaced with new value .. so before completing the above 5 steps with the 1st user, 2nd user creates a new user and again guid is replaced... because of which entire scenario (5 steps in soapui testcase) will not be executed properly.

How can handle the above scenario, Is loadui having the machanism to handle the dyanmic values internally ?

need urgent help in the scenario.

Thanks
Phani
  • After the create step, I have a groovy script which will fetch the value from the create response and store in the Test Case properties

    testRunner.testCase.setPropertyValue("guid",guid)

    Thanks,
    Phani
  • Ok,

    LoadUI handles soapUI TestCase Properties automatically. Each Virtual User gets its own isolated copy of the TestCase (this includes its own TestCase Properties), so I cannot see Virtual Users could affect each other. Are you sure that this is the cause?

    Can you send us the projects (to our support e-mail if they're private) so that we can have a look at them?

    Regards

    Henrik
    SmartBear Software
  • Thanks Henrik,

    If I store the dynamic values in testsuite properties and reuse from the test suite, then will it be a problem ? because there are some global other parameters which I'm using from the test suite properties.

    Eg : URL etc
    def pref_url = context.expand( '${#TestSuite#Pref_url}' )

    Actually, We are testing the RESTful webservices using SOAPUI and intern trying to load test them. Please let us know if there are any Know issues w.r.t testing REST services using loadui.

    Thanks & Regards
    Phani
  • Yes,

    Each VU gets an isolated copy of the TestCase, but TestSuites and Projects are always shared.

    So that's probably the problem

    Henrik
    SmartBear Software