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
Script Wanted
Check out the new challenge!

Create a script to generate a request body based on data from Datasource
for the TechCorner tag.
Your input is appreciated!


Scripts created this month:
- A scriptd to go through all response nodes and check the value of the required field
- A Dispatching script to get responses based on the values in Request Body
- A script to add a new tag and assign it to all TestCases in a TestSuite
Top Kudoed Authors