• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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/
 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic