[Webtest] Clover License

Jacob Portnoy webtest@lists.canoo.com
Tue, 4 Jan 2005 15:05:09 -0500


I have had many problems with cookie-handling in Canoo Webtest, so I =
wrote my own java class using HTTPUnit directly, and managed to get a =
script work to autonomousely run through a series of events. I am now =
attempting to use Canoo Webtest to do the same, and have decided to =
rebuild Webtest so that I can make modifications if need be. However, =
when I attempt to build webtest I receive an error when compiling which =
reads "[clover] No licence file found." However, I then re-run the build =
attempt and receive the following error: "taskdef class =
com.canoo.webtest.extension.EnabledJavaScript cannot be found." Does =
anybody have any ideas? Thanks.


---------------
Jacob Portnoy
Checkerboard LTD=20
508-438-2182=20
JPortnoy@Checkernet.com=20
www.Checkernet.com=20




-----Original Message-----
From: webtest-admin@lists.canoo.com
[mailto:webtest-admin@lists.canoo.com]On Behalf Of
webtest-request@lists.canoo.com
Sent: Tuesday, January 04, 2005 3:01 PM
To: webtest@lists.canoo.com
Subject: WebTest digest, Vol 1 #811 - 6 msgs


Send WebTest mailing list submissions to
	webtest@lists.canoo.com

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.canoo.com/mailman/listinfo/webtest
or, via email, send a message with subject or body 'help' to
	webtest-request@lists.canoo.com

You can reach the person managing the list at
	webtest-admin@lists.canoo.com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of WebTest digest..."


Today's Topics:

   1. RE: possible renaming/refactoring (Eric Pugh)
   2. Re: possible renaming/refactoring (Marc Guillemot)
   3. Re: For info: upgraded htmlunit (HURSTG@Nationwide.com)
   4. Re: For info: upgraded htmlunit (Marc Guillemot)
   5. Building R_646 and using prepareDialogResponse =
(HURSTG@Nationwide.com)
   6. Re: Building R_646 and using prepareDialogResponse (Paul King)

--__--__--

Message: 1
From: "Eric Pugh" <epugh@opensourceconnections.com>
To: <webtest@lists.canoo.com>
Subject: RE: [Webtest] possible renaming/refactoring
Date: Tue, 4 Jan 2005 09:35:10 -0500
Reply-To: webtest@lists.canoo.com

I'll +1 the <webtest/> name as well..  I think that better defines what
it is.  I worked with a non technical guy teaching him about webtest,
and the testSpecification kinda confused him.  He thought it should
define some sort of reusable "specification" that was used over and
over, versus an actual test. =20

Eric

-----Original Message-----
From: webtest-admin@lists.canoo.com
[mailto:webtest-admin@lists.canoo.com] On Behalf Of Dierk Koenig
Sent: Tuesday, January 04, 2005 4:22 AM
To: webtest@lists.canoo.com
Subject: RE: [Webtest] possible renaming/refactoring


Hi Paul,

Yes, names are a little bit confusing here.

Actually, I thought of a renaming such that
<testSpec ...
could be
<webtest ...
(and having both mappings in the taskdef for backward compatibility).

Your suggested renamings are ok for me. Thanks for asking.

I even feel that TestSpec could be changed to a more expressive name.
What is a TestSpec about:
- holding configuration and steps
- open a user session
- stop executing further steps, when a step fails

I wish my english would be better to find a name for such a beast.

cheers
Mittie

> -----Original Message-----
> From: webtest-admin@lists.canoo.com=20
> [mailto:webtest-admin@lists.canoo.com]On Behalf Of Paul King
> Sent: Dienstag, 4. Januar 2005 9:05
> To: webtest@gate2.canoo.com
> Subject: [Webtest] possible renaming/refactoring
>=20
>=20
>=20
> I would like to suggest a possible renaming/refactoring of a small
> handful of classes. It will make no functional change to the codebase.

> What do others think?
>=20
> Rename engine.WebTest -> engine.TestSpec
> Move/rename self.WebTestTest -> engine.TestSpecTest
> Rename ant.TestSpecificationTask -> ant.TestSpecTask
> Rename ant.TestSpecificationTaskTest -> ant.TestSpecTaskTest
>=20
> This will remove the WebTest name which is confusing given the JUnit=20
> naming conventions and also align the name with the testSpec ant task=20
> which is really just a "wrapper" for the test specification.
>=20
> I am happy to do the work but want other people to be happy with the
> idea before starting.
>=20
> Cheers, Paul.
>=20
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com=20
> http://lists.canoo.com/mailman/listinfo/webtest
>=20
_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest



--__--__--

Message: 2
Date: Tue, 04 Jan 2005 15:49:15 +0100
From: Marc Guillemot <mguillemot@yahoo.fr>
To: webtest@lists.canoo.com
Subject: Re: [Webtest] possible renaming/refactoring
Reply-To: webtest@lists.canoo.com

+1 for me


In direction simplification I have some ideas to allow newbies to be =
able to write first webtest like

File myFirstTestFile.xml:

<project name=3D"myFirstTest" default=3D"myTarget">
   <target name=3D"myTarget">
      <webtest>
        <invoke url=3D"http://mySite/myPage.html"/>
        <verifytitle text=3D"my title"/>
      </webtest>
   </target>
</project>

and just run:

ant -f $WEBTEST_HOME/testRunner.xml -Dtestfile=3DmyFirstTestFile.xml

but htmlunit currently takes all my time...

Marc.


Paul King wrote:
>=20
> I would like to suggest a possible renaming/refactoring of a small=20
> handful of classes. It will make no functional change to the codebase. =

> What do others think?
>=20
> Rename engine.WebTest -> engine.TestSpec
> Move/rename self.WebTestTest -> engine.TestSpecTest
> Rename ant.TestSpecificationTask -> ant.TestSpecTask
> Rename ant.TestSpecificationTaskTest -> ant.TestSpecTaskTest
>=20
> This will remove the WebTest name which is confusing given the
> JUnit naming conventions and also align the name with the testSpec ant =

> task which is really just a "wrapper" for the test specification.
>=20
> I am happy to do the work but want other people to be happy with the=20
> idea before starting.
>=20
> Cheers, Paul.
>=20
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>=20


--__--__--

Message: 3
To: webtest@gate2.canoo.com
Subject: Re: [Webtest] For info: upgraded htmlunit
From: HURSTG@Nationwide.com
Date: Tue, 4 Jan 2005 10:19:02 -0600
Reply-To: webtest@lists.canoo.com

This is a multipart message in MIME format.
--=3D_alternative 0059A23586256F7F_=3D
Content-Type: text/plain; charset=3D"us-ascii"

Is there a way to use setStrictMode in HTTPClient yet? The new HTMLUnit=20
and HTTPClient jars seem to be packaging the cookies in a slightly=20
different format now (indicating a different default cookie policy), but =

they are still being sent in individual client request headers.

Jerry Hurst






Marc Guillemot <mguillemot@yahoo.fr>

Sent by: webtest-admin@gate2.canoo.com





01/03/2005 10:24 AM
Please respond to webtest

=20
T
To:     webtest@gate2.canoo.com
cc:=20

bcc:=20
Subject:        [Webtest] For info: upgraded htmlunit


Hi,

I've upgraded the htmlunit jar and related libs to current build from=20
htmlunit's cvs. This makes the last changes in=20
htmlunit available for webtest too:
http://htmlunit.sourceforge.net/changes-report.html

The main changes are:
- improved JavaScript support: events, outerHTML, insertAdjacentHTML,=20
innerHTML, ...
- upgrate from commons-httpclient-2.0.1.jar to=20
commons-httpclient-3.0-beta1.jar
- upgrate of Rhino javascript engine from js-1.5R4.1.jar to js-1.6R1.jar
- upgrate of the html parser nekohtml-0.8.1.jar to nekohtml-0.9.4.jar

If the server wakes up to perform a build, this should be available in=20
build 644.

Marc.

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



--=3D_alternative 0059A23586256F7F_=3D
Content-Type: text/html; charset=3D"us-ascii"


<br><font size=3D2 face=3D"sans-serif">Is there a way to use =
setStrictMode in HTTPClient yet? The new HTMLUnit and HTTPClient jars =
seem to be packaging the cookies in a slightly different format now =
(indicating a different default cookie policy), but they are still being =
sent in individual client request headers.<br>
<br>
Jerry Hurst<br>
<br>
</font>
<br>
<br>
<br>
<table width=3D100%>
<tr valign=3Dtop>
<td>
<td><font size=3D1 face=3D"sans-serif"><b>Marc Guillemot =
&lt;mguillemot@yahoo.fr&gt;</b></font>
<br>
<br><font size=3D1 color=3D#808080 face=3D"sans-serif"><i>Sent by: =
webtest-admin@gate2.canoo.com</i></font>
<br>
<br>
<br>
<br>
<br>
<br><font size=3D1 face=3D"sans-serif"><b>01/03/2005 10:24 AM</b></font>
<br><font size=3D1 face=3D"sans-serif">Please respond to webtest</font>
<br>
<td><font size=3D1 face=3D"Arial">&nbsp; &nbsp; &nbsp; &nbsp; </font>
<br><font size=3D1 face=3D"Arial">T</font>
<br><font size=3D1 face=3D"sans-serif">To: &nbsp; &nbsp; &nbsp; =
&nbsp;webtest@gate2.canoo.com</font>
<br><font size=3D1 face=3D"sans-serif">cc: &nbsp; &nbsp; &nbsp; =
&nbsp;</font>
<br>
<br><font size=3D1 face=3D"sans-serif">bcc: &nbsp; &nbsp; &nbsp; =
&nbsp;</font>
<br><font size=3D1 face=3D"sans-serif">Subject: &nbsp; &nbsp; &nbsp; =
&nbsp;[Webtest] For info: upgraded htmlunit</font></table>
<br>
<br>
<br><font size=3D2 face=3D"Courier New">Hi,<br>
<br>
I've upgraded the htmlunit jar and related libs to current build from =
htmlunit's cvs. This makes the last changes in <br>
htmlunit available for webtest too:<br>
http://htmlunit.sourceforge.net/changes-report.html<br>
<br>
The main changes are:<br>
- improved JavaScript support: events, outerHTML, insertAdjacentHTML, =
innerHTML, ...<br>
- upgrate from commons-httpclient-2.0.1.jar to =
commons-httpclient-3.0-beta1.jar<br>
- upgrate of Rhino javascript engine from js-1.5R4.1.jar to =
js-1.6R1.jar<br>
- upgrate of the html parser nekohtml-0.8.1.jar to =
nekohtml-0.9.4.jar<br>
<br>
If the server wakes up to perform a build, this should be available in =
build 644.<br>
<br>
Marc.<br>
<br>
_______________________________________________<br>
WebTest mailing list<br>
WebTest@lists.canoo.com<br>
http://lists.canoo.com/mailman/listinfo/webtest<br>
</font>
<br>
<br>
--=3D_alternative 0059A23586256F7F_=3D--

--__--__--

Message: 4
To: webtest@lists.canoo.com
From: Marc Guillemot <mguillemot@yahoo.fr>
Date: Tue, 04 Jan 2005 17:42:07 +0100
Subject: [Webtest] Re: For info: upgraded htmlunit
Reply-To: webtest@lists.canoo.com

Hi,

htmlunit doesn't set anything yet for cookies, letting httpclient works =
with its default values. A program using=20
htmlunit can configure httpclient as it will but webtest doesn't perform =
any configuration for now.

Marc.

HURSTG@Nationwide.com wrote:
>=20
> Is there a way to use setStrictMode in HTTPClient yet? The new =
HTMLUnit=20
> and HTTPClient jars seem to be packaging the cookies in a slightly=20
> different format now (indicating a different default cookie policy), =
but=20
> they are still being sent in individual client request headers.
>=20
> Jerry Hurst


--__--__--

Message: 5
To: webtest@gate2.canoo.com
From: HURSTG@Nationwide.com
Date: Tue, 4 Jan 2005 13:26:07 -0600
Subject: [Webtest] Building R_646 and using prepareDialogResponse
Reply-To: webtest@lists.canoo.com

This is a multipart message in MIME format.
--=3D_alternative 006AC2DE86256F7F_=3D
Content-Type: text/plain; charset=3D"us-ascii"

What does the 'R_' prepended on the build number mean?

I tried building R_646 and got the results at the end of this letter. =
Two=20
tests fail, but a webtest.jar file is produced. Combining this jar with=20
the latest downloadable build file appears to work for the simplest =
cases.=20
I am trying to test a simple JavaScript with:

<prepareDialogResponse stepid=3D"Save first JavaScript Response"=20
dialogType=3D"confirm" saveProperty=3D"initialDialog"=20
savePropertyType=3D"dynamic" response=3D"true" />
<verifyProperty stepid=3D"Check text from first JavaScript Dialog" =
text=3D"Are=20
you sure?" name=3D"initialDialog" propertyType=3D"dynamic" />

But I get the error:

E:\_TESTING\testtesting\build.xml:6: The following error occurred while=20
executing this line:
Test step verifyProperty=20
(E:\_TESTING\testtesting\Modules\checkformjs.xml:28: )
 named "Check text from first JavaScript Dialog" failed with message=20
"Expected property "initialDialog" to be defined!"

The saveProperty attribute of prepareDialogResponse should define the=20
property, shouldn't it?  Do I have the syntax wrong? I checked against =
the=20
latest documentation. The savePropertyType attribute in=20
prepareDialogResponse was a guess on my part (the latest documentation=20
seems to be blank for this attribute), however I get the same error=20
irregardless of what savePropertyType is set to.

Jerry


Build results:
-------------------------------
C:\Program Files\Sun\WebtestCustom>dotheant > buildresults.txt
    [junit] Test com.canoo.webtest.reporting.AllTests FAILED
    [junit] Test com.canoo.webtest.steps.pdftest.AllTests FAILED

BUILD FAILED
C:\Program Files\Sun\WebtestCustom\build.xml:241: The following error=20
occurred w
hile executing this line:
C:\Program Files\Sun\WebtestCustom\build.xml:301: One or more junit =
tests=20
failed

        at=20
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(Projec
tHelper.java:539)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:388)
        at=20
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:106)

        at=20
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
        at =
org.apache.tools.ant.Project.executeTargets(Project.java:1062)
        at org.apache.tools.ant.Main.runBuild(Main.java:673)
        at org.apache.tools.ant.Main.startAnt(Main.java:188)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
Caused by: C:\Program Files\Sun\WebtestCustom\build.xml:301: One or more =

junit t
ests failed
        at org.apache.tools.ant.taskdefs.Exit.execute(Exit.java:139)
        at=20
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)
        ... 11 more
--- Nested Exception ---
C:\Program Files\Sun\WebtestCustom\build.xml:301: One or more junit =
tests=20
failed

        at org.apache.tools.ant.taskdefs.Exit.execute(Exit.java:139)
        at=20
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)
        at=20
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:106)

        at=20
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
        at =
org.apache.tools.ant.Project.executeTargets(Project.java:1062)
        at org.apache.tools.ant.Main.runBuild(Main.java:673)
        at org.apache.tools.ant.Main.startAnt(Main.java:188)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)

Total time: 1 minute 6 seconds
C:\Program Files\Sun\WebtestCustom>

--=3D_alternative 006AC2DE86256F7F_=3D
Content-Type: text/html; charset=3D"us-ascii"


<br><font size=3D2 face=3D"sans-serif">What does the 'R_' prepended on =
the build number mean?</font>
<br>
<br><font size=3D2 face=3D"sans-serif">I tried building R_646 and got =
the results at the end of this letter. Two tests fail, but a webtest.jar =
file is produced. Combining this jar with the latest downloadable build =
file appears to work for the simplest cases. I am trying to test a =
simple JavaScript with:</font>
<br>
<br><font size=3D2 face=3D"sans-serif">&lt;prepareDialogResponse =
stepid=3D&quot;Save first JavaScript Response&quot; =
dialogType=3D&quot;confirm&quot; =
saveProperty=3D&quot;initialDialog&quot; =
savePropertyType=3D&quot;dynamic&quot; response=3D&quot;true&quot; =
/&gt;</font>
<br><font size=3D2 face=3D"sans-serif">&lt;verifyProperty =
stepid=3D&quot;Check text from first JavaScript Dialog&quot; =
text=3D&quot;Are you sure?&quot; name=3D&quot;initialDialog&quot; =
propertyType=3D&quot;dynamic&quot; /&gt;</font>
<br>
<br><font size=3D2 face=3D"sans-serif">But I get the error:</font>
<br>
<br><font size=3D2 =
face=3D"sans-serif">E:\_TESTING\testtesting\build.xml:6: The following =
error occurred while executing this line:</font>
<br><font size=3D2 face=3D"sans-serif">Test step verifyProperty =
(E:\_TESTING\testtesting\Modules\checkformjs.xml:28: )</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp;named &quot;Check text from =
first JavaScript Dialog&quot; failed with message &quot;Expected =
property &quot;initialDialog&quot; to be defined!&quot;</font>
<br>
<br><font size=3D2 face=3D"sans-serif">The saveProperty attribute of =
prepareDialogResponse should define the property, shouldn't it? &nbsp;Do =
I have the syntax wrong? I checked against the latest documentation. The =
savePropertyType attribute in prepareDialogResponse was a guess on my =
part (the latest documentation seems to be blank for this attribute), =
however I get the same error irregardless of what savePropertyType is =
set to.</font>
<br>
<br><font size=3D2 face=3D"sans-serif">Jerry</font>
<br>
<br>
<br><font size=3D2 face=3D"sans-serif">Build results:</font>
<br><font size=3D2 =
face=3D"sans-serif">-------------------------------</font>
<br><font size=3D2 face=3D"sans-serif">C:\Program =
Files\Sun\WebtestCustom&gt;dotheant &gt; buildresults.txt</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; [junit] Test =
com.canoo.webtest.reporting.AllTests FAILED</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; [junit] Test =
com.canoo.webtest.steps.pdftest.AllTests FAILED</font>
<br>
<br><font size=3D2 face=3D"sans-serif">BUILD FAILED</font>
<br><font size=3D2 face=3D"sans-serif">C:\Program =
Files\Sun\WebtestCustom\build.xml:241: The following error occurred =
w</font>
<br><font size=3D2 face=3D"sans-serif">hile executing this line:</font>
<br><font size=3D2 face=3D"sans-serif">C:\Program =
Files\Sun\WebtestCustom\build.xml:301: One or more junit tests =
failed</font>
<br>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(Projec</fo=
nt>
<br><font size=3D2 face=3D"sans-serif">tHelper.java:539)</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:388)</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:106)</fo=
nt>
<br>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)</fon=
t>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.Task.perform(Task.java:364)</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.Target.execute(Target.java:341)</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.Target.performTasks(Target.java:369)</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.Project.executeTarget(Project.java:1214)</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.Project.executeTargets(Project.java:1062)</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.Main.runBuild(Main.java:673)</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.Main.startAnt(Main.java:188)</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)</font>
<br><font size=3D2 face=3D"sans-serif">Caused by: C:\Program =
Files\Sun\WebtestCustom\build.xml:301: One or more junit t</font>
<br><font size=3D2 face=3D"sans-serif">ests failed</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.taskdefs.Exit.execute(Exit.java:139)</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)</fon=
t>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.Task.perform(Task.java:364)</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.Target.execute(Target.java:341)</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.Target.performTasks(Target.java:369)</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.Project.executeTarget(Project.java:1214)</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; ... =
11 more</font>
<br><font size=3D2 face=3D"sans-serif">--- Nested Exception ---</font>
<br><font size=3D2 face=3D"sans-serif">C:\Program =
Files\Sun\WebtestCustom\build.xml:301: One or more junit tests =
failed</font>
<br>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.taskdefs.Exit.execute(Exit.java:139)</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)</fon=
t>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.Task.perform(Task.java:364)</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.Target.execute(Target.java:341)</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.Target.performTasks(Target.java:369)</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.Project.executeTarget(Project.java:1214)</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:106)</fo=
nt>
<br>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)</fon=
t>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.Task.perform(Task.java:364)</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.Target.execute(Target.java:341)</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.Target.performTasks(Target.java:369)</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.Project.executeTarget(Project.java:1214)</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.Project.executeTargets(Project.java:1062)</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.Main.runBuild(Main.java:673)</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.Main.startAnt(Main.java:188)</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; at =
org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)</font>
<br>
<br><font size=3D2 face=3D"sans-serif">Total time: 1 minute 6 =
seconds</font>
<br><font size=3D2 face=3D"sans-serif">C:\Program =
Files\Sun\WebtestCustom&gt;</font>
<br>
--=3D_alternative 006AC2DE86256F7F_=3D--

--__--__--

Message: 6
Date: Wed, 05 Jan 2005 05:58:50 +1000
From: Paul King <paulk@asert.com.au>
To: webtest@gate2.canoo.com
Subject: Re: [Webtest] Building R_646 and using prepareDialogResponse
Reply-To: webtest@lists.canoo.com


The "R_" is just the release number (AKA build number). You shouldn't=20
need to do a custom build just to use the Dialog steps (but you may have =

other custom steps). They are mostly in the main distribution now. There =

are unit and functional tests (and xdoclet style doco) but no examples.

The doco for the original custom Dialog steps on the community site is=20
more complete but out of date. It doesn't mention the optional=20
savePropertyType attribute. You will mostly never need it. The default=20
is "dynamic" and the other sometimes used value would be "ant". If you=20
look in the extension steps syntaxReference for the main distribution=20
you can see the details.

In your example, is there some kind of clickbutton or clicklink between=20
the prepareDialogResponse and verifyProperty? I would expect such a step =

as it fires off the JavaScript. The clickbutton would be the one with=20
the actual JavaScript or a reference to the JavaScript function in the=20
onClick attribute.

Cheers, Paul.

HURSTG@Nationwide.com wrote:
>=20
> What does the 'R_' prepended on the build number mean?
>=20
> I tried building R_646 and got the results at the end of this letter.=20
> Two tests fail, but a webtest.jar file is produced. Combining this jar =

> with the latest downloadable build file appears to work for the =
simplest=20
> cases. I am trying to test a simple JavaScript with:
>=20
> <prepareDialogResponse stepid=3D"Save first JavaScript Response"=20
> dialogType=3D"confirm" saveProperty=3D"initialDialog"=20
> savePropertyType=3D"dynamic" response=3D"true" />
> <verifyProperty stepid=3D"Check text from first JavaScript Dialog"=20
> text=3D"Are you sure?" name=3D"initialDialog" propertyType=3D"dynamic" =
/>
>=20
> But I get the error:
>=20
> E:\_TESTING\testtesting\build.xml:6: The following error occurred =
while=20
> executing this line:
> Test step verifyProperty=20
> (E:\_TESTING\testtesting\Modules\checkformjs.xml:28: )
>  named "Check text from first JavaScript Dialog" failed with message=20
> "Expected property "initialDialog" to be defined!"
>=20
> The saveProperty attribute of prepareDialogResponse should define the=20
> property, shouldn't it?  Do I have the syntax wrong? I checked against =

> the latest documentation. The savePropertyType attribute in=20
> prepareDialogResponse was a guess on my part (the latest documentation =

> seems to be blank for this attribute), however I get the same error=20
> irregardless of what savePropertyType is set to.
>=20
> Jerry


--__--__--

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


End of WebTest Digest