Hello,
I tried xpath assertion as you mentioned, but it is
NOT RELIABLE.
I need to calculate 86400 + ${gateway.time.seconds} for every request.
Let me explain;
Example for successful calculation;
when param1 = 86400 and param2 =1674554585
$param1 + $param2 = 1.674640985E9 --> the result is 1674640985, it works fine for this values
Example for wrong calculation;
when param1 = 86400 and param2 = 1674554480
it calculates;
$param1 + $param2 = 1.67464088E9 --> But the result is 1674640880, not 167464088. There is a missing zero.
It is very hard to understand that why are you so insistent about not developing an basic calculator for almost 10 years?
Original Message:
Sent: Nov 02, 2015 11:19 AM
From: Doyle_Reece
Subject: Re: Integer operations in policy assertion?
Hello chou_abc,
That won't work . We have kind of a 'Work Around' that you can use, but with the knowledge that mathematical computations may add load to the host.
with that acceptance, you can leverage our response Xpath assertion to do simple mathematical computations.
Example
Take this Policy:

take a look at the xpath assertion.

Here it is working.

hope this helped.