How to compare the value in UI with the value in CSV
Posted: Wed Oct 09, 2013 9:59 pm
Hi,
I am trying to read current version number of the build in my UI, Able to read the value and dispaly it but i want to validate the value passing through a csv file and compare the both csv value and dispalyed value are same so that i can pass the test case as both versions are matching.
As I am beginner need your help...
Pasting my user code for reference
public void abd()
{
IList<Ranorex.DivTag> ilist= exercise_10_03Repository.Instance.CGNMSLogin.ProductDesc.Find<Ranorex.DivTag>(".//div");
Report.Info("the element is " + ilist[3].InnerText);
Console.WriteLine("the element is " + ilist[3].InnerText);
Console.ReadLine();
}
I want to compare the inner text value with the one from csv so that both versions match....
I am trying to read current version number of the build in my UI, Able to read the value and dispaly it but i want to validate the value passing through a csv file and compare the both csv value and dispalyed value are same so that i can pass the test case as both versions are matching.
As I am beginner need your help...
Pasting my user code for reference
public void abd()
{
IList<Ranorex.DivTag> ilist= exercise_10_03Repository.Instance.CGNMSLogin.ProductDesc.Find<Ranorex.DivTag>(".//div");
Report.Info("the element is " + ilist[3].InnerText);
Console.WriteLine("the element is " + ilist[3].InnerText);
Console.ReadLine();
}
I want to compare the inner text value with the one from csv so that both versions match....