[prev in list] [next in list] [prev in thread] [next in thread] 

List:       grinder-use
Subject:    Re: [Grinder-use] Grinder ExecutorFactory
From:       Philip Aston <philipa () mail ! com>
Date:       2012-08-20 19:29:38
Message-ID: 50329022.7010607 () mail ! com
[Download RAW message or body]

No - only worker threads have the lifecycle hooks required by the test
framework. If you'd like to see this restriction relaxed, please open a
Feature Request.

You can start additional worker threads -
http://grinder.sourceforge.net/g3/script-javadoc/net/grinder/script/Grinder.ScriptContext.html#startWorkerThread()


- Phil


On 17/07/12 18:30, zhangc82 wrote:
> Is it possible to use the threads created by ExecutorFactory to run test?
> 
> For example, 
> 
> ExecutorServer es = ExecutorFactory.createThreadPool("myThreadPool", 3);
> es.execute(new createItem());
> 
> 
> 
> private class createItem implements Runnable {
> 
> public void run() {
> // wrap the grinder Test object here
> }
> 
> but when i ran it, it throws an exception: 
> Caused by: net.grinder.engine.common.EngineException: Only Worker Threads
> can invoke tests
> 
> Any ideas?


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
grinder-use mailing list
grinder-use@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/grinder-use


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic