Ejemplo n.º 1
0
        protected void AddTest(Test Test)
        {
            this.Test = Test;

            Test.PrepareFinalize();

            Test.CategoryList.ForEach(x =>
            {
                if (!CategoryMap.ContainsKey(x.Name))
                {
                    CategoryMap.Add(x.Name, new List <Test>()
                    {
                        Test
                    });
                }
                else
                {
                    CategoryMap[x.Name].Add(Test);
                }
            });

            _reporterList.ForEach(x => x.AddTest());

            UpdateReportStatus(Test.Status);
        }
Ejemplo n.º 2
0
        protected void AddTest(Test Test)
        {
            EndTime = DateTime.Now;

            this.Test = Test;

            Test.PrepareFinalize();

            Test.CategoryList.ForEach(x =>
            {
                if (!CategoryMap.ContainsKey(x.Name))
                {
                    CategoryMap.Add(x.Name, new List <Test>()
                    {
                        Test
                    });
                }
                else
                {
                    CategoryMap[x.Name].Add(Test);
                }
            });

            Test.ExceptionList.ForEach(x =>
            {
                var ex = ExceptionUtil.GetExceptionHeadline(x);

                if (!ExceptionMap.ContainsKey(ex))
                {
                    ExceptionMap.Add(ex, new List <Test>()
                    {
                        Test
                    });
                }
                else
                {
                    ExceptionMap[ex].Add(Test);
                }
            });

            _reporterList.ForEach(x =>
            {
                x.AddTest(Test);
            });

            UpdateReportStatus(Test.Status);
        }