Here is the groovy code used in Jmeter JSR223 preprocessor:
import java.lang.Long
def long timeStamp=System.currentTimeMillis();
def name=("Report_"+timeStamp);
log.info(name)
vars.put("DocumentName",name);
I need to generate the first hit timestamp(single) and pass it to 2 different transaction. But when I checked jmeter log, it has 2 different timestamp that has been passed to 2 different transaction.
The same I have checked with SOAPUI tool but it gives me single output.
You can see in the results tree same value is being passed