Not getting the JDBC Request sampler variable’s indexed values defined in setUp thread group to another thread group for forEach controller.
How to access the JDBC Request sampler variable’s indexed values defined in setUp thread group to another thread group in forEach controller.
I have defined a setup thread group where ids are getting from database using JDBC request sampler and variable name is defined in JDBC request sampler named as object_ids with result stored as string.
JDBC Configuration
Set the property using beanShell assertion as ${__setProperty(object_ids, ${object_ids})};
BeanShell Assertion Property Setting
While running setup thread group id are returning as i can see in debug sampler and in logs also(Created using JST223 Postprocess) for variable’s indexed values. e.g. object_ids_1 and so on.
While trying to access these ids in forEach controller under a transaction controller in another thread group it is returning ${object_ids} instead of id values.
Test Plan Configuration
ForEach Controller