Thanks for the tips guys. I have BeanShell working and it's pretty neat...
and it's better than sliced bread! 

I used this tiny bsh script into a JMX:
-------------
a = JButton("click me")
Frame (a);
-------------
Then I ran the JMX in non-GUI mode. 
Lo and behold - JMeter tests now pop up a _custom_ GUI. Wow! 

Two questions:

1. I see that the BeanShell sampler and BeanShell assertion can access
certain special variables (e.g.: 'ResponseCode'). Can the BeanShell
components access JMeter classes? (Something like the bsh "class browser",
but for JMeter classes.)

2. Can JMeter BeanShell samplers components access JMeter "${XXX}")
variables? 


Please educate me if I am missing some obvious documentation somewhere that
answers all this. 

With regards,
Sonam Chauhan
-- 
Corporate Express Australia Ltd.
Phone: +61-2-9335-0725, Fax: 9335-0753, Email: [EMAIL PROTECTED]
 

> -----Original Message-----
> From: Xie, Shawn Y. [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 17 November 2004 6:00 AM
> To: JMeter Users List
> Subject: installing BeanShell
> 
> Following is cut from my previous discussing thread in the forum:
> > I downloaded bsh-2.0b2.jar from
> > http://www.beanshell.org/download.html,
> > put it in JMeter/lib, then restarted JMeter, and it works.
> 
> -Shawn Xie
> 
> -----Original Message-----
> From: Sonam Chauhan [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 15, 2004 9:06 PM
> To: 'JMeter Users List'
> Subject: RE: Validate XML documents?
> 
> Thanks Sebb. Yes, the XML assertion doesn't do any validation.
> 
> Thanks for the tip about BeanShell - I hadn't used it before. I've just
> downloaded and played around with it - impressive.
> 
> The Jmeter 2.0.1 documentation indicates that BeanShell is separate from
> JMeter. Can anyone point me to documentation on how to hook up JMeter
> 2.0.1
> with BeanShell - I couldn't find any?
> 
> With regards,
> Sonam Chauhan
> --
> Corporate Express Australia Ltd.
> Phone: +61-2-9335-0725, Fax: 9335-0753, Email: [EMAIL PROTECTED]
> 
> 
> > -----Original Message-----
> > From: sebb [mailto:[EMAIL PROTECTED]
> > Sent: Monday, 15 November 2004 11:29 PM
> > To: JMeter Users List
> > Subject: Re: Validate XML documents?
> >
> > There is an XML Assertion, but I don't know if it supports checking
> > against a schema - I think it just checks if the doc is well-formed. I
> > guess this could be extended to add further checking.
> >
> > You can use the Save Responses test element to save all the documents
> > to a file, and perform the checking off-line.
> >
> > Or you can use the BeanShell assertion to do whatever validation you
> > want - best to use a recent version, which allows startup files to be
> > cached.
> >
> > Checking the document against a schema at run-time might be quite
> > expensive in resources.
> >
> > Sebastian
> > On Mon, 15 Nov 2004 18:16:12 +1100, Sonam Chauhan
> > <[EMAIL PROTECTED]> wrote:
> > > Hello - I need a JMeter test thread to validate a XML/XHTML response
> > > document against a schema.
> > >
> > > Can I have your suggestions on how to approach this? Has anyone done
> > > something similar with JMeter?
> > >
> > > With regards,
> > > Sonam Chauhan
> > > --
> > > Corporate Express Australia Ltd.
> > > Phone: +61-2-9335-0725, Fax: 9335-0753, Email: [EMAIL PROTECTED]
> > > <mailto:[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