Example #1
0
        public override IMessages Run()
        {
            Messages messages = new Messages();

            string fileName = Path.Combine(Directory.GetCurrentDirectory(), this.AssemblyPath);

            if (!File.Exists(fileName))
            {
                messages.AddWarning(string.Format("The tester assembly {0} doesn't exist.", fileName));
                return(messages);
            }

            try
            {
                var nunitConsolePath = Path.Combine(RegistryUtilities.ReadDefaultValue(@"HKEY_CURRENT_USER\SOFTWARE\nunit.org\NUnit\2.5.7", "InstallDir"), @"bin\net-2.0\nunit-console.exe");

                if (!File.Exists(nunitConsolePath))
                {
                    messages.AddWarning(string.Format("The nunit console path {0} doesn't exist.", nunitConsolePath));
                    return(messages);
                }

                SystemUtilities.StartProcess(nunitConsolePath, string.Format("{0} /xml:{1}", fileName, this.OutputPath, this.HideWindow), 1000);

                messages = this.ReadMessages(this.OutputPath);
            }
            catch (Exception e)
            {
                messages.AddException(e);
            }

            return(messages);
        }
Example #2
0
        public override IMessages Run()
        {
            string parameters = string.Format(" -e:{0} -u:{1} -p:{2} -i:{3} -d:{4} ", this.Enviroment, this.Username, this.Password, this.IafPath, this.DmlPath);

            SystemUtilities.StartProcess("Tools.DmlRunner.exe", parameters, 1000);

            return(this.ReadMessages("Tools.DmlRunnerLog.xml"));
        }
Example #3
0
 public override IMessages Run()
 {
     return(SystemUtilities.StartProcess(this.ApplicationPath, this.ApplicationParameters, 1000));
 }