Hi Jan, why don't you use a CI-System?
Using an Continouus Integration System like CruiseControl or Hudson (like we do) it is very simple to configure the webtest-run(s) and get an email with the results. Yours Michael Habbert Von: [email protected] [mailto:[email protected]] Im Auftrag von [email protected] Gesendet: Donnerstag, 30. April 2009 14:04 An: [email protected] Betreff: [Webtest] Mailing results Hi Everyone, At first i want to apologize my self for my bad english =) I use webtest for some availability tests on our Website. I want to get a mail after one or more tests were not successful. I'm use a simple second projekt to control the results of the first project with this mail.xml <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE project SYSTEM "../dtd/Project.dtd"> <project default="test"> <target name="test"> <webtest name="Sende E-Mail"> <ifStep description="production tests"> <condition> <invoke url="URL OF THE RESULTS"/> <verifyText description="Überprüfen ob ein fehler vorliegt" text="error'"/> </condition> <then> <groovy> def users = [ [name:'Bobby', email:'[email protected]'], ] def ant = new AntBuilder() for (user in users ) { ant.mail(mailhost: 's030l0277.rwe.com', subject: 'Fehler gefunden!') { from(address: '[email protected]') to (address: user.email) message( """Hallo ${user.name}, Webtest scheint einen Fehler gefunden zu haben: ${new Date().toLocaleString()} Bitte schau mal in die Results """ ) } } --> </groovy> </then> <else> </else> </ifStep> </webtest> </target> </project> So now i want a mail with the failed test into it. Maybe like: Test 4 has failed! Test 14 has failed! Could anyone help me? Cheers Jan ---------------------------------------------------------------- Vorsitzender des Aufsichtsrates: Alwin Fitting Geschaeftsfuehrung: Chittur Ramakrishnan (Vorsitzender), Stefan Niehusmann Sitz der Gesellschaft: Dortmund Eingetragen beim Amtsgericht Dortmund Handelsregister-Nr. HR B 21222 USt.-IdNr. DE 2588 96 719 Michael Habbert Key-Work Consulting GmbH | Kriegsstr. 100 | 76133 Karlsruhe | Germany | www.key-work.de Fon: +49-721-78203-269 | E-Mail: [email protected] | Fax: +49-721-78203-10 Key-Work Consulting GmbH Karlsruhe, HRB 108695, HRG Mannheim Geschäftsführer: Andreas Stappert, Tobin Wotring

