예제 #1
0
        private static void AddBackground(IHasSteps background, ITestBase testCase)
        {
            if (background == null)
            {
                return;
            }

            StepHelper.AddSteps(testCase, background.Steps, SyncUtil.BackgroundPrefix, false);
        }
예제 #2
0
        internal static void UpdateTestcase(IHasSteps background, IHasSteps scenarioDefinition, ITestCase testCase)
        {
            var isScenarioOutline = scenarioDefinition is ScenarioOutline;

            AddBackground(background, testCase);
            StepHelper.AddSteps(testCase, scenarioDefinition?.Steps, "", isScenarioOutline);
            if (!isScenarioOutline)
            {
                return;
            }

            var scenarioOutline = (ScenarioOutline)scenarioDefinition;

            AddParameters(scenarioOutline, testCase);
        }