コード例 #1
0
 public static string GetCaseID()
 {
     try
     {
         string testcaseid = "";
         Rail   rail       = new Rail();
         foreach (var testCase in rail.GetCases())
         {
             string suite_testcasename = Config.TestCaseName.Replace('_', ' ');
             if (testCase.TestCaseName == suite_testcasename)
             {
                 testcaseid = testCase.TestCaseId;
                 break;
             }
         }
         return(testcaseid);
     }
     catch (Exception ex)
     {
         throw new Exception("Failed : GetCaseID : " + ex.Message);
     }
 }