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" />

 

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>  

 

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 " />

 

This may be the same issue as WT-315

 

Any ideas or suggestions?

 

Luke

 

 




-----------------------------------------
**************************************************
This e-mail and any of its attachments may contain Exelon
Corporation proprietary information, which is privileged,
confidential, or subject to copyright belonging to the Exelon
Corporation family of Companies.
This e-mail is intended solely for the use of the individual or
entity to which it is addressed.  If you are not the intended
recipient of this e-mail, you are hereby notified that any
dissemination, distribution, copying, or action taken in relation
to the contents of and attachments to this e-mail is strictly
prohibited and may be unlawful.  If you have received this e-mail
in error, please notify the sender immediately and permanently
delete the original and any copy of this e-mail and any printout.
Thank You.
**************************************************

Reply via email to