In my project, I am working on Fiddler (web debugging tool) to get input for my application.
Say for instance, I am getting values from fiddler as shown in the attached image. we need to get all values such as v, _v, a, t and every single value from the fiddler (Fiddler-> Inspector -> webform).
But it takes hardly 3-5 min to get all the values . I need to reduce the time to retrive those values.
So we have more than 150 Testcases, it take 150x5 min = 750 min (around 12 hours)
Actuall code was, (FOREACH LOOP)
Code: Select all
public Dictionary<string, string> getEventsFromFiddler()
{
Dictionary<string, string> actual=new Dictionary<string, string>();
for(int i=2;i<repo_fiddler.FrmViewer.GridBody.Children.Count-1;i++)
{
string inputKey=repo_fiddler.FrmViewer.GridBody.Children[i].Children[0].Element.GetAttributeValue("Text").ToString();
string inputVal=repo_fiddler.FrmViewer.GridBody.Children[i].Children[1].Element.GetAttributeValue("Text").ToString();
actual.Add(inputKey,inputVal);
Report.Info(inputKey,inputKey);
}
return actual;
}

You can download fiddler from here: http://fiddler2.com/