Пример #1
0
        /// <summary>

        /// Start a child test in the open test

        /// </summary>

        /// <param name="subTestName"></param>

        private static void StartStep(string stepName)

        {
            if (Test == null)
            {
                SubTest = TestsSuite.CreateNode(stepName);
            }

            else
            {
                SubTest = Test.CreateNode(stepName);
            }
        }
Пример #2
0
        /// <summary>

        /// Start a new test for the report, if there is no open suit the suit name will be as the test name

        /// </summary>

        /// <param name="testName">the name of the new test</param>

        public static void StartTest(string testName)

        {
            SubTest = null;

            if (testsSuite == null)
            {
                Test = Extent.CreateTest(testName);
            }

            //else

            Test = TestsSuite.CreateNode(testName);
        }