Hi Marco, I am not sure if I understood, but if you want to run the same test case invoking different servers you can use different approaches:
1 ) DataDriven ant task. Provided by WebTest http://webtest.canoo.com/webtest/manual/dataDriven.htm You can define all the servers you want to test in an excel sheet and the create an xml or groovy test using the Ant task. 2) If you have the list of servers in a Data Base or any other source you can make a Provider Class that is in charge of providing the data to the test case and you loop through that data : *(this is how I am using it, maybe there is a better solution. If anyone knows please let us know)* public class Provider { Sql sqlInstance = getSql().newInstance(//your confng//); List<Map<String,String>> testCasesData = [] protected addData(data) { testCasesData.add(data) } } class ServersTestProvider extends Provider { public ServerTestProvider(){ generateData() } private generateData(){ sqlInstance.eachRow(//your query here//){ addData(server:it.id , name:it.name, url:it.url) } } } public class ServersTest extends WebtestCase { def provider = new ServersTestProvider() public void testAllServers(){ provider.testCasesData.each{ test -> webtest("Testing Blah"){ config haltonerror: "false", haltonfailure: "false" invoke url:test.url verifyLinks } } } Let me know if these solutions are useful. Thanks, Hernan 2009/8/23 killbulle <[email protected]> > > Hi the list > is anyone ,known how i can loop a simple invoke verify test over a list off > server, > i 've tried the repeat task but with no success, > i also search groovy script sample > regards > Marc > -- > View this message in context: > http://www.nabble.com/loop-over-a-list-off-server-with-cannoo-and-groovy-tp25080033p25080033.html > Sent from the WebTest mailing list archive at Nabble.com. > > _______________________________________________ > WebTest mailing list > [email protected] > http://lists.canoo.com/mailman/listinfo/webtest >

