Is there a way to determine in a BeanShell Listener script if a Sample Result/Event is under a Transaction Controller?
I know you can use sampleEvent.isTransactionSampleEvent() to determine if the event is for TransactionController. But is it possible to check, in the below example, when executing the BeanShell Listener for HTTP Request 2, if it is under Transaction Controller?
Thread Group
HttpRequest 1
TransactionController
HttpRequest 2
HttpRequest 3
HttpRequest 4
Why not name your sampler with a suffix (-underTC) and test this in your listener:
Trying to use internal JMeter API might break you Test in the future.