Esempio n. 1
0
        protected virtual void Terminate()
        {
            TestList.ForEach(x =>
            {
                if (!x.GetTest().HasEnded)
                {
                    var ex = new ExtentTestInterruptedException(InternalWarning);

                    x.GetTest().InternalWarning = InternalWarning;
                    x.Log(LogStatus.Fail, ex);

                    AddTest(x.GetTest());
                }
            });

            Flush();

            _reporterList.ForEach(x =>
            {
                x.Stop();
            });

            _reporterList.Clear();

            _terminated = true;
        }
Esempio n. 2
0
        protected virtual void Terminate()
        {
            TestList.ForEach(x =>
            {
                if (!x.GetTest().HasEnded)
                {
                    var ex = new ExtentTestInterruptedException(InternalWarning);

                    x.GetTest().InternalWarning = InternalWarning;
                    x.Log(LogStatus.Fail, ex);

                    AddTest(x.GetTest());
                }
            });

            Flush();

            _reporterList.ForEach(x =>
            {
                x.Stop();
            });

            _reporterList.Clear();

            _terminated = true;
        }