Wave_Crest_Hold
15 years agoContributor
Not able to perform Arithmatic Operation in Groovy script
Hi,
Installed 32 bit SoapUI Pro
In Groovy script:
a= props.getPropertyValue("a")
b = props.getPropertyValue("b")
c=a+b
log.info(a)
log.info(b)
log.info(c)
Result is:
Thu Feb 03 18:10:06 IST 2011:INFO:58961.0
Thu Feb 03 18:10:06 IST 2011:INFO:58951.0
Thu Feb 03 18:10:06 IST 2011:INFO:58961.058951.0
But I want "c" Result as 58961.0+58951.058951.0=117912
It is taking a and b values as strings, how can i convert these values into "Integers"?
Please help me
Installed 32 bit SoapUI Pro
In Groovy script:
a= props.getPropertyValue("a")
b = props.getPropertyValue("b")
c=a+b
log.info(a)
log.info(b)
log.info(c)
Result is:
Thu Feb 03 18:10:06 IST 2011:INFO:58961.0
Thu Feb 03 18:10:06 IST 2011:INFO:58951.0
Thu Feb 03 18:10:06 IST 2011:INFO:58961.058951.0
But I want "c" Result as 58961.0+58951.058951.0=117912
It is taking a and b values as strings, how can i convert these values into "Integers"?
Please help me