Forum Discussion

InekeBa's avatar
InekeBa
Occasional Visitor
8 years ago

Assertions failed because NULL/EMPTY response body, but reponse isnt empty

Hello,

 

The assertions on my POST REST fails because NULL/EMPTY response body, but the response body isnt empty.

When I do a property transfer from the response body to a custom property of my testcase the assertions is Valid. 

 

Why doesn't the assertion work directly on response body of my REST call?

  • testhrishi's avatar
    testhrishi
    Frequent Contributor

    what type of assertion you using here.

    if it is just to check HTTP status code, it shouldn't fail?