Reputation: 169
i'm using SOAPUI for my webservices' test, and i'm searching to make an multiplication with a property, to compare it to my result.
ex:
<hour>1</hour>
(Import of the value)select * from myTable
<hour>3600</hour>
(the value is stored in seconds in my DB)//Result/hour
${testStep1#Request#//hour}*3600
But it seems that "expected result" doesn't take this form of result.
Can someone help me? Thanks in advance
Upvotes: 3
Views: 1464
Reputation: 10329
In your expected result you can use Groovy one-liner like so:
${= ${testStep1#Request#//*:hour} * 60 * 60 }
Upvotes: 4