AW: [Webtest] JavaSkript-Error

Stein A.,DP ITS,SMK,EF webtest@lists.canoo.com
Wed, 25 Jun 2003 07:22:07 +0200


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_000_01C33AD9.B885B330
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Scot,

i send You my simpleSmartphil.xml:


Regards,
Annett


-----Urspr=FCngliche Nachricht-----
Von: Scot Hale [mailto:halesm@hotmail.com]
Gesendet am: Dienstag, 24. Juni 2003 17:13
An: webtest@gate.canoo.com
Betreff: Re: [Webtest] JavaSkript-Error

what is in your simpleSmartphil.xml?

----- Original Message -----=20
From: "Stein A.,DP ITS,SMK,EF" <A.Stein@deutschepost.de>
To: "'webtest@lists.canoo.com'" <webtest@gate.canoo.com>
Sent: Tuesday, June 24, 2003 6:48 AM
Subject: [Webtest] JavaSkript-Error


> Hello,
>
> I have follow error:
>
>
> D:\Programme\canoo_webtest\doc\samples>ant -buildfile
> D:\Programme\canoo_webtest\doc\samples\simpleSmartphil.xml
> Buildfile: D:\Programme\canoo_webtest\doc\samples\simpleSmartphil.xml
>
> clean:
>    [delete] Deleting 5 files from D:\tmp\SmartPhilDemo
>
> main:
>  [testSpec] TypeError: [object Control] is not a function. (httpunit; =
line
> 6)
>  [testSpec]     at
> =
org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:590=
)
>  [testSpec]     at
> =
org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:550=
)
>  [testSpec]     at
> org.mozilla.javascript.NativeGlobal.typeError1(NativeGlobal.java:560)
>  [testSpec]     at
> org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1184)
>  [testSpec]     at org.mozilla.javascript.gen.c22.call(httpunit:6)
>  [testSpec]     at
> org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2179)
>  [testSpec]     at
>
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java=
:58)
>  [testSpec]     at
>
com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.performEve=
nt(J
> avaScript.java:162)
>  [testSpec]     at
>
com.meterware.httpunit.scripting.ScriptableDelegate.doEvent(ScriptableDe=
lega
> te.java:52)
>  [testSpec]     at
> =
com.meterware.httpunit.FormControl.sendOnChangeEvent(FormControl.java:22=
6)
>  [testSpec]     at
>
com.meterware.httpunit.SelectionFormControl.claimUniqueValue(FormControl=
.jav
> a:898)
>  [testSpec]     at
> com.meterware.httpunit.FormParameter.setValues(FormParameter.java:90)
>  [testSpec]     at
> com.meterware.httpunit.WebForm.setParameter(WebForm.java:519)
>  [testSpec]     at
>
com.canoo.webtest.steps.request.ClickButton.addParameter(ClickButton.jav=
a:23
> 3)
>  [testSpec]     at
>
com.canoo.webtest.steps.request.ClickButton.setParameters(ClickButton.ja=
va:1
> 79)
>  [testSpec]     at
> =
com.canoo.webtest.steps.request.ClickButton.doExecute(ClickButton.java:9=
0)
>  [testSpec]     at com.canoo.webtest.steps.Step.execute(Step.java:59)
>  [testSpec]     at
> com.canoo.webtest.engine.Engine.executeSteps(Engine.java:32)
>  [testSpec]     at
>
com.canoo.webtest.ant.TestSpecificationTask.execute(TestSpecificationTas=
k.ja
> va:55)
>  [testSpec]     at org.apache.tools.ant.Task.perform(Task.java:341)
>  [testSpec]     at =
org.apache.tools.ant.Target.execute(Target.java:309)
>  [testSpec]     at
org.apache.tools.ant.Target.performTasks(Target.java:336)
>  [testSpec]     at
> org.apache.tools.ant.Project.executeTarget(Project.java:1339)
>  [testSpec]     at
> org.apache.tools.ant.Project.executeTargets(Project.java:1255)
>  [testSpec]     at org.apache.tools.ant.Main.runBuild(Main.java:609)
>  [testSpec]     at org.apache.tools.ant.Main.start(Main.java:196)
>  [testSpec]     at org.apache.tools.ant.Main.main(Main.java:235)
>
> BUILD FAILED
> file:D:/Programme/canoo_webtest/doc/samples/simpleSmartphil.xml:10: =
Test
> failed.
> Exception raised: com.meterware.httpunit.ScriptException: Event
> 'setAction('reload');' failed: TypeError: [object Control] is not a =
functi
> . (httpunit; line 6)com.meterware.httpunit.ScriptException: Event
> 'setAction('reload');' failed: TypeError: [object Control] is not a =
func
> on. (httpunit; line 6)
>         at
>
com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.handleScri=
ptEx
> ception(JavaScript.java:191)
>         at
>
com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.performEve=
nt(J
> avaScript.java:165)
>         at
>
com.meterware.httpunit.scripting.ScriptableDelegate.doEvent(ScriptableDe=
lega
> te.java:52)
>         at
> =
com.meterware.httpunit.FormControl.sendOnChangeEvent(FormControl.java:22=
6)
>         at
>
com.meterware.httpunit.SelectionFormControl.claimUniqueValue(FormControl=
.jav
> a:898)
>         at
> com.meterware.httpunit.FormParameter.setValues(FormParameter.java:90)
>         at =
com.meterware.httpunit.WebForm.setParameter(WebForm.java:519)
>         at
>
com.canoo.webtest.steps.request.ClickButton.addParameter(ClickButton.jav=
a:23
> 3)
>         at
>
com.canoo.webtest.steps.request.ClickButton.setParameters(ClickButton.ja=
va:1
> 79)
>         at
> =
com.canoo.webtest.steps.request.ClickButton.doExecute(ClickButton.java:9=
0)
>         at com.canoo.webtest.steps.Step.execute(Step.java:59)
>         at =
com.canoo.webtest.engine.Engine.executeSteps(Engine.java:32)
>         at
>
com.canoo.webtest.ant.TestSpecificationTask.execute(TestSpecificationTas=
k.ja
> va:55)
>         at org.apache.tools.ant.Task.perform(Task.java:341)
>         at org.apache.tools.ant.Target.execute(Target.java:309)
>         at org.apache.tools.ant.Target.performTasks(Target.java:336)
>         at =
org.apache.tools.ant.Project.executeTarget(Project.java:1339)
>         at =
org.apache.tools.ant.Project.executeTargets(Project.java:1255)
>         at org.apache.tools.ant.Main.runBuild(Main.java:609)
>         at org.apache.tools.ant.Main.start(Main.java:196)
>         at org.apache.tools.ant.Main.main(Main.java:235)
>
> The HTML-Code like to see out so:
>
> <SELECT SIZE=3D"1"  NAME=3D"kundengruppe" =
onChange=3D"setAction('reload');">
> <option value=3D"">- bitte ausw&auml;hlen -</option>
> <option value=3D"PS">Privatkunde</option>
> <option value=3D"GK">Gesch=E4ftskunde</option>
> <option value=3D"PE">Mitarbeiter DPAG</option>
>
> </select>
>
> Can You help me!
>
> Mit freundlichen Gr=FC=DFen
>
> Annett Stein
> Middelware/Webtechnologie
> Java Enterprise Solutions 8
> Entwicklung
>
> Deutsche Post ITSolutions GmbH
> Postfach 90 01 14
> 99104 Erfurt
>
> tel. +49 (0) 361 2236 933
> fax +49 (0) 361 2236 979
> email mailto:A.Stein@deutschepost.de
> internet http://www.dp-itsolutions.de
>
> Besucher- und Lieferadresse:
> Gustav-Weisskopf-Str. 04
> 99092 Erfurt
>
> 1.Etage, Raum 1.49
>
> This email is confidential. If you are not the intended recipient, =
you
must
> not disclose or use the information contained in it.If you have =
received
> this mail in error, please tell us immediately by return email and =
delete
> the document.
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>
_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest


------_=_NextPart_000_01C33AD9.B885B330
Content-Type: application/octet-stream;
	name="simpleSmartphil.xml"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="simpleSmartphil.xml"

<?xml version=3D"1.0"?>=0A=
<!DOCTYPE project SYSTEM "WebTest.dtd"[=0A=
	<!ENTITY definition SYSTEM "definition.xml">=0A=
	<!ENTITY config     SYSTEM "config.xml">=0A=
	<!ENTITY clean      SYSTEM "filedelete.xml">=0A=
]>=0A=
<project name=3D"SmartPhilDemo" basedir=3D"." default=3D"main">=0A=
	&definition;=0A=
	<target name=3D"main" depends=3D"clean">=0A=
		<testSpec name=3D"SmartPhilTest">=0A=
			&config;=0A=
			<steps>=0A=
				<invoke=0A=
					stepid=3D"Registierung"=0A=
					url=3D"registrierung" =0A=
					save=3D"registrierung" />=0A=
				<setselectfield =0A=
            		stepid=3D"Kundengruppe"=0A=
            		name=3D"kundengruppe"  =0A=
            		value=3D"PS" />=0A=
				<setselectfield =0A=
            		stepid=3D"Anrede"=0A=
            		name=3D"anrede" =0A=
            		value=3D"Frau" />=0A=
        		<setinputfield=0A=
					stepid=3D"Nachname"=0A=
					name=3D"nachname"=0A=
					value=3D"Stein" />=0A=
				<setinputfield=0A=
					stepid=3D"Vorname"=0A=
					name=3D"vorname"=0A=
					value=3D"Annett" />=0A=
				<setinputfield=0A=
					stepid=3D"e-Mail"=0A=
					=
name=3D"/de/dpag/smartphil/shop/login/SmartPhilRegistrationHandler.value=
.email"=0A=
					value=3D"a.stein@deutschepost.de" />=0A=
				<setcheckbox=0A=
					stepid=3D"Einzugsermaechtigung"=0A=
					name=3D"einzug"=0A=
					checked=3D"false" />=0A=
				<setcheckbox=0A=
					stepid=3D"Rechnung"=0A=
					name=3D"aufRechnung"=0A=
					value=3D"true" />=0A=
				<clickbutton=0A=
			    	name=3D"submit"=0A=
			    	stepid=3D"Click the submit button"=0A=
			    	save=3D"bestaetigung" />=0A=
			    <!--verifyselectfield =0A=
            		stepid=3D"Kundengruppe"=0A=
            		name=3D"kundengruppe" =0A=
            		value=3D"PS" /-->=0A=
			    <verifyselectfield =0A=
            		stepid=3D"Anrede"=0A=
            		name=3D"anrede" =0A=
            		value=3D"Frau" />=0A=
			    <verifyinputfield stepid=3D"Nachname"=0A=
   					name=3D"nachname"=0A=
   					value=3D"Stein" />=0A=
   				<verifyinputfield stepid=3D"Vorname"=0A=
   					name=3D"vorname"=0A=
   					value=3D"Annett" />=0A=
			</steps>=0A=
		</testSpec>=0A=
	</target>=0A=
	&clean;=0A=
</project>=0A=

------_=_NextPart_000_01C33AD9.B885B330--