pkitkows
10 years agoOccasional Contributor
LoadTest - How to read/edit file/property in thread-safe way
Hi,
I'm trying to do some exercise with using SOAP UI and LoadTest function. My goal is to have test case/step which read data from property (as LIST) on the case/suite/project level (no matter), get first value and remove it from the list.
It's working fine during single execution (SOAPUI).
When I launch test case from LoadTest and use few threads, it happened sometimes that two or more threads read the same value.
Is there any way to assure that reading and remove value from list (or file) will be done in thread-safe mode ?
Any hints how to resolve that kind of issue ?
Regards,
Piotr
I'm trying to do some exercise with using SOAP UI and LoadTest function. My goal is to have test case/step which read data from property (as LIST) on the case/suite/project level (no matter), get first value and remove it from the list.
It's working fine during single execution (SOAPUI).
When I launch test case from LoadTest and use few threads, it happened sometimes that two or more threads read the same value.
Is there any way to assure that reading and remove value from list (or file) will be done in thread-safe mode ?
Any hints how to resolve that kind of issue ?
Regards,
Piotr