예제 #1
0
        public void TestInspectWithStandardVSingleView()
        {
            String name = "ATM" + RandomNumber;

            ConfigMang.LaunchConfigurationManager();
            ConfigMang.LoadNewArchitectureWindow();
            ConfMangNewArchitectureWindow.CreateArchitecture(name, "standard", 1);
            ConfigMang.LoadCameraStatusWindow();
            ConfigMang.AssignCameraToSingleView();
            ConfigMang.CloseConfigurationManager();

            ClassifierMng.LaunchClassifierManager();
            ClassifierMng.CreateNewClassifier("Standard", "SmartView", "", false);
            ClassfierClassList.LoadClassListTab();
            ClassfierClassList.ImportClassifier();
            ClassifierMng.SaveClassifier(name);
            ClassifierMng.CloseClassifierManager(name);

            RecipeBase.RecipeWizard.LaunchRecipe(RecipeBase.RecipeExePath, RecipeBase.RecipeAlternateExePath);
            RecipeBase.RecipeWizard.SelectArchitectureInRecipeWizard(name);
            RecipeBase.RecipeWizard.CreateNewRecipe(name);
            RecipeBase.Recipe.AssignClassifierToRecipe(name);

            console.LaunchConsole();
            console.SelectArchitecture(name);
            //inspectionSetup.SetRollInInspectionSetup(name);
            inspectionSetup.SetRollAndLoadAndStartInspection(name);
            console.CloseSystemWarningsWindow();
            console.MaximizeConsoleWindow();
        }