cancel
Showing results for 
Search instead for 
Did you mean: 

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

SOLVED
Highlighted
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
Highlighted
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
Highlighted
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

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors