cancel
Showing results for 
Search instead for 
Did you mean: 

Unique property name for each thread with context.ThreadIndex

Occasional Visitor

Unique property name for each thread with context.ThreadIndex

Hello


It is necessary for me, during a load test, in each thread, to have a property with a unique name so that it can be accessed by a thread during the execution of a certain number of steps.

 

In this manual written about the context.ThreadIndex property.


I tried to use it, but when using such a script:

testRunner.testCase.setPropertyValue ("EmployeePersonId" + context.ThreadIndex, result))

 

I only create the EmployeePersonId0 property, and all threads use it to write their variable. And I need to create EmployeePersonId0, EmployeePersonId1, EmployeePersonId2, EmployeePersonId3 ...
And each thread used its own variable.

1 REPLY 1
Community Hero

Re: Unique property name for each thread with context.ThreadIndex

@technomage,

Would you mind showing / explain why or how the properties are going to be used?


Regards,
Rao.