///<summary> ///Runs the console. ///</summary> ///<param name="parameters">Console parameters</param> ///<param name="workingDir">Working directory of the console</param> public override void RunConsole(object[] parameters, string workingDir) { base.RunConsole(parameters, workingDir); LoggingService.EnterMethod(); if (!ValidationHelpers.ValidateToolInstalled(this)) { LoggingService.LeaveMethod(); return; } RunProcess runProcess = new RunProcess(); string[] paramStrings = new String[2]; paramStrings[0] = GetConsole(); if ((parameters != null) && (parameters.Length != 0)) { paramStrings[1] = (string) parameters[0]; } LoggingService.Info(String.Format(CultureInfo.InvariantCulture, "The param is {0}", paramStrings[1])); runProcess.OnConsoleOutput += OnConsoleOutput; runProcess.OnRunCompleted += OnRunCompleted; string result = runProcess.Run(paramStrings, workingDir); LoggingService.Info(String.Format(CultureInfo.InvariantCulture, "The result is {0}", result)); LoggingService.LeaveMethod(); }
/// <summary> ///Runs the console. /// </summary> /// <param name="aParams">Console parameters</param> /// <param name="aWorkingDir">Working directory of the console</param> public override void RunConsole(object[] aParams, string aWorkingDir) { base.RunConsole(aParams, aWorkingDir); LoggingService.EnterMethod(); if (!ValidationHelpers.ValidateToolInstalled(this)) { LoggingService.LeaveMethod(); return; } RunProcess _RunProcess = new RunProcess(); string[] _Params = new String[2]; _Params[0] = GetConsole(); if ((aParams != null) && (aParams.Length != 0)) { _Params[1] = (string) aParams[0]; } LoggingService.Info(String.Format(CultureInfo.InvariantCulture, "The param is {0}", _Params[1])); _RunProcess.OnConsoleOutput += OnConsoleOutput; _RunProcess.OnRunCompleted += OnRunCompleted; string result = _RunProcess.Run(_Params, aWorkingDir); LoggingService.Info(String.Format(CultureInfo.InvariantCulture, "The result is {0}", result)); LoggingService.LeaveMethod(); }
public override void RunGui(object[] aParams, string aWorkingDir) { if (!ValidationHelpers.ValidateToolInstalled(this)) { return; } RunProcess _RunProcess = new RunProcess(); string[] _Params = new String[2]; _Params[0] = GetGui(); if (aParams.Length > 0) { _Params[1] = (string) aParams[0]; } _RunProcess.Run(_Params, ""); }
/// <summary> /// Runs console. /// </summary> /// <param name="parameters">Parameters</param> /// <param name="workingDir">Working directory</param> public override void RunConsole(object[] parameters, string workingDir) { base.RunConsole(parameters, workingDir); if (!ValidationHelpers.ValidateToolInstalled(this)) { return; } RunProcess _RunProcess = new RunProcess(); string[] _Params = new String[3]; _Params[0] = GetConsole(); _Params[1] = (string) parameters[0]; _Params[2] = (string) parameters[1]; _RunProcess.OnConsoleOutput += OnConsoleOutput; //_RunProcess.OnRunCompleted += OnRunCompleted; _RunProcess.Run(_Params, ""); }
public override void RunConsole(object[] aParams, string aWorkingDir) { base.RunConsole(aParams, aWorkingDir); if (!ValidationHelpers.ValidateToolInstalled(this)) { return; } RunProcess _RunProcess = new RunProcess(); string[] _Params = new String[aParams.Length +1]; _Params[0] = ConsoleArgument; for (int i=0; i < aParams.Length; i++) { _Params[i + 1] = (string) aParams[i];} _RunProcess.OnConsoleOutput += OnConsoleOutput; _RunProcess.OnRunCompleted += OnRunCompleted; _RunProcess.Run(_Params, aWorkingDir); }
public override void RunConsole(object[] aParams, string aWorkingDir) { base.RunConsole(aParams, aWorkingDir); if (!ValidationHelpers.ValidateToolInstalled(this)) { return; } RunProcess _RunProcess = new RunProcess(); string[] _Params = new String[3]; _Params[0] = GetConsole(); _Params[1] = "/v /c"; if (aParams.Length > 0) { _Params[2] = "/p:" + (string) aParams[0]; } _RunProcess.OnConsoleOutput += OnConsoleOutput; _RunProcess.OnRunCompleted += OnRunCompleted; _RunProcess.Run(_Params, ""); }
/// <summary> /// Runs GUI. /// </summary> /// <param name="parameters">Parameters</param> /// <param name="workingDir">Working directory</param> public override void RunGui(object[] parameters, string workingDir) { if (!ValidationHelpers.ValidateToolInstalled(this)) { return; } RunProcess _RunProcess = new RunProcess(); string[] _Params = new String[2]; _Params[0] = GetGui(); _RunProcess.Run(_Params, ""); }
/// <summary> /// Runs GUI. /// </summary> /// <param name="parameters">Parameters</param> /// <param name="workingDir">Working directory</param> public override void RunGui(object[] parameters, string workingDir) { if (!ValidationHelpers.ValidateToolInstalled(this)) { return; } string _Assembly = (string) parameters[0]; string _Fixture = (string) parameters[1]; RunProcess _RunProcess = new RunProcess(); string[] _Params = new String[3]; _Params[0] = Gui; if (_Assembly != "") { //_Params[1] = "/assembly:" + _Assembly; _Params[1] = _Assembly; } if (_Fixture != "") { _Params[2] = "/fixture:" + _Fixture; } _RunProcess.Run(_Params, ""); }
/// <summary> /// Runs console. /// </summary> /// <param name="parameters">Parameters</param> /// <param name="workingDir">Working directory</param> public override void RunConsole(object[] parameters, string workingDir) { base.RunConsole(parameters, workingDir); if (!ValidationHelpers.ValidateToolInstalled(this)) { return; } string _Assembly = (string) parameters[0]; string _Fixture = (string) parameters[1]; RunProcess _RunProcess = new RunProcess(); string[] _Params = new String[4]; _Params[0] = Console; if (_Assembly != "") { //2.0 _Params[1] = "/assembly:" + _Assembly; _Params[1] = _Assembly; } if (_Fixture != "") { _Params[2] = "/fixture:" + _Fixture; } _Params[3] = "/xml:" + _Assembly + CommonConsts.XML_EXTENSION; _RunProcess.OnConsoleOutput += OnConsoleOutput; _RunProcess.OnRunCompleted += OnRunCompleted; _RunProcess.Run(_Params, ""); }
public override void RunGui(object[] aParams, string aWorkingDir) { if (!ValidationHelpers.ValidateToolInstalled(this)) { return; } RunProcess _RunProcess = new RunProcess(); string[] _Params = new String[1]; _Params[0] = Gui; _RunProcess.Run(_Params, aWorkingDir); }