Пример #1
0
        public static void OpenWorkspace(string solutionPath, UITestBase testContext = null)
        {
            testContext?.ReproStep(string.Format("Open solution path '{0}'", solutionPath));
            Action <string> takeScreenshot = GetScreenshotAction(testContext);

            Session.GlobalInvoke("MonoDevelop.Ide.IdeApp.Workspace.OpenWorkspaceItem", new FilePath(solutionPath), true);
            Ide.WaitForIdeIdle();
            takeScreenshot("Solution-Opened");
        }
Пример #2
0
        public static void StartSession(string file = null, string profilePath = null, string args = null)
        {
            Session = new AutoTestClientSession();

            Session.StartApplication(file: file, args: args, environment: new Dictionary <string, string> {
                { "MONODEVELOP_PROFILE", profilePath ?? Util.CreateTmpDir("profile") }
            });

            Session.SetGlobalValue("MonoDevelop.Core.Instrumentation.InstrumentationService.Enabled", true);
            Session.GlobalInvoke("MonoDevelop.Ide.IdeApp.Workbench.GrabDesktopFocus");
        }
Пример #3
0
        public static void StartSession(string monoDevelopBinPath = null, string profilePath = null)
        {
            Session = new AutoTestClientSession();

            //TODO: support for testing the installed app

            Session.StartApplication(file: monoDevelopBinPath, environment: new Dictionary <string, string> {
                { "MONODEVELOP_TEST_PROFILE", profilePath ?? Util.CreateTmpDir("profile") }
            });

            Session.SetGlobalValue("MonoDevelop.Core.Instrumentation.InstrumentationService.Enabled", true);
            Session.GlobalInvoke("MonoDevelop.Ide.IdeApp.Workbench.GrabDesktopFocus");
        }
Пример #4
0
        public static void StartSession()
        {
            Console.WriteLine("Starting application");

            Session = new AutoTestClientSession();

            //TODO: support for testing the installed app

            Session.StartApplication(environment: new Dictionary <string, string> {
                { "MONODEVELOP_TEST_PROFILE", Util.CreateTmpDir("profile") }
            });

            Session.GlobalInvoke("MonoDevelop.Ide.IdeApp.Workbench.GrabDesktopFocus");
        }
Пример #5
0
        public static void StartSession(string file = null, string profilePath = null, string logFile = null, string args = null, bool useNewEditor = true)
        {
            Session = new AutoTestClientSession();

            profilePath = profilePath ?? Util.CreateTmpDir("profile");

            var env = new Dictionary <string, string> {
                { "MONODEVELOP_PROFILE", profilePath },
                { "VISUALSTUDIO_PROFILE", profilePath },
                { "MONODEVELOP_LOG_FILE", logFile },
                { "MONODEVELOP_FILE_LOG_LEVEL", "UpToInfo" },
            };

            if (!useNewEditor)
            {
                Console.WriteLine("Using legacy editor");
                env.Add("MD_FEATURES_ENABLED", "AlwaysUseLegacyEditor");
            }

            Session.StartApplication(file: file, args: args, environment: env);

            Session.SetGlobalValue("MonoDevelop.Core.Instrumentation.InstrumentationService.Enabled", true);
            Session.GlobalInvoke("MonoDevelop.Ide.IdeApp.Workbench.GrabDesktopFocus");
        }