Пример #1
0
        private static async Task <ITest> ExecuteTestAsync(string test, ExecutionEnvironment executionEnvironment)
        {
            _log_.Info("Begin Executing test");
            var executionTest = await SeleniumTestLauncher.ExecuteTestFromJsonAsync(test, executionEnvironment);

            _log_.Info($"End Executing {executionTest.Name}");
            return(executionTest);
        }
Пример #2
0
        //[TestCase("Testbooks/Simple/HelloTalentConnectAndSearchWrong.json")]
        public void ExecuteTestFromFile(string jsonFile)
        {
            var envExecution = new ExecutionEnvironment()
            {
                OutputDirectoryLocation   = ".",
                ContextDirectoryLocation  = ".",
                SiteMapDirectoryLocation  = ".",
                ScenarioDirectoryLocation = "."
            };

            SeleniumTestLauncher.ExecuteTestFromJsonAsync(jsonFile, envExecution);
        }