[Webtest] Forward referencing issue during FrameSet loading

Nimesh Muley webtest@lists.canoo.com
Wed, 13 Jul 2005 19:34:58 +0530


I will open a bug in HTMLUnit. But do you see any workarounds that may =
be tried from Webtest? E.g. when we do followFrame to reload/reparse the =
page (of course based on a flag passed in followFrame).

Regards,
- Nimesh
-----Original Message-----
From: Marc Guillemot [mailto:mguillemot@yahoo.fr]
Sent: Wednesday, July 13, 2005 7:22 PM
To: webtest@lists.canoo.com
Subject: Re: [Webtest] Forward referencing issue during FrameSet loading


It's clearly an htmlunit issue. Can open a bug issue there with a =
minimal test based on your example?

Marc.

Nimesh Muley wrote:
> Hi,
>=20
> We have an issue with forward referencing while loading frameset in =
Webtest. The application works fine in IE as well as FireFox. Have not =
tested on Mozilla though.
>=20
> HTML Source is as follows
> -----------------------------------
> MainFrame.html
> -----------------------------------
> <HTML>
> <HEAD>
> <TITLE>
> Main
> </TITLE>
> <META HTTP-EQUIV=3D"EXPIRES" CONTENT=3D"0">
> <META HTTP-EQUIV=3D"PRAGMA" CONTENT=3D"no-cache">
> <META HTTP-EQUIV=3D"CACHE-CONTROL" CONTENT=3D"no-cache">
> </HEAD>
> <FRAMESET ROWS=3D"14%,*" FRAMEBORDER=3D"0" FRAMESPACING=3D"0">
>     <FRAME NAME=3D"topbar" SRC=3D"about:blank" FRAMEBORDER=3D"0" =
SCROLLING=3D"no" NORESIZE>
>     <FRAMESET COLS=3D"18%,*" FRAMEBORDER=3D"0"  FRAMESPACING=3D"0">
>         <FRAME NAME=3D"menu" SRC=3D"Menu.html" FRAMEBORDER=3D"0" =
SCROLLING=3D"no" NORESIZE>
>         <FRAMESET ROWS=3D"83%,17%,*,*" FRAMEBORDER=3D"0"  =
FRAMESPACING=3D"0" name=3D"inn">
>             <FRAME NAME=3D"workarea" SRC=3D"about:blank" =
FRAMEBORDER=3D"0" SCROLLING=3D"auto" NORESIZE>
>             <FRAME NAME=3D"button_pallete" SRC=3D"about:blank" =
FRAMEBORDER=3D"0" SCROLLING=3D"no" NORESIZE>
>             <FRAME NAME=3D"hiddenFrame" SRC=3D"about:blank" =
FRAMEBORDER=3D"0" SCROLLING=3D"no" NORESIZE>
>         </FRAMESET>
>     </FRAMESET>
> </FRAMESET>
> </HTML>
> -----------------------------------
> Menu.html
> -----------------------------------
> <HTML>
> <HEAD>
> <TITLE>Page 1</TITLE>
> <script language=3D"javascript1.2" type=3D"text/javascript">
> var BUTTON_PALLETE;
> function checkTop()
> {
>     alert("in menu.html checktop top.button_pallete =3D " + =
top.button_pallete);
>     alert("in menu.html checktop BUTTON_PALLETE =3D " + =
BUTTON_PALLETE);
>     BUTTON_PALLETE.src=3D"Button.html";
> }
>=20
> function init()
> {
>     BUTTON_PALLETE=3Dtop.button_pallete;
>     alert("In init of menu.html..Hi button pallete :"+BUTTON_PALLETE+" =
Top Button Pallette "+top.button_pallete);
> }
> </script>
> </HEAD>
> <BODY onload=3D"init()">
> <FORM action=3D"Href_Hash2.html" METHOD=3D"POST" name=3D"Test1">
> <a href=3D"#" onclick=3D"checkTop()">Click Here</a>
> </FORM>
> </BODY>
> </HTML>
> -------------------------------------
>=20
> The script is as follows :=20
> -------------------------------------
> <invoke url=3D"MainFrame.html"/>
> <followframe name=3D"menu" />
> <clicklink label=3D"Click Here" />
> -------------------------------------
>=20
> When MainFrame.html is invoked, the BUTTON_PALLETE is initialized with =
null in the Menu.html page. Although top.button_pallette is a valid =
object in the alert. This can be seen as part of alert debug. Not a neat =
way to check script :-(.
>=20
> I am not sure how parsing is done in Webtest (or HTMLUnit internally). =
At the same time this works fine in IE as well as FireFox.
>=20
> When we use followframe, it intelligently picks up the already parsed =
page (does not try to get/load/parse it again).
>=20
> Is there a workaround for this issue or can this be fixed easily?
>=20
> Regards,
> - Nimesh
>=20
>=20
> MASTEK
> "Making a valuable difference"
> Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
> In the US, we're called MAJESCO
>=20
> =
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Opinions expressed in this e-mail are those of the individual and not =
that of Mastek Limited, unless specifically indicated to that effect. =
Mastek Limited does not accept any responsibility or liability for it. =
This e-mail and attachments (if any) transmitted with it are =
confidential and/or privileged and solely for the use of the intended =
person or entity to which it is addressed. Any review, re-transmission, =
dissemination or other use of or taking of any action in reliance upon =
this information by persons or entities other than the intended =
recipient is prohibited. This e-mail and its attachments have been =
scanned for the presence of computer viruses. It is the responsibility =
of the recipient to run the virus check on e-mails and attachments =
before opening them. If you have received this e-mail in error, kindly =
delete this e-mail from all computers.
> =
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>=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