Access thread count number
Hi.
Is there a possibility to acces the current thread count as a property or something else? I would like to write some properties into an external file, but I also have to know the actual thread count when testing with several threads.
I'm accessing my file as follows:
File file = new File("D:/saveLabel.properties") file.delete() file << ("\r\n") file << ("PickupCode: ") file << (testRunner.testCase.getPropertyValue("PickupCode").toString())
So, my question: Is there a possibility to acces the number of the thread which is actually running? (Like testRunner.testCase.getPropertyValue("actualThreadCount").toString()) or something like this..)
Thanks in advance.
Hi,
When scripting in the context of a Load Test, have you seen the ThreadIndex property RunCount properties?
You can use them like:
log.info "ThreadIndex="+context["ThreadIndex"]+" RunCount: "+context["RunCount"]
Is this what you need?
For more see:
http://www.soapui.org/load-testing/scripting-possibilities.html
Cheers,
Rup