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="center" bgcolor="#FBFBFB"><a
href="javascript:eliminar('10101A', 'prueba marcos');"><img
src="imagenes/ico_eliminar.gif" alt="eliminar" width="8" height="9"
border="0"></a></td>
<td align="center" bgcolor="#F7F7F7"><a href="javascript:eliminar('201011',
'Desajustes conviven. incumplim. oblig. econ. del cónyuge');"><img
src="imagenes/ico_eliminar.gif" alt="eliminar" width="8" height="9"
border="0"></a></td>
<td align="center" bgcolor="#FBFBFB"><a href="javascript:eliminar('201051',
'Desajustes convivienciales por ser soltera gestante');"><img
src="imagenes/ico_eliminar.gif" alt="eliminar" width="8" height="9"
border="0"></a></td>
....
And there are a lot more links like this... But as I commented on last mail,
I can not follow them.
Thanks for your help one more time.
--
Caminante no hay camino, se hace camino al andar.
-- Antonio Machado, 'Campos de Castilla'
Francisco Javier Martín
Desarrollo de Proyectos - Valladolid
Security Solutions & Services Division
Edif. Solar, Of. 13, 14, 15
Parque Tecnológico Boecillo. 47151 Valladolid. España
Tel.: 983 54 65 55 Fax: 983 54 66 09
-----Mensaje original-----
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En
nombre de [EMAIL PROTECTED]
Enviado el: jueves, 31 de mayo de 2007 12:01
Para: [email protected]
Asunto: WebTest digest, Vol 1 #1855 - 7 msgs
Send WebTest mailing list submissions to
[email protected]
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
[EMAIL PROTECTED]
You can reach the person managing the list at
[EMAIL PROTECTED]
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" <[EMAIL PROTECTED]>
To: "webtest" <[email protected]>
Subject: [Webtest] help me for unsubscribe
Reply-To: [email protected]
Reply-To: "Antonella Biunda" <[EMAIL PROTECTED]>
'help'
=0A=0A=0A------------------------------------------------------=0ALeggi G=
RATIS le tue mail con il telefonino i-mode=99 di Wind=0Ahttp://i-mode.win=
d.it/=0A
--__--__--
Message: 2
Date: Wed, 30 May 2007 14:00:11 +0200
From: Stephan Wiese <[EMAIL PROTECTED]>
Organization: Unister GmbH
To: [email protected]
Subject: [Webtest] Subdirectory for webtest results
Reply-To: [email protected]
Reply-To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
web: http://www.unister-gmbh.de
--__--__--
Message: 3
Date: Wed, 30 May 2007 14:49:17 +0200
From: Marc Guillemot <[EMAIL PROTECTED]>
To: [email protected]
Subject: Re: [Webtest] Subdirectory for webtest results
Reply-To: [email protected]
Reply-To: Marc Guillemot <[EMAIL PROTECTED]>
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,
>
> 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: [EMAIL PROTECTED]
> web: http://www.unister-gmbh.de
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
>
--
Blog: http://mguillem.wordpress.com
--__--__--
Message: 4
Date: Wed, 30 May 2007 15:21:16 +0200 (CEST)
From: "Denis N. Antonioli (JIRA)" <[EMAIL PROTECTED]>
To: [email protected]
Subject: [Webtest] [webtest][JIRA] Created: (WT-310) Gets jemmy 2.2.4
through the pom
Reply-To: [email protected]
Reply-To: "Denis N. Antonioli (JIRA)" <[EMAIL PROTECTED]>
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
--
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"
<[EMAIL PROTECTED]>
To: <[email protected]>, <[email protected]>
Date: Wed, 30 May 2007 17:14:23 +0200
Organization: THALES
Subject: [Webtest] javascript link
Reply-To: [email protected]
Reply-To: <[EMAIL PROTECTED]>
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 =
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:=20
<clickLink description=3D"Click link: click boton: Eliminar"
href=3D"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) =
-
-> gotoTarget by clickLink
[not] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: not =
(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: =
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: =
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)=
at =
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=
r.j
ava:40)
at =
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 =
but
it also failed. I tried:
<storeRegEx=20
description=3D"Extract target location from javascript command"
=
text=3D".*name=3D"href".*href=3D"javascript:eliminar(10101=
A,
prueba marcos)""
property=3D"targetLocation" />
<invoke=20
description=3D"Invoke target page specified in the javascript =
statement"
url=3D"#{targetLocation}"
save=3D"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 =
from
this class: com.canoo.webtest.engine.StepFailedException
[storeRegEx] INFO (com.canoo.webtest.steps.Step) - Message was: No =
match
for regular expression =
<.*name=3D"href".*href=3D"javascript:eliminar('10101A',
'prueba marcos')">
INFO (com.canoo.webtest.steps.Step) - Running with: Canoo Webtest: =
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=3D"href".*href=3D"javascript:eliminar('10101A', =
'prueba
marcos')">
INFO (com.canoo.webtest.steps.Step) - Running with: Canoo Webtest: =
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=3D"href".*href=3D"javascript:eliminar('10101A', =
'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=3D"href".*href=3D"javascript:eliminar('10101A', 'prueba =
marcos')">"
at
com.canoo.webtest.ant.WebtestTask.stopBuildIfNeeded(WebtestTask.java:228)=
at =
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=
r.j
ava:40)
at =
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?=20
=BF?
Cheers, FJMartin.
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.
--__--__--
Message: 6
From: "Denis N. Antonioli" <[EMAIL PROTECTED]>
Subject: Re: [Webtest] javascript link
Date: Wed, 30 May 2007 21:01:43 +0200
To: [email protected]
Reply-To: [email protected]
Reply-To: "Denis N. Antonioli" <[EMAIL PROTECTED]>
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
> links like
> this:
> <!--<td align="center" bgcolor="#FBFBFB"> <a
> href="javascript:eliminar('10101A', 'prueba marcos');"><img
> src="imagenes/ico_eliminar.gif" alt="eliminar" width="8" height="9"
> border="0"></a></td>-->
>
> If I try:
> <clickLink description="Click link: click boton: Eliminar"
> href="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
> function but
> it also failed. I tried:
> <storeRegEx
> description="Extract target location from javascript command"
> text=".*name="href".*href="javascript:eliminar
> (10101A,
> prueba marcos)""
> property="targetLocation" />
> <invoke
> description="Invoke target page specified in the javascript
> statement"
> url="#{targetLocation}"
> save="targetPage" />
>
[...]
> Test step steps (C:\webtest 2.5\SAUSS\PruebaPc004b.xml:53: ) null
> failed
> with message "No match for regular expression <
> .*name="href".*href="javascript:eliminar('10101A', 'prueba marcos')">"
As the error message shows, your regexp does not match.
This could do:
> <storeRegEx
> description="Extract target location from javascript command"
> text="href="javascript:eliminar(10101A, prueba marcos)
> ""
> property="targetLocation" />
But I would consider it dubious to try to click on a link that isn't
even available to the user!
Best
dna
--
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 <[EMAIL PROTECTED]>
Organization: Unister GmbH
To: [email protected]
Subject: Re: [Webtest] Subdirectory for webtest results
Reply-To: [email protected]
Reply-To: [EMAIL PROTECTED]
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:
>
>> 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: [EMAIL PROTECTED]
>> web: http://www.unister-gmbh.de
>> _______________________________________________
>> WebTest mailing list
>> [email protected]
>> http://lists.canoo.com/mailman/listinfo/webtest
>>
>>
>
>
>
--__--__--
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest
End of WebTest Digest
AVISO LEGAL: La informacion contenida en este mensaje y cualquier documento
adjunto en el mismo es confidencial, puede estar legalmente protegida y esta
dirigida solamente al destinatario. La publicacion, uso, distribucion,
impresion o copia no autorizada del contenido de este mensaje, esta
estrictamente prohibida y puede ser ilegal. Si Vd. ha recibido este mensaje 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 document
is confidential, covered by law and intended solely for the recipient. 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.
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest