Hi developer,

I go on with analysing my Webtest-failures - using the new build.zip.

There is a nother Error (note on the report.html):

------------------------------
Message
JavaScript error loading page 
https://webgate-dev/ags/ofbiz/projection/control/AggregateAdmediumVariants: 
ReferenceError: "getAssignables" is not defined. (javascript url#721)
Current response
https://webgate-dev/ags/ofbiz/projection/control/AggregateAdmediumVariants
Location
C:\MocPortalProjects\AgsPortalTest\webtests\tests\hochrechnung\vertrieb\verwaltung\edit_verdichtung_werbemittel_varianten.xml
 (line: 53)
Details
javascript error

ReferenceError: "getAssignables" is not defined. (javascript url#721)

line

721

javascript source

failing line

<no source>

javascript call stack

ReferenceError: "getAssignables" is not defined. (javascript url#721) at 
(javascript url:721)


------------------------------

The source of this Error is:

---------webtest-snippet------------
<clickLink description="click first element in the list." 
xpath="${portal.xpath.root}/div[2]/table/tbody/tr/td[5]/a" />
--------------------

---------------html-snippet---------------


<script language="JavaScript">



        /**

         * calling ajax request

         * @param amVarId

         */

        function getAssignables(amVarId) {

               if (amVarId != '') {



                       kwCommon.writeInto('L_' + amVarId,'Liste wird 
erstellt...');

                       kwCommon.ajax_wait();



                       var pars = 
'do=findPrjAmVariantsToAssign&seasonId=124&admediumVariantId=' + amVarId;



                       new 
Ajax.Request('/ags/ofbiz/projection/control/AggregateAmVarAjaxServer',

                               {method: 'post',

                                parameters: pars,

                                onFailure: ajaxError,

                                onComplete: onLoadAssignables

                               }

                       );

               }

        }

[...]

<a href="javascript:getAssignables('17221')">
Passende WM-Varianten
</a>
-------------------------------------------------

So what is the source oft he Problem?
The Javascript-function is inside the html-page.

Any Ideas or tips to track down the problem heading a solution are welcome.

Thanks

Michael Habbert



Michael Habbert
Key-Work Consulting GmbH | Kriegsstr. 100 | 76133 Karlsruhe | Germany | 
www.key-work.de<http://www.key-work.de>
Fon: +49-721-78203-269 | E-Mail: 
[email protected]<mailto:[email protected]> | Fax: 
+49-721-78203-10

Key-Work Consulting GmbH, Karlsruhe, HRB 108695, HRG Mannheim
Gesch?ftsf?hrer: Andreas Stappert, Tobin Wotring

Reply via email to