saprao
12 years agoOccasional Contributor
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 through request xml then getting response....date values is greater than or equal to input date value. so, here i need to validate date is greater than or equal to input date values in reqonse xml then my xpath assertion should be pass.
For validate above response value of date, how to write my condition in xpath assertion? please provide me detail xml.
Attached sample request and response xml in spreed sheet
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 through request xml then getting response....date values is greater than or equal to input date value. so, here i need to validate date is greater than or equal to input date values in reqonse xml then my xpath assertion should be pass.
For validate above response value of date, how to write my condition in xpath assertion? please provide me detail xml.
Attached sample request and response xml in spreed sheet
- 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','-',''))