cancel
Showing results for 
Search instead for 
Did you mean: 

Valid HTTP code assertion doesn't provide what is expected and what is actual

SOLVED
vi
Occasional Contributor

Valid HTTP code assertion doesn't provide what is expected and what is actual

In readyapi when i use Valid HTTP code assertion, when its failed due to mismatch with the response code why don't it gives you what is expected and what is actual.

For example: if i am expecting a return code of 201 and its returning 200, readyapi gives me the following responses

"Response status code 200 is not acceptable list of status codes"

but if they provide with actual and expected , it will be easy to understand.

"Response status code  is :200 , doesn't match with the expected "201"

1 ACCEPTED SOLUTION

Accepted Solutions
sonya_m
Community Manager

Re: Valid HTTP code assertion doesn't provide what is expected and what is actual

nmrao thank you for your reply!

 

@rajs2020 @vi the Product Team would need to consider this, please create a feature request here.


Sonya Mihaljova
Community and Education Specialist

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

View solution in original post

4 REPLIES 4
nmrao
Community Hero

Re: Valid HTTP code assertion doesn't provide what is expected and what is actual

If the default functionality is not what you are looking for, you can write script assertion for the same and display your customized message.


Regards,
Rao.
vi
Occasional Contributor

Re: Valid HTTP code assertion doesn't provide what is expected and what is actual

Thats pain, i recommend smartbear to have  expected and actual displayed in the test result.

rajs2020
Frequent Contributor

Re: Valid HTTP code assertion doesn't provide what is expected and what is actual

@sonya_m - Can the OP's expectation be made a feature? It seems like a minor change, but I'm not sure.

sonya_m
Community Manager

Re: Valid HTTP code assertion doesn't provide what is expected and what is actual

nmrao thank you for your reply!

 

@rajs2020 @vi the Product Team would need to consider this, please create a feature request here.


Sonya Mihaljova
Community and Education Specialist

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