Forum Discussion
Hi, blade!
Please check the maintenance build from https://support.smartbear.com/downloads/readyapi/nightly-builds/. It seems I've fixed your issue. Thanks for your patience :)
This seems to have resolved the issue after re-running my tests. Thanks for the quick reply. Will this fix be part of teh next release? 1.4.1? I assume the build I used was a test build of Ready API?
- AV9 years agoSmartBear Alumni (Retired)
Sure it will be on next release!
- austino9 years agoContributor
I'm running 1.5 maintenance build, and I have several hundred assertions setup to NOT include the decimal point. For example, I'm asserting the value "20" comes back for a dollar amount, but now the response is "20.0" so the assertion is failing (this is causing 300+ tests to show false failures). Could we please create a happy medium here and allow an option to display or remove unnecessary decimals? Thanks.
- blade9 years agoOccasional Contributor
Hi austino,
That fact that it is asserting 20 is the error. In the actual response you receive, viewable in the 'Raw' tab. the actual value will probably be 20.0, while in the JSON tab its been displayed as 20. When the fix was made I also had to go through the pain of updating over 1000+ test cases and each test had multiple assertions for decimal values.
The whole purpose of this fix is to make sure that what is returned from the API is the actual value been asserted (tested).
The problem lies with the older Ready API build that was used, in which when the original assertion was created it was taking the incorrect 20 value instead of 20.0 which is the value been returned in the API response.
I welcome any input/opinion from Smartbear on this issue.
Regards,
Related Content
- 8 months agoMW_Didata