Fwd: TestNG emailable Reports to be displayed in Chronological order.

691 views
Skip to first unread message

DEEKSHA GOWDA

unread,
Jul 21, 2011, 9:49:16 AM7/21/11
to testng...@googlegroups.com


HI,
I am using  selenium RC for automating our GUI.. and for the reporting we are using tetsNG plugins.. using "textng.xml" and "build.xml"..

The target used for email report in "build.xml" is as below:

<!-- REPORT - generate execution reports in 4 formats: junitreport, testng-report, testng-emailable report, testng-xslt reoprt;
    Prior to that - calls STOP-SELENIUM-SERVER (this could be optional) -->
    <target name="report" depends="stop-selenium-server">
        <tstamp />

        <xslt in="${test.report}/testng-results.xml" style="${test.cnf}/testng-results.xsl" out="${test.report}/testng-xslt/index.html" classpathref="test.classpath" processor="SaxonLiaison">
            <param name="testNgXslt.outputDir" expression="${test.report}/testng-xslt/" />
            <param name="testNgXslt.sortTestCaseLinks" expression="true" />
            <param name="testNgXslt.testDetailsFilter" expression="FAIL,SKIP,PASS,CONF" />
            <param name="testNgXslt.cssFile" expression="custom.css" />
            <param name="testNgXslt.reportTitle" expression="GUI Regression Reports" />
        </xslt>

        <antcall target="junit-report" />

        <antcall target="email-report" />
    </target>

    <!-- JUNIT-REPORT - generate junit reports -->
    <target name="junit-report">
        <junitreport todir="${test.report}/junitreports">
            <fileset dir="${test.report}/junitreports">
                <include name="TEST-*.xml" />
            </fileset>
            <report todir="${test.report}/junitreports" styledir="${test.cnf}" format="frames">
                <param name="key1" expression="${DSTAMP}" />
                <param name="key2" expression="prototype" />
            </report>
        </junitreport>
    </target>

    <!-- EMAIL-REPORT - sends out a report via email -->
    <target name="email-report">
        <mail mailhost="relay-corp.ha.thomson.com" subject="GUI Framework Regression Summary (in Email)" messagemimetype="text/html" messagefile="${ws.home}/report/emailable-report.html">
            <from address="deek...@thomsonreuters.com" />
            <replyto address="deek...@thomsonreuters.com" />
            <to address="deek...@thomsonreuters.com" />
        </mail>
    </target>


My issue is :
I have a class and inside this class i have some 5 methods, each depending on the previous using testng "dependsOnMethod"..
When i see the execution order in eclipse its displayed in chronological order.

EX : TC1
        TC2
       TC3
        TC4
        TC5.

But the same when i get it as a email the order of methods are jumbled even though i have used testng "dependsOnMethod"..  Ex:
TC1
 TC3
TC4
TC2

Can you please provide me the solution to get  the email report in the order of execution?

Cédric Beust ♔

unread,
Jul 21, 2011, 12:58:56 PM7/21/11
to testng...@googlegroups.com
What version of TestNG are you using? I recently added chronological sorting in the testng-results.xml file, look up the archives for the past two weeks or so.

-- 
Cédric




--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To post to this group, send email to testng...@googlegroups.com.
To unsubscribe from this group, send email to testng-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.

Libor Bitala

unread,
Jul 14, 2016, 7:50:55 AM7/14/16
to testng-users, ced...@beust.com
Hi Cédric,

i know this topic is quite outdated, but -  do you plan to make also emailable-report.html in chronological order? I know there are ways ho can I custom the report by myself, but it woult be great to have it natively in the listerer.

Thank you.
Reply all
Reply to author
Forward
0 new messages