Exemple #1
0
        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());
        }
Exemple #2
0
 protected TestSuite(XmlManager testSuiteManager, TestSuiteProvider testSuiteProvider, ConfigurationProvider configurationProvider, ConnectionStringsFinder connectionStringsFinder)
 {
     TestSuiteManager        = testSuiteManager;
     TestSuiteProvider       = testSuiteProvider;
     ConfigurationProvider   = configurationProvider;
     ConnectionStringsFinder = connectionStringsFinder;
 }
Exemple #3
0
 public TestSuite(TestSuiteProvider testSuiteProvider, ConfigurationProvider configurationProvider, ConnectionStringsFinder connectionStringsFinder)
     : this(new XmlManager(), testSuiteProvider, configurationProvider ?? new NullConfigurationProvider(), connectionStringsFinder)
 {
 }
Exemple #4
0
 public TestSuite(TestSuiteProvider testSuiteProvider, ConfigurationProvider configurationProvider)
     : this(new XmlManager(), testSuiteProvider, configurationProvider ?? new NullConfigurationProvider(), null)
 {
 }
Exemple #5
0
 public TestSuite(XmlManager testSuiteManager, TestSuiteProvider testSuiteProvider)
     : this(testSuiteManager, testSuiteProvider, new NullConfigurationProvider(), new ConnectionStringsFinder())
 {
 }