Hi,

is there any reason why you don't use the facility offered by the
WebtestCase?

Cheers,
Marc.
-- 
Web: http://www.efficient-webtesting.com
Blog: http://mguillem.wordpress.com


Mulder Patrick wrote:
> I am having a problem with antbuilder use and canoo webtest. When I
> try out the following code I get the following exception that I don't
> understand and cannot find ideas on internet:
> 
> Exception:
> 
>   Caught: groovy.lang.MissingMethodException: No signature of method:
> groovy.util.ConfigObject.call() is applicable for argument types:
> (java.util.LinkedHashMap) values: [[host:www.google.com, port:80,
> protocol:http, basepath:]]
>         at test$_run_closure3.doCall(test.groovy:60)
>         at test$_run_closure3.doCall(test.groovy)
>         at test.run(test.groovy:59)
> 
> 
> Code:
> 
>   config_map = ['host':'www.google.com', 'port':'80',
> 'protocol':'http', 'basepath':'']
> 
>   ant.testSpec(name:'groovy: Test Groovy Scripting at creation time'){
>     config(config_map)
>     steps(){
>         invoke(url:'linkpage.html')
>         for (i in 1..10){
>             verifyText(description:"verify number ${i} is on pages",
> text:"${i}")
>         }
>     }
>   }
> 
> thank you if you can help
> 
> patrick
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
> 


_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to