wood burning stoves 2.0*
The moose likes Jython/Python and the fly likes Jython with Grinder for Load testing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Languages » Jython/Python
Bookmark "Jython with Grinder for Load testing" Watch "Jython with Grinder for Load testing" New topic
Author

Jython with Grinder for Load testing

Abhay Kumar
Greenhorn

Joined: Jun 03, 2003
Posts: 15
Hi All,

Need some Help in Writing Jython scripts which will be used with Grinder.

I need to write a script which executes a batch(.bat) file.
the batch file is interactive, i.e it accepts paramets during its execution.

I was able to write a script which executes a batch file, but when i am trying to give the inputs, its not taking..

can you please help me.

Here is what I have written.
Let me know where am i wrong and how do i solve this issue.
---------------------
from net.grinder.script import Test;
from net.grinder.script.Grinder import grinder;
import TestGrind;

log = grinder.logger.output;
test = Test(1, "Execute");
class TestRunner:
def __call__(self):
session = test.wrap(TestGrind("client.bat"));

---------------------
best regards,
Abhay
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jython with Grinder for Load testing
 
Similar Threads
Jython installation with Tomcat 4.1.12
Jython embeded in java application
Testing in abbot (Want to add a batch file in script)
how can create datasources during build time? (connection pooling api?)
Reading Properties file in Jython