Hi all,
Firstly thanks all for your suggestions. There is one that could help me
(ant task called buildnumber).
Secondly sorry: my English is not as good as I thought. Well, I try it
again.
The web I try to test manage users, like could be an e-mail account. If you
want to create a new e-mail account you will need one new user each time you
try it. It is because if one user has already an account the web won't alloy
you to do it. To solve it I always create users with the same name (that
identifies the webtest test) and with different surnames (by adding a number
to create different users). The number is incremented to create different
users. An example can be:
User 1: name = PruebaPc000 surname = AUTOMATIC 000
User 2: name = PruebaPc000 surname = AUTOMATIC 001
User 3: name = PruebaPc000 surname = AUTOMATIC 002
...
The surname number is incremented each time the test is executed. So the
question was: how can I do it automatically? Is there another way to do it?
(It is not possible to remove users)
I think that the extension step RETRY is not a good solution for this case
because if I have previously executed 100 times a test, the test will fail
100 times before to obtain one BUILD SUCCESFULLY. The run time will be too
long.
Thank all one more time.
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, 28 de junio de 2007 11:27
Para: [email protected]
Asunto: WebTest digest, Vol 1 #1882 - 9 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. Re: Simple question (Michael Habbert)
2. Re: Simple question (dav)
3. Re: Simple question (Denis N. Antonioli)
4. Canoo script - submit a form by pressing Enter key (My acc)
5. Using Groovy with Canoo (My acc)
6. Using javascript with canoo Webtest for simulating keyDown (Acc Mera)
7. RE: Using Groovy with Canoo (Dierk Koenig)
8. Re: Canoo script - submit a form by pressing Enter key (amol
kashetwar)
9. RE: Using javascript with canoo Webtest for simulating keyDown (Dierk
Koenig)
--__--__--
Message: 1
Date: Wed, 27 Jun 2007 14:01:47 +0200
From: Michael Habbert <[EMAIL PROTECTED]>
To: [email protected]
Subject: Re: [Webtest] Simple question
Reply-To: [email protected]
Reply-To: Michael Habbert <[EMAIL PROTECTED]>
Hi Francisco Javier Martin Gutierrez,
Francisco Javier Martin Gutierrez wrote:
> Hello:
>=20
> =20
>=20
> I have a simple question for you.
>=20
> =20
>=20
> It is necessary to create a new user to entry to my web site each time =
I=20
> run proves, and I have a number that is increased manually each time=20
> that proves are ran.
[...]
What do mean? What number? Is the number shown on the website? What is it=
for?
For what reason do you need the number?
--=20
Mit freundlichen Gr=C3=BC=C3=9Fen
Michael Habbert
--__--__--
Message: 2
Subject: Re: [Webtest] Simple question
From: dav <[EMAIL PROTECTED]>
To: Michael Habbert <[EMAIL PROTECTED]>
Cc: [email protected]
Date: Wed, 27 Jun 2007 14:10:16 +0200
Reply-To: [email protected]
Reply-To: dav <[EMAIL PROTECTED]>
[...]
> > It is necessary to create a new user to entry to my web site each time I
> > run proves, and I have a number that is increased manually each time
> > that proves are ran.
> [...]
>
> What do mean? What number? Is the number shown on the website? What is it
for?
> For what reason do you need the number?
>
If I've rightly understood, he wants to run webTest creating user
"user1". Next time, he'd like to run same test without to previously
remove this user1, and looks for a way to increment (Francisco
Javier ?).
I don't know if there is a way to store counter in a file and to
retrieve it next time tests will be run. But maybe you can try to create
user1, user2, etc. until you find next free user (See retry
http://webtest.canoo.com/webtest/manual/retry.html).
Another way (and should be better) is to run some SQL queries before to
begin webtest.
david.
--
--__--__--
Message: 3
From: "Denis N. Antonioli" <[EMAIL PROTECTED]>
Subject: Re: [Webtest] Simple question
Date: Wed, 27 Jun 2007 18:32:34 +0200
To: [email protected]
Reply-To: [email protected]
Reply-To: "Denis N. Antonioli" <[EMAIL PROTECTED]>
Hi
On 27 juin 07, at 14:10, dav wrote:
> [...]
>>> It is necessary to create a new user to entry to my web site each =20=
>>> time I
>>> run proves, and I have a number that is increased manually each time
>>> that proves are ran.
>> [...]
>>
>> What do mean? What number? Is the number shown on the website? =20
>> What is it for?
>> For what reason do you need the number?
>>
> If I've rightly understood, he wants to run webTest creating user
> "user1". Next time, he'd like to run same test without to previously
> remove this user1, and looks for a way to increment (Francisco
> Javier ?).
>
> I don't know if there is a way to store counter in a file and to
> retrieve it next time tests will be run. But maybe you can try to =20
> create
> user1, user2, etc. until you find next free user (See retry
> http://webtest.canoo.com/webtest/manual/retry.html).
There is an ant task called buildnumber that 'ad, increment, and =20
write a build number to the default file'.
Look into ant's manual.
dav could use this task to set a property just before calling webtest.
best
dna
--=20
Some people, when confronted with a problem, think =91I know, I=92ll use =
=20
regular expressions.=92 Now they have two problems.
- Jamie Zawinski
--__--__--
Message: 4
Date: Wed, 27 Jun 2007 11:32:50 -0700
From: "My acc" <[EMAIL PROTECTED]>
To: [email protected]
Subject: [Webtest] Canoo script - submit a form by pressing Enter key
Reply-To: [email protected]
Reply-To: "My acc" <[EMAIL PROTECTED]>
Hi,
Is it possible to submit a form by pressing Enter key using Canoo script?
[Simulating KeyBoard Enter key press]
This was not possible in 2006 Q3 as addressed in
http://lists.canoo.com/pipermail/webtest/2006q3/006665.html
Is any workaround / solution identified after that?
All ideas/suggestions are welcome.
Thanks
Acc Mera
--__--__--
Message: 5
Date: Wed, 27 Jun 2007 13:19:19 -0700
From: "My acc" <[EMAIL PROTECTED]>
To: [email protected]
Subject: [Webtest] Using Groovy with Canoo
Reply-To: [email protected]
Reply-To: "My acc" <[EMAIL PROTECTED]>
Hi,
I am trying to use Groovy with Canoo but stuck for some errors like
'Cannot compile groovy code' :(
What should I do to get this fixed?
Here are the code used and the error detail:
....
<setInputField
description="enter text"
name="name"
value="#{yourname}"/>
<groovy description="Press Return Key">
void keyDown(13)
</groovy>
....
This gives error message
FAIL at com.canoo.webtest.engine.StepExecutionException: Cannot
compile groovy code: void keyDown(13) ,
Step: GroovyStep at ..<Path>.../conf Press Return Key <date..time>
Detailed error message:
[groovy] ERROR (com.canoo.webtest.extension.groovy.GroovyInvoker) -
CompilationFailedException
[groovy] org.codehaus.groovy.control.MultipleCompilationErrorsException:
startup failed, Script1.groovy: 2: unexpected token: 13 @ line 2,
column 15.
[groovy] 1 Error
[groovy] at
org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:
325)
[groovy] at
org.codehaus.groovy.control.ErrorCollector.addFatalError(ErrorCollector.java
:173)
[groovy] at
org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:143)
[groovy] at
org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:155)
[groovy] at
org.codehaus.groovy.control.SourceUnit.addError(SourceUnit.java:379)
[groovy] at
org.codehaus.groovy.antlr.AntlrParserPlugin.parseCST(AntlrParserPlugin.java:
87)
[groovy] at
org.codehaus.groovy.control.SourceUnit.parse(SourceUnit.java:276)
[groovy] at
org.codehaus.groovy.control.CompilationUnit$3.call(CompilationUnit.java:526)
[groovy] at
org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUn
it.java:861)
[groovy] at
org.codehaus.groovy.control.CompilationUnit.parse(CompilationUnit.java:513)
[groovy] at
org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:441
)
[groovy] at
groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:300)
[groovy] at groovy.lang.GroovyShell.parseClass(GroovyShell.java:555)
[groovy] at groovy.lang.GroovyShell.parse(GroovyShell.java:567)
[groovy] at groovy.lang.GroovyShell.parse(GroovyShell.java:542)
[groovy] at groovy.lang.GroovyShell.evaluate(GroovyShell.java:520)
[groovy] at groovy.lang.GroovyShell.evaluate(GroovyShell.java:496)
[groovy] at
com.canoo.webtest.extension.groovy.GroovyInvoker.doExecute(GroovyInvoker.jav
a:40)
[groovy] at
com.canoo.webtest.extension.groovy.GroovyStep.doExecute(GroovyStep.java:27)
[groovy] at com.canoo.webtest.steps.Step.execute(Step.java:130)
[groovy] at org.apache.tools.ant.Task.perform(Task.java:364)
[groovy] at
com.canoo.webtest.steps.StepUtil.performStanza(StepUtil.java:34)
[groovy] at
com.canoo.webtest.steps.AbstractStepContainer.executeContainedStep(AbstractS
tepContainer.java:150)
[groovy] at
com.canoo.webtest.steps.control.RepeatStep.executeContainedSteps(RepeatStep.
java:167)
[groovy] at
com.canoo.webtest.steps.control.RepeatStep.doExecute(RepeatStep.java:150)
[groovy] at com.canoo.webtest.steps.Step.execute(Step.java:130)
[groovy] at org.apache.tools.ant.Task.perform(Task.java:364)
[groovy] at
com.canoo.webtest.ant.TestStepSequence.executeSteps(TestStepSequence.java:58
)
[groovy] at
com.canoo.webtest.ant.TestStepSequence.doExecute(TestStepSequence.java:39)
[groovy] at com.canoo.webtest.steps.Step.execute(Step.java:130)
[groovy] at org.apache.tools.ant.Task.perform(Task.java:364)
[groovy] at
com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:152)
[groovy] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[groovy] at org.apache.tools.ant.Task.perform(Task.java:364)
[groovy] at org.apache.tools.ant.Target.execute(Target.java:341)
[groovy] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[groovy] at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[groovy] at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckEx
ecutor.java:37)
[groovy] at
org.eclipse.ant.internal.ui.antsupport.EclipseSingleCheckExecutor.executeTar
gets(EclipseSingleCheckExecutor.java:30)
[groovy] at
org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[groovy] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
[groovy] at org.apache.tools.ant.Task.perform(Task.java:364)
[groovy] at com.canoo.ant.task.PropertyTableTask.execute(Unknown Source)
[groovy] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[groovy] at org.apache.tools.ant.Task.perform(Task.java:364)
[groovy] at org.apache.tools.ant.Target.execute(Target.java:341)
[groovy] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[groovy] at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[groovy] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[groovy] at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.j
ava:40)
[groovy] at
org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets
(EclipseDefaultExecutor.java:32)
[groovy] at
org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[groovy] at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunn
er.java:423)
[groovy] at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRun
ner.java:137)
Thanks.....
Acc
--__--__--
Message: 6
Date: Wed, 27 Jun 2007 18:24:49 -0700
From: "Acc Mera" <[EMAIL PROTECTED]>
To: [email protected]
Subject: [Webtest] Using javascript with canoo Webtest for simulating
keyDown
Reply-To: [email protected]
Reply-To: "Acc Mera" <[EMAIL PROTECTED]>
Hi,
I am trying to use <scriptStep language="javascript"> with Canoo to
simulate keyboard Enter key press, but stuck :(
What is the correct way to do this?
Here is the code used and the error detail:
....
<setInputField
description="enter text"
name="name"
value="#{yourname}"/>
<scriptStep language="javascript">
item = document.getOneHtmlElementByAttribute('input', 'name',
'name');
item.keyDown(13);
</scriptStep>
....
This gives error message
FAIL at com.canoo.webtest.engine.StepExecutionException: Error
invoking script: org.mozilla.javascript.EcmaError: TypeError: Cannot
find function keyDown., Step: Script
All ideas/suggestions are welcome.
Thanks
Acc Mera
--__--__--
Message: 7
From: "Dierk Koenig" <[EMAIL PROTECTED]>
To: <[email protected]>, "My acc" <[EMAIL PROTECTED]>
Subject: RE: [Webtest] Using Groovy with Canoo
Date: Thu, 28 Jun 2007 11:08:58 +0200
Reply-To: [email protected]
Reply-To: "Dierk Koenig" <[EMAIL PROTECTED]>
Well,
void keyDown(13)
is simply no valid Groovy code.
It is neither a valid method call nor a valid method declaration.
But first of all, the <groovy> step is not what you seem to expect.
It is not like javascript nor is it suitable for testing your
javascript event handlers this way.
For unit-testing javascript you need something like JSUnit.
Dierk
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of My acc
> Sent: Mittwoch, 27. Juni 2007 22:19
> To: [email protected]
> Subject: [Webtest] Using Groovy with Canoo
>
>
> Hi,
>
> I am trying to use Groovy with Canoo but stuck for some errors like
> 'Cannot compile groovy code' :(
> What should I do to get this fixed?
>
> Here are the code used and the error detail:
>
>
> ....
> <setInputField
> description="enter text"
> name="name"
> value="#{yourname}"/>
>
> <groovy description="Press Return Key">
> void keyDown(13)
> </groovy>
> ....
>
> This gives error message
> FAIL at com.canoo.webtest.engine.StepExecutionException: Cannot
> compile groovy code: void keyDown(13) ,
> Step: GroovyStep at ..<Path>.../conf Press Return Key <date..time>
>
>
> Detailed error message:
>
>
> [groovy] ERROR (com.canoo.webtest.extension.groovy.GroovyInvoker) -
> CompilationFailedException
> [groovy]
> org.codehaus.groovy.control.MultipleCompilationErrorsException:
> startup failed, Script1.groovy: 2: unexpected token: 13 @ line 2,
> column 15.
> [groovy] 1 Error
> [groovy] at
> org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorColle
> ctor.java:325)
> [groovy] at
> org.codehaus.groovy.control.ErrorCollector.addFatalError(ErrorColl
> ector.java:173)
> [groovy] at
> org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector
> .java:143)
> [groovy] at
> org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector
> .java:155)
> [groovy] at
> org.codehaus.groovy.control.SourceUnit.addError(SourceUnit.java:379)
> [groovy] at
> org.codehaus.groovy.antlr.AntlrParserPlugin.parseCST(AntlrParserPl
> ugin.java:87)
> [groovy] at
> org.codehaus.groovy.control.SourceUnit.parse(SourceUnit.java:276)
> [groovy] at
> org.codehaus.groovy.control.CompilationUnit$3.call(CompilationUnit
> .java:526)
> [groovy] at
> org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(Com
> pilationUnit.java:861)
> [groovy] at
> org.codehaus.groovy.control.CompilationUnit.parse(CompilationUnit.
> java:513)
> [groovy] at
> org.codehaus.groovy.control.CompilationUnit.compile(CompilationUni
> t.java:441)
> [groovy] at
> groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:300)
> [groovy] at groovy.lang.GroovyShell.parseClass(GroovyShell.java:555)
> [groovy] at groovy.lang.GroovyShell.parse(GroovyShell.java:567)
> [groovy] at groovy.lang.GroovyShell.parse(GroovyShell.java:542)
> [groovy] at groovy.lang.GroovyShell.evaluate(GroovyShell.java:520)
> [groovy] at groovy.lang.GroovyShell.evaluate(GroovyShell.java:496)
> [groovy] at
> com.canoo.webtest.extension.groovy.GroovyInvoker.doExecute(GroovyI
> nvoker.java:40)
> [groovy] at
> com.canoo.webtest.extension.groovy.GroovyStep.doExecute(GroovyStep
> .java:27)
> [groovy] at com.canoo.webtest.steps.Step.execute(Step.java:130)
> [groovy] at org.apache.tools.ant.Task.perform(Task.java:364)
> [groovy] at
> com.canoo.webtest.steps.StepUtil.performStanza(StepUtil.java:34)
> [groovy] at
> com.canoo.webtest.steps.AbstractStepContainer.executeContainedStep
> (AbstractStepContainer.java:150)
> [groovy] at
> com.canoo.webtest.steps.control.RepeatStep.executeContainedSteps(R
> epeatStep.java:167)
> [groovy] at
> com.canoo.webtest.steps.control.RepeatStep.doExecute(RepeatStep.java:150)
> [groovy] at com.canoo.webtest.steps.Step.execute(Step.java:130)
> [groovy] at org.apache.tools.ant.Task.perform(Task.java:364)
> [groovy] at
> com.canoo.webtest.ant.TestStepSequence.executeSteps(TestStepSequen
> ce.java:58)
> [groovy] at
> com.canoo.webtest.ant.TestStepSequence.doExecute(TestStepSequence.java:39)
> [groovy] at com.canoo.webtest.steps.Step.execute(Step.java:130)
> [groovy] at org.apache.tools.ant.Task.perform(Task.java:364)
> [groovy] at
> com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:152)
> [groovy] at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> [groovy] at org.apache.tools.ant.Task.perform(Task.java:364)
> [groovy] at org.apache.tools.ant.Target.execute(Target.java:341)
> [groovy] at org.apache.tools.ant.Target.performTasks(Target.java:369)
> [groovy] at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> [groovy] at
> org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Sin
> gleCheckExecutor.java:37)
> [groovy] at
> org.eclipse.ant.internal.ui.antsupport.EclipseSingleCheckExecutor.
> executeTargets(EclipseSingleCheckExecutor.java:30)
> [groovy] at
> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> [groovy] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
> [groovy] at org.apache.tools.ant.Task.perform(Task.java:364)
> [groovy] at
> com.canoo.ant.task.PropertyTableTask.execute(Unknown Source)
> [groovy] at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> [groovy] at org.apache.tools.ant.Task.perform(Task.java:364)
> [groovy] at org.apache.tools.ant.Target.execute(Target.java:341)
> [groovy] at org.apache.tools.ant.Target.performTasks(Target.java:369)
> [groovy] at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> [groovy] at
> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> [groovy] at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(Default
> Executor.java:40)
> [groovy] at
> org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.exec
> uteTargets(EclipseDefaultExecutor.java:32)
> [groovy] at
> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> [groovy] at
> org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(Inter
> nalAntRunner.java:423)
> [groovy] at
> org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(Inte
> rnalAntRunner.java:137)
>
> Thanks.....
> Acc
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
--__--__--
Message: 8
Date: Thu, 28 Jun 2007 14:45:18 +0530
From: "amol kashetwar" <[EMAIL PROTECTED]>
To: [email protected], "My acc" <[EMAIL PROTECTED]>
Subject: Re: [Webtest] Canoo script - submit a form by pressing Enter key
Reply-To: [email protected]
Reply-To: "amol kashetwar" <[EMAIL PROTECTED]>
------=_Part_37530_14514258.1183022118164
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hi Acc,
Did you get the answer to this question?............i am alos searching the
same.....i want to enter text in message box and hit enter to verify its
behavior. Please reply when are able to hot the Enter key.
thanks,
Amol
On 6/28/07, My acc <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Is it possible to submit a form by pressing Enter key using Canoo script?
> [Simulating KeyBoard Enter key press]
>
> This was not possible in 2006 Q3 as addressed in
> http://lists.canoo.com/pipermail/webtest/2006q3/006665.html
> Is any workaround / solution identified after that?
>
> All ideas/suggestions are welcome.
>
> Thanks
> Acc Mera
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
>
------=_Part_37530_14514258.1183022118164
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
<div>Hi Acc, </div>
<div> </div>
<div>Did you get the answer to this question?............i am alos searching
the same.....i want to enter text in message box and hit enter to verify its
behavior. Please reply when are able to hot the Enter key.</div>
<div> </div>
<div>thanks,</div>
<div>Amol<br><br> </div>
<div><span class="gmail_quote">On 6/28/07, <b class="gmail_sendername">My
acc</b> <<a href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>>
wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px
0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br><br>Is it possible to submit
a form by pressing Enter key using Canoo script?<br>[Simulating KeyBoard
Enter key press]
<br><br>This was not possible in 2006 Q3 as addressed in<br><a
href="http://lists.canoo.com/pipermail/webtest/2006q3/006665.html">http://li
sts.canoo.com/pipermail/webtest/2006q3/006665.html</a><br>Is any workaround
/ solution identified after that?
<br><br>All ideas/suggestions are welcome.<br><br>Thanks<br>Acc
Mera<br>_______________________________________________<br>WebTest mailing
list<br><a
href="mailto:[email protected]">[email protected]</a><br><a
href="http://lists.canoo.com/mailman/listinfo/webtest">
http://lists.canoo.com/mailman/listinfo/webtest</a><br></blockquote></div><b
r>
------=_Part_37530_14514258.1183022118164--
--__--__--
Message: 9
From: "Dierk Koenig" <[EMAIL PROTECTED]>
To: <[email protected]>, "Acc Mera" <[EMAIL PROTECTED]>
Subject: RE: [Webtest] Using javascript with canoo Webtest for simulating
keyDown
Date: Thu, 28 Jun 2007 11:19:13 +0200
Reply-To: [email protected]
Reply-To: "Dierk Koenig" <[EMAIL PROTECTED]>
from
http://webtest.canoo.com/webtest/manual/scriptStep.html
"Note: although scriptStep does support JavaScript, at the moment, it
doesn't provide the mechanism to call JavaScript functions in your HTML
pages under test."
Dierk
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Acc Mera
> Sent: Donnerstag, 28. Juni 2007 3:25
> To: [email protected]
> Subject: [Webtest] Using javascript with canoo Webtest for simulating
> keyDown
>
>
> Hi,
>
> I am trying to use <scriptStep language="javascript"> with Canoo to
> simulate keyboard Enter key press, but stuck :(
>
> What is the correct way to do this?
>
> Here is the code used and the error detail:
>
> ....
> <setInputField
> description="enter text"
> name="name"
> value="#{yourname}"/>
>
> <scriptStep language="javascript">
> item = document.getOneHtmlElementByAttribute('input',
> 'name', 'name');
> item.keyDown(13);
> </scriptStep>
> ....
>
> This gives error message
> FAIL at com.canoo.webtest.engine.StepExecutionException: Error
> invoking script: org.mozilla.javascript.EcmaError: TypeError: Cannot
> find function keyDown., Step: Script
>
>
> All ideas/suggestions are welcome.
>
> Thanks
> Acc Mera
> _______________________________________________
> 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