[Webtest] javascript support :(

Aatish Arora webtest@lists.canoo.com
Thu, 27 Mar 2003 02:04:30 -0800 (PST)


Hi Scot,

Thanks for the reply!
Theres a problem if i put the jars in the plugin's
jars dir.

I get a error:

 java.lang.NoSuchMethodError
      at
com.canoo.webtest.steps.request.Target.removeHtmlErrorHandlerIfNeeded(Target.java:282)
      at
com.canoo.webtest.steps.request.Target.gotoTarget(Target.java:229)
      at
com.canoo.webtest.steps.request.Target.gotoTarget(Target.java:183)
      at
com.canoo.webtest.steps.request.InvokePage.doExecute(InvokePage.java:41)
      at
com.canoo.webtest.steps.Step.execute(Step.java:56)
      at
com.canoo.webtest.engine.Engine.executeSteps(Engine.java:32)
      at
com.canoo.webtest.ant.TestSpecificationTask.execute(TestSpecificationTask.java:55)
      at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:166)
      at
org.apache.tools.ant.Task.perform(Task.java:317)
      at
org.apache.tools.ant.Target.execute(Target.java:309)
      at
org.apache.tools.ant.Target.performTasks(Target.java:334)
      at
org.apache.tools.ant.Project.executeTarget(Project.java:1306)
      at
org.apache.tools.ant.Project.executeTargets(Project.java:1250)
      at
org.apache.tools.ant.Main.runBuild(Main.java:610)
      at
org.apache.tools.ant.Main.start(Main.java:196)
      at org.apache.tools.ant.Main.main(Main.java:235)

Actually my earlier problem did get solved cause i
dint have the jars in the jars directory of the folder
i specied in the dependancy.

So it is working with keeping dependancies in my
project.xml!

Whats more the problem Göschl reported the other day
that the htmlparser wasnt working with the plugin also
got solved! 

:D

Gee! and it works really cool. The parse gives me an
error whenever a new page is got in a response
(clicklink, invoke, clickbutton)

:)

Whats more the js.jar error also dissapeared!

Cheers!
Aatish


--- Scot Hale <halesm@hotmail.com> wrote:
> As Siegfried Göschl suggested to me, I added all the
> jars into my plugin's
> "jars" directory and removed all the dependencies
> from the "plugins"
> project.xml.  This ensured that the maven plugin was
> using all the libraries
> intended by Canoo Webtest.
> 
> Try this and see if it works.  (note that you should
> not need to add any
> jar's dependencies to you're specfic project's
> project.xml)
> 
> -Scot Hale
> 
> 
> ----- Original Message -----
> From: "Aatish Arora" <a_aatish@yahoo.com>
> To: <webtest@lists.canoo.com>
> Sent: Wednesday, March 26, 2003 11:18 PM
> Subject: Re: [Webtest] javascript support :(
> 
> 
> > Hi all,
> >
> > Im facing a wierd problem.
> > Im using the maven plugin for canoo, and have
> replaced
> > the webtest jars with the new release supporting
> > Javascript.
> >
> > I have configured my project.xml to include js.jar
> > too!
> > Buthe problem is when i run my tests this what i
> get
> > as the output:
> >
> > webtest:test:
> >     [echo] Starting Canoo Webtest ...
> >     [echo] Processing C_TC_DFAP.xml
> >     [echo] Including xerces/jars/xerces-2.0.2.jar
> >     [echo] Including dbunit/jars/dbunit-1.4.jar
> >     [echo] Including oracle/jars/oracle-jdbc.jar
> >     [echo] Including /jars/
> >     [echo] Including
> > webtest/jars/httpunitWithJTidy.jar
> >     [echo] Including webtest/jars/jcert.jar
> >     [echo] Including webtest/jars/jnet.jar
> >     [echo] Including webtest/jars/js.jar
> >     [echo] Including webtest/jars/jsse.jar
> >     [echo] Including webtest/jars/junit_3.7.jar
> >     [echo] Including webtest/jars/mailapi.jar
> >     [echo] Including webtest/jars/servlet.jar
> >     [echo] Including webtest/jars/Tidy.jar
> >     [echo] Including
> webtest/jars/xmlParserAPIs.jar
> >     [java] Buildfile:
> > D:\Icom\tests\scripts\canoo\webtest\TC_test.xml
> >     [java]
> >     [java] TC_test:
> >     [java]  [testSpec] Rhino classes (js.jar) not
> > found - Javascript disabled
> >
> >
> > as it mentioned above it gives me an error that
> > Javascript has been disabled!
> > :(
> >
> > Help!
> >
> > Aatish
> >
> >
> > --- Scot Hale <halesm@hotmail.com> wrote:
> > > I believe webtest comes packaged with mozilla
> Rhino
> > > javascript support, as
> > > implemented by HttpUnit.
> > >
> > > It works a great majority of the time.
> > >
> > > If you want to remove javascript support, just
> > > remove the js.jar from the
> > > lib directory.
> > >
> > > ----- Original Message -----
> > > From: "Charles Hudak" <CHudak@arrowheadgrp.com>
> > > To: <webtest@lists.canoo.com>
> > > Sent: Wednesday, March 26, 2003 4:22 PM
> > > Subject: [Webtest] javascript support
> > >
> > >
> > > > Hi,
> > > >
> > > > I searched the web and only found an old post
> > > regarding Canoo and JS
> > > > support. Is there any plan to support this in
> the
> > > near future? What are
> > > the
> > > > alternative testing frameworks that support
> JS?
> > > I'd prefer to use Canoo
> > > > since the simple XML test files are about all
> my
> > > QA folks can manage.
> > > >
> _______________________________________________
> > > > 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
> >
> >
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! Platinum - Watch CBS' NCAA March Madness,
> live on your desktop!
> > http://platinum.yahoo.com
> > _______________________________________________
> > 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


__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com