public void SetUp() { _argDll = @"-dll:C:\a\path\to\a\dll.dll"; _argProjectName = @"-project:aProjectName"; _argEnvrionmentUrl = @"-url:aEnvironmentUrl"; _argNamespaces = @"-namespace:Fourth.R9.SmokeTests.HR.Employees.CreateEmployee, Fourth.R9.SmokeTests.HR.Employees.EMPAudit"; _resultDll = @"C:\a\path\to\a\dll.dll"; _resultProjectName = @"aProjectName"; _resultEnvrionmentUrl = @"aEnvironmentUrl"; _argsThree = new[] { _argDll, _argProjectName, _argEnvrionmentUrl, }; _argsFour = new[] { _argDll, _argProjectName, _argEnvrionmentUrl, _argNamespaces }; _parallelTestRunner = new ParallelTestRunner(new TestResultManager()); }
private static void RunSectionOfTest(string periodInMinutes, string users, string environmentUrl, string projectName, List <TestToRun> listOfTestToRuns, IParallelTestRunner parallelTestRunner, TestRun testRun) { if (!string.IsNullOrWhiteSpace(periodInMinutes) && !string.IsNullOrWhiteSpace(users)) { var endTime = DateTime.Now.AddMinutes(Convert.ToInt32(periodInMinutes)); while (DateTime.Now < endTime) { for (int j = 0; j < Convert.ToInt32(users); j++) { testRun = parallelTestRunner.ExecutePerformanceTest(listOfTestToRuns, projectName, environmentUrl, testRun.TestRunIdentifier); } } } }