/// <summary> /// If existing running test cases, change the status to Other. /// </summary> public void FinishTest() { // Clear RunningTestCase if (RunningTestCase != null) { if (RunningTestCase.Status == TestCaseStatus.Running) { GroupByOutcome.ChangeStatus(RunningTestCase.Name, TestCaseStatus.NotRun); } RunningTestCase = null; } foreach (var testcase in AllTestCases) { // Clear Waiting cases. if (testcase.Status == TestCaseStatus.Waiting && CurrentPageCaseList.Contains(testcase.Name)) { TestCaseStatus status = TestCaseStatus.NotRun; TestCaseDetail caseDetail; if (testcase.LogUri != null && System.IO.File.Exists(testcase.LogUri.AbsolutePath)) { Utility.ParseFileGetStatus(testcase.LogUri.AbsolutePath, out status, out caseDetail); } testcase.Status = status; } // Clear Running cases. Should not be here if (testcase.Status == TestCaseStatus.Running && CurrentPageCaseList.Contains(testcase.Name)) { testcase.Status = TestCaseStatus.NotRun; RunningTestCase = null; } } }
/// <summary> /// If existing running test cases, change the status to Other. /// </summary> public void FinishTest() { // Clear RunningTestCase if (RunningTestCase != null) { if (RunningTestCase.Status == TestCaseStatus.Running) { GroupByOutcome.ChangeStatus(RunningTestCase.Name, TestCaseStatus.NotRun); } RunningTestCase = null; } foreach (var testcase in AllTestCases) { // Clear Running cases. Should not be here if (testcase.Status == TestCaseStatus.Running && CurrentPageCaseList.Contains(testcase.Name)) { testcase.Status = TestCaseStatus.NotRun; RunningTestCase = null; } } }