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"); }
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"); }
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"); }