• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Jython with Grinder for Load testing

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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'm gonna teach you a lesson! Start by looking at this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic