Пример #1
0
 public async Task can_send_test_to_agent_where_test_has_no_agent()
 {
     var testConfiguration = new TestConfiguration(5, 10, 5, "BbcGetRequest", "PerformanceDsl.Tests.Tests");
     var testRun = new TestRun
     {
         DllThatContainsTestsPath = "C:\\Agent\\Tests\\PerformanceDsl.Tests.dll",
         TestRunIdentifier = Guid.NewGuid()
     };
     testRun.TestConfigurations.Add(testConfiguration);
     var test = new Test
     {
         Agent = null,
         TestRun = testRun
     };
     var testSuite = new TestSuite();
     testSuite.Tests.Add(test);
     var performanceServer = new PerformanceServer();
     await performanceServer.BeginTestRun(testSuite);
 }
Пример #2
0
 public async Task can_upload_dll_to_agent()
 {
     var testConfiguration = new TestConfiguration(5, 10, 5, "BbcGetRequest", "PerformanceDsl.Tests.Tests");
     var testRun = new TestRun
     {
         DllThatContainsTestsPath = "C:\\Agent\\Tests\\PerformanceDsl.Tests.dll",
         TestRunIdentifier = Guid.NewGuid()
     };
     testRun.TestConfigurations.Add(testConfiguration);
     var test = new Test
     {
         Agent = "localhost",
         TestRun = testRun
     };
     var testSuite = new TestSuite();
     testSuite.Tests.Add(test);
     testSuite.DllsThatNeedUploadingToAgent.Add(
         @"C:\git\PerformanceDsl\PerformanceDsl.Tests\PerformanceDsl.Tests\bin\Debug\PerformanceDsl.Tests.dll");
     var performanceServer = new PerformanceServer();
     await performanceServer.BeginTestRun(testSuite);
 }
Пример #3
0
 public async Task can_assign_multiple_aws_ips_testruns_that_dont_already_have_agent_ip()
 {
     var testConfiguration = new TestConfiguration(5, 10, 5, "BbcGetRequest", "PerformanceDsl.Tests.Tests");
     var testRun = new TestRun
     {
         DllThatContainsTestsPath = "C:\\Agent\\Tests\\PerformanceDsl.Tests.dll",
         TestRunIdentifier = Guid.NewGuid()
     };
     testRun.TestConfigurations.Add(testConfiguration);
     var test = new Test
     {
         Agent = null,
         TestRun = testRun
     };
     var testSuite = new TestSuite();
     testSuite.Tests.Add(test);
     test = new Test
     {
         Agent = null,
         TestRun = testRun
     };
     testSuite.Tests.Add(test);
     test = new Test
     {
         Agent = null,
         TestRun = testRun
     };
     testSuite.Tests.Add(test);
     var performanceServer = new PerformanceServer();
     await performanceServer.BeginTestRun(testSuite);
 }