Ejemplo n.º 1
0
        //TODO: move to Run SetAction
        private void SaveBFResults(ReportInfo RI, string folder, bool statusByGroupActivity)
        {
            TestNGResultReport TNGReport = new TestNGResultReport();
            string xml=TNGReport.CreateReport(RI, statusByGroupActivity);

            System.IO.File.WriteAllLines(folder + @"\testng-results.xml", new string[] { xml } );
            //TODO: let the user select file prefix
        }
Ejemplo n.º 2
0
        //TODO: move to Run SetAction
        private void SaveBFResults(ReportInfo RI, string folder, bool statusByGroupActivity)
        {
            if (DynamicParameters.Count > 0)
            {
                ValueExpression VE = new ValueExpression(RI.Environment, null);
                for (int i = 0; i < DynamicParameters.Count; i++)
                {
                    DynamicParameters[i].ValueForDriver = VE.Calculate(DynamicParameters[i].Value);
                }
            }
            TestNGResultReport TNGReport = new TestNGResultReport();
            string             xml       = TNGReport.CreateReport(RI, statusByGroupActivity, DynamicParameters);

            System.IO.File.WriteAllLines(folder + @"\testng-results.xml", new string[] { xml });
            //TODO: let the user select file prefix
        }