Thanks Paul
Here is a small example of the script I am running
The login module is mylogin.xml, the core steps are in action.xml and
main.xml is the parent script which just calls mylogin and action
Webtest log is also below

<project name="main" basedir="." default="main">

        <property name="webtest.home" value="c:/java/webtest"/>
        <property name="webtest.script.home" 
value="c:/dev/inc/2.0/test/webtest"/>

        <import file="${webtest.home}/lib/taskdef.xml"/>
        <import file="${webtest.script.home}/modules/mylogin.xml"/>
        <import file="${webtest.script.home}/modules/action.xml"/>

        <target name="main">
                <login/>
                <action/>
        </target>

</project>

<project name="mylogin">
        <macrodef name="login">

                <attribute name="login.name" default="incadmin"/>
                <attribute name="login.password" default="incadmin"/>

                <sequential>
                        <webtest name="login">
                                 <config
                                          host="mssql1.sw.ins.com"
                                          port="8080"
                                          basepath="incontrol"/>
                                <steps>
                                        <invoke description="goto start page" 
url="logon.action" />
                    <setInputField description="set user name"
name="username" value="@{login.name}" />
                                        <setInputField description="set 
password" name="password"
value="@{login.password}" />
                                        <clickButton name="submit" 
description="Click the submit button" />
                                </steps>
                        </webtest>
                </sequential>

        </macrodef>

</project>

<project name="action">

        <macrodef name="action">

                <sequential>
                        <webtest name="action">
                                <config
                                          host="mssql1.sw.ins.com"
                                          port="8080"
                                          basepath="incontrol"/>
                          <steps>
                                <followframe name="banner" description="Set 
focus to banner frame"/>
                          </steps>
                        </webtest>
                </sequential>

        </macrodef>
</project>

main:
  [webtest] DEBUG (com.canoo.webtest.ant.TestStepSequence) - Creating
TestStepSequence
  [webtest] DEBUG (com.canoo.webtest.boundary.AntBoundary) - Task
'invoke' configured with ant
  [webtest] DEBUG (com.canoo.webtest.steps.AbstractStepContainer) -
Adding WebTest Step: InvokePage at
C:\dev\inc\2.0\test\webtest\modules\mylogin.xml:14:  with
(description="goto start page", url="logon.action", method="GET",
stepType="invoke")
  [webtest] DEBUG (com.canoo.webtest.boundary.AntBoundary) - Task
'setInputField' configured with ant
  [webtest] DEBUG (com.canoo.webtest.steps.AbstractStepContainer) -
Adding WebTest Step: SetInputField at
C:\dev\inc\2.0\test\webtest\modules\mylogin.xml:15:  with
(value="incadmin", description="set user name", name="username",
stepType="setInputField")
  [webtest] DEBUG (com.canoo.webtest.boundary.AntBoundary) - Task
'setInputField' configured with ant
  [webtest] DEBUG (com.canoo.webtest.steps.AbstractStepContainer) -
Adding WebTest Step: SetInputField at
C:\dev\inc\2.0\test\webtest\modules\mylogin.xml:16:  with
(value="incadmin", description="set password", name="password",
stepType="setInputField")
  [webtest] DEBUG (com.canoo.webtest.boundary.AntBoundary) - Task
'clickButton' configured with ant
  [webtest] DEBUG (com.canoo.webtest.steps.AbstractStepContainer) -
Adding WebTest Step: ClickButton at
C:\dev\inc\2.0\test\webtest\modules\mylogin.xml:17:  with
(description="Click the submit button", name="submit",
stepType="clickButton")
  [webtest]  INFO (com.canoo.webtest.ant.WebtestTask) - Canoo Webtest: R_1118.
  [webtest]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
null "[implict setup step]" (1/6)
  [webtest] DEBUG (com.canoo.webtest.steps.Step) - Executing null
"[implict setup step]" (1/6)
  [webtest] DEBUG (com.canoo.webtest.engine.Configuration) - Headers: []
  [webtest]  INFO (com.canoo.webtest.steps.Setup) - Surfing with
browser Mozilla/4.0 (compatible; MSIE 6.0b; Windows 98)
  [webtest] DEBUG (com.canoo.webtest.steps.Setup) -
showHtmlParserOutput is off, no listener configured
  [webtest] DEBUG (com.canoo.webtest.steps.Step) - Finished null
"[implict setup step]" (1/6)
  [webtest] DEBUG (com.canoo.webtest.steps.Step) - Completed Step:
null "[implict setup step]" (1/6)
  [webtest] DEBUG (com.canoo.webtest.steps.Step) - <<<< Successful
Step: null "[implict setup step]" (1/6)
  [webtest]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
invoke "goto start page" (2/6)
  [webtest] DEBUG (com.canoo.webtest.steps.Step) - Executing invoke
"goto start page" (2/6)
  [webtest]  INFO
(com.canoo.webtest.steps.request.AbstractTargetAction) - -> gotoTarget
by URL: logon.action
  [webtest]  INFO (com.canoo.webtest.steps.request.TargetHelper) -
getting response for url:
http://mssql1.sw.ins.com:8080/incontrol/logon.action
  [webtest]  INFO (com.canoo.webtest.engine.Context) - Content of
window changed to http://mssql1.sw.ins.com:8080/incontrol/logon.action
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - Webclient:
[EMAIL PROTECTED]
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - script engine:
[EMAIL PROTECTED]
  [webtest]  INFO (com.canoo.webtest.engine.Context) - Content loaded
in newly opened window, its content will become current response
  [webtest]  INFO (com.canoo.webtest.engine.Context) - Current form set to none
  [webtest]  INFO (com.canoo.webtest.engine.Context) - Current
response now: http://mssql1.sw.ins.com:8080/incontrol/logon.action
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - Previous response: null
  [webtest] DEBUG (com.canoo.webtest.steps.Step) - Finished invoke
"goto start page" (2/6)
  [webtest] DEBUG (com.canoo.webtest.steps.Step) - Completed Step:
invoke "goto start page" (2/6)
  [webtest] DEBUG (com.canoo.webtest.steps.AbstractBrowserAction) -
Current response has changed during execution of the step, this is now
http://mssql1.sw.ins.com:8080/incontrol/logon.action
  [webtest] DEBUG (com.canoo.webtest.steps.AbstractBrowserAction) -
New current response not saved to file due to configuration
  [webtest] DEBUG (com.canoo.webtest.steps.Step) - <<<< Successful
Step: invoke "goto start page" (2/6)
  [webtest]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
setInputField "set user name" (3/6)
  [webtest] DEBUG (com.canoo.webtest.steps.Step) - Executing
setInputField "set user name" (3/6)
  [webtest] DEBUG (com.canoo.webtest.util.FormUtil) - Looking for form
with text field named "username"
  [webtest] DEBUG (com.canoo.webtest.util.FormUtil) - No given form or
given form not suitable, trying others
  [webtest] DEBUG (com.canoo.webtest.util.FormUtil) - No current form
or current form not suitable, trying others
  [webtest]  INFO (com.canoo.webtest.engine.Context) - Current form
set to (action=/incontrol/authenticate.action)
  [webtest] DEBUG (com.canoo.webtest.steps.form.AbstractSetFieldStep)
- Found matching form HtmlForm[<form
action="/incontrol/authenticate.action" method="POST" id="loginForm">]
  [webtest] DEBUG (com.canoo.webtest.steps.form.SetInputField) - Found
1 input field(s)
  [webtest] DEBUG (com.canoo.webtest.steps.form.SetInputField) - Found
0 textarea field(s)
  [webtest]  INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep)
- Found 1 suitable fields, considering only the first one
  [webtest] DEBUG (com.canoo.webtest.steps.form.SetInputField) - Set
text for input HtmlTextInput[<input value="incadmin" type="text"
size="20" name="username" id="username">] to value incadmin
  [webtest] DEBUG (com.canoo.webtest.steps.Step) - Finished
setInputField "set user name" (3/6)
  [webtest] DEBUG (com.canoo.webtest.steps.Step) - Completed Step:
setInputField "set user name" (3/6)
  [webtest] DEBUG (com.canoo.webtest.steps.AbstractBrowserAction) -
Current response didn't change during step execution
  [webtest] DEBUG (com.canoo.webtest.steps.Step) - <<<< Successful
Step: setInputField "set user name" (3/6)
  [webtest]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
setInputField "set password" (4/6)
  [webtest] DEBUG (com.canoo.webtest.steps.Step) - Executing
setInputField "set password" (4/6)
  [webtest] DEBUG (com.canoo.webtest.util.FormUtil) - Looking for form
with text field named "password"
  [webtest] DEBUG (com.canoo.webtest.util.FormUtil) - No given form or
given form not suitable, trying others
  [webtest] DEBUG (com.canoo.webtest.util.FormUtil) - Form '' has
suitable text field, using it
  [webtest] DEBUG (com.canoo.webtest.steps.form.AbstractSetFieldStep)
- Found matching form HtmlForm[<form
action="/incontrol/authenticate.action" method="POST" id="loginForm">]
  [webtest] DEBUG (com.canoo.webtest.steps.form.SetInputField) - Found
1 input field(s)
  [webtest] DEBUG (com.canoo.webtest.steps.form.SetInputField) - Found
0 textarea field(s)
  [webtest]  INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep)
- Found 1 suitable fields, considering only the first one
  [webtest] DEBUG (com.canoo.webtest.steps.form.SetInputField) - Set
text for input HtmlPasswordInput[<input value="incadmin"
type="password" size="20" name="password">] to value incadmin
  [webtest] DEBUG (com.canoo.webtest.steps.Step) - Finished
setInputField "set password" (4/6)
  [webtest] DEBUG (com.canoo.webtest.steps.Step) - Completed Step:
setInputField "set password" (4/6)
  [webtest] DEBUG (com.canoo.webtest.steps.AbstractBrowserAction) -
Current response didn't change during step execution
  [webtest] DEBUG (com.canoo.webtest.steps.Step) - <<<< Successful
Step: setInputField "set password" (4/6)
  [webtest]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
clickButton "Click the submit button" (5/6)
  [webtest] DEBUG (com.canoo.webtest.steps.Step) - Executing
clickButton "Click the submit button" (5/6)
  [webtest]  INFO
(com.canoo.webtest.steps.request.AbstractTargetAction) - -> gotoTarget
by clickButton with name: submit
  [webtest] DEBUG (com.canoo.webtest.steps.request.ClickButton) -
Looking for button in current form
  [webtest] DEBUG (com.canoo.webtest.steps.request.ClickButton) -
Looking for inputs of type submit, image or button in HtmlForm[<form
action="/incontrol/authenticate.action" method="POST" id="loginForm">]
  [webtest] DEBUG (com.canoo.webtest.steps.request.ClickButton) -
Examining button: HtmlImageInput[<input type="image"
src="/incontrol/images/loginbutton.jpg" name="submit">]
  [webtest] DEBUG (com.canoo.webtest.steps.request.ClickButton) -
image button found: HtmlImageInput[<input type="image"
src="/incontrol/images/loginbutton.jpg" name="submit">]
  [webtest]  INFO (com.canoo.webtest.steps.request.ClickButton) - ->
findTarget(by input): name=submit value=
  [webtest]  INFO (org.apache.commons.httpclient.HttpMethodDirector) -
Redirect requested but followRedirects is disabled
  [webtest]  INFO (com.canoo.webtest.engine.Context) - Content of
window changed to about:blank
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - Webclient:
[EMAIL PROTECTED]
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - script engine:
[EMAIL PROTECTED]
  [webtest]  INFO (com.canoo.webtest.engine.Context) - Content of
frame window has changed without javascript while enclosing page is
loading, it will NOT become current response
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - Enclosing
page's state: loading
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - Enclosing
page's url: http://mssql1.sw.ins.com:8080/incontrol/main.vm
  [webtest]  INFO (com.canoo.webtest.engine.Context) - Content of
window changed to about:blank
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - Webclient:
[EMAIL PROTECTED]
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - script engine:
[EMAIL PROTECTED]
  [webtest]  INFO (com.canoo.webtest.engine.Context) - Content of
frame window has changed without javascript while enclosing page is
loading, it will NOT become current response
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - Enclosing
page's state: loading
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - Enclosing
page's url: http://mssql1.sw.ins.com:8080/incontrol/main.vm
  [webtest]  INFO (com.canoo.webtest.engine.Context) - Content of
window changed to http://mssql1.sw.ins.com:8080/incontrol/ncbanner.vm
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - Webclient:
[EMAIL PROTECTED]
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - script engine:
[EMAIL PROTECTED]
  [webtest]  INFO (com.canoo.webtest.engine.Context) - Content of
frame window has changed without javascript while enclosing page is
loading, it will NOT become current response
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - Enclosing
page's state: loading
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - Enclosing
page's url: http://mssql1.sw.ins.com:8080/incontrol/main.vm
  [webtest]  INFO (com.canoo.webtest.engine.Context) - Content of
window changed to about:blank
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - Webclient:
[EMAIL PROTECTED]
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - script engine:
[EMAIL PROTECTED]
  [webtest]  INFO (com.canoo.webtest.engine.Context) - Content of
frame window has changed without javascript while enclosing page is
loading, it will NOT become current response
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - Enclosing
page's state: loading
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - Enclosing
page's url: http://mssql1.sw.ins.com:8080/incontrol/subframe_about.vm
  [webtest]  INFO (com.canoo.webtest.engine.Context) - Content of
window changed to about:blank
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - Webclient:
[EMAIL PROTECTED]
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - script engine:
[EMAIL PROTECTED]
  [webtest]  INFO (com.canoo.webtest.engine.Context) - Content of
frame window has changed without javascript while enclosing page is
loading, it will NOT become current response
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - Enclosing
page's state: loading
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - Enclosing
page's url: http://mssql1.sw.ins.com:8080/incontrol/subframe_about.vm
  [webtest]  INFO (com.canoo.webtest.engine.Context) - Content of
window changed to about:blank
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - Webclient:
[EMAIL PROTECTED]
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - script engine:
[EMAIL PROTECTED]
  [webtest]  INFO (com.canoo.webtest.engine.Context) - Content of
frame window has changed without javascript while enclosing page is
loading, it will NOT become current response
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - Enclosing
page's state: loading
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - Enclosing
page's url: http://mssql1.sw.ins.com:8080/incontrol/subframe_about.vm
  [webtest]  INFO (com.canoo.webtest.engine.Context) - Content of
window changed to
http://mssql1.sw.ins.com:8080/incontrol/blankTreeFrame.html
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - Webclient:
[EMAIL PROTECTED]
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - script engine:
[EMAIL PROTECTED]
  [webtest]  INFO (com.canoo.webtest.engine.Context) - Content of
frame window has changed without javascript while enclosing page is
loading, it will NOT become current response
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - Enclosing
page's state: loading
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - Enclosing
page's url: http://mssql1.sw.ins.com:8080/incontrol/subframe_about.vm
  [webtest]  INFO (com.canoo.webtest.engine.Context) - Content of
window changed to
http://mssql1.sw.ins.com:8080/incontrol/sub_banner.vm
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - Webclient:
[EMAIL PROTECTED]
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - script engine:
[EMAIL PROTECTED]
  [webtest]  INFO (com.canoo.webtest.engine.Context) - Content of
frame window has changed without javascript while enclosing page is
loading, it will NOT become current response
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - Enclosing
page's state: loading
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - Enclosing
page's url: http://mssql1.sw.ins.com:8080/incontrol/subframe_about.vm
  [webtest]  INFO (com.canoo.webtest.engine.Context) - Content of
window changed to
http://mssql1.sw.ins.com:8080/incontrol/help/about.do
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - Webclient:
[EMAIL PROTECTED]
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - script engine:
[EMAIL PROTECTED]
  [webtest]  INFO (com.canoo.webtest.engine.Context) - Content of
frame window has changed without javascript while enclosing page is
loading, it will NOT become current response
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - Enclosing
page's state: loading
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - Enclosing
page's url: http://mssql1.sw.ins.com:8080/incontrol/subframe_about.vm
  [webtest]  INFO (com.canoo.webtest.engine.Context) - Content of
window changed to
http://mssql1.sw.ins.com:8080/incontrol/subframe_about.vm
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - Webclient:
[EMAIL PROTECTED]
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - script engine:
[EMAIL PROTECTED]
  [webtest]  INFO (com.canoo.webtest.engine.Context) - Content of
frame window has changed without javascript while enclosing page is
loading, it will NOT become current response
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - Enclosing
page's state: loading
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - Enclosing
page's url: http://mssql1.sw.ins.com:8080/incontrol/main.vm
  [webtest]  INFO (com.canoo.webtest.engine.Context) - Content of
window changed to http://mssql1.sw.ins.com:8080/incontrol/main.vm
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - Webclient:
[EMAIL PROTECTED]
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - script engine:
[EMAIL PROTECTED]
  [webtest]  INFO (com.canoo.webtest.engine.Context) - Content of
current window changed, it will become current response
  [webtest]  INFO (com.canoo.webtest.engine.Context) - Current form set to none
  [webtest]  INFO (com.canoo.webtest.engine.Context) - Current
response now: http://mssql1.sw.ins.com:8080/incontrol/main.vm
  [webtest] DEBUG (com.canoo.webtest.engine.Context) - Previous
response: http://mssql1.sw.ins.com:8080/incontrol/logon.action
  [webtest] DEBUG (com.canoo.webtest.steps.Step) - Finished
clickButton "Click the submit button" (5/6)
  [webtest] DEBUG (com.canoo.webtest.steps.Step) - Completed Step:
clickButton "Click the submit button" (5/6)
  [webtest] DEBUG (com.canoo.webtest.steps.AbstractBrowserAction) -
Current response has changed during execution of the step, this is now
http://mssql1.sw.ins.com:8080/incontrol/main.vm
  [webtest] DEBUG (com.canoo.webtest.steps.AbstractBrowserAction) -
New current response not saved to file due to configuration
  [webtest] DEBUG (com.canoo.webtest.steps.Step) - <<<< Successful
Step: clickButton "Click the submit button" (5/6)
  [webtest]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
null "[implicit tear down step]" (6/6)
  [webtest] DEBUG (com.canoo.webtest.steps.Step) - Executing null
"[implicit tear down step]" (6/6)
  [webtest] DEBUG (com.canoo.webtest.steps.Step) - Finished null
"[implicit tear down step]" (6/6)
  [webtest] DEBUG (com.canoo.webtest.steps.Step) - Completed Step:
null "[implicit tear down step]" (6/6)
  [webtest] DEBUG (com.canoo.webtest.steps.Step) - <<<< Successful
Step: null "[implicit tear down step]" (6/6)
  [webtest] DEBUG (com.canoo.webtest.ant.WebtestTask) - stopBuildIfNeeded 1
  [webtest] DEBUG (com.canoo.webtest.ant.WebtestTask) - stopBuildIfNeeded 2
  [webtest] DEBUG (com.canoo.webtest.ant.TestStepSequence) - Creating
TestStepSequence
  [webtest] DEBUG (com.canoo.webtest.boundary.AntBoundary) - Task
'followframe' configured with ant
  [webtest] DEBUG (com.canoo.webtest.steps.AbstractStepContainer) -
Adding WebTest Step: FollowFrame at
C:\dev\inc\2.0\test\webtest\modules\action.xml:12:  with
(description="Set focus to banner frame", name="banner",
stepType="followframe")
  [webtest]  INFO (com.canoo.webtest.ant.WebtestTask) - Canoo Webtest: R_1118.
  [webtest]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
null "[implict setup step]" (1/3)
  [webtest] DEBUG (com.canoo.webtest.steps.Step) - Executing null
"[implict setup step]" (1/3)
  [webtest] DEBUG (com.canoo.webtest.engine.Configuration) - Headers: []
  [webtest]  INFO (com.canoo.webtest.steps.Setup) - Surfing with
browser Mozilla/4.0 (compatible; MSIE 6.0b; Windows 98)
  [webtest] DEBUG (com.canoo.webtest.steps.Setup) -
showHtmlParserOutput is off, no listener configured
  [webtest] DEBUG (com.canoo.webtest.steps.Step) - Finished null
"[implict setup step]" (1/3)
  [webtest] DEBUG (com.canoo.webtest.steps.Step) - Completed Step:
null "[implict setup step]" (1/3)
  [webtest] DEBUG (com.canoo.webtest.steps.Step) - <<<< Successful
Step: null "[implict setup step]" (1/3)
  [webtest]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
followframe "Set focus to banner frame" (2/3)
  [webtest] DEBUG (com.canoo.webtest.steps.Step) - Executing
followframe "Set focus to banner frame" (2/3)
  [webtest] DEBUG (com.canoo.webtest.steps.Step) - Step failed at
C:\dev\inc\2.0\test\webtest\modules\action.xml:12:  with exception
  [webtest] com.canoo.webtest.engine.StepExecutionException: No
current response available! Is previous invoke missing?, Step:
FollowFrame at C:\dev\inc\2.0\test\webtest\modules\action.xml:12: 
with (description="Set focus to banner frame", name="banner",
stepType="followframe")
  [webtest]     at com.canoo.webtest.steps.Step.paramCheck(Step.java:578)
  [webtest]     at com.canoo.webtest.steps.Step.nullResponseCheck(Step.java:628)
  [webtest]     at
com.canoo.webtest.steps.request.FollowFrame.verifyParameters(FollowFrame.java:70)
  [webtest]     at com.canoo.webtest.steps.Step.execute(Step.java:145)
  [webtest]     at com.canoo.webtest.engine.Engine.executeSteps(Engine.java:28)
  [webtest]     at 
com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:79)
  [webtest]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
  [webtest]     at org.apache.tools.ant.Task.perform(Task.java:364)
  [webtest]     at
org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
  [webtest]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
  [webtest]     at org.apache.tools.ant.Task.perform(Task.java:364)
  [webtest]     at
org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:378)
  [webtest]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
  [webtest]     at org.apache.tools.ant.Task.perform(Task.java:364)
  [webtest]     at org.apache.tools.ant.Target.execute(Target.java:341)
  [webtest]     at org.apache.tools.ant.Target.performTasks(Target.java:369)
  [webtest]     at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
  [webtest]     at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
  [webtest]     at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
  [webtest]     at 
org.apache.tools.ant.Project.executeTargets(Project.java:1068)
  [webtest]     at org.apache.tools.ant.Main.runBuild(Main.java:668)
  [webtest]     at org.apache.tools.ant.Main.startAnt(Main.java:187)
  [webtest]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
  [webtest]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
  [webtest]  INFO (com.canoo.webtest.steps.Step) - Exception thrown
from this class: com.canoo.webtest.engine.StepExecutionException
  [webtest]  INFO (com.canoo.webtest.steps.Step) - Message was: No
current response available! Is previous invoke missing?
  [webtest] DEBUG (com.canoo.webtest.steps.Step) - Completed Step:
followframe "Set focus to banner frame" (2/3)
  [webtest] DEBUG (com.canoo.webtest.steps.AbstractBrowserAction) -
Current response didn't change during step execution
  [webtest] DEBUG (com.canoo.webtest.ant.WebtestTask) - stopBuildIfNeeded 1
  [webtest] DEBUG (com.canoo.webtest.ant.WebtestTask) - throw
  [webtest] DEBUG (com.canoo.webtest.ant.WebtestTask) - str: Test failed.
  [webtest] Exception raised:
com.canoo.webtest.engine.StepExecutionException: No current response
available! Is previous invoke missing?, Step: FollowFrame at
C:\dev\inc\2.0\test\webtest\modules\action.xml:12:  with
(description="Set focus to banner frame", name="banner",
stepType="followframe")com.canoo.webtest.engine.StepExecutionException:
No current response available! Is previous invoke missing?, Step:
FollowFrame at C:\dev\inc\2.0\test\webtest\modules\action.xml:12: 
with (description="Set focus to banner frame", name="banner",
stepType="followframe")
  [webtest]     at com.canoo.webtest.steps.Step.paramCheck(Step.java:578)
  [webtest]     at com.canoo.webtest.steps.Step.nullResponseCheck(Step.java:628)
  [webtest]     at
com.canoo.webtest.steps.request.FollowFrame.verifyParameters(FollowFrame.java:70)
  [webtest]     at com.canoo.webtest.steps.Step.execute(Step.java:145)
  [webtest]     at com.canoo.webtest.engine.Engine.executeSteps(Engine.java:28)
  [webtest]     at 
com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:79)
  [webtest]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
  [webtest]     at org.apache.tools.ant.Task.perform(Task.java:364)
  [webtest]     at
org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
  [webtest]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
  [webtest]     at org.apache.tools.ant.Task.perform(Task.java:364)
  [webtest]     at
org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:378)
  [webtest]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
  [webtest]     at org.apache.tools.ant.Task.perform(Task.java:364)
  [webtest]     at org.apache.tools.ant.Target.execute(Target.java:341)
  [webtest]     at org.apache.tools.ant.Target.performTasks(Target.java:369)
  [webtest]     at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
  [webtest]     at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
  [webtest]     at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
  [webtest]     at 
org.apache.tools.ant.Project.executeTargets(Project.java:1068)
  [webtest]     at org.apache.tools.ant.Main.runBuild(Main.java:668)
  [webtest]     at org.apache.tools.ant.Main.startAnt(Main.java:187)
  [webtest]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
  [webtest]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)


On 1/11/06, Paul King <[EMAIL PROTECTED]> wrote:
>
> What you are describing is intended to be supported as of the last
> few weeks. Have you tried with a recent build? This is very new and
> powerful functionality but we haven't been able to test against all
> possible usage scenarios.  Let us know if it is currently not working
> and what is going wrong with as many details as you can supply and
> preferably the smallest example which highlights your problem.
>
> Cheers, Paul.
>
> Mike Danifo wrote:
> > Hello,
> > I realize this post is over a year old, but it discusses exactly the 
> > problem I
> > am currently facing.
> >
> > I am trying to implement a similar scenario, trying to implement a reusable
> > login module.
> >
> > The limitation of the solution below is that I'm trying to make the login 
> > module
> > an ant macro, with an attribute of login.name and login.password, and the 
> > below
> > solution does not offer a way to call the module and dynamically pass in the
> > login.name and login.password attributes.
> >
> > So, instead of using
> >
> > <!DOCTYPE project SYSTEM "../WebTest.dtd"[
> >       <!ENTITY login SYSTEM "login.xml">
> > ]>
> >
> > and calling the entity
> >
> > &login;
> >
> > I am trying to do:
> >
> > <import file="${webtest.script.home}/modules/login.xml"/>
> >
> > and calling the macro contained in login.xml
> >
> > <login login.name="webtest" login.password="password"/>
> >
> > Yet any actions after calling the macro are throwing the error is
> > com.canoo.webtest.engine.StepExecutionException: Last response not valid. 
> > Is a
> > previous invoke missing?
> >
> > Any ideas for a solution to this problem?
> >
> > thanks
> >
> > -Mike
>
> _______________________________________________
> 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