Forum Discussion

f497's avatar
f497
New Contributor
9 years ago
Solved

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.