[Webtest] Re: NullPointer Exception at clicklink

Atkinson, John (AGRE) webtest@lists.canoo.com
Wed, 24 Mar 2004 14:31:32 -0700


::Nodz:: =0D

I had a look at the build number on the website and the one in the=
 build.zip file and saw that the website is marked at 427 and the=
 BuildNumber.txt file in the build.zip file says 428.  I took that to mean=
 that Canoo's server had "done it's job," so I downloaded the new build,=
 re-tried my test and found that I no longer get the NullPointer Exception.=
  However the test still fails with a message indicating that my page never=
 changed.  I wrote a quick little test that uses a single link using a=
 javascript function that just calls window.navigate and this too fails in=
 the same way, so I doubt that it's an issue with form population.

Just letting you know what I've seen in hopes that it will help with an=
 eventual solution.

Regardz,
John

-----Original Message-----
From: webtest-admin@lists.canoo.com
[mailto:webtest-admin@lists.canoo.com]On Behalf Of Dan Hagberg
Sent: Wednesday, March 24, 2004 3:23 PM
To: webtest@lists.canoo.com
Subject: RE: [Webtest] Re: NullPointer Exception at clicklink



It appears that the change is now in the current build (427).  Well at=
 least I think it is.  I no longer get the NullPointerException, but none=
 of the form fields are submitted.  I have a clickbutton test that submits=
 the form and another that uses a clicklink to submit the form.  When=
 submitting the form using the <clickbutton> step, the test works.  When=
 using <clicklink>, it fails.  Is it possible that only a partion of the=
 changes made it into the build?=0D

Thanks,
Dan

-----Original Message-----
From: Marc Guillemot [mailto:mguillemot@yahoo.fr]
Sent: Wednesday, March 24, 2004 9:56 AM
To: webtest@lists.canoo.com
Subject: Re: [Webtest] Re: NullPointer Exception at clicklink


As said, it has been integrated but no build has been performed since the=
 integration. It just depends when Canoo's=0D
server does its job.

Marc.

Atkinson, John (AGRE) wrote:
> Any ideas on when this enhancement will be integrated into WebTest?
>=0D
> Thanx,
> John
>=0D
>=0D
> Marc Guillemot Wrote:
> ---------------------------------------------------------------------
> Webtest doesn't currently handle javascript links. This will be soon the=
 case (I've committed the changes, but the server seems currently not to=
 integrate).
> Marc.
>=0D
>=0D
>=0D
> John Atkinson Wrote:
> ---------------------------------------------------------------------
> I am trying to fill out an HTML Form and submit the form through the use=
 of Canoo WebTest, but the test is consistantly throwing a Null Pointer=
 Exception at me.  I looked through
> some previous posts and found that there was a bug with the clicklink=
 task when the HREF pointed to a javascript function and I think that that=
 might be my problem.  Was that bug ever addressed before build 426 (which=
 is where I am)?
>=0D
> The link that I'm trying to follow appears like this:
> <A HREF=3D"javascript:processForm('http://mysite/processForm',=
 'CreateObject', 'class', 'ext.si.MyObject2' )">OK&nbsp;<IMG SRC=
=3D"http://mysite/images/actnlink.gif" ALT=3D"Accept changes" BORDER=
=3D0></A>
>=0D
> The clicklink task is:
> <clicklink
>   stepid=3D"Click OK Link"
>   label=3D"Accept changes"
> />
>=0D
> and the stack trace for the exception is:
> exception=3D"com.canoo.webtest.engine.StepExecutionException" message=
=3D"Unexpected exception caught:=
 java.lang.NullPointerException">com.canoo.webtest.engine.StepExecutionExce=
ption: Unexpected exception caught: java.lang.NullPointerException, Step:=
 ClickLink at C:\Canoo\WebTest\doc\tests\Modules\createcr.xml:22:  with=
 (label=3D"Accept changes", stepId=3D"Click OK Link", stepType=
=3D"clicklink")&#xd;
> 	at=
 com.canoo.webtest.steps.Step.handleUnexpectedException(Step.java:334)&#xd;
> 	at=
 com.canoo.webtest.steps.request.Target.protectedGoto(Target.java:115)&#xd;
> 	at=
 com.canoo.webtest.steps.request.Target.gotoTarget(Target.java:153)&#xd;
> 	at=
 com.canoo.webtest.steps.request.ClickLink.doExecute(ClickLink.java:36)&#xd=
;
> 	at com.canoo.webtest.steps.Step.execute(Step.java:99)&#xd;
> 	at com.canoo.webtest.engine.Engine.executeSteps(Engine.java:26)&#xd;
> 	at=
 com.canoo.webtest.ant.TestSpecificationTask.execute(TestSpecificationTask.=
java:68)&#xd;
> 	at=
 org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)&#xd;
> 	at org.apache.tools.ant.Task.perform(Task.java:364)&#xd;
> 	at org.apache.tools.ant.Target.execute(Target.java:301)&#xd;
> 	at org.apache.tools.ant.Target.performTasks(Target.java:328)&#xd;
> 	at org.apache.tools.ant.Project.executeTarget(Project.java:1215)&#xd;
> 	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)&#xd;
> 	at=
 org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)&#xd;
> 	at org.apache.tools.ant.Task.perform(Task.java:364)&#xd;
> 	at org.apache.tools.ant.Target.execute(Target.java:301)&#xd;
> 	at org.apache.tools.ant.Target.performTasks(Target.java:328)&#xd;
> 	at org.apache.tools.ant.Project.executeTarget(Project.java:1215)&#xd;
> 	at org.apache.tools.ant.Project.executeTargets(Project.java:1063)&#xd;
> 	at org.apache.tools.ant.Main.runBuild(Main.java:632)&#xd;
> 	at org.apache.tools.ant.Main.startAnt(Main.java:183)&#xd;
> 	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)&#xd;
> 	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)&#xd;
>=0D
> Any ideas?
>=0D
> Thanx In Advance,
> John S. Atkinson
>=0D
>=0D
>=0D
>=0D
>=0D
> </table> </Pre>
> <HTML>
> <br>
> <br>
> ************************************************<br>
> The information contained in, or attached to, this e-mail, may contain=
 confidential information and is intended solely for the use of the=
 individual or entity to whom they are addressed and may be subject to=
 legal privilege.  If you have received this e-mail in error you should=
 notify the sender immediately by reply e-mail, delete the message from=
 your system and notify your system manager.  Please do not copy it for any=
 purpose, or disclose its contents to any other person.  The views or=
 opinions presented in this e-mail are solely those of the author and do=
 not necessarily represent those of the company.  The recipient should=
 check this e-mail and any attachments for the presence of viruses.  The=
 company accepts no liability for any damage caused, directly or=
 indirectly, by any virus transmitted in this email.<br>
> ************************************************<br>
> </HTML>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>=0D


_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest

</table> </Pre>
<HTML>
<br>
<br>
************************************************<br>
The information contained in, or attached to, this e-mail, may contain=
 confidential information and is intended solely for the use of the=
 individual or entity to whom they are addressed and may be subject to=
 legal privilege.  If you have received this e-mail in error you should=
 notify the sender immediately by reply e-mail, delete the message from=
 your system and notify your system manager.  Please do not copy it for any=
 purpose, or disclose its contents to any other person.  The views or=
 opinions presented in this e-mail are solely those of the author and do=
 not necessarily represent those of the company.  The recipient should=
 check this e-mail and any attachments for the presence of viruses.  The=
 company accepts no liability for any damage caused, directly or=
 indirectly, by any virus transmitted in this email.<br>
************************************************<br>
</HTML>