Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 21061

Compare 2 values

$
0
0

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

 

 


Viewing all articles
Browse latest Browse all 21061

Trending Articles