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++;
 }
Example #2
0
        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);
        }
Example #3
0
 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);
     }
 }
Example #4
0
 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);
        }