Using variables (placeholders) in the sampler name
If the variables you need to form the new sample name are already available just fill the the name's text field using the syntax ${variable name}.The only problem with this approach is that the name shown in test plan tree (left panel) might end up being not so intuitive.
Dynamically setting it in BSF Post Processors
Just use the variable prev (which gives access to the previous SampleResult) and use the method setSampleLabel to set the new label.In the example below I'm using the value of another variable (named url) previously put in the vars object:
Nenhum comentário:
Postar um comentário