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 <[email protected]> 03/21/2012 01:17 PM Please respond to "JMeter Users List" <[email protected]> To [email protected] 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 [email protected]: > 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: [email protected] For additional commands, e-mail: [email protected]
