[Webtest] RE: WebTest digest, Vol 1 #1855 - 7 msgs

Francisco Javier Martin Gutierrez francisco-javier.martin@thalesgroup.com
Thu, 31 May 2007 13:19:55 +0200


Hello:

I have to be perfect writing you because next time you could think that =
I am
stupid (If you do not think it yet). I copied the link from my xml test =
and
not from the page (I comment the text that do not have to be executed on =
my
tests).

It is obvious for me that link is available to the user. And it was =
obvious
for me that you could think that it was. I can follow the link one and =
one
hundred times using a browser, but not using webtest. Well, the correct
links are:

                <td align=3D"center" bgcolor=3D"#FBFBFB"><a
href=3D"javascript:eliminar('10101A', 'prueba marcos');"><img
src=3D"imagenes/ico_eliminar.gif" alt=3D"eliminar" width=3D"8" =
height=3D"9"
border=3D"0"></a></td>

<td align=3D"center" bgcolor=3D"#F7F7F7"><a =
href=3D"javascript:eliminar('201011',
'Desajustes conviven. incumplim. oblig. econ. del c=F3nyuge');"><img
src=3D"imagenes/ico_eliminar.gif" alt=3D"eliminar" width=3D"8" =
height=3D"9"
border=3D"0"></a></td>

<td align=3D"center" bgcolor=3D"#FBFBFB"><a =
href=3D"javascript:eliminar('201051',
'Desajustes convivienciales por ser soltera gestante');"><img
src=3D"imagenes/ico_eliminar.gif" alt=3D"eliminar" width=3D"8" =
height=3D"9"
border=3D"0"></a></td>

....

And there are a lot more links like this... But as I commented on last =
mail,
I can not follow them.=20

Thanks for your help one more time.

--=20
Caminante no hay camino, se hace camino al andar.
   -- Antonio Machado, 'Campos de Castilla'

Francisco Javier Mart=EDn=20
Desarrollo de Proyectos - Valladolid
Security Solutions & Services Division =09
	=20
Edif. Solar, Of. 13, 14, 15
Parque Tecnol=F3gico Boecillo. 47151 Valladolid. Espa=F1a
Tel.: 983 54 65 55   Fax: 983 54 66 09	=20
	=20
-----Mensaje original-----
De: webtest-admin@lists.canoo.com [mailto:webtest-admin@lists.canoo.com] =
En
nombre de webtest-request@lists.canoo.com
Enviado el: jueves, 31 de mayo de 2007 12:01
Para: webtest@lists.canoo.com
Asunto: WebTest digest, Vol 1 #1855 - 7 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. help me for unsubscribe (Antonella Biunda)
   2. Subdirectory for webtest results (Stephan Wiese)
   3. Re: Subdirectory for webtest results (Marc Guillemot)
   4. [webtest][JIRA] Created: (WT-310) Gets jemmy 2.2.4 through the pom
(Denis N. Antonioli (JIRA))
   5. javascript link (Francisco Javier Martin Gutierrez)
   6. Re: javascript link (Denis N. Antonioli)
   7. Re: Subdirectory for webtest results (Stephan Wiese)

--__--__--

Message: 1
Date: Wed, 30 May 2007 13:53:25 +0200
From: "Antonella Biunda" <antonellabiunda@libero.it>
To: "webtest" <webtest@lists.canoo.com>
Subject: [Webtest] help me for unsubscribe
Reply-To: webtest@lists.canoo.com
Reply-To: "Antonella Biunda" <antonellabiunda@libero.it>

'help'=20


=3D0A=3D0A=3D0A------------------------------------------------------=3D0=
ALeggi G=3D
RATIS le tue mail con il telefonino i-mode=3D99 di =
Wind=3D0Ahttp://i-mode.win=3D
d.it/=3D0A


--__--__--

Message: 2
Date: Wed, 30 May 2007 14:00:11 +0200
From: Stephan Wiese <stephan.wiese@unister-gmbh.de>
Organization: Unister GmbH
To: webtest@lists.canoo.com
Subject: [Webtest] Subdirectory for webtest results
Reply-To: webtest@lists.canoo.com
Reply-To: stephan.wiese@unister-gmbh.de

Hi,

I'm looking for a  possibility to create subdirectorys / subfiles in the =

webtest results.
Like:
http://webtest.canoo.com/webtest/reports/selftest/WebTestReport.html

Under:
http://lists.canoo.com/pipermail/webtest/2006q4/007368.html
and
http://webtest-community.canoo.com/jira/browse/WT-252
has been a open  discussion about that.

Are there any solutions yet?

Thanks in advance

Stephan

__________________________________________
Stephan Wiese mail: stephan.wiese@unister-gmbh.de
web:  http://www.unister-gmbh.de

--__--__--

Message: 3
Date: Wed, 30 May 2007 14:49:17 +0200
From: Marc Guillemot <mguillemot@yahoo.fr>
To: webtest@lists.canoo.com
Subject: Re: [Webtest] Subdirectory for webtest results
Reply-To: webtest@lists.canoo.com
Reply-To: Marc Guillemot <mguillemot@yahoo.fr>

Hi Stephan,

if you mean 1 detailed report per <webtest> and use webtest's xslt, you
just need to configure the singleReportsMode parameter to "external".
The simplest way to do it (and to simplify your main build file) is to
use WebTest's webtest.xml file (where "external" is the default mode).

If you mean one directory per <webtest>'s artifacts, then nothing new,
just register you as watcher of WT-252 to stay informed.

Marc.

Stephan Wiese wrote:
> Hi,
>=20
> I'm looking for a  possibility to create subdirectorys / subfiles in =
the
> webtest results.
> Like:
> http://webtest.canoo.com/webtest/reports/selftest/WebTestReport.html
>=20
> Under:
> http://lists.canoo.com/pipermail/webtest/2006q4/007368.html
> and
> http://webtest-community.canoo.com/jira/browse/WT-252
> has been a open  discussion about that.
>=20
> Are there any solutions yet?
>=20
> Thanks in advance
>=20
> Stephan
>=20
> __________________________________________
> Stephan Wiese mail: stephan.wiese@unister-gmbh.de
> web:  http://www.unister-gmbh.de
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>=20


--=20
Blog: http://mguillem.wordpress.com


--__--__--

Message: 4
Date: Wed, 30 May 2007 15:21:16 +0200 (CEST)
From: "Denis N. Antonioli (JIRA)" <noreply@canoo.com>
To: webtest@lists.canoo.com
Subject: [Webtest] [webtest][JIRA] Created: (WT-310) Gets jemmy 2.2.4
through the pom
Reply-To: webtest@lists.canoo.com
Reply-To: "Denis N. Antonioli (JIRA)" <noreply@canoo.com>

Gets jemmy 2.2.4 through the pom
--------------------------------

         Key: WT-310
         URL: http://webtest-community.canoo.com/jira/browse/WT-310
     Project: WebTest
        Type: Task

    Reporter: Denis N. Antonioli
 Assigned to: Denis N. Antonioli=20




--=20
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://webtest-community.canoo.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


--__--__--

Message: 5
From: "Francisco Javier Martin Gutierrez"
<francisco-javier.martin@thalesgroup.com>
To: <webtest@lists.canoo.com>, <webtest@lists.canoo.com>
Date: Wed, 30 May 2007 17:14:23 +0200
Organization: THALES
Subject: [Webtest] javascript link
Reply-To: webtest@lists.canoo.com
Reply-To: <francisco-javier.martin@thalesgroup.com>

Hi:

I need to follow a javascript link but it does not work. I try using
clicklink and storeregex but both fail. There are more than one links =
=3D
like
this:
<!--<td align=3D3D"center" bgcolor=3D3D"#FBFBFB">	<a
href=3D3D"javascript:eliminar('10101A', 'prueba marcos');"><img
src=3D3D"imagenes/ico_eliminar.gif" alt=3D3D"eliminar" width=3D3D"8" =3D
height=3D3D"9"
border=3D3D"0"></a></td>-->

If I try:=3D20
  <clickLink	description=3D3D"Click link: click boton: Eliminar"
    href=3D3D"javascript:eliminar('10101A', 'prueba marcos');"

Output is:
[ifStep]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: ifStep
(54/56)
[condition]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
condition (54/56)
[verifyText]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
verifyText "Texto presente: 10101A" (54/56)
[expectDialog]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
expectDialog "Esta seguro que desea eliminar la valoracion..." (54/56)
[clickLink]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
clickLink "Click link: click boton: Eliminar" (54/56)
[clickLink]  INFO (com.canoo.webtest.steps.request.AbstractTargetAction) =
=3D
-
-> gotoTarget by clickLink
[not]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: not =3D
(55/56)
[verifyText]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
verifyText "Texto presente: 10101A" (55/56)
 INFO (com.canoo.webtest.steps.Step) - Running with: Canoo Webtest: =3D
R_1561.
 INFO (com.canoo.webtest.steps.Step) - Exception thrown from this class:
com.canoo.webtest.engine.StepFailedException
 INFO (com.canoo.webtest.steps.Step) - Message was: Wrapped step did not
fail: null
 INFO (com.canoo.webtest.steps.Step) - Running with: Canoo Webtest: =3D
R_1561.
 INFO (com.canoo.webtest.steps.Step) - Exception thrown from this class:
com.canoo.webtest.engine.StepFailedException
 INFO (com.canoo.webtest.steps.Step) - Message was: Wrapped step did not
fail: null
Adding reference: ant.PropertyHelper
 INFO (com.canoo.webtest.ant.WebtestTask) - Finished executing webtest
"PruebaPc004" (C:\webtest 2.5\SAUSS\PruebaPc004b.
xml:50: )
 INFO (com.canoo.webtest.ant.WebtestTask) - Test report successfully
created.

BUILD FAILED
C:\webtest 2.5\SAUSS\PruebaPc004b.xml:50: Canoo Webtest: R_1561.
Test failed.
Test step steps (C:\webtest 2.5\SAUSS\PruebaPc004b.xml:53: ) null failed
with message "Wrapped step did not fail: null"
        at
com.canoo.webtest.ant.WebtestTask.stopBuildIfNeeded(WebtestTask.java:228)=
=3D

        at =3D
com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:175)
        at
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.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecuto=
=3D
r.j
ava:40)
        at =3D
org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.Main.runBuild(Main.java:668)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)




So I though that I could store the link contained in javascript function =
=3D
but
it also failed. I tried:
<storeRegEx=3D20
      description=3D3D"Extract target location from javascript command"
      =3D
text=3D3D".*name=3D3D&quot;href&quot;.*href=3D3D&quot;javascript:eliminar=
(10101=3D
A,
prueba marcos)&quot;"
      property=3D3D"targetLocation" />
    <invoke=3D20
      description=3D3D"Invoke target page specified in the javascript =
=3D
statement"
      url=3D3D"#{targetLocation}"
      save=3D3D"targetPage" />


But It also fails:
[expectDialog]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
expectDialog "Esta seguro que desea eliminar la valoracion..." (55/57)
[storeRegEx]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
storeRegEx "Extract target location from javascript command" (55/57)
[storeRegEx]  INFO (com.canoo.webtest.steps.Step) - Running with: Canoo
Webtest: R_1561.
[storeRegEx]  INFO (com.canoo.webtest.steps.Step) - Exception thrown =3D
from
this class: com.canoo.webtest.engine.StepFailedException
[storeRegEx]  INFO (com.canoo.webtest.steps.Step) - Message was: No =3D
match
for regular expression =3D
<.*name=3D3D"href".*href=3D3D"javascript:eliminar('10101A',
'prueba marcos')">
 INFO (com.canoo.webtest.steps.Step) - Running with: Canoo Webtest: =3D
R_1561.
 INFO (com.canoo.webtest.steps.Step) - Exception thrown from this class:
com.canoo.webtest.engine.StepFailedException
 INFO (com.canoo.webtest.steps.Step) - Message was: No match for regular
expression <.*name=3D3D"href".*href=3D3D"javascript:eliminar('10101A', =
=3D
'prueba
marcos')">
 INFO (com.canoo.webtest.steps.Step) - Running with: Canoo Webtest: =3D
R_1561.
 INFO (com.canoo.webtest.steps.Step) - Exception thrown from this class:
com.canoo.webtest.engine.StepFailedException
 INFO (com.canoo.webtest.steps.Step) - Message was: No match for regular
expression <.*name=3D3D"href".*href=3D3D"javascript:eliminar('10101A', =
=3D
'prueba
marcos')">
Adding reference: ant.PropertyHelper
 INFO (com.canoo.webtest.ant.WebtestTask) - Finished executing webtest
"PruebaPc004" (C:\webtest 2.5\SAUSS\PruebaPc004b.xml:50: )
 INFO (com.canoo.webtest.ant.WebtestTask) - Test report successfully
created.

BUILD FAILED
C:\webtest 2.5\SAUSS\PruebaPc004b.xml:50: Canoo Webtest: R_1561.
Test failed.
Test step steps (C:\webtest 2.5\SAUSS\PruebaPc004b.xml:53: ) null failed
with message "No match for regular expression <
.*name=3D3D"href".*href=3D3D"javascript:eliminar('10101A', 'prueba =3D
marcos')">"
        at
com.canoo.webtest.ant.WebtestTask.stopBuildIfNeeded(WebtestTask.java:228)=
=3D

        at =3D
com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:175)
        at
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.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecuto=
=3D
r.j
ava:40)
        at =3D
org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.Main.runBuild(Main.java:668)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

Javascript is enabled to can store href parameter. It is right or not?
Should I change storeRegEx regular expression?=3D20
=3DBF?

Cheers, FJMartin.


AVISO LEGAL: La informacion contenida en este mensaje y cualquier =
documen=3D
to adjunto en el mismo es confidencial, puede estar legalmente protegida =
=3D
y esta dirigida solamente al destinatario. La publicacion, uso, =
distribuc=3D
ion, impresion o copia no autorizada del contenido de este mensaje, esta =
=3D
estrictamente prohibida y puede ser ilegal. Si Vd. ha recibido este =
mensa=3D
je por error, le rogamos destruya el mensaje y lo notifique al remitente =
=3D
o llame al telefono (+34) 91 556 92 62.

DISCLAIMER: The information contained in this message and any attached =
do=3D
cument is confidential, covered by law and intended solely for the =
recipi=3D
ent. The distribution, print, publication, unauthorised copy and / or =
use=3D
 of the message content is strictly forbidden and could be deemed =
illegal=3D
. If you are not the intended recipient of this message, we request that =
=3D
you destroy it and notify the sender either in writing or by calling =
++34=3D
 91 556 92 62.


--__--__--

Message: 6
From: "Denis N. Antonioli" <denis.antonioli@canoo.com>
Subject: Re: [Webtest] javascript link
Date: Wed, 30 May 2007 21:01:43 +0200
To: webtest@lists.canoo.com
Reply-To: webtest@lists.canoo.com
Reply-To: "Denis N. Antonioli" <denis.antonioli@canoo.com>

Hi

On 30 mai 07, at 17:14, Francisco Javier Martin Gutierrez wrote:

> I need to follow a javascript link but it does not work. I try using
> clicklink and storeregex but both fail. There are more than one =20
> links like
> this:
> <!--<td align=3D"center" bgcolor=3D"#FBFBFB">	<a
> href=3D"javascript:eliminar('10101A', 'prueba marcos');"><img
> src=3D"imagenes/ico_eliminar.gif" alt=3D"eliminar" width=3D"8" =
height=3D"9"
> border=3D"0"></a></td>-->
>
> If I try:
>   <clickLink	description=3D"Click link: click boton: Eliminar"
>     href=3D"javascript:eliminar('10101A', 'prueba marcos');"
>

The fragment shows that this link has been commented out!
How do you expect webtest to locate it then?


> So I though that I could store the link contained in javascript =20
> function but
> it also failed. I tried:
> <storeRegEx
>       description=3D"Extract target location from javascript command"
>       =
text=3D".*name=3D&quot;href&quot;.*href=3D&quot;javascript:eliminar=20
> (10101A,
> prueba marcos)&quot;"
>       property=3D"targetLocation" />
>     <invoke
>       description=3D"Invoke target page specified in the javascript =20
> statement"
>       url=3D"#{targetLocation}"
>       save=3D"targetPage" />
>

[...]

> Test step steps (C:\webtest 2.5\SAUSS\PruebaPc004b.xml:53: ) null =20
> failed
> with message "No match for regular expression <
> .*name=3D"href".*href=3D"javascript:eliminar('10101A', 'prueba =
marcos')">"

As the error message shows, your regexp does not match.
This could do:
> <storeRegEx
>       description=3D"Extract target location from javascript command"
>       text=3D"href=3D&quot;javascript:eliminar(10101A, prueba marcos)=20
> &quot;"
>       property=3D"targetLocation" />

But I would consider it dubious to try to click on a link that isn't =20
even available to the user!

Best
	dna

--=20
There once was an Age of Reason, but we've progressed beyond it.
   -- Ayn Rand, 'Atlas Shrugged'


--__--__--

Message: 7
Date: Thu, 31 May 2007 09:50:29 +0200
From: Stephan Wiese <stephan.wiese@unister-gmbh.de>
Organization: Unister GmbH
To: webtest@lists.canoo.com
Subject: Re: [Webtest] Subdirectory for webtest results
Reply-To: webtest@lists.canoo.com
Reply-To: stephan.wiese@unister-gmbh.de

Hi Marc,

thanks for help. singleReportsMode was the answer.

Stephan

Marc Guillemot schrieb:
> Hi Stephan,
>
> if you mean 1 detailed report per <webtest> and use webtest's xslt, =
you
> just need to configure the singleReportsMode parameter to "external".
> The simplest way to do it (and to simplify your main build file) is to
> use WebTest's webtest.xml file (where "external" is the default mode).
>
> If you mean one directory per <webtest>'s artifacts, then nothing new,
> just register you as watcher of WT-252 to stay informed.
>
> Marc.
>
> Stephan Wiese wrote:
>  =20
>> Hi,
>>
>> I'm looking for a  possibility to create subdirectorys / subfiles in =
the
>> webtest results.
>> Like:
>> http://webtest.canoo.com/webtest/reports/selftest/WebTestReport.html
>>
>> Under:
>> http://lists.canoo.com/pipermail/webtest/2006q4/007368.html
>> and
>> http://webtest-community.canoo.com/jira/browse/WT-252
>> has been a open  discussion about that.
>>
>> Are there any solutions yet?
>>
>> Thanks in advance
>>
>> Stephan
>>
>> __________________________________________
>> Stephan Wiese mail: stephan.wiese@unister-gmbh.de
>> web:  http://www.unister-gmbh.de
>> _______________________________________________
>> WebTest mailing list
>> WebTest@lists.canoo.com
>> http://lists.canoo.com/mailman/listinfo/webtest
>>
>>    =20
>
>
>  =20



--__--__--

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


End of WebTest Digest


AVISO LEGAL: La informacion contenida en este mensaje y cualquier documen=
to adjunto en el mismo es confidencial, puede estar legalmente protegida =
y esta dirigida solamente al destinatario. La publicacion, uso, distribuc=
ion, impresion o copia no autorizada del contenido de este mensaje, esta =
estrictamente prohibida y puede ser ilegal. Si Vd. ha recibido este mensa=
je por error, le rogamos destruya el mensaje y lo notifique al remitente =
o llame al telefono (+34) 91 556 92 62.

DISCLAIMER: The information contained in this message and any attached do=
cument is confidential, covered by law and intended solely for the recipi=
ent. The distribution, print, publication, unauthorised copy and / or use=
 of the message content is strictly forbidden and could be deemed illegal=
. If you are not the intended recipient of this message, we request that =
you destroy it and notify the sender either in writing or by calling ++34=
 91 556 92 62.