jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jaw Dat <idaratalja...@gmail.com>
Subject Re: Can Jmeter invoke a shell script?
Date Mon, 14 Aug 2006 11:38:43 GMT
Thanks a lot Sebb. Helpful as always. Greatly appreciated. 


On Mon, 2006-08-14 at 12:23 +0100, sebb wrote:
> Two other possible approaches:
> 
> 1) Use JMeter to do basic checking, and include a Save Responses to
> file Post-Processor. Then run Perl or whatever on the generated files
> once the script has finished.
> 
> 2) Use the BeanShell assertion to check the response. You can easily
> tie into the existing htmlparser code (or you can use the latest
> version). Search the archives for BeanShell and htmlparser - there
> were some examples posted earlier this year, if I recall correctly.
> 
> On 14/08/06, Mikko Ohtamaa <mikko.ohtamaa@ardites.com> wrote:
> >
> > > Normally I would use RegEx for that. But it would be a lot easier to use
> > Perl or shell scripts to parse the Response Data the way I want.
> > How Can I make JMeter invoke a shell script , and use its result instead of
> > the built-in Response Assertion (which takes ORO RegEx).
> >
> > At least Jmeter core doesn't have any support for executing arbitary system
> > commands (not sure about 3rd party extensions).
> >
> > You need to write a plug-in Assertation component (Java) for JMeter which
> > invokes native system Perl command, passes out the request data (and all
> > known Jmeter variables?) via stdin, then reads stdout and parses Response
> > Data again. A better alternative would invoke Perl directly from Java, but I
> > am not sure if there exists Java<->Perl bridges.
> >
> > Quite much of work if you are not very skilled with Java.
> >
> > -Mikko
> >
> >
> > ---------------------------------------------------------------------
> > 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


Mime
View raw message