jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From RL <l...@mindspring.com>
Subject Re: Using Beanshell Assertion to test a JSON value
Date Sat, 21 Dec 2013 03:06:13 GMT
> String blobValue = vars.get("blobValue");

>
> what does vars.get() return if the variable does not exist?
>
>
Right. That's what's causing the crash. If I create blobValue explicitly
beforehand the Beanshell Assertion works.

So the question more narrowly defined is: how can one test for the
existence of a variable before doing a vars.get, since vars.get crashes if
the specified variable doesn't exist?

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message