Exemplo n.º 1
0
 public void LoadRunsetConfigurations(string content, CLIHelper cliHelper, RunsetExecutor runsetExecutor)
 {
 }
Exemplo n.º 2
0
        public string CreateConfigurationsContent(Solution solution, RunsetExecutor runsetExecutor, CLIHelper cliHelper)
        {
            SCMOptions options = new SCMOptions();
            //options.Solution = solution.Folder;
            //options.Runset = runsetExecutor.RunSetConfig.Name;
            //options.Environment = runsetExecutor.RunsetExecutionEnvironment.Name;
            //options.RunAnalyzer = cliHelper.RunAnalyzer;
            //options.ShowAutoRunWindow = cliHelper.ShowAutoRunWindow;


            var args = CommandLine.Parser.Default.FormatCommandLine <SCMOptions>(options);

            // !!!!!!!!!!!!!!!!!!!
            // TODO: we want to move SCM to another verb/action !!!!!

            //if (cliHelper.DownloadUpgradeSolutionFromSourceControl == true)
            //{
            //    Args += string.Format(" --sourceControlType {0}" , solution.SourceControl.GetSourceControlType.ToString());
            //    if (solution.SourceControl.GetSourceControlType == SourceControlBase.eSourceControlType.SVN)//added for supporting Jenkins way of config creation- need to improve it
            //    {
            //        string modifiedURI = solution.SourceControl.SourceControlURL.TrimEnd(new char[] { '/' });
            //        int lastSlash = modifiedURI.LastIndexOf('/');
            //        modifiedURI = (lastSlash > -1) ? modifiedURI.Substring(0, lastSlash) : modifiedURI;
            //        Args += string.Format(" --sourceControlUrl {0}", modifiedURI);
            //    }
            //    else
            //    {
            //        Args += string.Format(" --sourceControlUrl {0}", solution.SourceControl.SourceControlURL);
            //    }
            //    Args += string.Format(" --sourceControlUser {0}" , solution.SourceControl.SourceControlUser);
            //    Args += string.Format(" --sourceControlPassword {0}" , EncryptionHandler.EncryptwithKey(solution.SourceControl.SourceControlPass));
            //    Args += string.Format(" --sourceControlPasswordEncrypted {0}" , "Y");
            //    if (solution.SourceControl.GetSourceControlType == SourceControlBase.eSourceControlType.GIT && solution.SourceControl.SourceControlProxyAddress.ToLower().ToString() == "true")
            //    {
            //        Args += string.Format(" --sourceControlProxyServer {0}" , solution.SourceControl.SourceControlProxyAddress.ToString());
            //        Args += string.Format(" --sourceControlProxyPort {0}" , solution.SourceControl.SourceControlProxyPort.ToString());
            //    }
            //}

            return(args);
        }
Exemplo n.º 3
0
 public void LoadGeneralConfigurations(string content, CLIHelper cliHelper)
 {
     mScriptFile = content;
 }
Exemplo n.º 4
0
 public void LoadGeneralConfigurations(string args, CLIHelper cliHelper)
 {
 }
Exemplo n.º 5
0
        public string CreateConfigurationsContent(Solution solution, RunsetExecutor runsetExecutor, CLIHelper cliHelper)
        {
            string txt = string.Format("OpenSolution(@\"{0}\");", solution.Folder) + Environment.NewLine;

            txt += string.Format("OpenRunSet(\"{0}\",\"{1}\");", runsetExecutor.RunSetConfig.Name, runsetExecutor.RunsetExecutionEnvironment.Name) + Environment.NewLine;
            txt += "CreateExecutionSummaryJSON(\"FILENAME\");" + Environment.NewLine;
            //txt += "if (Pass)" + Environment.NewLine;
            //txt += "{" + Environment.NewLine;
            //txt += "SendEmail()" + Environment.NewLine;
            //txt += "}" + Environment.NewLine;
            return(txt);
        }
 public RunSetAutoRunConfiguration(Solution solution, RunsetExecutor runsetExecutor, CLIHelper cliHelper)
 {
     mSolution       = solution;
     mRunsetExecutor = runsetExecutor;
     mCLIHelper      = cliHelper;
 }
Exemplo n.º 7
0
 public void LoadRunsetConfigurations(string content, CLIHelper cliHelper, RunsetExecutor runsetExecutor)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 8
0
 public void LoadGeneralConfigurations(string content, CLIHelper cliHelper)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 9
0
 public string CreateConfigurationsContent(Solution solution, RunsetExecutor runsetExecutor, CLIHelper cliHelper)
 {
     //zzz !!!!!!
     func1(@"C:\Yaron\AQE 2019\Ginger\DynamicRunSet.xlsx", "2 lines");
     return("aaa");
 }