YESU GROVER | 1 Jul 2008 07:16
Picon

TCP Timeout=?

 Hi

We are using TCP Sampler to test our application. From controller XML
Request is send to a system which has the application set up on it and then
from this system it is send to the server.

Now the issue that we are facing is that of 'Timeout'. Though the response
from the server reaches the aplication system but it doesnt reach the
Controller till the Timeout value is attained. If we do not specify any
Timeout value, which is actually an optional attribute, then JMeter on
Controller keeps waiting for response (though the response has been sent
from server)

We have tried modifying the eolbyte in the JMeter property file as given in
JMeter mailing list but it doesnt help. Please help. We have used Jmeter
version 2.3.1 and 2.3.2.

Thanks

Yesu
Ronan Klyne | 1 Jul 2008 10:31

BeanShell parse error with JMeter 2.3.2


Morning all,

I've got a file full of BeanShell functions that I need to use to 
initialise pre- and post-processors.
I've got the config sorted, but I get parse errors. The file is known to 
be good.
Any advice or pointers would be greatly appreciated....

I can see a long exception trace in the JMeter log file, starting with 
"jmeter.util.BeanShellInterpreter: Error invoking bsh method: source 
Parse error at line 88, column 9.  Encountered: vars "
(The full error is at the end of this message)

This is a section of the code that I am trying to use (line 88 is the 
one beginning "vars.put("):

<beanshell>

void select_coll(JMeterContext ctx, JMeterVariables vars, SampleResult 
prev, AbstractSampler sampler) {
	String gpd = vars.get("gpd_href");
	String id = "";
	String pref_ids = ",956088,3541752,54126386,17413808,956136,"
	
	// To help with error cases
	vars.put("container", "NONE");

	print("GPD: " + gpd);

(Continue reading)

Ronan Klyne | 1 Jul 2008 10:54

Re: BeanShell parse error with JMeter 2.3.2

Never mind - it was staring me in the face...

I missed a semi-colon on the line 'String pref_ids = 
",956088,3541752,54126386,17413808,956136,"'

I think I've been using Python too long...

I'm curious why this didn't raise an error in JMeter 2.3RC4 (same 
Beanshell JAR)...

	# r

Ronan Klyne wrote:
> 
> Morning all,
> 
> I've got a file full of BeanShell functions that I need to use to 
> initialise pre- and post-processors.
> I've got the config sorted, but I get parse errors. The file is known to 
> be good.
> Any advice or pointers would be greatly appreciated....
> 
> 
> I can see a long exception trace in the JMeter log file, starting with 
> "jmeter.util.BeanShellInterpreter: Error invoking bsh method: source 
> Parse error at line 88, column 9.  Encountered: vars "
> (The full error is at the end of this message)
> 
> 
> This is a section of the code that I am trying to use (line 88 is the 
(Continue reading)

Baban Kakde | 1 Jul 2008 11:05

jms connection issue


I am testing jms application but could not connect to url provider and get
following exception. Please help me.

2008/07/01 04:38:12 INFO  - jmeter.util.JMeterUtils: Setting Locale to en_US 
2008/07/01 04:38:12 INFO  - jmeter.JMeter: Loading user properties from:
C:\jakarta-jmeter-2.3.1\bin\user.properties 
2008/07/01 04:38:12 INFO  - jmeter.JMeter: Loading system properties from:
C:\jakarta-jmeter-2.3.1\bin\system.properties 
2008/07/01 04:38:12 INFO  - jmeter.JMeter: Copyright (c) 1998-2007 The
Apache Software Foundation 
2008/07/01 04:38:12 INFO  - jmeter.JMeter: Version 2.3.1 
2008/07/01 04:38:12 INFO  - jmeter.JMeter: java.version=1.4.1_06 
2008/07/01 04:38:12 INFO  - jmeter.JMeter: os.name=Windows XP 
2008/07/01 04:38:12 INFO  - jmeter.JMeter: os.arch=x86 
2008/07/01 04:38:12 INFO  - jmeter.JMeter: os.version=5.1 
2008/07/01 04:38:12 INFO  - jmeter.JMeter: file.encoding=Cp1252 
2008/07/01 04:38:12 INFO  - jmeter.JMeter: Default Locale=English (United
States) 
2008/07/01 04:38:12 INFO  - jmeter.JMeter: JMeter  Locale=English (United
States) 
2008/07/01 04:38:12 INFO  - jmeter.JMeter:
JMeterHome=C:\jakarta-jmeter-2.3.1 
2008/07/01 04:38:12 INFO  - jmeter.JMeter: user.dir 
=C:\jakarta-jmeter-2.3.1\bin 
2008/07/01 04:38:12 INFO  - jmeter.JMeter: PWD      
=C:\jakarta-jmeter-2.3.1\bin 
2008/07/01 04:38:12 INFO  - jmeter.JMeter: Loaded icon properties from
org/apache/jmeter/images/icon.properties 
2008/07/01 04:38:14 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase:
(Continue reading)

nanduri | 1 Jul 2008 11:20
Picon

Re: Response time


hi,
 im kiran and i was new to jmeter im finding difficulty in finding response
time please tell me how to calculate the response time.

Thanks,
kirann

Jitendra Kumar Mohanty wrote:
> 
> Hi 
> 
> While recording I have included some .gif/.jpeg file but afterward
> deleted these files and executed the script, I would like to know if it
> is going to make any difference in the Response Time or Throughput.
> 
> Thanks in advance,
> Jitendra
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe <at> jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help <at> jakarta.apache.org
> 
> 
> 

--

-- 
View this message in context: http://www.nabble.com/Response-time-tp18127360p18212404.html
Sent from the JMeter - User mailing list archive at Nabble.com.
(Continue reading)

sebb | 1 Jul 2008 12:18
Picon

Re: uploading files in jmeter

On 30/06/2008, Kristof Jozsa <dyn <at> ond.vein.hu> wrote:
> sebb wrote:
>
> >
> > >  I plan to run the test with around 100 concurrent users, so that means
> 100
> > > different files down- and then uploaded, but as I saw JMeter generates
> those
> > > filenames.. Is it possible to use a beanshell postprocessor to save the
> > > generated filename to a variable?
> > >
> > >
> >
> > The filename is stored in the SampleResult, and can be obtained as
> follows:
> >
> > sampleResult.getResultFileName()
> >
> > So you can add a BeanShell Listener with the script:
> >
> > vars.put("FILENAME",sampleResult.getResultFileName());
> >
> > Note that the Save Response element is actually processed as a
> > Listener, not a Post Processor, so you must use a Listener to extract
> > the value. [This is very confusing, so it needs to be fixed...]
> >
>
>  I thought it's not too confusing but seems I didn't get it then. I have a
> HTTP Request sampler which has two post processors: the 'save responses to a
> file' item and a beanshell script trying to set the FILENAME variable, but
(Continue reading)

Kristof Jozsa | 1 Jul 2008 12:39
Picon

Re: uploading files in jmeter

sebb wrote:
>>> The filename is stored in the SampleResult, and can be obtained as
>> follows:
>>> sampleResult.getResultFileName()
>>>
>>> So you can add a BeanShell Listener with the script:
>>>
>>> vars.put("FILENAME",sampleResult.getResultFileName());
>>>
>>> Note that the Save Response element is actually processed as a
>>> Listener, not a Post Processor, so you must use a Listener to extract
>>> the value. [This is very confusing, so it needs to be fixed...]
>>>
>>  I thought it's not too confusing but seems I didn't get it then. I have a
>> HTTP Request sampler which has two post processors: the 'save responses to a
>> file' item and a beanshell script trying to set the FILENAME variable, but
>> appearently the sampleResult is null here.
> 
> As I wrote, you need to use the BeanShell Listener, not a Post-Processor.

Sorry, my mistake. I wasn't aware that there's a separate beanshell 
listener available. Of course it works now.

Thanks,
Kristof
sebb | 1 Jul 2008 13:03
Picon

Re: Cookie not recognized

On 30/06/2008, timvanderet <timvanderet <at> comcast.net> wrote:
>
>  >
>  >
>  >
>  Oops, overlooked that bit:
>
>  Servers send Set-Cookie
>  Browsers send Cookie
>
>  as can be seen from the Tree View Listener.
>
>
>
>
>
>
> I changed the name of the header in the http header manager from
>  "set-cookie" to "cookie" meaning the header manager now looks like this:
>  Name: cookie Value: JUSERCOOKIE=${jUserId}
>
>  Now there is no evidence of any sort of request being sent. Before the http
>  tree showed a request "set-cookie: JUSERCOOKIE=139283..." Now after the
>  change there is no request shown, and the cookie still doesn't show up in
>  the list under "Cookie Data"

The Header Manager does not send a request; it just provides headers
for the samplers in scope.

The cookie won't show up under Cookie Data because it is being treated
(Continue reading)

sebb | 1 Jul 2008 13:26
Picon

Re: BeanShell parse error with JMeter 2.3.2

On 01/07/2008, Ronan Klyne <ronan.klyne <at> groupbc.com> wrote:
> Never mind - it was staring me in the face...
>
>  I missed a semi-colon on the line 'String pref_ids =
> ",956088,3541752,54126386,17413808,956136,"'
>
>  I think I've been using Python too long...
>
>  I'm curious why this didn't raise an error in JMeter 2.3RC4 (same Beanshell
> JAR)...

Perhaps because JMeter BeanShell error reporting has been improved.

I find it hard to believe that the script would have worked in 2.3RC4,
but it may not have generated the same errors.

>         # r
>
>
>  Ronan Klyne wrote:
>
> >
> > Morning all,
> >
> > I've got a file full of BeanShell functions that I need to use to
> initialise pre- and post-processors.
> > I've got the config sorted, but I get parse errors. The file is known to
> be good.
> > Any advice or pointers would be greatly appreciated....
> >
(Continue reading)

Quentin Walker | 1 Jul 2008 14:22
Picon

Variables in SOAP sampler XML input files


Hi Folks,

I am pretty new to JMeter and suddenly find myself at sea with a
particularly teeth-grinding, nut-twisting problem...

I am reading values from a csv file to populate script variables then firing
off SOAP requests with these variables used in the XML body. This works fine
when the XML is embedded into the SOAP sampler, the variable values being
substitued correctly before the SOAP request is sent, however hardcoding the
XML into the script like this is not ideal and I would like to be able to
separate them from the script and maintain them in an external repository.
The issue I have is that when the SOAP sampler takes it's XML from an
external input file it does not perform any variable evaluation/substitution
before submission. 

I notice that this issue has been raised previously but never fully
concluded, have any of you good folks out there arrived at a deliciously
cunning solution? All pointers, ideas and ruminations (but preferably
solutions) greatly welcomed. Thanks in advance.

Quentin Walker

--

-- 
View this message in context: http://www.nabble.com/Variables-in-SOAP-sampler-XML-input-files-tp18214145p18214145.html
Sent from the JMeter - User mailing list archive at Nabble.com.

Gmane