Thank you for the interesting.
I find another work-round that use "Save Responses to a file" because I
need to save the result of the JDBC request.
I have another question:
I would test my application using JMeter by componing more test plan. 
Particularly I would create some tests plan (login, logout, web site
spider, test plan for all component of applicatione etc.) than I would
use that test plan to create other tests plan more complex. 
I can use Module Controller but, when I have to merge the tests plan
that I want to use and, if they change, I lose the changes.
I think that is more useful to implement a controller that accept one
parameter (file name of another Jmeter test plan). In this case I can
build a complex test plan by "linking" more simple tests plan.
Can I develop this component? And, can you tell me where I can find a
documentation that help me to deveop this component?
Thank you
Luigi


 
-----Original Message-----
From: sebb [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 21, 2005 1:55 AM
To: JMeter Users List
Subject: Re: BeanShell Assertion

The problem is that the JDBC Sampler is not setting the ResponseCode
(which is really for HTTP Samples) and the default value of null has
exposed a bug in the BeanShellInterpreter class.

Oops! sorry about that. 

The only work-round I can think of is very messy - extract the response
using Regex Extractor into a variable, put the variable in a Java
Sampler, and then apply the BeanShell Assertion to that. OK for testing
the concept, but horrible for serious testing.

I'll fix this shortly.

Thanks for the report.

S.
On 4/20/05, sebb <[EMAIL PROTECTED]> wrote:
> OK, I see.
> 
> I should be able to look at this tonight.
> 
> S.
> On 4/20/05, Luigi Quitadamo <[EMAIL PROTECTED]> wrote:
> > Thank you for the reply.
> >
> > I use:
> > Jmeter: 2.0.3;
> > BeanShell: I try with 2.0b1 and 2.0b2; java version 1.4.2_03-b02
> > OS: win 2k pro
> >
> > In my tests the problem occurs when I use Bean Shell Assertion after

> > a JDBCRequest.
> > When I use Bean Shell Assertion after a HttpRequest it's ok.
> > Bye,
> > Luigi
> >
> >
> > -----Original Message-----
> > From: sebb [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, April 20, 2005 3:24 PM
> > To: JMeter Users List
> > Subject: Re: BeanShell Assertion
> >
> > 2.0B1 should work OK. What version of JMeter are you using? JVM? OS?
> >
> > S.
> > On 4/20/05, Luigi Quitadamo <[EMAIL PROTECTED]> wrote:
> > > Hi all,
> > > when I use BeanShell Assertion
> > > it fails and logs the following:
> > > 2005/04/20 14:43:31 ERROR - jmeter.util.BeanShellInterpreter: 
> > > Error invoking bsh method set java.lang.IllegalArgumentException
> > >        at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown
Source)
> > >        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> > > Source)
> > >        at java.lang.reflect.Method.invoke(Unknown Source)
> > >        at
> > > org.apache.jmeter.util.BeanShellInterpreter.bshInvoke(BeanShellInt
> > > erpr
> > > et
> > > er.java:137)
> > >        at
> > > org.apache.jmeter.util.BeanShellInterpreter.set(BeanShellInterpret
> > > er.j
> > > av
> > > a:162)
> > >        at
> > > org.apache.jmeter.assertions.BeanShellAssertion.getResult(BeanShel
> > > lAss
> > > er
> > > tion.java:111)
> > >        at
> > > org.apache.jmeter.threads.JMeterThread.checkAssertions(JMeterThrea
> > > d.ja
> > > va
> > > :428)
> > >        at
> > > org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:285)
> > >        at java.lang.Thread.run(Unknown Source)
> > >
> > > 2005/04/20 14:43:31 ERROR - jmeter.threads.JMeterThread: Test
failed!
> > > org.apache.jorphan.util.JMeterError: Error invoking bsh method set
> > >        at
> > > org.apache.jmeter.util.BeanShellInterpreter.bshInvoke(BeanShellInt
> > > erpr
> > > et
> > > er.java:145)
> > >        at
> > > org.apache.jmeter.util.BeanShellInterpreter.set(BeanShellInterpret
> > > er.j
> > > av
> > > a:162)
> > >        at
> > > org.apache.jmeter.assertions.BeanShellAssertion.getResult(BeanShel
> > > lAss
> > > er
> > > tion.java:111)
> > >        at
> > > org.apache.jmeter.threads.JMeterThread.checkAssertions(JMeterThrea
> > > d.ja
> > > va
> > > :428)
> > >        at
> > > org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:285)
> > >        at java.lang.Thread.run(Unknown Source) Caused by:
> > > java.lang.IllegalArgumentException
> > >        at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown
Source)
> > >        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> > > Source)
> > >        at java.lang.reflect.Method.invoke(Unknown Source)
> > >        at
> > > org.apache.jmeter.util.BeanShellInterpreter.bshInvoke(BeanShellInt
> > > erpr
> > > et
> > > er.java:137)
> > >        ... 5 more
> > >
> > > Waht version of BeanShell have I to use?
> > > Thank you
> > > Luigi Quitadamo
> > >
> > > ------------------------------------------------------------------
> > > --- To unsubscribe, e-mail: 
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail: 
> > > [EMAIL PROTECTED]
> > >
> > >
> >
> > --------------------------------------------------------------------
> > - To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > --------------------------------------------------------------------
> > - To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to