I noticed a few threads in the past asking similar questions...however I'm still a bit lost on how to do something like this. Basically, I want to ask if it is possible to strip everything else from these Ranorex .rxlog report files and just have it contain:
- Test case name
- Result
I am using this snippet of code from a previous post that's been locked:
Code: Select all
public void parseResults()
{
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load("C:\\Users\\[Path]\\[To]\\[File]\\reportsFile.rxlog");
XmlNode reportInfos = xmlDoc.SelectSingleNode("//report/activity/activity/activity");
foreach (XmlAttribute attr in reportInfos.Attributes)
{
Console.WriteLine(attr.InnerText);
}
}
Am I using the wrong reports file entirely? Any help would be appreciated.. I just want to be able to parse the reports and gather 2 pieces of information for each test case run.
I am running on Ranorex 6.2.1 on Windows 10 64bit.
Thanks,
B