[Webtest] Re: Need help

Michael Friend Michael Friend" <mlcf@gmx.de
Thu, 02 Nov 2006 08:53:17 +0100


Hallo again Marc,

sorry about the delay but I had foprgoten that yesterday was a holiday in Germany.

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="aaw_main" method="post" action="ksc" onsubmit="return aaw_submitMainFormAllowedandBlock();">]#1)
Source code:
function () {
        [native code, arity=0]
}
"

Mike

> Hi Marc.
> 
> I actually tried the <clickButton label="Weiter"/> first, even every
> combination I could think of including name= htmlid= 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="Weiter"/>?

> Marc.

> 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="1.0" encoding="ISO-8859-1"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "/aaw/aaw.dtd">
> <html>
> <head>
>   <meta name="orderItemType" content="BRCA001_terminateISDN" />
>   <meta name="pageID" content="KSCTerminationGeneral" />
>   <meta name="pageType" content="edit" />
>   <meta name="pageStatus" content="ok" />
>   <title>Kündigung</title>
>   <script src="/aaw/scripts/AAW-XXXOnline-tableless.js"
type="text/javascript"></script>
>
>   <script src="/aaw/scripts/functions.js" type="text/javascript"></script>
>   <script src="/aaw/scripts/AAW-XXXOnline-errors.js"
type="text/javascript"></script>
>   <script src="/aaw/scripts/style.js" type="text/javascript"></script>
>   <link href="/aaw/styles/skin.css" rel="stylesheet" type="text/css" />
>   <link href="/aaw/styles/pksc.css" rel="stylesheet" type="text/css" />
>   <link href="/aaw/styles/test.css" rel="stylesheet" type="text/css" />
> </head>
>
> <body>
>
> <!-- Input Area -->
> <div id="pksc_container">
> <div id="navigation" style="width:200px;">&nbsp;</div>
> <div id="content_area">
> <div id="entry">
>
>   <form id="aaw_main" method="post" action="ksc" onSubmit="return
aaw_submitMainFormAllowedandBlock();">
>       <input name="aaw_interactionID" type="hidden"
value="20061031100822595" />
>       <input name="aaw_orderItemTypeRef" type="hidden"
value="BRCA001_terminateISDN" />
>       <input name="aaw_pageID" type="hidden" value="KSCTerminationGeneral"
/>
>       <input name="aaw_targetPageID" type="hidden"
value="KSCTerminationGeneral" />
>
> <!-- Header -->
>       <div id="aaw_header" class="head">Kündigung</div>
>
> <!-- Progress Indicator -->
>   <div id="aaw_progress" class="progress">
>     <span class="mainflow  current ">
>       Kündigungsgrund
>     </span>
>     <span class="subflow  disabled">
>       &gt;
>
>     </span>
>     <span class="subflow  disabled ">
>       Hinweis
>     </span>
>     <span class="subflow  disabled">
>       &gt;
>     </span>
>     <span class="subflow  disabled ">
>       Kündigungsgrund im Detail
>     </span>
>
>     <span class="subflow  disabled">
>       &gt;
>     </span>
>     <span class="subflow  disabled ">
>       Hinweise
>     </span>
>     <span class="subflow  disabled">
>       &gt;
>     </span>
>
>     <span class="subflow  disabled ">
>       Abbruch
>     </span>
>     <span class="mainflow  disabled">
>       &gt;
>     </span>
>     <span class="mainflow  disabled ">
>       Eingabe prüfen
>     </span>
>     <span class="mainflow  disabled">
>
>       &gt;
>     </span>
>     <span class="mainflow  disabled ">
>       Daten gesendet
>     </span>
>   </div>
>
> <!-- Start Inputarea -->
>     <div id="aaw_inputarea" class="box3">
>
> <!-- Messages -->
>
> <!-- Elements -->
>       <div id="aaw_I_KSCTerminationOnlinePreamble" class="element ">
>           Wir möchten wissen, aus welchem Grund Sie Ihr Vertragsverhältnis
mit XXX kündigen möchten. Deshalb bitten wir Sie, aus der unten aufgeführten
Auswahl einen Kündigungsgrund auszuwählen. Damit helfen Sie uns, Ihr
Anliegen gezielt bearbeiten zu können.
>       </div>
> <div class="spacer clear"></div><div class="separator_s"></div>      <div
id="aaw_E_CancellationReason" class="element  has_help ">
>         <div name="aaw_help_icon" class="help_icon"
onMouseover="aaw_showHelp(this);" onMouseout="aaw_hideHelp(this);"
id="aaw_E_CancellationReason.helpicon"></div>
>         <div id="aaw_E_CancellationReason.help" class="help
inactive">Bitte geben Sie uns den Grund Ihrer Kündigung an.</div>
>         <div id="aaw_E_CancellationReason.caption" class="first_cnt">
>           Kündigungsgrund<span class="required">*</span>        </div>
>
>         <div id="aaw_E_CancellationReason.field" class="second_cnt">
>                     <select name="aaw_E_CancellationReason"
class="input_xl"  onChange="aaw_submitMainForm('KSCTerminationGeneral');">
>             <option value="" selected="selected">Bitte wählen</option>
>             <option value="ABW" >Entscheidung für anderen
Anbieter</option>
>             <option value="ANV" >Ich habe keinen Festnetzanschluss
mehr.</option>
>             <option value="AZT" >XXX ist mir zu teuer.</option>
>             <option value="ANE" >Mir liegt kein XXX-Auftrag vor.</option>
>
>             <option value="DNA" >Konnte Dienste nicht in Anspruch
nehmen.</option>
>             <option value="HOT" >Hotline</option>
>             <option value="RNS" >Rechnung</option>
>             <option value="SON" >Sonstiges</option>
>             <option value="TLQ" >Ich bin mit der Leitungsqualität nicht
zufrieden.</option>
>             <option value="UMZ" >Ich ziehe um.</option>
>
>             <option value="WID" >Ich habe meinen Auftrag innerhalb der
Widerrufsfrist storniert.</option>
>           </select>
>
>         </div>
>       </div>
>       <div id="aaw_D_ValidFrom" class="element  has_help ">
>         <div name="aaw_help_icon" class="help_icon"
onMouseover="aaw_showHelp(this);" onMouseout="aaw_hideHelp(this);"
id="aaw_D_ValidFrom.helpicon"></div>
>         <div id="aaw_D_ValidFrom.help" class="help inactive">Die Kündigung
wird mit Berücksichtigung der Mindestvertragslaufzeit Ihres Vertrages
durchgeführt. Wenn Sie zu einem späteren Termin kündigen möchten, können Sie
hier einen alternativen Termin angeben.</div>
>
>         <div id="aaw_D_ValidFrom.caption" class="first_cnt">
>           Kündigung zum<span class="required">*</span>        </div>
>         <div id="aaw_D_ValidFrom.field" class="second_cnt">
>                     <input name="aaw_D_ValidFrom" type="text" value=""
class="input_xl"  onChange="aaw_validateDate(this);"
onKeyup="aaw_validateDate(this);" />
>
>         </div>
>       </div>
> <div class="spacer clear"></div><div class="separator_s"></div>      <div
id="aaw_I_KSCWeiterPostamble" class="element ">
>
>           Gehen Sie auf &#8222;Weiter&#8220;, um Ihre Angaben zu prüfen.
Erst danach werden die Änderungen gespeichert.
>       </div>
>
>     </div>
>
> <!-- Buttons -->
>    <div class="button_area">
> <input type="submit" name="aaw_action_forward" value="Weiter"
class="button forward" onMouseOver="this.className='button_h';"
onMouseOut="this.className='button';"/>
>    </div>
>
>   </form>
>
> </div>
> </div>
> </div>
>
> </body>

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

-- 
GMX DSL-Flatrate 0,- Euro* - Überall, wo DSL verfügbar ist!
NEU: Jetzt bis zu 16.000 kBit/s! http://www.gmx.net/de/go/dsl