javascript - Groovy Script Decimal vs. Whole Numbers -


this more of elementry soapui groovy scdript question.

in response returns 100.000 i'm assert return value < response

if do:

max = 100 resonse = ('${responsetc#xyz..."')  assert resposne < max 

"error (java.lang.integer cannot cast java.lang.string"

i have found ways around want ask experts - "expert" way of handling this.

thank you, rob

the natural , "expert" way is:

int max = 100 def response = responsestring.tofloat() assert max > response 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -