private static void TestResultsToXML(TestResultsResponse data) { var tests = new List <ReportingManager.TestData>(); foreach (var result in data.testResults) { foreach (var c in result.counters) { var testData = new ReportingManager.TestData(); testData.TestName = $"{result.deviceModel}:{result.deviceName}:{result.testName}:{c._name}"; testData.Status = c._value == 1 ? ReportingManager.TestStatus.Pass.ToString() : ReportingManager.TestStatus.Fail.ToString(); tests.Add(testData); } } ReportingManager.GenerateXmlReport(tests, Path.Combine(CloudTestConfig.BuildFolder, "cloud-test-report.xml")); }