Hi Luke,
[EMAIL PROTECTED] wrote:
> An error is occurring frequently when testing with webtest an asp.net
> application. The error is:
>
> BUILD FAILED
>
> C:\ …DispatchReports.xml:1: JavaScript error loading page
> http://localhost/....aspx:
>
> missing ( before function parameters. (Embedded script in
> http://localhost....aspx from (519, 35) to (0, 0)#55),
>
> Step: InvokePage at C:\DOCUME….xml:1: with
> (resultFilename="response_1185549532192_invoke.html", taskName="invoke")
>
> The step involved is:
>
> <invoke description="got dispatch reports" url="/….aspx" />
have you checked if you get a js error in a "normal" browser?
> I suspect the following embedded javascript code is the culprit:
>
> <a class='menuItem' href="javascript:transfer('/….aspx')"
> Title="Generator-Position Setup">Generator-Position Setup</a>
no, not possible. The error occurs while loading the page. The js in
this href doesn't get parsed at this time.
> The problem also manifests itself as webtest not being able to recognize
> the link using a clickLink step like :
>
> <clickLink description=”” href=”javascript:transfer('/….aspx')’ /> or
> <clickLink description=”” xpath=” some valid xpath to the link ” />
webtest not beeing able to recognize a link has nothing to do with js.
Are you sure to be on the right page? What is the error message? Which
links are found on the page?
> This may be the same issue as WT-315
I don't think so. WT-315 reports a js execution error (and no feedback
has been provided since a few weeks) whereas you seem to encounter a js
syntax error.
Marc.
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest