Are you calling our script with -Dwebtest.home=...?
Perhaps just temporarily hard code home to get it working, e.g.:
def webtest_home = 'C:/webtest'    // replace with your value

Paul.

[EMAIL PROTECTED] wrote:
I have a problem executing groovy with webtests.

Using this script:

def ant = new AntBuilder()

  def webtest_home = System.properties.'webtest.home'

  ant.taskdef(resource:'webtest.taskdef'){

      classpath(){

             pathelement(location:"$webtest_home/lib")

             fileset(dir:"$webtest_home/lib", includes:"**/*.jar")

      }

  }

  def config_map = [:]

  ['protocol','host','port','basepath','resultfile',

  'resultpath', 'summary', 'saveresponse','defaultpropertytype'].each{

      config_map[it] = System.properties['webtest.'+it]

  }

  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}")

          }

      }

}

giving me following exception:

Exception thrown: C:\Programme\Groovy\Groovy-1.5.4\bin\null\lib not found.

Thanks for help

I don’t know groovy a lot, and didn’t find a tutorial fitting me.

Dennis Winter


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

Reply via email to