示例#1
0
        internal void LoadCsv(string fullPath)
        {
            var action = new LoadCaseFromFileAction(fullPath);

            action.Execute(testCaseCollectionManager.CurrentScope);
            Reload();
            OnPropertyChanged("Variables");
        }
示例#2
0
文件: ActionTest.cs 项目: ywscr/NBi
        public void Execute_ManyActions_SuiteGenerated()
        {
            var state = new GenerationState();

            var loadCase = new LoadCaseFromFileAction(CsvFilename);

            loadCase.Execute(state);

            var loadTemplate = new LoadEmbeddedTemplateAction("ExistsDimension");

            loadTemplate.Execute(state);

            var generateSuite = new GenerateTestSuiteAction(false);

            generateSuite.Execute(state);

            var saveSuite = new SaveSuiteAction(TargetFilename);

            saveSuite.Execute(state);

            Assert.That(File.Exists(TargetFilename));
        }
示例#3
0
        public void Execute_ManyActions_SuiteGenerated()
        {
            var state = new GenerationState();

            var loadCase = new LoadCaseFromFileAction(CsvFilename);

            loadCase.Execute(state);

            var loadTemplate = new LoadTemplateAction(NBi.GenbiL.Action.LoadType.Predefined, "ExistsDimension");

            loadTemplate.Execute(state);

            var generateSuite = new GenerateSuiteAction(false);

            generateSuite.Execute(state);

            var saveSuite = new SaveSuiteAction(TargetFilename);

            saveSuite.Execute(state);

            Assert.That(File.Exists(TargetFilename));
        }