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?