Hi,

When I run WebTest with Ant it works fine but running it with Groovy fails:

Exception raised: java.lang.NoClassDefFoundError: org/apache/commons/codec/Decod
erExceptionjava.lang.NoClassDefFoundError: org/apache/commons/codec/DecoderExcep
tion

This is the source code of my test:

def ant = new AntBuilder()

def webtest_home = 'C:/Java/WebTest'

ant.taskdef(resource:'webtest.taskdef'){
    classpath(){
           pathelement(location:"$webtest_home/lib")
           fileset(dir:"$webtest_home/lib", includes:"**/*.jar")
    }
}


def config_map = ['host':'www.koderblogz.com', 'port':'80', 'protocol':'http', 
basepath:'']

ant.testSpec(name:'groovy: Test Groovy Scripting at creation time'){
    config(config_map)
    steps(){
        invoke(url:'/Entry.action?index')
            verifyTitle(description:"verify number", text:"Welcome to 
KODERBLOGZ (beta)")
    }
}


I think I cannot pass webtest.home to groovy with -D:

C:\>groovy -Dwebtest.home="C:\Java\WebTest" canoo.groovy
Caught: java.io.FileNotFoundException: Dwebtest.home (C:\\Dwebtest.home)



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

Reply via email to