Re: How to invoke a java method

2012-02-23 Thread Nirodha Pramod
On Thu, Feb 23, 2012 at 5:46 PM, sebb wrote: > On 24 February 2012 01:36, Nirodha Pramod wrote: > > Hi, > > > > > > On Thu, Feb 23, 2012 at 4:07 PM, sebb wrote: > > > >> On 23 February 2012 23:37, Nirodha Pramod wrote: > >> > Hi, > >> > > >> > I want to test a session enabled axis2 service wit

Re: How to invoke a java method

2012-02-23 Thread sebb
On 24 February 2012 01:36, Nirodha Pramod wrote: > Hi, > > > On Thu, Feb 23, 2012 at 4:07 PM, sebb wrote: > >> On 23 February 2012 23:37, Nirodha Pramod wrote: >> > Hi, >> > >> > I want to test a session enabled axis2 service with Jmeter. There's an >> > special java client have written to test

Re: How to invoke a java method

2012-02-23 Thread Nirodha Pramod
Hi, On Thu, Feb 23, 2012 at 4:07 PM, sebb wrote: > On 23 February 2012 23:37, Nirodha Pramod wrote: > > Hi, > > > > I want to test a session enabled axis2 service with Jmeter. There's an > > special java client have written to test this. I want invoke that class > > within jmeter.I tried with

Re: How to invoke a java method

2012-02-23 Thread sebb
On 23 February 2012 23:37, Nirodha Pramod wrote: > Hi, > > I want to test a session enabled axis2 service with Jmeter. There's an > special java client have written to test this. I want invoke that class > within jmeter.I tried with BShell sampler. But I get an error when the test > starts. > > ER

Re: How to invoke a java method

2012-02-23 Thread Deepak Shetty
Hi as a good practive , avoid writing this much code in Beanshell. Its simpler to write a wrapper java client class so that all you need to do is invoke a single method from Beanshell. So move all your code into a java class e.g SimpleClient and have a method say execute and just create and invoke

How to invoke a java method

2012-02-23 Thread Nirodha Pramod
Hi, I want to test a session enabled axis2 service with Jmeter. There's an special java client have written to test this. I want invoke that class within jmeter.I tried with BShell sampler. But I get an error when the test starts. ERROR - jmeter.util.BeanShellInterpreter: Error invoking bsh metho

Re: Cookie manager not getting more than one set-cookie per response?

2012-02-23 Thread Philippe Mouawad
This settings is false since 2.3.2, see: http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Cookie_Manager *"Received Cookies can be stored as JMeter thread variables (versions of JMeter after 2.3.2 no longer do this by default). To save cookies as variables, define the property "Coo

RE: Cookie manager not getting more than one set-cookie per response?

2012-02-23 Thread Robin D. Wilson
Nevermind, I found the issue - it was this setting: CookieManager.save.cookies=true Apparently this was on by default previously in JMeter2.4 (or was configured somewhere that I didn't know about), but adding it to my 'user.properties' fixed the problem. -- Robin D. Wilson Sr

RE: Cookie manager not getting more than one set-cookie per response?

2012-02-23 Thread Robin D. Wilson
OK, I have setup a test case for this... My test script returns 2 cookies, here's a look at the response headers from a request to that page: Response headers: HTTP/1.1 200 OK Date: Thu, 23 Feb 2012 14:51:51 GMT Server: Apache/2.2.17 (Unix) Expires: Thu, 02 Feb 2012 23:59:59 GMT Set-Cookie:

Re: Beanshell Preprocessor and http sampler

2012-02-23 Thread ZK
Use the normal syntax: ${VARNAME} ZK -- View this message in context: http://jmeter.512774.n5.nabble.com/Beanshell-Preprocessor-and-http-sampler-tp5507712p5508096.html Sent from the JMeter - User mailing list archive at Nabble.com. --

Re: Beanshell Preprocessor and http sampler

2012-02-23 Thread ZK
Hi, within the beanshell script you can reference variables used in the JMeter test by: /vars.get("yourVariableName")/ once you have done your beanshell scripting, within the beanshell script use: /vars.put("yourVariableName",value) / ZK -- View this message in context: http://jmeter.512774