You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by "Christensen, Alan" <al...@hp.com> on 2007/08/03 18:10:17 UTC

This page is too large to be displayed

I often get the message back "this page is too large to be displayed"
when trying to view pages using the View Results Tree listener.  Is
there a way to configure the maximum size that can be displayed?  Mine
seems to start giving this message somewhere between 200KB and 300KB.
I'd like to increase it to 500KB.

When this response occurs it is not possible to view the text of the
response to determine why assertions may have failed.  My assumption is
that the assertion is still checked against the returned HTML.  Is that
correct?

Alan

Re: Beanshell pre-processor

Posted by Ronan Klyne <ro...@groupbc.com>.
David Schulberg wrote:
> Hi,
>  
> This issue is driving me nuts!
>  
> The use of 
> vars.put("Relation") = vars.get("Relation2");
>  
> definitely does not work.

That's true, it doesn't work. The method 'put' takes two arguments, the
key and the value, like so:

vars.put("Relation", vars.get("Relation2"));

	# r

-- 
Ronan Klyne
Business Collaborator Developer
Tel: +44 (0)870 163 2555
ronan.klyne@groupbc.com
www.groupbc.com

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


RE: Beanshell pre-processor

Posted by David Schulberg <Da...@objectconsulting.com.au>.
Hi,
 
This issue is driving me nuts!
 
The use of 
vars.put("Relation") = vars.get("Relation2");
 
definitely does not work.
 
ERROR - jmeter.util.BeanShellInterpreter: Error invoking bsh method: eval Sourced file: inline evaluation of: ``vars.put("Relation") = vars.get("Relation2"); vars.put("Person") = vars.get("Per . . . '' : Can't assign to prefix.
 
Now 'Relation' has been defined as a user variable and 'Relation2' is a CVS Data Config variable name.
 
When I use ${Relation2} in a script statement the value of the variable is at least displayed in the jmeter.log
 
Regards,
David Schulberg

Object Consulting | Senior Consultant
email: david.schulberg@objectconsulting.com.au
----------------------------------------------------------------
consulting | development | training | support
our experience makes the difference 

________________________________

From: sebb [mailto:sebbaz@gmail.com]
Sent: Wed 15/08/2007 5:05 PM
To: jmeter-user@jakarta.apache.org
Subject: Re: Beanshell pre-processor



[Try again - last attempt failed with DNS error]

On 15/08/07, David Schulberg <Da...@objectconsulting.com.au> wrote:
> Hi,
>
> I changed my beanshell script as per the suggestion to
>
> vars.put("Relation") = vars.get("Relation2");
> vars.put("Person") = vars.get("Person2");
> if (vars.get("Relation2")) >= 6

That should be

 if (vars.get("Relation2") >= 6)

> {
>    vars.put("Relation") = vars.get("Relation2");
>    vars.put("Person") = vars.get("Person2");
> }
> else if (vars.get("Relation3")) >= 6
> {
>    vars.put("Relation") = vars.get("Relation3");
>    vars.put("Person") = vars.get("Person3");
> }
> else if (vars.get("Relation4")) >= 6
> {
>    vars.put("Relation") = vars.get("Relation4");
>    vars.put("Person") = vars.get("Person4");
> }
> else if (vars.get("Relation5")) >= 6
> {
>    vars.put("Relation") = vars.get("Relation5");
>    vars.put("Person") = vars.get("Person5");
> }
> else if (vars.get("Relation6")) >= 6
> {
>    vars.put("Relation") = vars.get("Relation6");
>    vars.put("Person") = vars.get("Person6");
> }
>
> but that made no difference - same error.

That's not possible. There may be an error, but it cannot possibly be:

jmeter.util.BeanShellInterpreter: Error invoking bsh method: eval
Sourced file: inline evaluation of: ``vars.put("") = vars.get("4");
vars.put("${Person}") = vars.get("220780625"); if  . . . '' : Can't
assign to prefix.

... apart from the last part about the if.

See above.

> Regards,
> David Schulberg
>
> Object Consulting | Senior Consultant
> email: david.schulberg@objectconsulting.com.au
> ----------------------------------------------------------------
> consulting | development | training | support
> our experience makes the difference
>
> ________________________________
>
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Tue 14/08/2007 6:54 PM
> To: JMeter Users List
> Subject: Re: Beanshell pre-processor
>
>
>
> On 14/08/07, David Schulberg <Da...@objectconsulting.com.au> wrote:
> > Hi,
> >
> > Have added a beanshell preprocessor to a sampler for the purpose of setting variables to be used in the sampler request.
> >
> > It doesn't work - get error in jmeter log:
>
> Because you are doing double evaluation of the variables.
>
> > jmeter.util.BeanShellInterpreter: Error invoking bsh method: eval Sourced file: inline evaluation of: ``vars.put("") = vars.get("4"); vars.put("${Person}") = vars.get("220780625"); if  . . . '' : Can't assign to prefix.
> >
> > My preprocessor script is attempting to set user variables Relation and Person:
> >
> > vars.put("${Relation}") = vars.get("${Relation2}");
>
> Assume Relation="aunt" and Relation2="uncle", then what Beanshell sees is
>
> vars.put("aunt") = vars.get("uncle");
>
> because the variables are textually substituted in the script field
> before handing to Beanshell.
>
> You need to use
>
> vars.put("Relation") = vars.get("Relation2");
>
>
> > vars.put("${Person}") = vars.get("${Person2}");
> > if (vars.get("${Relation2}")) >= 6
> > {
> >    vars.put("${Relation}") = vars.get("${Relation2}");
> >    vars.put("${Person}") = vars.get("${Person2}");
> > }
> > else if (vars.get("${Relation3}")) >= 6
> > {
> >    vars.put("${Relation}") = vars.get("${Relation3}");
> >    vars.put("${Person}") = vars.get("${Person3}");
> > }
> > else if (vars.get("${Relation4}")) >= 6
> > {
> >    vars.put("${Relation}") = vars.get("${Relation4}");
> >    vars.put("${Person}") = vars.get("${Person4}");
> > }
> > else if (vars.get("${Relation5}")) >= 6
> > {
> >    vars.put("${Relation}") = vars.get("${Relation5}");
> >    vars.put("${Person}") = vars.get("${Person5}");
> > }
> > else if (vars.get("${Relation6}")) >= 6
> > {
> >    vars.put("${Relation}") = vars.get("${Relation6}");
> >    vars.put("${Person}") = vars.get("${Person6}");
> > }
> >
> >
> > David Schulberg
> >
> > Object Consulting | Senior Consultant
> > email: david.schulberg@objectconsulting.com.au
> > ----------------------------------------------------------------
> > consulting | development | training | support
> > our experience makes the difference
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
>
>
>
>
> ---------------------------------------------------------------------
> 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: Beanshell pre-processor

Posted by sebb <se...@gmail.com>.
[Try again - last attempt failed with DNS error]

On 15/08/07, David Schulberg <Da...@objectconsulting.com.au> wrote:
> Hi,
>
> I changed my beanshell script as per the suggestion to
>
> vars.put("Relation") = vars.get("Relation2");
> vars.put("Person") = vars.get("Person2");
> if (vars.get("Relation2")) >= 6

That should be

 if (vars.get("Relation2") >= 6)

> {
>    vars.put("Relation") = vars.get("Relation2");
>    vars.put("Person") = vars.get("Person2");
> }
> else if (vars.get("Relation3")) >= 6
> {
>    vars.put("Relation") = vars.get("Relation3");
>    vars.put("Person") = vars.get("Person3");
> }
> else if (vars.get("Relation4")) >= 6
> {
>    vars.put("Relation") = vars.get("Relation4");
>    vars.put("Person") = vars.get("Person4");
> }
> else if (vars.get("Relation5")) >= 6
> {
>    vars.put("Relation") = vars.get("Relation5");
>    vars.put("Person") = vars.get("Person5");
> }
> else if (vars.get("Relation6")) >= 6
> {
>    vars.put("Relation") = vars.get("Relation6");
>    vars.put("Person") = vars.get("Person6");
> }
>
> but that made no difference - same error.

That's not possible. There may be an error, but it cannot possibly be:

jmeter.util.BeanShellInterpreter: Error invoking bsh method: eval
Sourced file: inline evaluation of: ``vars.put("") = vars.get("4");
vars.put("${Person}") = vars.get("220780625"); if  . . . '' : Can't
assign to prefix.

... apart from the last part about the if.

See above.

> Regards,
> David Schulberg
>
> Object Consulting | Senior Consultant
> email: david.schulberg@objectconsulting.com.au
> ----------------------------------------------------------------
> consulting | development | training | support
> our experience makes the difference
>
> ________________________________
>
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Tue 14/08/2007 6:54 PM
> To: JMeter Users List
> Subject: Re: Beanshell pre-processor
>
>
>
> On 14/08/07, David Schulberg <Da...@objectconsulting.com.au> wrote:
> > Hi,
> >
> > Have added a beanshell preprocessor to a sampler for the purpose of setting variables to be used in the sampler request.
> >
> > It doesn't work - get error in jmeter log:
>
> Because you are doing double evaluation of the variables.
>
> > jmeter.util.BeanShellInterpreter: Error invoking bsh method: eval Sourced file: inline evaluation of: ``vars.put("") = vars.get("4"); vars.put("${Person}") = vars.get("220780625"); if  . . . '' : Can't assign to prefix.
> >
> > My preprocessor script is attempting to set user variables Relation and Person:
> >
> > vars.put("${Relation}") = vars.get("${Relation2}");
>
> Assume Relation="aunt" and Relation2="uncle", then what Beanshell sees is
>
> vars.put("aunt") = vars.get("uncle");
>
> because the variables are textually substituted in the script field
> before handing to Beanshell.
>
> You need to use
>
> vars.put("Relation") = vars.get("Relation2");
>
>
> > vars.put("${Person}") = vars.get("${Person2}");
> > if (vars.get("${Relation2}")) >= 6
> > {
> >    vars.put("${Relation}") = vars.get("${Relation2}");
> >    vars.put("${Person}") = vars.get("${Person2}");
> > }
> > else if (vars.get("${Relation3}")) >= 6
> > {
> >    vars.put("${Relation}") = vars.get("${Relation3}");
> >    vars.put("${Person}") = vars.get("${Person3}");
> > }
> > else if (vars.get("${Relation4}")) >= 6
> > {
> >    vars.put("${Relation}") = vars.get("${Relation4}");
> >    vars.put("${Person}") = vars.get("${Person4}");
> > }
> > else if (vars.get("${Relation5}")) >= 6
> > {
> >    vars.put("${Relation}") = vars.get("${Relation5}");
> >    vars.put("${Person}") = vars.get("${Person5}");
> > }
> > else if (vars.get("${Relation6}")) >= 6
> > {
> >    vars.put("${Relation}") = vars.get("${Relation6}");
> >    vars.put("${Person}") = vars.get("${Person6}");
> > }
> >
> >
> > David Schulberg
> >
> > Object Consulting | Senior Consultant
> > email: david.schulberg@objectconsulting.com.au
> > ----------------------------------------------------------------
> > consulting | development | training | support
> > our experience makes the difference
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
>
>
>
>
> ---------------------------------------------------------------------
> 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: Beanshell pre-processor

Posted by David Schulberg <Da...@objectconsulting.com.au>.
Hi,
 
I changed my beanshell script as per the suggestion to 
 
vars.put("Relation") = vars.get("Relation2");
vars.put("Person") = vars.get("Person2");
if (vars.get("Relation2")) >= 6
{
    vars.put("Relation") = vars.get("Relation2");
    vars.put("Person") = vars.get("Person2");
}
else if (vars.get("Relation3")) >= 6
{
    vars.put("Relation") = vars.get("Relation3");
    vars.put("Person") = vars.get("Person3");
}
else if (vars.get("Relation4")) >= 6
{
    vars.put("Relation") = vars.get("Relation4");
    vars.put("Person") = vars.get("Person4");
}
else if (vars.get("Relation5")) >= 6
{
    vars.put("Relation") = vars.get("Relation5");
    vars.put("Person") = vars.get("Person5");
}
else if (vars.get("Relation6")) >= 6
{
    vars.put("Relation") = vars.get("Relation6");
    vars.put("Person") = vars.get("Person6");
}

but that made no difference - same error.
 
Regards,
David Schulberg

Object Consulting | Senior Consultant
email: david.schulberg@objectconsulting.com.au
----------------------------------------------------------------
consulting | development | training | support
our experience makes the difference 

________________________________

From: sebb [mailto:sebbaz@gmail.com]
Sent: Tue 14/08/2007 6:54 PM
To: JMeter Users List
Subject: Re: Beanshell pre-processor



On 14/08/07, David Schulberg <Da...@objectconsulting.com.au> wrote:
> Hi,
>
> Have added a beanshell preprocessor to a sampler for the purpose of setting variables to be used in the sampler request.
>
> It doesn't work - get error in jmeter log:

Because you are doing double evaluation of the variables.

> jmeter.util.BeanShellInterpreter: Error invoking bsh method: eval Sourced file: inline evaluation of: ``vars.put("") = vars.get("4"); vars.put("${Person}") = vars.get("220780625"); if  . . . '' : Can't assign to prefix.
>
> My preprocessor script is attempting to set user variables Relation and Person:
>
> vars.put("${Relation}") = vars.get("${Relation2}");

Assume Relation="aunt" and Relation2="uncle", then what Beanshell sees is

vars.put("aunt") = vars.get("uncle");

because the variables are textually substituted in the script field
before handing to Beanshell.

You need to use

vars.put("Relation") = vars.get("Relation2");


> vars.put("${Person}") = vars.get("${Person2}");
> if (vars.get("${Relation2}")) >= 6
> {
>    vars.put("${Relation}") = vars.get("${Relation2}");
>    vars.put("${Person}") = vars.get("${Person2}");
> }
> else if (vars.get("${Relation3}")) >= 6
> {
>    vars.put("${Relation}") = vars.get("${Relation3}");
>    vars.put("${Person}") = vars.get("${Person3}");
> }
> else if (vars.get("${Relation4}")) >= 6
> {
>    vars.put("${Relation}") = vars.get("${Relation4}");
>    vars.put("${Person}") = vars.get("${Person4}");
> }
> else if (vars.get("${Relation5}")) >= 6
> {
>    vars.put("${Relation}") = vars.get("${Relation5}");
>    vars.put("${Person}") = vars.get("${Person5}");
> }
> else if (vars.get("${Relation6}")) >= 6
> {
>    vars.put("${Relation}") = vars.get("${Relation6}");
>    vars.put("${Person}") = vars.get("${Person6}");
> }
>
>
> David Schulberg
>
> Object Consulting | Senior Consultant
> email: david.schulberg@objectconsulting.com.au
> ----------------------------------------------------------------
> consulting | development | training | support
> our experience makes the difference
>
>
>
>
> ---------------------------------------------------------------------
> 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: Beanshell pre-processor

Posted by sebb <se...@gmail.com>.
On 14/08/07, David Schulberg <Da...@objectconsulting.com.au> wrote:
> Hi,
>
> Have added a beanshell preprocessor to a sampler for the purpose of setting variables to be used in the sampler request.
>
> It doesn't work - get error in jmeter log:

Because you are doing double evaluation of the variables.

> jmeter.util.BeanShellInterpreter: Error invoking bsh method: eval Sourced file: inline evaluation of: ``vars.put("") = vars.get("4"); vars.put("${Person}") = vars.get("220780625"); if  . . . '' : Can't assign to prefix.
>
> My preprocessor script is attempting to set user variables Relation and Person:
>
> vars.put("${Relation}") = vars.get("${Relation2}");

Assume Relation="aunt" and Relation2="uncle", then what Beanshell sees is

vars.put("aunt") = vars.get("uncle");

because the variables are textually substituted in the script field
before handing to Beanshell.

You need to use

vars.put("Relation") = vars.get("Relation2");


> vars.put("${Person}") = vars.get("${Person2}");
> if (vars.get("${Relation2}")) >= 6
> {
>    vars.put("${Relation}") = vars.get("${Relation2}");
>    vars.put("${Person}") = vars.get("${Person2}");
> }
> else if (vars.get("${Relation3}")) >= 6
> {
>    vars.put("${Relation}") = vars.get("${Relation3}");
>    vars.put("${Person}") = vars.get("${Person3}");
> }
> else if (vars.get("${Relation4}")) >= 6
> {
>    vars.put("${Relation}") = vars.get("${Relation4}");
>    vars.put("${Person}") = vars.get("${Person4}");
> }
> else if (vars.get("${Relation5}")) >= 6
> {
>    vars.put("${Relation}") = vars.get("${Relation5}");
>    vars.put("${Person}") = vars.get("${Person5}");
> }
> else if (vars.get("${Relation6}")) >= 6
> {
>    vars.put("${Relation}") = vars.get("${Relation6}");
>    vars.put("${Person}") = vars.get("${Person6}");
> }
>
>
> David Schulberg
>
> Object Consulting | Senior Consultant
> email: david.schulberg@objectconsulting.com.au
> ----------------------------------------------------------------
> consulting | development | training | support
> our experience makes the difference
>
>
>
>
> ---------------------------------------------------------------------
> 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


Beanshell pre-processor

Posted by David Schulberg <Da...@objectconsulting.com.au>.
Hi,
 
Have added a beanshell preprocessor to a sampler for the purpose of setting variables to be used in the sampler request.
 
It doesn't work - get error in jmeter log:
 
jmeter.util.BeanShellInterpreter: Error invoking bsh method: eval Sourced file: inline evaluation of: ``vars.put("") = vars.get("4"); vars.put("${Person}") = vars.get("220780625"); if  . . . '' : Can't assign to prefix. 
 
My preprocessor script is attempting to set user variables Relation and Person:
 
vars.put("${Relation}") = vars.get("${Relation2}");
vars.put("${Person}") = vars.get("${Person2}");
if (vars.get("${Relation2}")) >= 6
{
    vars.put("${Relation}") = vars.get("${Relation2}");
    vars.put("${Person}") = vars.get("${Person2}");
}
else if (vars.get("${Relation3}")) >= 6
{
    vars.put("${Relation}") = vars.get("${Relation3}");
    vars.put("${Person}") = vars.get("${Person3}");
}
else if (vars.get("${Relation4}")) >= 6
{
    vars.put("${Relation}") = vars.get("${Relation4}");
    vars.put("${Person}") = vars.get("${Person4}");
}
else if (vars.get("${Relation5}")) >= 6
{
    vars.put("${Relation}") = vars.get("${Relation5}");
    vars.put("${Person}") = vars.get("${Person5}");
}
else if (vars.get("${Relation6}")) >= 6
{
    vars.put("${Relation}") = vars.get("${Relation6}");
    vars.put("${Person}") = vars.get("${Person6}");
}

 
David Schulberg

Object Consulting | Senior Consultant
email: david.schulberg@objectconsulting.com.au
----------------------------------------------------------------
consulting | development | training | support
our experience makes the difference 

 


Re: This page is too large to be displayed

Posted by sebb <se...@gmail.com>.
Yes, it is still checked - it is only the display that is suppressed.

On 09/08/07, Christensen, Alan <al...@hp.com> wrote:
> Is the html file checked for the response assertion if it is too big? Or
> can you only do a size assertion to see if you have reached the correct
> page?
>
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Thursday, August 09, 2007 4:12 AM
> To: JMeter Users List
> Subject: Re: This page is too large to be displayed
>
> Or you can use:
>
> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Sav
> e_Responses_to_a_file
>
> and look at the file in a browser.
>
> On 07/08/07, chris <hi...@gmx.at> wrote:
> > hi, i just looked at the code (jmeter release 2.2 AND 2.3) and found
> > out that this value is NOT configurable. you're right, 200 kb is limit
>
> > for showing the response in the "results tree". so you would have to
> > patch the regarding file and build jmeter
> >
> > see
> > /src/components/org/apache/jmeter/visualizers/ViewResultsFullVisualize
> > r.java
> > @line 474 (line 623 in jmeter 2.3)
> >
> >    // Showing large strings can be VERY costly, so we will avoid doing
>
> > so if the response
> >    // data is larger than 200K. TODO: instead, we could delay doing
> > the result.setText
> >    // call until the user chooses the "Response data" tab. Plus we
> > could warn the user
> >    // if this happens and revert the choice if he doesn't confirm he's
>
> > ready to wait.
> > if (responseBytes.length > 200 * 1024) {
> >     response = ("Response too large to be displayed (" +
> > responseBytes.length + " bytes).");
> >     log.warn("Response too large to display."); }
> >
> > you could open a bug in jmeter's bugzilla and propose to set a
> > "max_response_size" as a property.
> >
> > cheers,
> >   chris
> >
> >
> >
> > "Christensen, Alan" <al...@hp.com> schrieb im Newsbeitrag
> >
> news:8CD5E35E3589F445A265B95DE325BA5E01EE45EC@G3W0067.americas.hpqcorp.n
> et...
> >
> > I often get the message back "this page is too large to be displayed"
> > when trying to view pages using the View Results Tree listener.  Is
> > there a way to configure the maximum size that can be displayed?  Mine
>
> > seems to start giving this message somewhere between 200KB and 300KB.
> > I'd like to increase it to 500KB.
> >
> > When this response occurs it is not possible to view the text of the
> > response to determine why assertions may have failed.  My assumption
> > is that the assertion is still checked against the returned HTML.  Is
> > that correct?
> >
> > Alan
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
>
> ---------------------------------------------------------------------
> 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: This page is too large to be displayed

Posted by "Christensen, Alan" <al...@hp.com>.
Is the html file checked for the response assertion if it is too big? Or
can you only do a size assertion to see if you have reached the correct
page?

-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: Thursday, August 09, 2007 4:12 AM
To: JMeter Users List
Subject: Re: This page is too large to be displayed

Or you can use:

http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Sav
e_Responses_to_a_file

and look at the file in a browser.

On 07/08/07, chris <hi...@gmx.at> wrote:
> hi, i just looked at the code (jmeter release 2.2 AND 2.3) and found 
> out that this value is NOT configurable. you're right, 200 kb is limit

> for showing the response in the "results tree". so you would have to 
> patch the regarding file and build jmeter
>
> see
> /src/components/org/apache/jmeter/visualizers/ViewResultsFullVisualize
> r.java
> @line 474 (line 623 in jmeter 2.3)
>
>    // Showing large strings can be VERY costly, so we will avoid doing

> so if the response
>    // data is larger than 200K. TODO: instead, we could delay doing 
> the result.setText
>    // call until the user chooses the "Response data" tab. Plus we 
> could warn the user
>    // if this happens and revert the choice if he doesn't confirm he's

> ready to wait.
> if (responseBytes.length > 200 * 1024) {
>     response = ("Response too large to be displayed (" + 
> responseBytes.length + " bytes).");
>     log.warn("Response too large to display."); }
>
> you could open a bug in jmeter's bugzilla and propose to set a 
> "max_response_size" as a property.
>
> cheers,
>   chris
>
>
>
> "Christensen, Alan" <al...@hp.com> schrieb im Newsbeitrag 
>
news:8CD5E35E3589F445A265B95DE325BA5E01EE45EC@G3W0067.americas.hpqcorp.n
et...
>
> I often get the message back "this page is too large to be displayed"
> when trying to view pages using the View Results Tree listener.  Is 
> there a way to configure the maximum size that can be displayed?  Mine

> seems to start giving this message somewhere between 200KB and 300KB.
> I'd like to increase it to 500KB.
>
> When this response occurs it is not possible to view the text of the 
> response to determine why assertions may have failed.  My assumption 
> is that the assertion is still checked against the returned HTML.  Is 
> that correct?
>
> Alan
>
>
>
>
> ---------------------------------------------------------------------
> 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


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


Re: This page is too large to be displayed

Posted by sebb <se...@gmail.com>.
Or you can use:

http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Save_Responses_to_a_file

and look at the file in a browser.

On 07/08/07, chris <hi...@gmx.at> wrote:
> hi, i just looked at the code (jmeter release 2.2 AND 2.3) and found out
> that this value is NOT configurable. you're right, 200 kb is limit for
> showing the response in the "results tree". so you would have to patch the
> regarding file and build jmeter
>
> see
> /src/components/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java
> @line 474 (line 623 in jmeter 2.3)
>
>    // Showing large strings can be VERY costly, so we will avoid doing so
> if the response
>    // data is larger than 200K. TODO: instead, we could delay doing the
> result.setText
>    // call until the user chooses the "Response data" tab. Plus we could
> warn the user
>    // if this happens and revert the choice if he doesn't confirm he's
> ready to wait.
> if (responseBytes.length > 200 * 1024) {
>     response = ("Response too large to be displayed (" +
> responseBytes.length + " bytes).");
>     log.warn("Response too large to display.");
> }
>
> you could open a bug in jmeter's bugzilla and propose to set a
> "max_response_size" as a property.
>
> cheers,
>   chris
>
>
>
> "Christensen, Alan" <al...@hp.com> schrieb im Newsbeitrag
> news:8CD5E35E3589F445A265B95DE325BA5E01EE45EC@G3W0067.americas.hpqcorp.net...
>
> I often get the message back "this page is too large to be displayed"
> when trying to view pages using the View Results Tree listener.  Is
> there a way to configure the maximum size that can be displayed?  Mine
> seems to start giving this message somewhere between 200KB and 300KB.
> I'd like to increase it to 500KB.
>
> When this response occurs it is not possible to view the text of the
> response to determine why assertions may have failed.  My assumption is
> that the assertion is still checked against the returned HTML.  Is that
> correct?
>
> Alan
>
>
>
>
> ---------------------------------------------------------------------
> 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: This page is too large to be displayed

Posted by chris <hi...@gmx.at>.
hi, i just looked at the code (jmeter release 2.2 AND 2.3) and found out 
that this value is NOT configurable. you're right, 200 kb is limit for 
showing the response in the "results tree". so you would have to patch the 
regarding file and build jmeter

see 
/src/components/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java 
@line 474 (line 623 in jmeter 2.3)

    // Showing large strings can be VERY costly, so we will avoid doing so 
if the response
    // data is larger than 200K. TODO: instead, we could delay doing the 
result.setText
    // call until the user chooses the "Response data" tab. Plus we could 
warn the user
    // if this happens and revert the choice if he doesn't confirm he's 
ready to wait.
if (responseBytes.length > 200 * 1024) {
     response = ("Response too large to be displayed (" + 
responseBytes.length + " bytes).");
     log.warn("Response too large to display.");
}

you could open a bug in jmeter's bugzilla and propose to set a 
"max_response_size" as a property.

cheers,
   chris



"Christensen, Alan" <al...@hp.com> schrieb im Newsbeitrag 
news:8CD5E35E3589F445A265B95DE325BA5E01EE45EC@G3W0067.americas.hpqcorp.net...

I often get the message back "this page is too large to be displayed"
when trying to view pages using the View Results Tree listener.  Is
there a way to configure the maximum size that can be displayed?  Mine
seems to start giving this message somewhere between 200KB and 300KB.
I'd like to increase it to 500KB.

When this response occurs it is not possible to view the text of the
response to determine why assertions may have failed.  My assumption is
that the assertion is still checked against the returned HTML.  Is that
correct?

Alan




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