public CommonTestExecutor(ILog log, ITestStepFactory testStepFactory, IAttachmentCollector errorCollector, IWebDriverProvider webDriverProvider)
 {
     WebDriverProvider = webDriverProvider;
     TestStepFactory   = testStepFactory;
     ErrorCollector    = errorCollector;
     Log = log;
 }
 public ParallellTestExecutor(ILog log, ITestStepFactory testStepFactory, IAttachmentCollector errorCollector, ITestExecutorReporting reporting, IWebDriverProvider webDriverProvider)
 {
     _stop              = false;
     _errorCollector    = errorCollector;
     _testStepFactory   = testStepFactory;
     _reporting         = reporting;
     _logger            = log;
     _webDriverProvider = webDriverProvider;
 }
Esempio n. 3
0
        private TestStepCollection GetTestSteps(string definition, ITestStepFactory factory)
        {
            var steps = new TestStepCollection();

            if (!string.IsNullOrWhiteSpace(definition))
            {
                var split = definition.Split(new string[] { "\r", "\n" }, StringSplitOptions.RemoveEmptyEntries);
                foreach (var line in split)
                {
                    var testStep = factory.Create(line);
                    if (testStep != null)
                    {
                        steps.Add(testStep);
                    }
                }
            }

            return(steps);
        }
 public AsyncTestExecutor(ILog logger, ITestStepFactory testStepFactory, IAttachmentCollector errorCollector, IWebDriverProvider webDriverProvider)
     : base(logger, testStepFactory, errorCollector, webDriverProvider)
 {
     _logger = logger;
 }
Esempio n. 5
0
        public TestCaseExecution AddExecution(string definition, ITestCaseRepository repository, ITestStepFactory factory)
        {
            var timeStamp         = DateTime.Now.ToTimeStamp();
            var testCaseExecution = new TestCaseExecution();

            testCaseExecution.Name  = $"TestCase_{timeStamp}";
            testCaseExecution.Steps = GetTestSteps(definition, factory);

            repository.AddExecution(this.Name, testCaseExecution);
            this.executions.Insert(0, testCaseExecution);

            return(testCaseExecution);
        }