Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jmeter Testing - Parameter passing from one thread group to another thread group

 
Shani Gunarathna
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am testing a webservices performance using SOAP/XML-RPC Requests and i have to test two services.
When the first service is tested by the Jmeter by sending SOAP request, returned response data has a perticular value(Session Id) which should be passed to the second service
SOAP request as the parameter to test the second service performance. There are 50 threads in both thread groups and the relevant returned value(Session Id) should be passed from first group to second group accordingly.
How am i suppose to do this?
Any suggestions would be really helpful.

Thank you,
Harshi
 
Nandu sandeep
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Passing the variables from one thread group to another can be done using jmeter's SetProperty and Property methods.
In this , the variable Session Id should be captured first using jmete regular expressions apnd should be assigned to new variable using SetProperty.
Then using Property it can be retrieved from one thread group to another thread group.

This has been explained here: http://www.technix.in/how-to-transferrefer-jmeter-variables-from-one-thread-group-to-another-thread-group/
 
Dmitri Tikhanski
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to convert your variable(s) to properties, take a look at __SetProperty() function. JMeter variables are local to Thread Groups and JMeter properties are global for the whole JVM instance.

See How to Use Variables in Different Thread Groups guide for detailed instructions.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic