Questions tagged [grinder]

The Grinder is a Java load-testing framework that makes it easy to run a distributed test using many load injector machines.

The Grinder is a Java load-testing framework that makes it easy to run a distributed test using many load injector machines.

Grinder key features:

  • Generic Approach: Load test anything that has a Java API. This includes common cases such as HTTP web servers, SOAP and REST web services, and application servers (CORBA, RMI, JMS, EJBs), as well as custom protocols.
  • Flexible Scripting: Tests are written in the powerful Jython scripting language.
  • Distributed Framework: A graphical console allows multiple load injectors to be monitored and controlled, and provides centralized script editing and distribution.
  • Mature HTTP Support: Automatic management of client connections and cookies. SSL. Proxy aware. Connection throttling. Sophisticated record and replay of the interaction between a browser and a web site.

Find details here.

102 questions
1
vote
0 answers

Error importing random and string modules with eclipse and grinder

I have a grinder script. The script is working without errors but when I want to import the string and random modules the following error is thrown: 2015-01-06 15:51:48,356 ERROR PCAA-0: aborting process - Java exception initialising test…
sarbo
  • 1,661
  • 6
  • 21
  • 26
1
vote
1 answer

GrinderStone - Not supporting latest of Grinder and Jython

I downloaded Grinder latest 3.11 Jython latest 2.5.3 Eclipse 4.2 GrinderStone - 2.5.5 -- And I was following the steps in GrinderStone Documentation. But I am getting some error while creating Run Configuration for Grinder Issue-1: Giving error…
Ravi
  • 77
  • 9
1
vote
1 answer

How to add custom statistics in Grinder

In Grinder we'd like to add customized statistics grinder.statistics.registerSummaryExpression("connTimeout", "userLong0") grinder.statistics.forCurrentTest.addLong("userLong0", 1) And it seems to be successful as we can get the customized field…
frank
  • 13
  • 2
1
vote
1 answer

Sharing resources across agents, across processes in grinder

Here is the requirement : In simple words, I have a static dictionary(say dictionaryX) in a class (say ClassX in shared.py file) that needs to be shared across multiple agents and multiple processes in grinder. How do I achieve this..? Any help…
kirti
  • 40
  • 5
1
vote
1 answer

Can't run Grinder Java Test Framework

I can't run Grinder3 framework with Jython. I've downloaded it and I see that there are a lib/ folder with some .jar files. The grinder3 provide some examples (written in python). I receiver an error when I try to run these example with jython, the…
Sorin Vladu
  • 1,768
  • 3
  • 21
  • 37
1
vote
1 answer

Grinder: TCPProxy splits tests into multiple pages

I have an issue when recording tests using the Grinder TCPProxy. When I record a test for a single page, it splits the resultant test script into multiple page sections. It seems to treat very short delays between browser initiated HTTP requests…
1
vote
1 answer

making grinder work with jython

I have a java class for starting the server on ActiveMQ and I want to hook up grinder with the JMS messaging, so I am writing a client code in jython with Grinder. When I run the server and try to send a message from my jython client, I get the…
mag443
  • 191
  • 1
  • 4
  • 12
1
vote
2 answers

grinder print response text

I want to print the last response from my GET request using Grinder, here is my code: response_string = httpUtilities.getLastResponse().getText() print str(response_string) I got exception: 'ascii' codec can't encode character u'\ufffd' in…
BugsBunny
  • 99
  • 1
  • 9
1
vote
1 answer

Making a REST POST during the setup of a grinder script

Is there a way to post a piece of json data to a url when setting up a grinder test? I have tried just using the http plugin however it throws the following error: net.grinder.engine.common.EngineException: Must be called from worker thread I have…
Shawn
  • 402
  • 4
  • 17
1
vote
1 answer

Grinder - JIRA tests fail

I'm trying to run Atlassian's grinder test for JIRA as described here However the result from each test is something like below. Searching has led me to believe that an error like this appears when some of the dashboards have been changed, but that…
confusified
  • 2,320
  • 7
  • 22
  • 29
1
vote
1 answer

Delay between loops (iterations) like in Grinder

In the Grinder, I have given load test parameters as grinder.threads = 30 grinder.process = 3 grinder.runs = 2 grinder.processIncrementInterval = 45000(ms) which means I have 4 process with 30 threads each, each process starting at an interval of…
1
vote
1 answer

How can I get html source from a request using The Grinder

I have the following script: def page2(self): """GET / (request 201).""" result = request201.GET('/mypage/', None, ( NVPair('Accept', 'image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x- shockwave-flash, */*'), …
sarbo
  • 1,661
  • 6
  • 21
  • 26
1
vote
2 answers

How do I get a value randomly from a list in Jython script?

lists = portTest.lists(arg1, arg2) // this returns the lists from webservice in java // public String[] list1; // public String[] list2;public String[] list3; // i want to get the random element in the list, // not the first, second or any…
srp
  • 521
  • 11
  • 22
1
vote
2 answers

arg can't be coerced to java.util.List? Could any one tell me whats wrong in my code please?

myDict = {'itemkey1':'itemvalue1', 'itemkey2':'itemkey2','itemkey3':'itemvalue3','itemkey4':'itemvalue4'}; event = portTest.event(myDict); I am getting the following error Aborted run: Jython exception: TypeError:arg can't be coerced to…
srp
  • 521
  • 11
  • 22
1
vote
0 answers

name error: pending deprecation warning in jython while importing random

I am using the script to run grinder but when i run its throwing me this exception.Could any one please let me know whats going wrong? why is it not importing random . Thank you Error running worker process (NameError: PendingDeprecationWarning …
srp
  • 521
  • 11
  • 22