Exemple #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);
 }
Exemple #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);
        }
 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));
 }
        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));
            }
        }