public IEnumerable <TestCaseData> GetTestCases() { Trace.WriteLineIf(Extensibility.NBiTraceSwitch.TraceInfo, $"GetTestCases() has been called"); //Find configuration of NBi var config = ConfigurationProvider.GetSection(); ApplyConfig(config); //Find connection strings referecned from an external file if (ConnectionStringsFinder != null) { TestSuiteManager.ConnectionStrings = ConnectionStringsFinder.Find(); } //Service Locator if (serviceLocator == null) { Initialize(); } //Build the Test suite var testSuiteFilename = TestSuiteProvider.GetFilename(config.TestSuiteFilename); TestSuiteManager.Load(testSuiteFilename, SettingsFilename, AllowDtdProcessing); //Build the variables Variables = BuildVariables(TestSuiteManager.TestSuite.Variables, OverridenVariables); return(BuildTestCases()); }
public TestSuite() { TestSuiteManager = new XmlManager(); TestSuiteFinder = new TestSuiteFinder(); ConnectionStringsFinder = new ConnectionStringsFinder(); ConfigurationFinder = new ConfigurationFinder(); }
protected TestSuite(XmlManager testSuiteManager, TestSuiteProvider testSuiteProvider, ConfigurationProvider configurationProvider, ConnectionStringsFinder connectionStringsFinder) { TestSuiteManager = testSuiteManager; TestSuiteProvider = testSuiteProvider; ConfigurationProvider = configurationProvider; ConnectionStringsFinder = connectionStringsFinder; }
public IEnumerable <TestCaseData> GetTestCases() { //Find configuration of NBi if (ConfigurationFinder != null) { var config = ConfigurationFinder.Find(); ApplyConfig(config); } else { Trace.WriteLineIf(NBiTraceSwitch.TraceError, string.Format("No configuration-finder found.")); } //Find connection strings referecned from an external file if (ConnectionStringsFinder != null) { TestSuiteManager.ConnectionStrings = ConnectionStringsFinder.Find(); } //Build the Test suite var testSuiteFilename = TestSuiteFinder.Find(); TestSuiteManager.Load(testSuiteFilename, SettingsFilename, AllowDtdProcessing); return(BuildTestCases()); }
public IEnumerable <TestCaseData> GetTestCases() { //Find configuration of NBi if (ConfigurationFinder != null) { ApplyConfig(ConfigurationFinder.Find()); } //Find connection strings referecned from an external file if (ConnectionStringsFinder != null) { TestSuiteManager.ConnectionStrings = ConnectionStringsFinder.Find(); } //Build the Test suite var testSuiteFilename = TestSuiteFinder.Find(); TestSuiteManager.Load(testSuiteFilename, SettingsFilename, AllowDtdProcessing); return(BuildTestCases()); }
public TestSuite(TestSuiteProvider testSuiteProvider, ConfigurationProvider configurationProvider, ConnectionStringsFinder connectionStringsFinder) : this(new XmlManager(), testSuiteProvider, configurationProvider ?? new NullConfigurationProvider(), connectionStringsFinder) { }