jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jake_Dev...@playstation.sony.com
Subject Re: is there a way to tell if the jmeter test is finished and run a beanshell script on this event?
Date Wed, 21 Mar 2012 20:25:07 GMT
I have a post process outside the thread group, but it seems to run with 
each sample.

test
-global vars
-beanshell preprocessor opens file in bsh.shared and counter in 
bsh.shared(runs with each sample)
-thread
-----beanshell preprocessor that calculates path in http request and 
writes to file(runs only if var in global vars is 1)
-----beanshell preprocessor that read path from file and sets http request 
path(runs only if var in global vars is 0)
-----http request
-beanshell postprocessor closes file in bsh.shared if counter in 
bsh.shared is equal to thread_count * loop_count - 1(runs with each 
sample)

Thanks,

Jake Devore
SCE WWS OTG Operations Engineering
(253) 981-4252



karl <karl@sitestress.eu> 
03/21/2012 01:17 PM
Please respond to
"JMeter Users List" <user@jmeter.apache.org>


To
user@jmeter.apache.org
cc

Subject
Re: is there a way to tell if the jmeter test is finished and run a 
beanshell script on this event?






Hi Jake,

whats about this:
the last sampler could be a beanshell-sampler or in the last sampler a 
post-process beanshell

regards
karl

  Am 21.03.2012 20:44, schrieb Jake_Devore@playstation.sony.com:
> I need to close an open file when the test is done.  I've tried using a
> counter, but the beanshell post processor never seems to get run at the
> right time.
>
> Thanks,
>
> Jake Devore
> SCE WWS OTG Operations Engineering
> (253) 981-4252


-- 
*Karl Hoffmann*
QA L&P
SITESTRESS.EU.: http://www.sitestress.eu/
Email: karl< @ >sitestress.eu Mobile: +495251687060

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message