I put aside the counter for now. I am looking how to exploit user
variables in the log file. Maybe I will figure out how to build a BSF
or other post processor to parse the body looking for key words and
increment a global counter. It is JSON data so I am looking for
something like TEL:Event. Google is helping. slowly...
I have learned a couple things
1. Random Variable and Pre Processors will only be executed if there
is a sampler. No sampler, and I get stack overflow for the pre
processor. No Sampler, no Random Variable.
2. ${__Random(1,100)} == 2 as the script in an IF Controller does not
work. Always returns true.
3. Creating a 1% change a sampler will execute is difficult especially
when you don't want dummy samplers in the aggregate report and others.
Cheers!
/Joe
On Sat, Apr 14, 2012 at 6:42 AM, Adrian Speteanu <[email protected]> wrote:
> Suggestion: beanshell server. Normally I would have thought of the
> beanshell post processor only, but you'll need both. Use the beanshell post
> processor to decide when you want to increment, implement whatever logic
> you wish for the test and the beanshell server to aggregate the information
> into a single variable without having to worry that its overwritten by
> other threads.
>
> You'll need to work out the code on your own though.
>
> On Wed, Apr 11, 2012 at 8:35 PM, Jomebrew <[email protected]> wrote:
>
>> I run several instances of my script load testing a http based
>> feature. An example of the script is where I have two thread pools.
>> The first logs in to the http service and receives a security token.
>> I export this token along with the user ID as a properties variable.
>> The second thread pool uses the global properties value to log in with
>> the existing token.
>>
>> Both thread pools run at the same time and are in a perpetual loop
>> (unless an error occurs). One thread waits for push like events and
>> the second sends various admin transactions.
>>
>> I want to be able to set a counter when I receive a response that
>> contains some specific value. I want to display a counter of these
>> events during runtime.
>>
>> Because I have 500 threads per instance and have hundreds of thousands
>> of transactions, I use the aggregate stats tool. I would like to have
>> the counter show up here but anywhere I can watch a set of user
>> defined counters would be fine as long as I can still run 500 threads.
>>
>> Any advise would be appreciated.
>>
>> /Joe
>>
>> ---------------------------------------------------------------------
>> 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]