i know discussions of similar questions were here before but solutions of it didn't help me.
So i need to get number of passed and failed tests cases.
I created code module and put it in TearDown module.
Code:
var testSuite = Ranorex.Core.Reporting.TestReport.CurrentTestSuiteActivity; var status = testSuite.Status; var totalBlocked = testSuite.TotalBlockedTestCaseCount; var totalFailed = testSuite.TotalFailedTestCaseCount; var totalPassed = testSuite.testSuite.TotalSuccessTestCaseCount; var total = totalPassed + totalFailed + totalBlocked; var data = String.Format("Total:{0}{1}Passed:{2}{3}Failed:{4}", total, Environment.NewLine, totalPassed, Environment.NewLine, totalFailed); Report.Log(ReportLevel.Info, data);Status (testSuite.Status) is correct.
But numbers (totalBlocked/Failed/Passed) are returned as 0 only.
So is there are any way to get correct numbers?
Thanks!