Hi All,
function CompareValues(Value1,Value2)
{
if (Value1==Value2)
{
Reporter.vCheckpoint("Value 1:" + Value1 + " is equal to Value 2:"+ Value2,"Value 1:" + Value1 + " is equal to Value 2:"+ Value2, 100);
return true;
}
else
Reporter.vError("Value 1:" + Value1 + " is not equal to Value 2:"+ Value2,"Value 1:" + Value1 + " is not equal to Value 2:"+ Value2, 100);
return false;
}
I am calling this method: CompareValues(Expiry1,Expiry2);
But the comparison is failing even the Log is showing : Value 1:28-Apr-2016 (3M) is not equal to Value 2:28-Apr-2016 (3M)
Not sure what is the difference between them. ALso is there any inbuild Test complete function to compare 2 values?
Thanks