[Grinder-use] Fwd: Fwd: helloworld.py example execution
Distributed load testing framework - Java, Jython, or Clojure scripts.
Brought to you by:
philipa
|
From: Salma B. <sal...@gm...> - 2013-09-26 09:32:58
|
The grinder log says
Error agent: the script file 'examples/helloworld.py' does not exist or is
not readable
and the command I launch is as follows: (keep in mind that I am executing
from windows)
C:\Users\user\Desktop\grinder-3.11>curl -H "Content-Type: application/json"
-X POST http://localhost:6373/agents/start-workers -d
"{\"grinder.processes\":\"2\",\"grinder.threads\":\"5\",\"grinder.runs\":\"3\",\"grinder.script\":\"helloword.py\"}"
Following are the grindeR.properties and helloworld.py files, thks
==> grinder.properties file
grinder.script = helloworld.py
grinder.processes = 2
grinder.threads = 5
grinder.runs = 0
grinder.logDirectory = log
grinder.numberOfOldLogs = 2
==> helloworld.py
from net.grinder.script.Grinder import grinder
from net.grinder.script import Test
log = grinder.logger.info
test1 = Test(1, "Log method")
test1.record(log)
class TestRunner:
def __call__(self):
test1("Hello World")
--
Salma BOURIAT
Master of Science in Software Engineering
Al Akhawayn University
|