コード例 #1
0
        bool StartProcess()
        {
            try
            {
                TreeItem server = Preconditions.Steps.SelectedServerTreeItem;
                Steps.ClickonQueryBuilder();
                Steps.ClickOnConnectionMenu();
                Steps.ClickOnAddSchema();
                Steps.ClickOnPublic();
                Steps.ClickOnSchemaOK();
                Steps.ClickOnReconnect();

                Steps.ActivateApplication();
                Preconditions.Steps.QueryAnalyser();
                Preconditions.Steps.SelectDBFromComboBox(Config.ADSDB);
                Preconditions.Steps.CreateTable();
                Preconditions.Steps.CloseTab(Config.TestCaseName);
                Steps.ClickOnRightClickRefresh();

                Steps.ActivateQueryBuilder();
                Steps.ClickOnRefresh();
                Steps.ClickOnClose();
                Steps.ClickonDiscard();
                Steps.ClickonQueryBuilder();
                Steps.ClickOnConnectionMenu();
                Steps.ClickOnEditConnection();
                Steps.EditLoginName();
                Steps.ClickOnSave();
                Steps.ClickOnConnectionMenu();
                Steps.ClickOnProperties();
                Steps.ScanTable();
                Steps.ClickOnCloseConnection();
                Steps.ClickOnCloseButton();
                Steps.ClickonDiscard();
            }
            catch (Exception ex)
            {
                Reports.ReportLog(ex.Message, Reports.ADSReportLevel.Fail, null, Configuration.Config.TestCaseName);
            }
            return(true);
        }