예제 #1
0
파일: TestSuite.cs 프로젝트: jeason0813/NBi
        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());
        }
예제 #2
0
파일: TestSuite.cs 프로젝트: jansaris/NBi
 public TestSuite()
 {
     TestSuiteManager = new XmlManager();
     TestSuiteFinder = new TestSuiteFinder();
     ConnectionStringsFinder = new ConnectionStringsFinder();
     ConfigurationFinder = new ConfigurationFinder();
 }
예제 #3
0
파일: TestSuite.cs 프로젝트: jeason0813/NBi
 protected TestSuite(XmlManager testSuiteManager, TestSuiteProvider testSuiteProvider, ConfigurationProvider configurationProvider, ConnectionStringsFinder connectionStringsFinder)
 {
     TestSuiteManager        = testSuiteManager;
     TestSuiteProvider       = testSuiteProvider;
     ConfigurationProvider   = configurationProvider;
     ConnectionStringsFinder = connectionStringsFinder;
 }
예제 #4
0
 public TestSuite()
 {
     TestSuiteManager        = new XmlManager();
     TestSuiteFinder         = new TestSuiteFinder();
     ConnectionStringsFinder = new ConnectionStringsFinder();
     ConfigurationFinder     = new ConfigurationFinder();
 }
예제 #5
0
파일: TestSuite.cs 프로젝트: kalyon/NBi
        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());
        }
예제 #6
0
파일: TestSuite.cs 프로젝트: zyh329/nbi
        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());
        }
예제 #7
0
파일: TestSuite.cs 프로젝트: jeason0813/NBi
 public TestSuite(TestSuiteProvider testSuiteProvider, ConfigurationProvider configurationProvider, ConnectionStringsFinder connectionStringsFinder)
     : this(new XmlManager(), testSuiteProvider, configurationProvider ?? new NullConfigurationProvider(), connectionStringsFinder)
 {
 }