예제 #1
0
        bool StartProcess()
        {
            try
            {
                Steps.ClickOnERModelerMenu();
                Steps.SelectNew();
                Steps.SelectDataTypeAndVersion(Steps.DatabaseTypes.MSSQLServer, "2016");
                Steps.ValidateTree(false, true, true, true, true);
                Steps.RightClickOnTables();
                Steps.CreateNewTable();
                Steps.RightClickOnTables();
                Steps.CreateNewTable();
                Steps.RightClickOnTable1();
                Steps.SelectProperties();
                Steps.EnterParentTableName();
                Steps.CreateColumns();
                Steps.EditColumns();
                Steps.RightClickOnTable2();
                Steps.SelectProperties();
                Steps.EnterChildTableName();
                Steps.CreateColumns();
                Steps.CreateNewRelationship();
                Steps.EnterRelationshipName();
                Steps.SelectParentTableComboBox();
                Steps.SelectChildTableComboBox();
                Steps.CheckParentTableCheckbox();
                Steps.CheckChildTableCheckbox();
                Steps.ClickRelationshipOkButton();
                Steps.SaveERD();
                Steps.ClickOnERModelerMenu();
                Steps.SelectOpen();
                Steps.OpenERD();
            }

            catch (Exception ex)
            {
                Reports.ReportLog(ex.ToString(), Reports.ADSReportLevel.Fail, null, Configuration.Config.TestCaseName);
            }
            return(true);
        }