예제 #1
0
 bool StartProcess()
 {
     try
     {
         Preconditions.Steps.QueryAnalyser();
         if (Config.SchemaServers.Contains(Preconditions.Steps.SelectedServerName))
         {
             Preconditions.Steps.SelectSchemaDBFromComboBox(Config.ADSDB);
         }
         else
         {
             Preconditions.Steps.SelectDBFromComboBox(Config.ADSDB);
         }
         Steps.ImportTable();
         Steps.Execute();
         Preconditions.Steps.CloseTab(Config.TestCaseName);
         Steps.ClickonDiscard();
         Steps.Clickonserver();
         Steps.ClickonFluidShell();
         Steps.EnterConnect();
         Steps.EntertheDisconnect();
         Steps.EnterConnect();
         Steps.ChangeDatabase();
         Steps.EntertheText1();
         Steps.EntertheText2();
         Steps.EntertheText3();
         Preconditions.Steps.CloseTab(Config.TestCaseName);
         Preconditions.Steps.QueryAnalyser();
         if (Config.SchemaServers.Contains(Preconditions.Steps.SelectedServerName))
         {
             Preconditions.Steps.SelectSchemaDBFromComboBox(Config.ADSDB);
         }
         else
         {
             Preconditions.Steps.SelectDBFromComboBox(Config.ADSDB);
         }
         Steps.ImportTable1();
         Steps.Execute();
         Preconditions.Steps.CloseTab(Config.TestCaseName);
         Steps.ClickonDiscard();
     }
     catch (Exception ex)
     {
         Preconditions.Steps.CloseTab(Config.TestCaseName);
         Reports.ReportLog(ex.Message, Reports.ADSReportLevel.Fail, null, Configuration.Config.TestCaseName);
     }
     return(true);
 }