Ejemplo n.º 1
0
        public override void Execute()
        {
            string     filePath  = Path.Combine(Configuration.Current.UITest.BasePath, this.SuiteRef.Path);
            ITestSuite testSuite = XmlHelper.Load <TestSuite>(filePath, "suite");

            testSuite.TestRunner  = this.TestRunner;
            testSuite.Environment = this.Environment;
            testSuite.SuiteRef    = this.SuiteRef;
            this.TestRunner.Writer.Write(testSuite);
            foreach (TestCaseCollectionRef tcr in testSuite.TestCaseCollection)
            {
                IExecutable testCases = new TestCaseCollection(tcr, testSuite);
                testCases.Execute();
            }
        }
        public override void Execute()
        {
            string             filePath           = System.IO.Path.Combine(Configuration.Current.UITest.BasePath, this.TestCaseCollectionRef.Path);
            TestCaseCollection testCaseCollection = XmlHelper.Load <TestCaseCollection>(filePath, "testcases");

            testCaseCollection.TestCaseCollectionRef = this.TestCaseCollectionRef;
            testCaseCollection.Suite = this.Suite;
            this.Suite.TestRunner.Writer.Write(testCaseCollection);
            foreach (TestCaseRef tcf in testCaseCollection.TestCases)
            {
                IExecutable tc = new TestCase(tcf, testCaseCollection);
                tc.BeforeExecute();
                tc.Execute();
                tc.AfterExecute();
            }
        }
Ejemplo n.º 3
0
 public TestCase(TestCaseRef tcf, TestCaseCollection testCaseCollection)
 {
     this.TestCaseRef        = tcf;
     this.TestCaseCollection = testCaseCollection;
 }