Ask a Question

Assertion teststep fails with error "Failed- null/empty response body"

SOLVED
psarnaik79
New Contributor

Assertion teststep fails with error "Failed- null/empty response body"

I am creating assertion teststep for JSONPath match for existing JSON content (read from file using Groovy) with the one from Response of the GET request. If checked in assertion UI with 'Test' functionality it shows 'Matches content' & even Response content is verified using "Select from Current". 

So it mean though the response is available assertion teststep shows empty response body which is causing the failure.

 

The same thing works if I put the assertion of GET Req. teststep but for certain mechanism I have to use via assertion test step.

 

Issue#2.png

 

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
JKambli
Staff

Re: Assertion teststep fails with error "Failed- null/empty response body"

Hi,

 

Right click on TestCase > Options > Uncheck Discard results if passed.

 

Thanks



Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

1 REPLY 1
JKambli
Staff

Re: Assertion teststep fails with error "Failed- null/empty response body"

Hi,

 

Right click on TestCase > Options > Uncheck Discard results if passed.

 

Thanks



Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

cancel
Showing results for 
Search instead for 
Did you mean: