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

已查看 691 次
跳至第一个未读帖子

DEEKSHA GOWDA

未读,
2011年7月21日 09:49:162011/7/21
收件人 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 ♔

未读,
2011年7月21日 12:58:562011/7/21
收件人 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

未读,
2016年7月14日 07:50:552016/7/14
收件人 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.
回复全部
回复作者
转发
0 个新帖子