Here is an example setup for how to execute webtests within cruisecontrol. Of interest should be the <log> portion where I merge the transformed webtestresults into cruisecontrol's log file. This is how you get webtest results through cruisecontrol emails. The next step to notice is that I publish the actual webtest results (at the bottom of the target).
This allows a developer to get a summary email which looks like this: http://webtest-community.canoo.com/jira/secure/attachment/10422/screenshot.GIF The developer when seeing tests failed can then go to cruisecontrol and view the published webtest results. Easy as pie. 1) In config.xml define something like this: <project name="ESO-trunk-web-tests" buildafterfailed="false"> <listeners> <currentbuildstatuslistener file="logs/${project.name}/status.txt"/> </listeners> <!-- Bootstrappers are run every time the build runs, *before* the modification checks --> <bootstrappers> </bootstrappers> <!-- Defines where cruise looks for changes, to decide whether to run the build --> <modificationset quietperiod="60"> <cvs localworkingcopy="work_dir/${project.name}/checkout/snm/build"/> </modificationset> <schedule interval="300"> <ant anthome="apache-ant-1.6.5" buildfile="work_dir/build-eso-trunk-web-tests.xml" uselogger="true" usedebug="false" time="2000"/> </schedule> <log logdir="logs/${project.name}"> <merge file="work_dir/${project.name}/checkout/snm/build/cvs_diff.xml"/> <merge file="work_dir/${project.name}/checkout/esotest/WebTest/ESO/results/CCwebtestResults.xml"/> <gzip every="1" unit="WEEK"/> <delete every="3" unit="WEEK"/> </log> <!-- Publishers are run *after* a build completes --> <publishers> <htmlemail mailhost="mail-relay" returnaddress="[EMAIL PROTECTED]" buildresultsurl="http://ptscorp-bld02:8080/buildresults/ESO-trunk-web-tests" skipusers="true" spamwhilebroken="true" xsldir="webapps\cruisecontrol\xsl" css="webapps\cruisecontrol\css\cruisecontrol.css" logdir="logs/${project.name}" subjectprefix="[CruiseControl]"> <always address="[EMAIL PROTECTED]"/> <parameter name="viewcvs.url" value="http://fisheye/browse/MainRepo/snm/" /> <parameter name="xslt.viewcvs.url" value="http://fisheye/browse/MainRepo/snm/" /> </htmlemail> <artifactspublisher file="work_dir/${project.name}/checkout/snm/build/source/sql/buildUpdates.sql" dest="artifacts/${project.name}"/> <artifactspublisher file="work_dir/${project.name}/checkout/snm/build/source/sql/nextBuildPatchUpdate-run.sql" dest="artifacts/${project.name}"/> <artifactspublisher file="work_dir/${project.name}/checkout/snm/build/source/sql/SQLSERVER-create.sql" dest="artifacts/${project.name}"/> <artifactspublisher file="work_dir/${project.name}/checkout/snm/build/source/sql/SQLSERVER-grant.sql" dest="artifacts/${project.name}"/> <artifactspublisher file="work_dir/${project.name}/checkout/snm/build/source/sql/sqlserver.sql" dest="artifacts/${project.name}"/> <artifactspublisher file="work_dir/${project.name}/checkout/snm/build/bin/ServiceNetworkManagement.ear" dest="artifacts/${project.name}"/> <artifactspublisher file="C:\Java\jboss-4.0.5.GA\server\all\log\server.log" dest="artifacts/${project.name}"/> <artifactspublisher dir="work_dir/${project.name}/checkout\esotest\WebTest\ESO\results" dest="artifacts/${project.name}"/> </publishers> </project> -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of dariusch Sent: Monday, November 26, 2007 10:33 AM To: [email protected] Subject: RE: [Webtest] How to run Canoo Webtests inside cruise control? Hello, ok i understand. it is possible to show me how do you do that? I don't know how to merge the test results an display through cruise control. Thanks for help, Dariusch ruel loehr wrote: > > You need to modify your cruisecontrol script to merge in an xml file if > you want results to display through cruisecontrol. (e.g. receiving them > in email) > > You will not get the webtest results in their standard report form > without hacking cruisecontrol. I personally merge in my basic test > results and then also publish the beautiful webtest results on the > cruisecontrol page. > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of dariusch > Sent: Monday, November 26, 2007 10:14 AM > To: [email protected] > Subject: RE: [Webtest] How to run Canoo Webtests inside cruise control? > > > Hello, > > right now, after the build (Testbuild) is complete i have a result.xml > file > that includ all my testresults. if i do this: > > <target name="format-canoo-results" description="Formats the Canoo > Results > file into an Html Page"> > <xslt in="${resultsPath}/results/results.xml" > out="${resultsPath}/results/formattedCanooResults.html" > destdir="${resultsPath}/results" > style="${resultsPath}/webtests.xsl"> > > > </xslt> > </target> > > i have a html file that shows me all results in a beautiful view. Is > this > the junit result? how and what i have to merge, the result.xml file? or > is > the result.html that what i need to integrate this inside the cruise > control > resultset? right now i build all over ant, but i want to do this > automaticaly -> over cc. > > thanks, > Dariusch > > > ruel loehr wrote: >> >> >> Read this thread: >> >> > http://www.nabble.com/CruiseControl-reporting-integration-tf4793592.html >> #a13713390 >> >> >> I created an xsl transformation which will take webtest results and >> transform them into junit results. Its attached to the jira. >> >> Setup you're webtest project. Once it runs and builds the webtest xml >> use the before mentioned xslt to transform it. Then with > cruisecontrol, >> just merge in the newly transformed xml and voila, you beautiful >> results. >> >> Post here if you have issues. I monitor this list. >> >> -----Original Message----- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On Behalf Of dariusch >> Sent: Monday, November 26, 2007 9:20 AM >> To: [email protected] >> Subject: [Webtest] How to run Canoo Webtests inside cruise control? >> >> >> Hello, >> >> i just want to run my canoo webtests inside cruise control after i > build >> and >> start my application. i found some links >> >> http://lists.canoo.com/pipermail/webtest/2004q2/001763.html Link1: >> > http://www.nabble.com/WebTest-Result-not-display-in-Build-Results....-tf >> 4467894.html#a12739431 >> Link2: >> >> but they are not realy helpful. What i have to do, if i want to run > and >> to >> display my tests in the resultset from cruise control. >> >> Thanks a lot, >> Dariusch >> -- >> View this message in context: >> > http://www.nabble.com/How-to-run-Canoo-Webtests-inside-cruise-control--t >> f4875772.html#a13951619 >> Sent from the WebTest mailing list archive at Nabble.com. >> >> _______________________________________________ >> WebTest mailing list >> [email protected] >> http://lists.canoo.com/mailman/listinfo/webtest >> _______________________________________________ >> WebTest mailing list >> [email protected] >> http://lists.canoo.com/mailman/listinfo/webtest >> >> > > -- > View this message in context: > http://www.nabble.com/How-to-run-Canoo-Webtests-inside-cruise-control--t > f4875772.html#a13952604 > Sent from the WebTest mailing list archive at Nabble.com. > > _______________________________________________ > WebTest mailing list > [email protected] > http://lists.canoo.com/mailman/listinfo/webtest > _______________________________________________ > WebTest mailing list > [email protected] > http://lists.canoo.com/mailman/listinfo/webtest > > -- View this message in context: http://www.nabble.com/How-to-run-Canoo-Webtests-inside-cruise-control--tf4875772.html#a13953011 Sent from the WebTest mailing list archive at Nabble.com. _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.16.7/1152 - Release Date: 11/26/2007 10:50 AM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.16.7/1152 - Release Date: 11/26/2007 10:50 AM _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

