public TestProvider(IEnumerable <IMachine> machines, IEnumerable <ITestDriver> drivers, RedisResultCollection results, string runId)
 {
     this.results  = results;
     this.runId    = runId;
     this.machines = machines;
     this.drivers  = drivers;
 }
Exemple #2
0
 public TestInvocationManager(RedisResultCollection results, MachineRepository machines, TestPlanRepository tpr, TestDriverManager testDriverManager)
 {
     this.results           = results;
     this.machines          = machines;
     this.testPlans         = tpr;
     this.testDriverManager = testDriverManager;
     worker = new Thread(Run);
 }
        void InitTestPlans()
        {
            var client = new RedisClient(TestVisorService.RedisUri);

            tpr = new TestPlanRepository(client, baseDirectory + "/TestPlans", "TestPlans");
            ResultsDirectory = baseDirectory + "/TestResults";
            results          = new RedisResultCollection(client, ResultsDirectory);

            tim = new TestInvocationManager(results, machines, tpr, testDriverManager);
            tim.Start();
        }