コード例 #1
0
ファイル: TestManager.cs プロジェクト: Thinksys/krypton
 //create test point
 public static ITestPoint CreateTestPoints(ITestPlan testPlan, ITestSuiteBase suite, ITestCase testcase)
 {
     try
     {
         ITestPointCollection tpc = testPlan.QueryTestPoints("SELECT * FROM TestPoint WHERE SuiteId = " + suite.Id + " and TestCaseID =" + testcase.Id);
         ITestPoint tp = testPlan.FindTestPoint(tpc[0].Id);
         return tp;
     }
     catch (Exception e)
     {
         throw e;
     }
 }
コード例 #2
0
 //create test point
 public static ITestPoint CreateTestPoints(ITestPlan testPlan, ITestSuiteBase suite, ITestCase testcase)
 {
     try
     {
         ITestPointCollection tpc = testPlan.QueryTestPoints("SELECT * FROM TestPoint WHERE SuiteId = " + suite.Id + " and TestCaseID =" + testcase.Id);
         ITestPoint           tp  = testPlan.FindTestPoint(tpc[0].Id);
         return(tp);
     }
     catch (Exception e)
     {
         throw e;
     }
 }