public static void ClassInit(TestContext context) { RepositoryItemHelper.RepositoryItemFactory = new RepositoryItemFactory(); mBF = new BusinessFlow(); mBF.Activities = new ObservableList <Activity>(); mBF.Name = "BF Non-Driver Action Test"; mBF.Active = true; Activity activity = new Activity(); mBF.Activities.Add(activity); mBF.CurrentActivity = activity; mGR = new GingerRunner(); mGR.CurrentSolution = new Ginger.SolutionGeneral.Solution(); mGR.CurrentBusinessFlow = mBF; mGR.BusinessFlows.Add(mBF); Reporter.ToLog(eLogLevel.DEBUG, "Creating the GingerCoreNET WorkSpace"); WorkSpaceEventHandler WSEH = new WorkSpaceEventHandler(); WorkSpace.Init(WSEH); WorkSpace.Instance.SolutionRepository = GingerSolutionRepository.CreateGingerSolutionRepository(); }
public void TestInitialize() { BusinessFlow mBF = new BusinessFlow(); mBF.Activities = new ObservableList <Activity>(); mBF.Name = "BF Non-Driver Action Test"; mBF.Active = true; Activity activity = new Activity(); mBF.Activities.Add(activity); mBF.CurrentActivity = activity; mGR = new GingerExecutionEngine(new GingerRunner()); mGR.CurrentSolution = new Ginger.SolutionGeneral.Solution(); mGR.CurrentBusinessFlow = mBF; mGR.BusinessFlows.Add(mBF); Reporter.ToLog(eLogLevel.DEBUG, "Creating the GingerCoreNET WorkSpace"); WorkSpaceEventHandler WSEH = new WorkSpaceEventHandler(); WorkSpace.Init(WSEH); WorkSpace.Instance.SolutionRepository = GingerSolutionRepository.CreateGingerSolutionRepository(); isOSWindows = RuntimeInformation.IsOSPlatform(OSPlatform.Windows); }
public static void ClassInitialize(TestContext TC) { Reporter.ToLog(eLogLevel.DEBUG, "Creating the GingerCoreNET WorkSpace"); WorkSpaceEventHandler WSEH = new WorkSpaceEventHandler(); WorkSpace.Init(WSEH); string TempSolutionFolder = TestResources.GetTestTempFolder(@"Solutions" + Path.DirectorySeparatorChar + "APIModelsComparisonUtilityTest"); if (Directory.Exists(TempSolutionFolder)) { Directory.Delete(TempSolutionFolder, true); } WorkSpace.Instance.SolutionRepository = GingerSolutionRepository.CreateGingerSolutionRepository(); WorkSpace.Instance.SolutionRepository.CreateRepository(TempSolutionFolder); NewRepositorySerializer RS = new NewRepositorySerializer(); NewRepositorySerializer.AddClassesFromAssembly(typeof(ApplicationAPIModel).Assembly); WorkSpace.Instance.SolutionRepository.Open(TempSolutionFolder); // Initialize ApplicationAPIModels XML file names to be fetched from TestResources xmlFiles = new List <string>() { @"Repository" + Path.DirectorySeparatorChar + "SampleAPIModels" + Path.DirectorySeparatorChar + "Create_User.Ginger.ApplicationAPIModel.xml", @"Repository" + Path.DirectorySeparatorChar + "SampleAPIModels" + Path.DirectorySeparatorChar + "Delete_User.Ginger.ApplicationAPIModel.xml", @"Repository" + Path.DirectorySeparatorChar + "SampleAPIModels" + Path.DirectorySeparatorChar + "PhoneVerifySOAP_CheckPhoneNumber.Ginger.ApplicationAPIModel.xml", @"Repository" + Path.DirectorySeparatorChar + "SampleAPIModels" + Path.DirectorySeparatorChar + "Update_User.Ginger.ApplicationAPIModel.xml", @"Repository" + Path.DirectorySeparatorChar + "SampleAPIModels" + Path.DirectorySeparatorChar + "PhoneVerifySOAP_CheckPhoneNumbers.Ginger.ApplicationAPIModel.xml", @"Repository" + Path.DirectorySeparatorChar + "SampleAPIModels" + Path.DirectorySeparatorChar + "GetQuote_DelayedStockQuoteSoap.Ginger.ApplicationAPIModel.xml", }; existingAPIsList = new ObservableList <ApplicationAPIModel>(); learnedAPIsList = new List <ApplicationAPIModel>(); // Importing API Models from XML files (listed in xmlFiles) foreach (String fileName in xmlFiles) { var tempFile = TestResources.GetTestResourcesFile(fileName); ApplicationAPIModel appModel = RS.DeserializeFromFile(typeof(ApplicationAPIModel), tempFile) as ApplicationAPIModel; appModel.FilePath = appModel.Name;//so it will get new file path when been added to repository later if (appModel != null) { existingAPIsList.Add(appModel); learnedAPIsList.Add(appModel.CreateCopy() as ApplicationAPIModel); } } // Modifying certain API Models for testing different Comparison status and scenarios existingAPIsList[1].RequestBody = existingAPIsList[1].RequestBody + "This is modified"; existingAPIsList[3].RequestBody = existingAPIsList[3].RequestBody + "This is also modified"; // Storing the API Models in the Solution Repository as will be utilized during Comparison process foreach (ApplicationAPIModel apiModel in existingAPIsList.Skip(1).Take(4)) { WorkSpace.Instance.SolutionRepository.AddRepositoryItem(apiModel); } }
internal static void CreateWorkspace2() { WorkSpaceEventHandler WSEH = new WorkSpaceEventHandler(); WorkSpace.Init(WSEH); WorkSpace.Instance.RunningFromUnitTest = true; WorkSpace.Instance.InitWorkspace(new GingerUnitTestWorkspaceReporter(), new UnitTestRepositoryItemFactory()); }
static void InitWS() { // TODO: check if ws is null WorkSpaceEventHandler WSEH = new WorkSpaceEventHandler(); WorkSpace.Init(WSEH); WorkSpace.Instance.RunningFromUnitTest = true; WorkSpace.Instance.InitWorkspace(new GingerUnitTestWorkspaceReporter(), new UnitTestRepositoryItemFactory()); }
internal static SolutionRepository CreateWorkspaceAndOpenSolution(string path) { WorkSpaceEventHandler WSEH = new WorkSpaceEventHandler(); WorkSpace.Init(WSEH); WorkSpace.Instance.RunningFromUnitTest = true; WorkSpace.Instance.SolutionRepository = GingerSolutionRepository.CreateGingerSolutionRepository(); WorkSpace.Instance.SolutionRepository.Open(path); return(WorkSpace.Instance.SolutionRepository); }
public static void ClassInit(TestContext context) { SeleniumDriver mDriver = null; mGR = new GingerRunner(); mGR.CurrentSolution = new Ginger.SolutionGeneral.Solution(); mBF = new BusinessFlow(); mBF.Activities = new ObservableList <Activity>(); mBF.Name = "BF Test Screen Shot Action"; mBF.Active = true; Activity activity = new Activity(); mBF.Activities.Add(activity); mBF.CurrentActivity = activity; Platform p = new Platform(); p.PlatformType = ePlatformType.Web; mBF.TargetApplications.Add(new TargetApplication() { AppName = "WebApp" }); mBF.CurrentActivity.TargetApplication = "WebApp"; mDriver = new SeleniumDriver(GingerCore.Drivers.SeleniumDriver.eBrowserType.Chrome); mDriver.AutoDetect = true; mDriver.HttpServerTimeOut = 60; mDriver.StartDriver(); Agent a = new Agent(); a.Active = true; a.Driver = mDriver; a.DriverType = Agent.eDriverType.SeleniumChrome; mGR.SolutionAgents = new ObservableList <Agent>(); mGR.SolutionAgents.Add(a); ApplicationAgent AA = new ApplicationAgent(); AA.AppName = "WebApp"; AA.Agent = a; mGR.ApplicationAgents.Add(AA); mGR.CurrentBusinessFlow = mBF; mGR.SetCurrentActivityAgent(); // use helper !!!! Reporter.ToLog(eLogLevel.DEBUG, "Creating the GingerCoreNET WorkSpace"); WorkSpaceEventHandler WSEH = new WorkSpaceEventHandler(); WorkSpace.Init(WSEH); WorkSpace.Instance.SolutionRepository = GingerSolutionRepository.CreateGingerSolutionRepository(); }
public static void ClassInit(TestContext context) { mBF = new BusinessFlow(); mBF.Activities = new ObservableList <Activity>(); mBF.Name = "Output Simulation"; mBF.Active = true; Platform p = new Platform(); p.PlatformType = ePlatformType.WebServices; wsAgent = new Agent(); AgentOperations agentOperations = new AgentOperations(wsAgent); wsAgent.AgentOperations = agentOperations; wsAgent.DriverType = Agent.eDriverType.WebServices; ((AgentOperations)wsAgent.AgentOperations).Driver = mDriver; ApplicationAgent mAG = new ApplicationAgent(); mAG.Agent = wsAgent; if (WorkSpace.Instance.Solution != null) { WorkSpace.Instance.Solution.LoggerConfigurations.SelectedDataRepositoryMethod = Ginger.Reports.ExecutionLoggerConfiguration.DataRepositoryMethod.TextFile; } mGR = new GingerRunner(); mGR.Executor = new GingerExecutionEngine(mGR); ((GingerExecutionEngine)mGR.Executor).SolutionAgents = new ObservableList <Agent>(); ((GingerExecutionEngine)mGR.Executor).SolutionAgents.Add(wsAgent); mGR.Executor.BusinessFlows.Add(mBF); WorkSpaceEventHandler WSEH = new WorkSpaceEventHandler(); WorkSpace.Init(WSEH); if (WorkSpace.Instance.Solution == null) { WorkSpace.Instance.Solution = new Solution(); } if (WorkSpace.Instance.Solution.SolutionOperations == null) { WorkSpace.Instance.Solution.SolutionOperations = new SolutionOperations(WorkSpace.Instance.Solution); } }
static void CreateWorkspace() { WorkSpaceEventHandler WSEH = new WorkSpaceEventHandler(); WorkSpace.Init(WSEH); WorkSpace.Instance.RunningFromUnitTest = true; WorkSpace.Instance.InitWorkspace(new GingerUnitTestWorkspaceReporter(), new RepoCoreItem()); WorkSpace.Instance.OpenSolution(mSolutionFolder); WorkSpace.Instance.Solution.LoggerConfigurations.SelectedDataRepositoryMethod = Ginger.Reports.ExecutionLoggerConfiguration.DataRepositoryMethod.LiteDB; SolutionRepository SR = WorkSpace.Instance.SolutionRepository; RunsetExecutor runsetExecutor = new RunsetExecutor(); runsetExecutor.RunsetExecutionEnvironment = (from x in SR.GetAllRepositoryItems <ProjEnvironment>() where x.Name == "Default" select x).SingleOrDefault(); runsetExecutor.RunSetConfig = (from x in SR.GetAllRepositoryItems <RunSetConfig>() where x.Name == "Default Run Set" select x).SingleOrDefault(); WorkSpace.Instance.RunsetExecutor = runsetExecutor; WorkSpace.Instance.RunsetExecutor.InitRunners(); }
public static void ClassInit(TestContext context) { TargetFrameworkHelper.Helper = new DotNetFrameworkHelper(); mBF = new BusinessFlow(); mBF.Activities = new ObservableList <Activity>(); mBF.Name = "BF Non-Driver Action Test"; mBF.Active = true; Activity activity = new Activity(); mBF.Activities.Add(activity); mBF.CurrentActivity = activity; mGR = new GingerRunner(); mGR.Executor = new GingerExecutionEngine(mGR); mGR.Executor.CurrentSolution = new Ginger.SolutionGeneral.Solution(); mGR.Executor.CurrentBusinessFlow = mBF; mGR.Executor.BusinessFlows.Add(mBF); Reporter.ToLog(eLogLevel.DEBUG, "Creating the GingerCoreNET WorkSpace"); WorkSpaceEventHandler WSEH = new WorkSpaceEventHandler(); WorkSpace.Init(WSEH); WorkSpace.Instance.SolutionRepository = GingerSolutionRepository.CreateGingerSolutionRepository(); if (((Solution)mGR.Executor.CurrentSolution).SolutionOperations == null) { ((Solution)mGR.Executor.CurrentSolution).SolutionOperations = new SolutionOperations((Solution)mGR.Executor.CurrentSolution); } if (WorkSpace.Instance.Solution == null) { WorkSpace.Instance.Solution = (Solution)mGR.Executor.CurrentSolution; } if (WorkSpace.Instance.Solution.SolutionOperations == null) { WorkSpace.Instance.Solution.SolutionOperations = new SolutionOperations(WorkSpace.Instance.Solution); } }
public static void ClassInit(TestContext context) { mGR = new GingerRunner(); mGR.Executor = new GingerExecutionEngine(mGR); mBF = new BusinessFlow(); mBF.Activities = new ObservableList <Activity>(); mBF.Name = "DB Test"; mBF.Active = true; Activity activity = new Activity(); mBF.Activities.Add(activity); mBF.CurrentActivity = activity; mGR.Executor.CurrentBusinessFlow = mBF; WorkSpaceEventHandler WSEH = new WorkSpaceEventHandler(); WorkSpace.Init(WSEH); WorkSpace.Instance.SolutionRepository = GingerSolutionRepository.CreateGingerSolutionRepository(); }
public static void ClassInit(TestContext context) { AutoLogProxy.Init("NonUITests"); mBF = new BusinessFlow(); mBF.Activities = new ObservableList <Activity>(); mBF.Name = "BF WebServices Web API"; mBF.Active = true; Platform p = new Platform(); p.PlatformType = ePlatformType.WebServices; mBF.Platforms = new ObservableList <Platform>(); mBF.Platforms.Add(p); mDriver = new WebServicesDriver(mBF); mDriver.SaveRequestXML = true; mDriver.SavedXMLDirectoryPath = "~\\Documents"; wsAgent.DriverType = Agent.eDriverType.WebServices; wsAgent.Driver = mDriver; ApplicationAgent mAG = new ApplicationAgent(); mAG.Agent = wsAgent; mGR = new GingerRunner(); mGR.SolutionAgents = new ObservableList <Agent>(); mGR.SolutionAgents.Add(wsAgent); mGR.BusinessFlows.Add(mBF); Reporter.ToLog(eLogLevel.INFO, "Creating the GingerCoreNET WorkSpace"); WorkSpaceEventHandler WSEH = new WorkSpaceEventHandler(); WorkSpace.Init(WSEH); }
public static void ClassInitialize(TestContext TestContext) { WorkSpaceEventHandler WSEH = new WorkSpaceEventHandler(); WorkSpace.Init(WSEH); }
public static void ClassInit(TestContext context) { WorkSpaceEventHandler WSEH = new WorkSpaceEventHandler(); WorkSpace.Init(WSEH); // launch PB Test App if (proc == null || proc.HasExited) { proc = new System.Diagnostics.Process(); proc.StartInfo.FileName = @"pb_test_app.exe"; proc.StartInfo.WorkingDirectory = TestResources.GetTestResourcesFolder("PBTestApp"); Console.WriteLine(proc.StartInfo.WorkingDirectory); Console.WriteLine(proc.StartInfo.FileName); proc.Start(); GingerCore.General.DoEvents(); GingerCore.General.DoEvents(); } mGR = new GingerRunner(); mGR.CurrentSolution = new Ginger.SolutionGeneral.Solution(); mBF = new BusinessFlow(); mBF.Activities = new ObservableList <Activity>(); mBF.Name = "BF Test PB Driver"; Platform p = new Platform(); p.PlatformType = ePlatformType.PowerBuilder; mBF.TargetApplications.Add(new TargetApplication() { AppName = "PBTestAPP" }); Activity activity = new Activity(); activity.TargetApplication = "PBTestApp"; mBF.Activities.Add(activity); mBF.CurrentActivity = activity; mDriver = new PBDriver(mBF); mDriver.StartDriver(); Agent a = new Agent(); a.Active = true; a.Driver = mDriver; a.DriverType = Agent.eDriverType.PowerBuilder; mGR.SolutionAgents = new ObservableList <Agent>(); mGR.SolutionAgents.Add(a); ApplicationAgent AA = new ApplicationAgent(); AA.AppName = "PBTestApp"; AA.Agent = a; mGR.ApplicationAgents.Add(AA); mGR.CurrentBusinessFlow = mBF; mGR.SetCurrentActivityAgent(); // Do Switch Window, to be ready for actions ActSwitchWindow c = new ActSwitchWindow(); c.LocateBy = eLocateBy.ByTitle; c.LocateValueCalculated = "Simple Page"; c.WaitTime = 10; mDriver.RunAction(c); //if(c.Status.Value==eRunStatus.Failed) //{ // c = new ActSwitchWindow(); // c.LocateBy = eLocateBy.ByTitle; // c.LocateValueCalculated = "Simple Page"; // c.WaitTime = 10; // mDriver.RunAction(c); //} ActPBControl action = new ActPBControl(); action.LocateBy = eLocateBy.ByXPath; action.ControlAction = ActPBControl.eControlAction.SetValue; action.AddNewReturnParams = true; action.Wait = 4; action.LocateValueCalculated = "/[AutomationId:1001]"; action.Value = proc.StartInfo.WorkingDirectory = TestResources.GetTestResourcesFolder("PBTestApp") + @"\Browser.html"; action.Active = true; mBF.CurrentActivity.Acts.Add(action); mBF.CurrentActivity.Acts.CurrentItem = action; //Act mGR.RunAction(action, false); action = new ActPBControl(); action.LocateBy = eLocateBy.ByName; action.ControlAction = ActPBControl.eControlAction.SetValue; action.LocateValueCalculated = "Launch Widget Window"; action.Active = true; mBF.CurrentActivity.Acts.Add(action); mBF.CurrentActivity.Acts.CurrentItem = action; //Act mGR.RunAction(action, false); c = new ActSwitchWindow(); c.LocateBy = eLocateBy.ByTitle; c.LocateValueCalculated = "CSM Widgets Test Applicaiton"; c.WaitTime = 10; mDriver.RunAction(c); string actual = ""; do { action = new ActPBControl(); action.LocateBy = eLocateBy.ByName; action.ControlAction = ActPBControl.eControlAction.IsExist; action.LocateValueCalculated = "Script Error"; action.AddNewReturnParams = true; action.Timeout = 10; action.Active = true; mBF.CurrentActivity.Acts.Add(action); mBF.CurrentActivity.Acts.CurrentItem = action; //Act mGR.RunAction(action, false); Assert.AreEqual(action.Status, eRunStatus.Passed, "Action Status"); actual = action.GetReturnParam("Actual"); if (actual.Equals("True")) { ActPBControl PbAct = new ActPBControl(); PbAct.LocateBy = eLocateBy.ByXPath; PbAct.ControlAction = ActPBControl.eControlAction.Click; PbAct.LocateValueCalculated = @"/Script Error/[LocalizedControlType:title bar]/Close"; PbAct.Active = true; mBF.CurrentActivity.Acts.Add(PbAct); mBF.CurrentActivity.Acts.CurrentItem = PbAct; mGR.RunAction(PbAct, false); } } while (actual.Equals("True")); //proceed for switch window and initialize browser c = new ActSwitchWindow(); c.LocateBy = eLocateBy.ByTitle; c.LocateValueCalculated = "CSM Widgets Test Applicaiton"; c.WaitTime = 2; mDriver.RunAction(c); int count = 1; ActBrowserElement actBrowser = new ActBrowserElement(); do { actBrowser.LocateBy = eLocateBy.ByXPath; actBrowser.LocateValue = @"/[AutomationId:1000]/[LocalizedControlType:pane]/[LocalizedControlType:pane]/[LocalizedControlType:pane]"; actBrowser.ControlAction = ActBrowserElement.eControlAction.InitializeBrowser; actBrowser.Wait = 2; actBrowser.Timeout = 10; actBrowser.Active = true; mBF.CurrentActivity.Acts.Add(actBrowser); mBF.CurrentActivity.Acts.CurrentItem = actBrowser; mGR.RunAction(actBrowser, false); count--; } while (actBrowser.Status.Equals(eRunStatus.Failed) && count > 0); if (actBrowser.Status.Equals(eRunStatus.Failed)) { Assert.AreEqual(actBrowser.Status, eRunStatus.Passed, "actBrowser.Status"); Assert.AreEqual(actBrowser.Error, null, "actBrowser.Error"); } }
public static void InitApp() { // Add event handler for handling non-UI thread exceptions. AppDomain currentDomain = AppDomain.CurrentDomain; currentDomain.UnhandledException += new UnhandledExceptionEventHandler(StandAloneThreadExceptionHandler); Reporter.WorkSpaceReporter = new GingerWorkSpaceReporter(); WorkSpaceEventHandler WSEH = new WorkSpaceEventHandler(); WorkSpace.Init(WSEH); string phase = string.Empty; RepositoryItemHelper.RepositoryItemFactory = new RepositoryItemFactory(); WorkSpace.Instance.BetaFeatures = BetaFeatures.LoadUserPref(); WorkSpace.Instance.BetaFeatures.PropertyChanged += BetaFeatureChanged; if (WorkSpace.Instance.BetaFeatures.ShowDebugConsole) { DebugConsoleWindow debugConsole = new DebugConsoleWindow(); debugConsole.ShowAsWindow(); WorkSpace.Instance.BetaFeatures.DisplayStatus(); } Reporter.ToLog(eLogLevel.INFO, "######################## Application version " + App.AppVersion + " Started ! ########################"); SetLoadingInfo("Init Application"); WorkSpace.AppVersion = App.AppShortVersion; // We init the classes dictionary for the Repository Serializer only once InitClassTypesDictionary(); // TODO: need to add a switch what we get from old ginger based on magic key phase = "Loading User Profile"; Reporter.ToLog(eLogLevel.DEBUG, phase); SetLoadingInfo(phase); WorkSpace.Instance.UserProfile = UserProfile.LoadUserProfile(); phase = "Configuring User Type"; Reporter.ToLog(eLogLevel.DEBUG, phase); SetLoadingInfo(phase); WorkSpace.Instance.UserProfile.LoadUserTypeHelper(); phase = "Loading User Selected Resource Dictionaries"; Reporter.ToLog(eLogLevel.DEBUG, phase); SetLoadingInfo(phase); if (WorkSpace.Instance.UserProfile != null) { LoadApplicationDictionaries(Amdocs.Ginger.Core.eSkinDicsType.Default, WorkSpace.Instance.UserProfile.TerminologyDictionaryType); } else { LoadApplicationDictionaries(Amdocs.Ginger.Core.eSkinDicsType.Default, GingerCore.eTerminologyType.Default); } Reporter.ToLog(eLogLevel.DEBUG, "Loading user messages pool"); UserMsgsPool.LoadUserMsgsPool(); StatusMsgsPool.LoadStatusMsgsPool(); Reporter.ToLog(eLogLevel.DEBUG, "Init the Centralized Auto Log"); AutoLogProxy.Init(App.AppVersion); Reporter.ToLog(eLogLevel.DEBUG, "Initializing the Source control"); SetLoadingInfo(phase); phase = "Loading the Main Window"; Reporter.ToLog(eLogLevel.DEBUG, phase); SetLoadingInfo(phase); AutoLogProxy.LogAppOpened(); // Register our own Ginger tool tip handler //--Canceling customize tooltip for now due to many issues and no real added value phase = "Application was loaded and ready"; Reporter.ToLog(eLogLevel.INFO, phase); mIsReady = true; }
public static void InitApp() { // Add event handler for handling non-UI thread exceptions. AppDomain currentDomain = AppDomain.CurrentDomain; currentDomain.UnhandledException += new UnhandledExceptionEventHandler(StandAloneThreadExceptionHandler); Reporter.WorkSpaceReporter = new GingerWorkSpaceReporter(); if (Environment.GetCommandLineArgs().Count() > 1) { // When running from unit test there are args, so we set a flag in GingerAutomator to make sure Ginger will Launch // and will not try to process the args for RunSet auto run if (RunningFromUnitTest) { // do nothing for now, but later on we might want to process and check auto run too } else { // This Ginger is running with run set config will do the run and close Ginger WorkSpace.RunningInExecutionMode = true; Reporter.ReportAllAlsoToConsole = true; //needed so all reportering will be added to Consol //Reporter.AppLogLevel = eAppReporterLoggingLevel.Debug;//needed so all reportering will be added to Log file } } string phase = string.Empty; RepositoryItemHelper.RepositoryItemFactory = new RepositoryItemFactory(); //Helper.RuntimeObjectFactory = new RuntimeObjectFactory(); AutomateTabGingerRunner = new GingerRunner(eExecutedFrom.Automation); WorkSpaceEventHandler WSEH = new WorkSpaceEventHandler(); WorkSpace.Init(WSEH); WorkSpace.Instance.BetaFeatures = BetaFeatures.LoadUserPref(); WorkSpace.Instance.BetaFeatures.PropertyChanged += BetaFeatureChanged; AutomateBusinessFlowEvent += App_AutomateBusinessFlowEvent; if (WorkSpace.Instance.BetaFeatures.ShowDebugConsole) { DebugConsoleWindow.Show(); WorkSpace.Instance.BetaFeatures.DisplayStatus(); } Reporter.ToLog(eLogLevel.INFO, "######################## Application version " + App.AppVersion + " Started ! ########################"); AppSplashWindow.LoadingInfo("Init Application"); WorkSpace.AppVersion = App.AppShortVersion; // We init the classes dictionary for the Repository Serializer only once InitClassTypesDictionary(); // TODO: need to add a switch what we get from old ginger based on magic key phase = "Loading User Profile"; Reporter.ToLog(eLogLevel.DEBUG, phase); AppSplashWindow.LoadingInfo(phase); WorkSpace.UserProfile = UserProfile.LoadUserProfile(); phase = "Configuring User Type"; Reporter.ToLog(eLogLevel.DEBUG, phase); AppSplashWindow.LoadingInfo(phase); WorkSpace.UserProfile.LoadUserTypeHelper(); phase = "Loading User Selected Resource Dictionaries"; Reporter.ToLog(eLogLevel.DEBUG, phase); AppSplashWindow.LoadingInfo(phase); if (WorkSpace.UserProfile != null) { LoadApplicationDictionaries(Amdocs.Ginger.Core.eSkinDicsType.Default, WorkSpace.UserProfile.TerminologyDictionaryType); } else { LoadApplicationDictionaries(Amdocs.Ginger.Core.eSkinDicsType.Default, GingerCore.eTerminologyType.Default); } Reporter.ToLog(eLogLevel.DEBUG, "Loading user messages pool"); UserMsgsPool.LoadUserMsgsPool(); StatusMsgsPool.LoadStatusMsgsPool(); Reporter.ToLog(eLogLevel.DEBUG, "Init the Centralized Auto Log"); AutoLogProxy.Init(App.AppVersion); Reporter.ToLog(eLogLevel.DEBUG, "Initializing the Source control"); AppSplashWindow.LoadingInfo(phase); phase = "Loading the Main Window"; Reporter.ToLog(eLogLevel.DEBUG, phase); AppSplashWindow.LoadingInfo(phase); MainWindow = new Ginger.MainWindow(); MainWindow.Show(); MainWindow.Init(); // If we have command line params process them and do not load MainWindow if (WorkSpace.RunningInExecutionMode == true) { HandleAutoRunMode(); } //AppSplashWindow.LoadingInfo("Ready!"); App.AppSplashWindow = null; AutoLogProxy.LogAppOpened(); if ((WorkSpace.UserProfile.Solution != null) && (WorkSpace.UserProfile.Solution.ExecutionLoggerConfigurationSetList != null)) { } // Register our own Ginger tool tip handler //--Canceling customize tooltip for now due to many issues and no real added value phase = "Application was loaded and ready"; Reporter.ToLog(eLogLevel.INFO, phase); mIsReady = true; }