/// <summary> /// Builds the complete arguments for invoking newman /// </summary> /// <param name="args">The argument builder.</param> public void Build(ProcessArgumentBuilder args) { if (EnvironmentFile != null) { args.AppendSwitchQuoted(ArgumentNames.Environment, EnvironmentFile.FullPath); } if (DataFile != null) { args.AppendSwitchQuoted(ArgumentNames.Data, DataFile.FullPath); } if (GlobalVariablesFile != null) { args.AppendSwitchQuoted(ArgumentNames.Globals, GlobalVariablesFile.FullPath); } if (!string.IsNullOrWhiteSpace(Folder)) { args.AppendSwitchQuoted(ArgumentNames.Folder, Folder); } if (ExportEnvironmentPath != null) { args.AppendSwitchQuoted(ArgumentNames.ExportEnvironment, ExportEnvironmentPath.FullPath); } if (ExportGlobalsPath != null) { args.AppendSwitchQuoted(ArgumentNames.ExportGlobals, ExportGlobalsPath.FullPath); } if (ExportCollectionPath != null) { args.AppendSwitchQuoted(ArgumentNames.ExportCollection, ExportCollectionPath.FullPath); } if (RequestTimeout != default(int)) { args.AppendSwitch(ArgumentNames.RequestTimeout, RequestTimeout.ToString()); } if (ScriptTimeout != default(int)) { args.AppendSwitch(ArgumentNames.ScriptTimeout, ScriptTimeout.ToString()); } if (DisableStrictSSL) { args.Append(ArgumentNames.Insecure); } if (IgnoreRedirects) { args.Append(ArgumentNames.IgnoreRedirects); } if (RequestDelay != default(int)) { args.AppendSwitch(ArgumentNames.RequestDelay, RequestDelay.ToString()); } if (IterationCount != default(int)) { args.AppendSwitch(ArgumentNames.IterationCount, IterationCount.ToString()); } if (ExitOnFirstFailure) { args.Append(ArgumentNames.Bail); } if (Reporters.Any()) { args.AppendSwitch(ArgumentNames.Reporters, string.Join(",", Reporters.Keys.Select(k => k.Trim()))); foreach (var reporter in Reporters) { reporter.Value?.RenderOptions(args); } } }
public string GetRowKey() { return(IterationCount.ToString() + "_" + StepCount.ToString()); }