Forum Discussion

blade's avatar
blade
Occasional Contributor
10 years ago

SoapUI NG Pro 1.4.0 - JSON Response view removing decimal points

Hello,

 

I am testing  REST API's. I just upgraded to 1.4.0. On my tests, I have a content assertion for an account balance field. This has always been set to validate a content of '0.0'.

 

However after upgrading, this assertion always fails. Expected 0.0, Actual 0.

1.4.0 is removing the decimal point in JSON view, the raw response still contains the decimal point.

 

Example of Raw response:

{

    "OutstandingBalance": 0.0

}

 

Example of JSON View tab for same element:

{

    "OutstandingBalance": 0

}

 

Can this be investigated please as all of my existing tests (of which there are a lot) are failing because of this. It is the 0.0 value I am expecting to see.

 

Please let me know of any additional information that may be needed.

 

Thanks

    • blade's avatar
      blade
      Occasional Contributor

      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?

      • AV's avatar
        AV
        SmartBear Alumni (Retired)

        Sure it will be on next release!

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Blade,

     

    Based on your request, I’ve submitted an issue to our R&D team. They will analyze it and let us know possible solution.

  • AV's avatar
    AV
    SmartBear Alumni (Retired)

    Hi, blade!

    Thanks for posting the issue, At the moment it's unclear what changes would affect so much, but I'll investigate it and will back to you.