jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Ohrstrom <johrst...@hotmail.com>
Subject Re: JSON Empty or null
Date Wed, 28 Jan 2015 08:56:33 GMT
Perhaps you should use the regular expression extractor instead.  Or
implement a JSR223 (or similar) post processor.

On Wed, 2015-01-28 at 10:51 +0200, Erez Naim wrote:
> Hi,
> 
>  
> 
> I am using this in my script:
> 
>  
> 
> Thread Group
> 
>  
> 
>    While loop (condition: ${__javaScript("${nikitaShalom}"  !=
> "${str}")} )
> 
>       HTTP sampler request
> 
>          JSON Path Extractor ($.events[1].subEvents[0].eventName)
> Default Value: NOT_FOUND
> 
>  
> 
>  
> 
> I have noticed that I am getting this error: 
> 
>  
> 
> ERROR -
> com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor: Extract failed
java.lang.IllegalArgumentException: json can not be null or empty
> 
>  
> 
> And this one:
> 
>  
> 
> ERROR -
> com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor: Extract failed
java.lang.IllegalArgumentException: Invalid container object
> 
>  
> 
> I have no problem with the fact that the JSON is empty it could be
> empty and I want to continue my test. Till the data will be available
> for extraction when that's does not happen, for some reason it
> continue to run. 
> 
> I want it to continue to run until there would be a value to extract
> from the JSON Extractor post processor. 
> 
>  
> 
> Any way to bypass it and to let the script continue running ?
> 
>  
> 
>  
> 
> Erez Naim  |  QA Lead  |   LinkedIn  vCard  Twitter  
> 
> 
> cid:image004.png@01D01E1B.5F153500
> 
> EL AL 2 Street | Herzliya  
> mobile (+972) 50 9 555 686 | fax (408) 689.1366 | skype erez.neura
> 
>  
> 
> 
> website  |  blog  |  twitter  |  map    
> 
> 
> 
>  
> 
>  
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Mime
View raw message