[Webtest] [webtest][JIRA] Created: (WT-428) Iframe invocation becomes current response, taking response away from the container frame.

Adrian Porter (JIRA) Adrian Porter (JIRA)" <noreply@canoo.com
Fri, 23 May 2008 18:14:29 +0200 (CEST)


Iframe invocation becomes current response, taking response away from the container frame.
------------------------------------------------------------------------------------------

         Key: WT-428
         URL: http://webtest-community.canoo.com/jira/browse/WT-428
     Project: WebTest
        Type: Bug

 Environment: Windows XP workstation
    Reporter: Adrian Porter


Contains of webtest community mail from 5/23/2008:

Thanks Marc

I'll go ahead an open an issue.  Actually, this is issue is related to the other issue I posted (to which you've already replied), concerning automatic closing of windows.  The script fragment below show the sequence where the Iframe (MarkAppl) takes focus away from LoadComparison, so that eventually verifyTitle fails .  Note, the automatic closing of the response window I can not always repeated, so there must be a random timing component to the problem.

 INFO (com.canoo.webtest.engine.WebClientContext) - Content of window changed to http://.../SLICVista/SLICWebVista/LoadComparison?cmd_name=XB&to_rpt_filename=AJPsnap1&to_rpt_type=private&from_rpt_filename=AJPsnap2&from_rpt_type=private (text/html)
 INFO (com.canoo.webtest.engine.WebClientContext) - Content of current window changed, it will become current response
 INFO (com.canoo.webtest.engine.WebClientContext) - Current form set to none
 INFO (com.canoo.webtest.engine.WebClientContext) - Current response now: http://.../SLICVista/SLICWebVista/LoadComparison?cmd_name=XB&to_rpt_filename=AJPsnap1&to_rpt_type=private&from_rpt_filename=AJPsnap2&from_rpt_type=private
 INFO (com.canoo.webtest.engine.WebClientContext) - Content of window changed to http://.../SLICVista/SLICWebVista/MarkAppl (text/html)
 INFO (com.canoo.webtest.engine.WebClientContext) - Content of window changed without javascript, it will become current response
 INFO (com.canoo.webtest.engine.WebClientContext) - Current form set to none
 INFO (com.canoo.webtest.engine.WebClientContext) - Current response now: http://.../SLICVista/SLICWebVista/MarkAppl
 INFO (com.canoo.webtest.engine.WebClientContext) - Content of window changed to http://.../SLICVista/SLICWebVista/MarkAppl (text/html)
 INFO (com.canoo.webtest.engine.WebClientContext) - Content of window changed without javascript, it will become current response
 INFO (com.canoo.webtest.engine.WebClientContext) - Current form set to none
 INFO (com.canoo.webtest.engine.WebClientContext) - Content of window changed to http://.../SLICVista/SLICWebVista/MarkAppl (text/html)
 INFO (com.canoo.webtest.engine.WebClientContext) - Current response now: http://.../SLICVista/SLICWebVista/MarkAppl
 INFO (com.canoo.webtest.engine.WebClientContext) - Content of window changed without javascript, it will become current response
 INFO (com.canoo.webtest.engine.WebClientContext) - Current form set to none
 INFO (com.canoo.webtest.engine.WebClientContext) - Current response now: http://.../SLICVista/SLICWebVista/MarkAppl
 INFO (com.canoo.webtest.engine.WebClientContext) - Content of window changed to http://.../SLICVista/SLICWebVista/MarkAppl (text/html)
 INFO (com.canoo.webtest.engine.WebClientContext) - Content of window changed without javascript, it will become current response
 INFO (com.canoo.webtest.engine.WebClientContext) - Current form set to none
 INFO (com.canoo.webtest.engine.WebClientContext) - Current response now: http://.../SLICVista/SLICWebVista/MarkAppl
 INFO (com.canoo.webtest.engine.WebClientContext) - Content of window changed to http://.../SLICVista/SLICWebVista/MarkAppl (text/html)
 INFO (com.canoo.webtest.engine.WebClientContext) - Content of window changed without javascript, it will become current response
 INFO (com.canoo.webtest.engine.WebClientContext) - Current form set to none
 INFO (com.canoo.webtest.engine.WebClientContext) - Current response now: http://.../SLICVista/SLICWebVista/MarkAppl
 INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: verifyTitle "1.3.10.1.1.010" (150/190)
 INFO (com.canoo.webtest.engine.WebClientContext) - Responses restored
 INFO (com.canoo.webtest.ant.WebtestTask) - Finished executing webtest "check opening all pages" (Q:\AUTO\autotst2\results\080523adrianxp04\FT001\smoketest.VRL:52: )
 INFO (com.canoo.webtest.ant.WebtestTask) - Test report successfully created.

BUILD FAILED
Q:\AUTO\autotst2\results\080523adrianxp04\FT001\smoketest.VRL:1286: Wrong document title found!. Expected value "LSA Control Number Indentured Item" but got "", Step: VerifyTitle at Q:\AUTO\autotst2\results\080523adrianxp04\FT001\smoketest.VRL:1286:  with (taskName="verifyTitle")

Total time: 11 minutes 22 seconds


Marc Guillemot <mguillemot@yahoo.fr> 
Sent by: webtest-admin@lists.canoo.com
05/23/2008 04:17 AM
Please respond to
webtest@lists.canoo.com
	
To
webtest@lists.canoo.com
cc

Subject
Re: [Webtest] Ignoring responses returned from iframes embeded in html pages ...
	

	


Adrian Porter wrote:
> 
> I have an html frame which contains an Iframe.  The Iframe is a
> single-pixel frame that polls the server every 4 minutes.  It generates
> a response that become the new current response, taking the script focus
> away from the response of interest - i.e.  the html container page.  

then this is a bug in the logic determining the current response. Can
you open an issue for that?

> Is
> there a way to disable or ignore processing of responses from iframes ?

it depends of the way the iframe is reloaded but it may be tricky.




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://webtest-community.canoo.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira