Forum Discussion

lokesh5501's avatar
lokesh5501
Visitor
7 years ago

SOAP UI Open Source Load Tests- How to Iterate the file path in the XML when we run a load test?

I am trying to run a load test against a documents upload webservice. Attached is the XML that i used for the load test.

 

The webservice is used to save the documents to a server.

 

The problem is, we need to provide a file path in the XML from which the soapui fetches the documents and upload into the server.

 

When we provide a static file path (i.e the document path), then then the document is getting locked when the load test are triggered. Because when the number of thread increases, different user are trying to access the same document at the same time.

 

As a alternative solution, i created a groovy script to iterate the filepath (created nearly 100 files and iterated the file name in the groovy script). But this doesn't seems to be reliable when the threads increases 50 and above. I am still getting the file locked error in the database (response from the webservice) when  I run the load tests. Because for 50 users 100 documents is not enough ( if the file size is 5 mb, its taking time to complete the previous response) and hence it through file locked error.

 

Is this the right way to do the load test? 

 

Is there any way we could easily do this?

 

I am new to SOAP UI and any help would be appreciated...

No RepliesBe the first to reply