[Webtest] Re: Need help

Michael Friend Michael Friend" <mlcf@gmx.de
Thu, 2 Nov 2006 18:50:21 +0100


Hi Marc,

<enableJavaScript enable=3D"false"/> didn't work, and everything is OK =
in a
Browser. I'll get down to work and try and find out exactly whats =
happening.


Thank a lot!
Mike



-----Original Message-----
From: webtest-admin@lists.canoo.com =
[mailto:webtest-admin@lists.canoo.com]
On Behalf Of Marc Guillemot
Sent: Donnerstag, 2. November 2006 13:12
To: webtest@lists.canoo.com
Subject: Re: [Webtest] Re: Need help

Hallo Michael,

a js error occurs when loading the page. This may come from an incorrect =

js code in the page (or in referenced external scripts) or from js code=20
that htmlunit is not yet able to execute correctly.

To know exactly what the cause is, you need for instance to check in a=20
normal browser. If it is an htmlunit problem, please try to identify it=20
as precisely as possible and open an issue by htmlunit.

As workaround, if the behavior of the application doesn't rely on the js =

execution on this page, you can temporarily disable javascript using=20
<enableJavaScript enable=3D"false"/>.

Marc.

Michael Friend wrote:
> Hallo again Marc,
>=20
> sorry about the delay but I had foprgoten that yesterday was a holiday =
in
Germany.
>=20
> This is the actuall complete message!
> C:\unix\user\development\webtest\resources\webtestsRunner.xml:43: The
following error occurred while executing this line:
> C:\unix\user\development\webtest\resources\webtestsRunner.xml:86: The
following error occurred while executing this line:
> C:\unix\home\FRIENDM\webtest\connect.xml:14: Canoo Webtest: R_1428.
> Test failed.
> Test step steps (C:\unix\home\FRIENDM\webtest\connect.xml:29: ) null
failed with message "Step[clickButton "Click submit button: Weiter" =
(8/8)]:
Script error loading page executing webtest at: clickButton TypeError:
aaw_submitMainFormAllowedandBlock is not a function, it is null. (event =
for
HtmlForm[<form id=3D"aaw_main" method=3D"post" action=3D"ksc" =
onsubmit=3D"return
aaw_submitMainFormAllowedandBlock();">]#1)
> Source code:
> function () {
>         [native code, arity=3D0]
> }
> "
>=20
> Mike
>=20
>> Hi Marc.
>>
>> I actually tried the <clickButton label=3D"Weiter"/> first, even =
every
>> combination I could think of including name=3D htmlid=3D etc.
>>
>> Regretfully  none work. What I do get is a compile error to the sense
>>
>> function ()....
>>
>> I'll post the exact message tomorrow when I am in the office again.
>>
>> Mike
>>
>>
>> -----Original Message-----
>> From: webtest-admin@lists.canoo.com
>> [mailto:webtest-admin@lists.canoo.com]
>> On Behalf Of Marc Guillemot
>> Sent: Dienstag, 31. Oktober 2006 20:52
>> To: webtest@lists.canoo.com
>> Subject: [Webtest] Re: Need help
>>
>> Hi Michael,
>> this mailing list is exactly the right place for such questions.
>> How does your WebTest script look like? What is with something like
>> <clickButton label=3D"Weiter"/>?
>=20
>> Marc.
>=20
>> Michael Friend wrote:
>> Hallo,
>>
>> I hope I'm in the right place but I need help with webtest and a =
btton I
> can't click.
>> If I am not right here please ignor this mail.
>>
>>
>> I have got the foloowing webpage that has at the end a button with
> "Weiter" placed on it. It seems to be java, but my question is how can =
I
> execute a click on it and continue to the next page.
>> Look under <!-- Buttons --> I presume thie is where I should start. =
But
am
> not sure what to enter in my webtest script.
>> I'll be greatfull for any help.
>>
>> This is the page ----------------------
>>
>> <?xml version=3D"1.0" encoding=3D"ISO-8859-1"?>
>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "/aaw/aaw.dtd">
>> <html>
>> <head>
>>   <meta name=3D"orderItemType" content=3D"BRCA001_terminateISDN" />
>>   <meta name=3D"pageID" content=3D"KSCTerminationGeneral" />
>>   <meta name=3D"pageType" content=3D"edit" />
>>   <meta name=3D"pageStatus" content=3D"ok" />
>>   <title>K=FCndigung</title>
>>   <script src=3D"/aaw/scripts/AAW-XXXOnline-tableless.js"
> type=3D"text/javascript"></script>
>>   <script src=3D"/aaw/scripts/functions.js"
type=3D"text/javascript"></script>
>>   <script src=3D"/aaw/scripts/AAW-XXXOnline-errors.js"
> type=3D"text/javascript"></script>
>>   <script src=3D"/aaw/scripts/style.js" =
type=3D"text/javascript"></script>
>>   <link href=3D"/aaw/styles/skin.css" rel=3D"stylesheet" =
type=3D"text/css" />
>>   <link href=3D"/aaw/styles/pksc.css" rel=3D"stylesheet" =
type=3D"text/css" />
>>   <link href=3D"/aaw/styles/test.css" rel=3D"stylesheet" =
type=3D"text/css" />
>> </head>
>>
>> <body>
>>
>> <!-- Input Area -->
>> <div id=3D"pksc_container">
>> <div id=3D"navigation" style=3D"width:200px;">&nbsp;</div>
>> <div id=3D"content_area">
>> <div id=3D"entry">
>>
>>   <form id=3D"aaw_main" method=3D"post" action=3D"ksc" =
onSubmit=3D"return
> aaw_submitMainFormAllowedandBlock();">
>>       <input name=3D"aaw_interactionID" type=3D"hidden"
> value=3D"20061031100822595" />
>>       <input name=3D"aaw_orderItemTypeRef" type=3D"hidden"
> value=3D"BRCA001_terminateISDN" />
>>       <input name=3D"aaw_pageID" type=3D"hidden"
value=3D"KSCTerminationGeneral"
> />
>>       <input name=3D"aaw_targetPageID" type=3D"hidden"
> value=3D"KSCTerminationGeneral" />
>> <!-- Header -->
>>       <div id=3D"aaw_header" class=3D"head">K=FCndigung</div>
>>
>> <!-- Progress Indicator -->
>>   <div id=3D"aaw_progress" class=3D"progress">
>>     <span class=3D"mainflow  current ">
>>       K=FCndigungsgrund
>>     </span>
>>     <span class=3D"subflow  disabled">
>>       &gt;
>>
>>     </span>
>>     <span class=3D"subflow  disabled ">
>>       Hinweis
>>     </span>
>>     <span class=3D"subflow  disabled">
>>       &gt;
>>     </span>
>>     <span class=3D"subflow  disabled ">
>>       K=FCndigungsgrund im Detail
>>     </span>
>>
>>     <span class=3D"subflow  disabled">
>>       &gt;
>>     </span>
>>     <span class=3D"subflow  disabled ">
>>       Hinweise
>>     </span>
>>     <span class=3D"subflow  disabled">
>>       &gt;
>>     </span>
>>
>>     <span class=3D"subflow  disabled ">
>>       Abbruch
>>     </span>
>>     <span class=3D"mainflow  disabled">
>>       &gt;
>>     </span>
>>     <span class=3D"mainflow  disabled ">
>>       Eingabe pr=FCfen
>>     </span>
>>     <span class=3D"mainflow  disabled">
>>
>>       &gt;
>>     </span>
>>     <span class=3D"mainflow  disabled ">
>>       Daten gesendet
>>     </span>
>>   </div>
>>
>> <!-- Start Inputarea -->
>>     <div id=3D"aaw_inputarea" class=3D"box3">
>>
>> <!-- Messages -->
>>
>> <!-- Elements -->
>>       <div id=3D"aaw_I_KSCTerminationOnlinePreamble" class=3D"element =
">
>>           Wir m=F6chten wissen, aus welchem Grund Sie Ihr
Vertragsverh=E4ltnis
> mit XXX k=FCndigen m=F6chten. Deshalb bitten wir Sie, aus der unten
aufgef=FChrten
> Auswahl einen K=FCndigungsgrund auszuw=E4hlen. Damit helfen Sie uns, =
Ihr
> Anliegen gezielt bearbeiten zu k=F6nnen.
>>       </div>
>> <div class=3D"spacer clear"></div><div class=3D"separator_s"></div>   =
   <div
> id=3D"aaw_E_CancellationReason" class=3D"element  has_help ">
>>         <div name=3D"aaw_help_icon" class=3D"help_icon"
> onMouseover=3D"aaw_showHelp(this);" onMouseout=3D"aaw_hideHelp(this);"
> id=3D"aaw_E_CancellationReason.helpicon"></div>
>>         <div id=3D"aaw_E_CancellationReason.help" class=3D"help
> inactive">Bitte geben Sie uns den Grund Ihrer K=FCndigung an.</div>
>>         <div id=3D"aaw_E_CancellationReason.caption" =
class=3D"first_cnt">
>>           K=FCndigungsgrund<span class=3D"required">*</span>        =
</div>
>>
>>         <div id=3D"aaw_E_CancellationReason.field" =
class=3D"second_cnt">
>>                     <select name=3D"aaw_E_CancellationReason"
> class=3D"input_xl"  =
onChange=3D"aaw_submitMainForm('KSCTerminationGeneral');">
>>             <option value=3D"" selected=3D"selected">Bitte =
w=E4hlen</option>
>>             <option value=3D"ABW" >Entscheidung f=FCr anderen
> Anbieter</option>
>>             <option value=3D"ANV" >Ich habe keinen Festnetzanschluss
> mehr.</option>
>>             <option value=3D"AZT" >XXX ist mir zu teuer.</option>
>>             <option value=3D"ANE" >Mir liegt kein XXX-Auftrag =
vor.</option>
>>
>>             <option value=3D"DNA" >Konnte Dienste nicht in Anspruch
> nehmen.</option>
>>             <option value=3D"HOT" >Hotline</option>
>>             <option value=3D"RNS" >Rechnung</option>
>>             <option value=3D"SON" >Sonstiges</option>
>>             <option value=3D"TLQ" >Ich bin mit der Leitungsqualit=E4t =
nicht
> zufrieden.</option>
>>             <option value=3D"UMZ" >Ich ziehe um.</option>
>>
>>             <option value=3D"WID" >Ich habe meinen Auftrag innerhalb =
der
> Widerrufsfrist storniert.</option>
>>           </select>
>>
>>         </div>
>>       </div>
>>       <div id=3D"aaw_D_ValidFrom" class=3D"element  has_help ">
>>         <div name=3D"aaw_help_icon" class=3D"help_icon"
> onMouseover=3D"aaw_showHelp(this);" onMouseout=3D"aaw_hideHelp(this);"
> id=3D"aaw_D_ValidFrom.helpicon"></div>
>>         <div id=3D"aaw_D_ValidFrom.help" class=3D"help inactive">Die
K=FCndigung
> wird mit Ber=FCcksichtigung der Mindestvertragslaufzeit Ihres =
Vertrages
> durchgef=FChrt. Wenn Sie zu einem sp=E4teren Termin k=FCndigen =
m=F6chten, k=F6nnen
Sie
> hier einen alternativen Termin angeben.</div>
>>         <div id=3D"aaw_D_ValidFrom.caption" class=3D"first_cnt">
>>           K=FCndigung zum<span class=3D"required">*</span>        =
</div>
>>         <div id=3D"aaw_D_ValidFrom.field" class=3D"second_cnt">
>>                     <input name=3D"aaw_D_ValidFrom" type=3D"text" =
value=3D""
> class=3D"input_xl"  onChange=3D"aaw_validateDate(this);"
> onKeyup=3D"aaw_validateDate(this);" />
>>         </div>
>>       </div>
>> <div class=3D"spacer clear"></div><div class=3D"separator_s"></div>   =
   <div
> id=3D"aaw_I_KSCWeiterPostamble" class=3D"element ">
>>           Gehen Sie auf &#8222;Weiter&#8220;, um Ihre Angaben zu =
pr=FCfen.
> Erst danach werden die =C4nderungen gespeichert.
>>       </div>
>>
>>     </div>
>>
>> <!-- Buttons -->
>>    <div class=3D"button_area">
>> <input type=3D"submit" name=3D"aaw_action_forward" value=3D"Weiter"
> class=3D"button forward" onMouseOver=3D"this.className=3D'button_h';"
> onMouseOut=3D"this.className=3D'button';"/>
>>    </div>
>>
>>   </form>
>>
>> </div>
>> </div>
>> </div>
>>
>> </body>
>=20
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>=20

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