Coded UI HTML Report Generator Utility API

I recently created a coded UI HTML reporter for creating HTML report of test execution

you can download it from the link it generated Report like the one in image

How to Use : 
Store all your result of every test case in a data table and at the end render that table into a HTML report 
Create a method to call functions of generate report API 
public static void generateHTMLReport()
            string nameofTC=null, process=null, status=null, curDay=null;
            string ex = null;
            DateTime thisDay = DateTime.Today;
            String curDay2 = thisDay.ToString();
            reportname = “coaded UI Script execution report” + curDay2;
            GenerateReports.Report.sReportName = “C:\\EOR data\\Results\\ReportGeneration.html”;
            foreach (DataRow row in resultLOG.Rows)
                nameofTC = row[“1”].ToString();
                process = row[“2”].ToString();
                status = row[“3”].ToString();
                curDay = row[“4”].ToString();
                ex = row[“5”].ToString();
                GenerateReports.Report.AppendReportHTML(nameofTC, process, status, “This test case was executed at :  ” + curDay + ” if script  failed exception log of coded UI is  *****************” + ex);

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s