public CyberTester(ITestStorage testStorage, ITestCaseProcessorFactory testCaseProcessorFactory, ITestCaseContextFactory testCaseContextFactory, ITestCaseLoggerFactory testCaseLoggerFactory, ILoggerFactory loggerFactory, ISchedule <TestCase> schedule, IEnumerable <ITestCasesPreprocessor> testCasesPreProcessor = null) { _testStorage = testStorage; _testCasesPreProcessors = testCasesPreProcessor ?? Enumerable.Empty <ITestCasesPreprocessor>(); _testCaseLoggerFactory = testCaseLoggerFactory; _testCaseContextFactory = testCaseContextFactory; _testCaseProcessorFactory = testCaseProcessorFactory; _loggerFactory = loggerFactory; _schedule = schedule; }
public TestSession(IEnumerable <ITestSession> customTestSessions, ITestCaseProcessorFactory testCaseProcessorFactory, ITestCaseLoggerFactory testCaseLoggerFactory, ILoggerFactory loggerFactory, IDictionary <string, string> options, ISchedule <TestCase> schedule, ITestCaseContextFactory testCaseContextFactory) { _results = new ConcurrentBag <TestCaseResult>(); _customTestSessions = customTestSessions; _testCaseProcessorFactory = testCaseProcessorFactory; _logger = loggerFactory.CreateLogger <TestSession>(); Options = new ReadOnlyDictionary <string, string>(options); _schedule = schedule; _tasks = new List <Task>(); _cancellationToken = Task.Factory.CancellationToken; _testCaseContextFactory = testCaseContextFactory; }
public static IEnumerable <ResolvableItemDescription> GetActionDescriptions(this TestCase testCase, ITestCaseProcessorFactory factory) { var processor = factory.GetProcessor(testCase); try { var pipelineProcessor = processor as IActionPipelineProcessor; if (pipelineProcessor != null) { return(pipelineProcessor.ActionDecsriptions); } return(Enumerable.Empty <ResolvableItemDescription>()); } finally { factory.Release(processor); } }