That was the error:

Exception raised: com.canoo.webtest.engine.StepExecutionException: Current
response is not an HTML page but of type application/vnd.ms-excel, Step:
ClickLink at C:\eclips
e_workspaces\ws1\adflex\WEB-INF\src-webtest\usecases\CheckPackages.xml:168:
with (taskName="clickLink")com.canoo.webtest.engine.StepExecutionException:
Current response
is not an HTML page but of type application/vnd.ms-excel, Step: ClickLink at
C:\eclipse_workspaces\ws1\adflex\WEB-INF\src-webtest\usecases\CheckPackages.xml:168:
with (t
askName="clickLink")
       at com.canoo.webtest.engine.WebClientContext.getCurrentHtmlResponse(
WebClientContext.java:185)
       at com.canoo.webtest.engine.Context.getCurrentHtmlResponse(
Context.java:85)
       at com.canoo.webtest.steps.request.ClickLink.findTarget(
ClickLink.java:49)
       at com.canoo.webtest.steps.request.AbstractTargetAction$1.call(
AbstractTargetAction.java:108)
       at com.canoo.webtest.steps.request.TargetHelper.protectedGoto(
TargetHelper.java:88)
       at com.canoo.webtest.steps.request.AbstractTargetAction.gotoTarget(
AbstractTargetAction.java:106)
       at com.canoo.webtest.steps.request.AbstractTargetAction.doExecute(
AbstractTargetAction.java:78)
       at com.canoo.webtest.steps.Step.execute(Step.java:106)
       at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java
:275)
       at org.apache.tools.ant.Task.perform(Task.java:364)
       at com.canoo.webtest.ant.TestStepSequence.executeSteps(
TestStepSequence.java:43)
       at com.canoo.webtest.ant.TestStepSequence.doExecute(
TestStepSequence.java:31)
       at com.canoo.webtest.steps.Step.execute(Step.java:106)
       at org.apache.tools.ant.Task.perform(Task.java:364)
       at com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:164)
       at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java
:275)
       at org.apache.tools.ant.Task.perform(Task.java:364)
       at org.apache.tools.ant.Target.execute(Target.java:341)
       at org.apache.tools.ant.Target.performTasks(Target.java:369)
       at org.apache.tools.ant.Project.executeSortedTargets(Project.java
:1216)
       at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(
SingleCheckExecutor.java:37)
       at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
       at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
       at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java
:275)
       at org.apache.tools.ant.Task.perform(Task.java:364)
       at org.apache.tools.ant.Target.execute(Target.java:341)
       at org.apache.tools.ant.Target.performTasks(Target.java:369)
       at org.apache.tools.ant.Project.executeSortedTargets(Project.java
:1216)
       at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
       at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(
DefaultExecutor.java:40)
       at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
       at org.apache.tools.ant.Main.runBuild(Main.java:668)
       at org.apache.tools.ant.Main.startAnt(Main.java:187)
       at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
       at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

But now it works with invoke url= ...

The only problem I got with this is that the link I wanted to click on has
got a strange, computed URL. Extracting that URL out of the page and putting
it in the url attribute of invoke was a bit complicated, but easily solvable
with an span id=""... but for now that's ok.

So should it work with clickLink, too?

Mmh.

Cheers\
Sven

On 2/9/07, Marc Guillemot <[EMAIL PROTECTED]> wrote:


What for an error? No html is expected... unless your server sets
incorrect
content type headers.

Marc.


Sven Haiges-3 wrote:
>
> ... silly me, via invoke... sorry!
>
> Sven
>
> --
> Sven Haiges
> [EMAIL PROTECTED]
>
> Skype: hansamann
> Personal Homepage, Wiki & Blog: http://www.svenhaiges.de
>
> Subscribe to the Grails Podcast:
> http://hansamann.podspot.de/rss
>
>

--
View this message in context:
http://www.nabble.com/File-download...-tf3200777.html#a8887075
Sent from the WebTest mailing list archive at Nabble.com.

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




--
Sven Haiges
[EMAIL PROTECTED]

Skype: hansamann
Personal Homepage, Wiki & Blog: http://www.svenhaiges.de

Subscribe to the Grails Podcast:
http://hansamann.podspot.de/rss

Reply via email to