I have a Regular Expression which is reading a variable from a web page. I
need to test this value to see if I should perform the next step or perform
another search.
Currently, I have the following in a BeanShell PostProcessor to set the value
of the variable:
vars.put("loopBatch", vars.get("BatchLink_g3"));
If my search returned no results, a Debut PostProcessor will report
loopBatch=null. Then, the If Controller ${loopBatch} > 0 generates an error:
ERROR - jmeter.control.IfController: missing ) after argument list
(<cmd>#1)
How can I test using a variable which might be null? I found a method of the
Class Abstract Property getIntValue() which would give me what I want (0 when
the value is null), but I don't understand how to use getIntValue() in a JMeter
script.
Is this the right way to proceed? Am I missing something? I don't know much
about the BeanShell command.
Thank you for any help.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]