LostInSpace
14 years agoNew Contributor
Any way to create a unique id to send in soapUI requests?
Hi!
(I am not the actual user of soapUI at my work place, I am sending this to try to help a colleague which is working on a fairly thing schedule...)
We're currently trying to generate a unique id to communicate with a web service we need to test and we can't seem to generate something unique enough to do load testing.
We're currently using the current date and time (down to the milliseconds) to generate a string that we pass to the web service.
Unfortunately, for our needs (we're doing a load test), it's still not unique enough.
We saw an example (using a regular groovy script but we're using a DataGen one...) that used the "thread index" to make the id more unique.
Unfortunately even though there's a notice on the screen that says that the context should be available in the script using we don't seem to be able to access it.
How can we access the thread index from a Datagen script?
Thank you!
Nick
PS: We actually have Soap UI pro if that makes any difference...
(I am not the actual user of soapUI at my work place, I am sending this to try to help a colleague which is working on a fairly thing schedule...)
We're currently trying to generate a unique id to communicate with a web service we need to test and we can't seem to generate something unique enough to do load testing.
We're currently using the current date and time (down to the milliseconds) to generate a string that we pass to the web service.
Unfortunately, for our needs (we're doing a load test), it's still not unique enough.
We saw an example (using a regular groovy script but we're using a DataGen one...) that used the "thread index" to make the id more unique.
Unfortunately even though there's a notice on the screen that says that the context should be available in the script using we don't seem to be able to access it.
How can we access the thread index from a Datagen script?
Thank you!
Nick
PS: We actually have Soap UI pro if that makes any difference...