Chi
9 years agoOccasional Contributor
Log.SaveResultsAs() returns false when test fails
Hi,
I'm trying to export my test results to XML and I'm noticing that the Log.SaveResultsAs() method fails when my test fails. But succeeds when my test passes. I'm not sure why that would be the case. This is the line of code, I check the "success" variable:
var success = Log.SaveResultsAs("..\\XmlTestResults\\TestResults.xml", 0, true, 0);
Is there a way to get more information apart from a return value of just true or false?
My test is run in a VM via a Network Suite and this SaveResultAs is the last Test Item in the project to be run on the host. Attached are my Playback Project Settings.