On 2 November 2012 18:20, Test Lead <[email protected]> wrote:
> Hi,
>
> I want to set the sample result label to "<Transaction Controller Name> - 
> <Sampler name>" using Beanshell code. I tried looking at the Javadocs but 
> couldn't find a way to access the Controller name. So, far this is what I 
> have got...
>
> prev.setSampleLabel(<Transaction Controller Name???> + " - " + 
> prev.getSampleLabel());
>
> Can somebody tell me how to get the controller name in the above piece of 
> Beanshell code? If it helps to know, the samplers are the child elements of 
> the controller.

It's not possible to get the Controller name.

> Thanks,
>
> Ravi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to