You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Roopal Shah <ro...@vigorsoft.com> on 2005/04/08 11:21:34 UTC

Writing Response Assertions for Nested IFRAMES

Hi,

I have recently started evaluating JMeter 2.0.3 to develop
functional/regression test plans.

Presently, the web application for which I am creating test plans uses HTML
<IFRAME> quite extensively. Moreover, the IFRAMEs are also nested within one
another, which is causing some problems. I am able to assert the HTML
response for the parent page, however I am unable to assert the HTML
responses for child/nested IFRAMEs. Also, note that the source for the
IFRAMEs is a .JSP page.

I would appreciate any inputs/hints/suggestions with regards to writing
assertions for nested IFRAMEs.

Thanks & Regards,
Roopal Shah

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.801 / Virus Database: 544 - Release Date: 11/24/2004



---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Writing Response Assertions for Nested IFRAMES

Posted by sebb <se...@gmail.com>.
Looks like the src of the IFRAME is not being downloaded. 

Any errors reported in jmeter.log?

Did you set "Retrieve All Embedded Resources from HTML Files" ?

If so, then perhaps there's a bug in recognising the src atttribute.

In which case you'll need to download the src file separately, and
please file a bug report for the problem.

S
On Apr 8, 2005 11:12 AM, Roopal Shah <ro...@vigorsoft.com> wrote:
> Hello Sebb,
> 
> Actally, according to code, it should automatically be downloaded. For your
> reference, I am attaching response of parent page. The parent page contains
> 3 IFRAMES.
> 
> Please look into response, point out my mistake.
> 
> =============================================================
> <html lang="en">
> <head>
> <title>ABC</title>
> </head>
> <STYLE TYPE="text/css"> BODY {overflow-x:hidden;overflow-y:hidden;} </STYLE>
> <link REL="stylesheet" TYPE="text/css" HREF="css/advanced.css">
> <body bgcolor="#fffffff" onUnload="onUnloadFunc();"  onbeforeunload="return
> unloadDocument();" marginwidth=0 leftmargin=0 marginheight=0 topmargin=0>
>        <div
> style='position:absolute;top:0;left:0;width:1024;height:68;overflow:visible;
> ' >
>                <iframe name="Auv_Header" id="Auv_Header"
> src="Id_Auv_Header.jsp" width="100%"  height="68" scrolling="no"
> FRAMEBORDER=0 noresize></iframe>
>        </div>
>        <div
> style='position:absolute;top:69;left:0;width:1024;height:100%;overflow:visib
> le;'>
>                <iframe name="Auv_AppArea" id="Auv_AppArea"
> src="Id_Auv_Home.jsp" width="100%"  height="100%" scrolling="no"
> FRAMEBORDER=0 noresize></iframe>
>        </div>
>        <div
> style='visibility:hidden;position:absolute;top:0;left:0;width:0;height:0;ove
> rflow:visible;'>
>                 <iframe name="Auv_Error" id="Auv_Error"
> src="Id_Auv_ErrorPage.jsp" frameborder="NO" scrolling="no" height="1"
> noresize></iframe>
>        </div>
> </body>
> <script language="JavaScript">
>        if(self.location != top.location){
>                top.location = self.location;
>        }
> </script>
> 
> </html>
> ======================================================================
> 
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Friday, April 08, 2005 3:34 PM
> To: JMeter Users List; roopal@vigorsoft.com
> Subject: Re: Writing Response Assertions for Nested IFRAMES
> 
> Is the IFRAME being downloaded?
> The Listener Save Responses can be useful here.
> 
> If the IFRAME is not being automatically downloaded, you will need to
> create a separate Sampler to download it, and you can then add an
> assertion to that.
> 
> S.
> On Apr 8, 2005 10:21 AM, Roopal Shah <ro...@vigorsoft.com> wrote:
> > Hi,
> >
> > I have recently started evaluating JMeter 2.0.3 to develop
> > functional/regression test plans.
> >
> > Presently, the web application for which I am creating test plans uses
> HTML
> > <IFRAME> quite extensively. Moreover, the IFRAMEs are also nested within
> one
> > another, which is causing some problems. I am able to assert the HTML
> > response for the parent page, however I am unable to assert the HTML
> > responses for child/nested IFRAMEs. Also, note that the source for the
> > IFRAMEs is a .JSP page.
> >
> > I would appreciate any inputs/hints/suggestions with regards to writing
> > assertions for nested IFRAMEs.
> >
> > Thanks & Regards,
> > Roopal Shah
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.801 / Virus Database: 544 - Release Date: 11/24/2004
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.801 / Virus Database: 544 - Release Date: 11/24/2004
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.801 / Virus Database: 544 - Release Date: 11/24/2004
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


RE: Writing Response Assertions for Nested IFRAMES

Posted by Roopal Shah <ro...@vigorsoft.com>.
Hello Sebb,

Actally, according to code, it should automatically be downloaded. For your
reference, I am attaching response of parent page. The parent page contains
3 IFRAMES.

Please look into response, point out my mistake.

=============================================================
<html lang="en">
<head>
<title>ABC</title>
</head>
<STYLE TYPE="text/css"> BODY {overflow-x:hidden;overflow-y:hidden;} </STYLE>
<link REL="stylesheet" TYPE="text/css" HREF="css/advanced.css">
<body bgcolor="#fffffff" onUnload="onUnloadFunc();"  onbeforeunload="return
unloadDocument();" marginwidth=0 leftmargin=0 marginheight=0 topmargin=0>
        <div
style='position:absolute;top:0;left:0;width:1024;height:68;overflow:visible;
' >
                <iframe name="Auv_Header" id="Auv_Header"
src="Id_Auv_Header.jsp" width="100%"  height="68" scrolling="no"
FRAMEBORDER=0 noresize></iframe>
        </div>
        <div
style='position:absolute;top:69;left:0;width:1024;height:100%;overflow:visib
le;'>
                <iframe name="Auv_AppArea" id="Auv_AppArea"
src="Id_Auv_Home.jsp" width="100%"  height="100%" scrolling="no"
FRAMEBORDER=0 noresize></iframe>
        </div>
        <div
style='visibility:hidden;position:absolute;top:0;left:0;width:0;height:0;ove
rflow:visible;'>
                 <iframe name="Auv_Error" id="Auv_Error"
src="Id_Auv_ErrorPage.jsp" frameborder="NO" scrolling="no" height="1"
noresize></iframe>
        </div>
</body>
<script language="JavaScript">
        if(self.location != top.location){
                top.location = self.location;
        }
</script>

</html>
======================================================================

-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com]
Sent: Friday, April 08, 2005 3:34 PM
To: JMeter Users List; roopal@vigorsoft.com
Subject: Re: Writing Response Assertions for Nested IFRAMES


Is the IFRAME being downloaded?
The Listener Save Responses can be useful here.

If the IFRAME is not being automatically downloaded, you will need to
create a separate Sampler to download it, and you can then add an
assertion to that.

S.
On Apr 8, 2005 10:21 AM, Roopal Shah <ro...@vigorsoft.com> wrote:
> Hi,
>
> I have recently started evaluating JMeter 2.0.3 to develop
> functional/regression test plans.
>
> Presently, the web application for which I am creating test plans uses
HTML
> <IFRAME> quite extensively. Moreover, the IFRAMEs are also nested within
one
> another, which is causing some problems. I am able to assert the HTML
> response for the parent page, however I am unable to assert the HTML
> responses for child/nested IFRAMEs. Also, note that the source for the
> IFRAMEs is a .JSP page.
>
> I would appreciate any inputs/hints/suggestions with regards to writing
> assertions for nested IFRAMEs.
>
> Thanks & Regards,
> Roopal Shah
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.801 / Virus Database: 544 - Release Date: 11/24/2004
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.801 / Virus Database: 544 - Release Date: 11/24/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.801 / Virus Database: 544 - Release Date: 11/24/2004



---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Writing Response Assertions for Nested IFRAMES

Posted by sebb <se...@gmail.com>.
Is the IFRAME being downloaded?
The Listener Save Responses can be useful here.

If the IFRAME is not being automatically downloaded, you will need to
create a separate Sampler to download it, and you can then add an
assertion to that.

S.
On Apr 8, 2005 10:21 AM, Roopal Shah <ro...@vigorsoft.com> wrote:
> Hi,
> 
> I have recently started evaluating JMeter 2.0.3 to develop
> functional/regression test plans.
> 
> Presently, the web application for which I am creating test plans uses HTML
> <IFRAME> quite extensively. Moreover, the IFRAMEs are also nested within one
> another, which is causing some problems. I am able to assert the HTML
> response for the parent page, however I am unable to assert the HTML
> responses for child/nested IFRAMEs. Also, note that the source for the
> IFRAMEs is a .JSP page.
> 
> I would appreciate any inputs/hints/suggestions with regards to writing
> assertions for nested IFRAMEs.
> 
> Thanks & Regards,
> Roopal Shah
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.801 / Virus Database: 544 - Release Date: 11/24/2004
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org