Forum Discussion

rlong98's avatar
rlong98
Contributor
10 years ago
Solved

Script Assertion adding two decimal values suddenly is failing

So this worked last week (no changes other than the WSDL did change)...   CODE (abbreviated) I have 3 defined (context.expand) values that are all decimal  def a = context.expand(<path>) as int /...
  • rlong98's avatar
    rlong98
    10 years ago

    Well this is why I'm a rookie... the fix is stupid easy (unless i run into another hiccup)

     

    Just adding ".toBigDecimal()" after my context.expand lines did the trick.

     

    Of coruse the math equation i had to put "as String" in order for SoapUI to not compare the BigDecimal to the actual 2 decimal output