[Webtest] javascript support :(
Torben Tretau
webtest@lists.canoo.com
Fri, 28 Mar 2003 10:29:33 +0100
Hi,
and does anyone know which HTTPUnit version is currently in the distribution? ;-)
Torben
The following message was sent by Aatish Arora <a_aatish@yahoo.com> on Thu, 27 Mar 2003 21:48:59 -0800 (PST).
> Hi Goeschl,
>
> I am currently using all the jars that come along with
> Canoo (build 276). Heres what lib/jars.txt mentions:
>
> Jars used:
>
> (runtime)
> junit 3.8
> servlet 2.3
> jtidy 04aug2000r7
> rhino 1.5R4+ (patched)
> NekoHTML 0.7.2 (patched)
>
> (for testing HttpUnit only)
> mail (javamail 1.2)
> activation (jaf 1.0.1)
>
> But i found that the junitversion that comes along
> with it is different - its bundled with 3.7
>
> Also my xerces version is 2.0.2 as against 2.2 that
> comes with the build 276.
>
> regards,
> Aatish
>
> --- Goeschl Siegfried <S.Goeschl@together.at> wrote:
> > Hi Atisch,
> >
> > I've seen this error when playing around with
> > different version of NekoHTML and HTTPUnit to
> > circumvent the problems I had with invalid HTML
> > pages. I think it stems from the newer HTTPUnit
> > JARs.
> >
> > Temporarily I "downgraded" to the the JARs of the
> > original Canoo Webtest distribution for the MAVEN
> > plugin and I got my stuff working a few days ago ...
> > :-) ... and now I can "upgrade" again for the next
> > release of the MAVEN plugin.
> >
> > Just in case that you have solved your problem can
> > you tell me about the JAR version you used?! This
> > would give me a head start for the next release.
> >
> > Thanks in advance
> >
> > Siegfried Goeschl
> >
> >
> >
> >
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Aatish Arora [mailto:a_aatish@yahoo.com]
> > Gesendet: Do 27.03.2003 11:04
> > An: webtest@lists.canoo.com
> > Cc:
> > Betreff: Re: [Webtest] javascript support :(
> >
> >
> >
> > 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:
> >
> === message truncated ===
>
>
> =====
> ================================================
> Six monkeys pounding on six typewriters at random for a million years will
> recreate all the works of Isaac Asimov.
> ================================================
>
> __________________________________________________
> 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
>
>