The point-to-point sampler in JMeter for request-reply messages doesn't allow to provide parameterized values. All configuration values must be hard coded into the sampler, so any attempt to create dynamic values for the jms broker host for example don't work.
Hello, Can you provide a sample Test plan , describe the expected behaviour vs what you get ? If possible make Test plan for ActiveMQ. Thanks
Created attachment 32074 [details] Test plan example The test plan provides two user defined variables that are used to specify the broker host and port. Then, inside a thread group, the test tries to change the value of the JMS_BROKER_HOST variable in a bean sampler, providing another string, before running the jms point-to-point sampler. When running the test, it's easy to see in the View Results Tree how an exception is thrown saying the sampler cannot reach the broker in the specified host, that is the one defined in the user defined variables, not in the bean sampler. It can also be checked in the Debug sampler provided that the new value is stored in the user variable.
The provider URL is resolved at configuration time, i.e. before the thread runs the BeanShell Pre-processor. It is possible to change variables using a Config test element such as the User Defined Variables element.
Yes, that way it works. But other elements that provide dynamic ways of changing the value don't work. I've tried using Random Variable element, CSV Data Set Config or Bean Shell sampler and those don't work. The reason for this requirement is to be able to test clustered configurations. Without it, I'm forced to duplicate the test plan, providing a value for each of them.
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/3437