Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jmeter : How to check for empty text response

I am writing a jmeter framework to validate Rest web services.I have a csv file having the list of URLS , Response code and response messages Eg : /api/input/checkUploadRequirement application/x-www-form-urlencoded 200 NOTREQUIRED

likewise I have many URL's.Few of the URL's does not return anything and for them I have empty cell\field in the csv file Eg: /api/input/savedetail sessionTrackingID=58ec9684-dfd-4c8f4796-f897 application/x-www-form-urlencoded 200 .

Now If I validate the empty Text response in Jmeter for above URL, I am getting "Assertion failure message: Response was null"

Please help me to validate empty text response from http request

like image 212
JmeterQuestion Avatar asked Oct 16 '25 16:10

JmeterQuestion


1 Answers

You can use Size Assertion and test for size of response:

  • http://jmeter.apache.org/usermanual/component_reference.html#Size_Assertion
like image 78
UBIK LOAD PACK Avatar answered Oct 18 '25 10:10

UBIK LOAD PACK