예제 #1
0
 public void Run()
 {
     ITestDriver td = new TestDriver();
     TempReader temp = new TempReader().ReadContent();
     this.TestContext.WriteLine("Current Project: {0}", temp.ProjectName);
     this.TestContext.WriteLine("Current Test Case ID: {0}", temp.TcID);
     this.TestContext.WriteLine("Current Test Case Folder: {0}", temp.TcFolder);
     td.Run(TestContext, temp);
 }
예제 #2
0
        public void Run()
        {
            ITestDriver td   = new TestDriver();
            TempReader  temp = new TempReader().ReadContent();

            this.TestContext.WriteLine("Current Project: {0}", temp.ProjectName);
            this.TestContext.WriteLine("Current Test Case ID: {0}", temp.TcID);
            this.TestContext.WriteLine("Current Test Case Folder: {0}", temp.TcFolder);
            td.Run(TestContext, temp);
        }
예제 #3
0
 public void Run(Microsoft.VisualStudio.TestTools.UnitTesting.TestContext testContext, TempReader temp)
 {
     _reporter = new Reporter(testContext);
     string dllFullname = DllLoader.GetDllFullNameContainTCInProject(temp.ProjectName, temp.TcFolder);
     Type t;
     if (DllLoader.HasFoundTypeByTcid(dllFullname, temp.TcID.ToString(), out t))
     {
         DataRow globalData, testData;
         this.LoadData(temp.PID.ToString(), temp.TcID.ToString(), out globalData, out testData);
         Execute(new DataUse(globalData), new DataUse(testData), t, temp.PID.ToString(), temp.TcID.ToString());
     }
     else
         throw new NotImplementedException(string.Format("Test case#{0} in Project {1} does not exist!", temp.TcID, t, temp.PID));
 }
예제 #4
0
        public void Run(Microsoft.VisualStudio.TestTools.UnitTesting.TestContext testContext, TempReader temp)
        {
            _reporter = new Reporter(testContext);
            string dllFullname = DllLoader.GetDllFullNameContainTCInProject(temp.ProjectName, temp.TcFolder);
            Type   t;

            if (DllLoader.HasFoundTypeByTcid(dllFullname, temp.TcID.ToString(), out t))
            {
                DataRow globalData, testData;
                this.LoadData(temp.PID.ToString(), temp.TcID.ToString(), out globalData, out testData);
                Execute(new DataUse(globalData), new DataUse(testData), t, temp.PID.ToString(), temp.TcID.ToString());
            }
            else
            {
                throw new NotImplementedException(string.Format("Test case#{0} in Project {1} does not exist!", temp.TcID, t, temp.PID));
            }
        }