[Webtest] Forward referencing issue during FrameSet loading

Marc Guillemot webtest@lists.canoo.com
Wed, 13 Jul 2005 16:17:01 +0200


followFrame just selects a frame as the current page. It has already been loaded together with the frameset containing 
it. Perhaps could it be interesting to have a <reload> test step corresponding to the reload button of a browser but it 
is probably easier to fix this pb than to implement the new step. As workaroung, perhaps could you deactivate the 
javascript?

Marc.



Nimesh Muley wrote:
> 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,
>>
>>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.
>>
>>HTML Source is as follows
>>-----------------------------------
>>MainFrame.html
>>-----------------------------------
>><HTML>
>><HEAD>
>><TITLE>
>>Main
>></TITLE>
>><META HTTP-EQUIV="EXPIRES" CONTENT="0">
>><META HTTP-EQUIV="PRAGMA" CONTENT="no-cache">
>><META HTTP-EQUIV="CACHE-CONTROL" CONTENT="no-cache">
>></HEAD>
>><FRAMESET ROWS="14%,*" FRAMEBORDER="0" FRAMESPACING="0">
>>    <FRAME NAME="topbar" SRC="about:blank" FRAMEBORDER="0" SCROLLING="no" NORESIZE>
>>    <FRAMESET COLS="18%,*" FRAMEBORDER="0"  FRAMESPACING="0">
>>        <FRAME NAME="menu" SRC="Menu.html" FRAMEBORDER="0" SCROLLING="no" NORESIZE>
>>        <FRAMESET ROWS="83%,17%,*,*" FRAMEBORDER="0"  FRAMESPACING="0" name="inn">
>>            <FRAME NAME="workarea" SRC="about:blank" FRAMEBORDER="0" SCROLLING="auto" NORESIZE>
>>            <FRAME NAME="button_pallete" SRC="about:blank" FRAMEBORDER="0" SCROLLING="no" NORESIZE>
>>            <FRAME NAME="hiddenFrame" SRC="about:blank" FRAMEBORDER="0" SCROLLING="no" NORESIZE>
>>        </FRAMESET>
>>    </FRAMESET>
>></FRAMESET>
>></HTML>
>>-----------------------------------
>>Menu.html
>>-----------------------------------
>><HTML>
>><HEAD>
>><TITLE>Page 1</TITLE>
>><script language="javascript1.2" type="text/javascript">
>>var BUTTON_PALLETE;
>>function checkTop()
>>{
>>    alert("in menu.html checktop top.button_pallete = " + top.button_pallete);
>>    alert("in menu.html checktop BUTTON_PALLETE = " + BUTTON_PALLETE);
>>    BUTTON_PALLETE.src="Button.html";
>>}
>>
>>function init()
>>{
>>    BUTTON_PALLETE=top.button_pallete;
>>    alert("In init of menu.html..Hi button pallete :"+BUTTON_PALLETE+" Top Button Pallette "+top.button_pallete);
>>}
>></script>
>></HEAD>
>><BODY onload="init()">
>><FORM action="Href_Hash2.html" METHOD="POST" name="Test1">
>><a href="#" onclick="checkTop()">Click Here</a>
>></FORM>
>></BODY>
>></HTML>
>>-------------------------------------
>>
>>The script is as follows : 
>>-------------------------------------
>><invoke url="MainFrame.html"/>
>><followframe name="menu" />
>><clicklink label="Click Here" />
>>-------------------------------------
>>
>>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 :-(.
>>
>>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.
>>
>>When we use followframe, it intelligently picks up the already parsed page (does not try to get/load/parse it again).
>>
>>Is there a workaround for this issue or can this be fixed easily?
>>
>>Regards,
>>- Nimesh
>>
>>
>>MASTEK
>>"Making a valuable difference"
>>Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
>>In the US, we're called MAJESCO
>>
>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>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.
>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>
>>_______________________________________________
>>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
> 
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>