Reputation: 177
I have two thread groups
Creation of customer
Creation of account
From first thread group I'm capturing a variable called customerId.
How can I use that variable in second thread group?
Upvotes: 1
Views: 69
Reputation: 58772
You can't share a variable, you can convert variable to JMeter property using __setProperty
${__setProperty(propertyName, ${variableName})}
The setProperty function sets the value of a JMeter property.
And use in second thread group use __property
${__property(propertyName)}
You can convert it back to JMeter variable:
${__property(propertyName, newVariableName)}
${__property(user.dir,UDIR)} - return value of user.dir and save in UDIR
Upvotes: 1