Forum Discussion

saprao's avatar
saprao
Occasional Contributor
12 years ago

Needs to validate Range of values in response

Hi, Could you please help me out any one for validate range of values in response xml through xpath assertion or any other assertion if possiable. Ex : I am passing date ='2013-08-05' value thro...
  • nmrao's avatar
    12 years ago
    Here is the xpath you may use which will return true in your case.
    number(translate(string(//alpha:SelectedSailing/@Start),'-','')) >= number(translate('2014-05-11','-',''))