public override void Write(Suite.TestCaseRef testCaseRef, System.Collections.Generic.IList <Suite.TestCaseAction> actions) { this.workSheet.Cells[this.currentRow, 2].Value = testCaseRef.Name; this.workSheet.Cells[this.currentRow, 5].Value = actions.Any(item => item.Status == TestResultType.Fail) ? TestResultType.Fail.ToString() : TestResultType.Success.ToString(); this.workSheet.Cells[this.currentRow, 6].Value = testCaseRef.Description; this.currentRow++; }
private IList <TestCaseAction> Execute(Suite.TestCaseRef tcref) { IList <TestCaseAction> actions = new List <TestCaseAction>(); IList <TestDataKeyNamePair> testData = this.GetTestData(tcref.Key); foreach (TestCaseActionRef actionRef in tcref.Actions) { TestCaseAction testAction = new TestCaseAction(actionRef, this, testData, this.TestCaseCollection.Includes); if (actionRef.SleepBefore.AsInt() > 0) { this.WebDriver.Sleep(actionRef.SleepBefore.AsInt()); } testAction.Execute(); actions.Add(testAction); if (testAction.Status == TestResultType.Fail) { tcref.Status = TestResultType.Fail; break; } } tcref.Status = TestResultType.Success; return(actions); }
private void PrintReport(Suite.TestCaseRef tcRef, IList <TestCaseAction> actions) { this.TestCaseCollection.Suite.TestRunner.Writer.Write(tcRef, actions); foreach (TestCaseAction action in actions) { this.TestCaseCollection.Suite.TestRunner.Writer.Write(action); } }
public virtual void Write(Suite.TestCaseRef testCaseRef, System.Collections.Generic.IList <Suite.TestCaseAction> actions) { throw new System.NotImplementedException(); }
public override void Write(Suite.TestCaseRef testCaseRef, System.Collections.Generic.IList <Suite.TestCaseAction> actions) { string str = string.Format("TestCaseRef :{0}-{1}-{2}-{3}", testCaseRef.Name, testCaseRef.Key, testCaseRef.Description, testCaseRef.Status); System.Console.WriteLine(str); }