Editing properties to increase grinder.duration

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Editing properties to increase grinder.duration

kati
I'm using a Groovy script (basic setup using the web editor) to run a test that executes multiple post requests. The thread is stopped after 5 seconds on each run. This seems to imply that there is a .properties file somewhere that has grinder.duration=5000.

I'm not sure where this is set. The log file doesn't show that duration is set anywhere:
2017-03-29 20:34:51,321 INFO  Grinder load test properties: {grinder.security=false, grinder.test.id=test_1, grinder.sleepTimeVariation=0.2, ngrinder.etc.hosts=, grinder.reportToConsole.interval=500, grinder.ignoreSampleCount=0, grinder.agents=1, grinder.useConsole=true, grinder.threads=1, grinder.consolePort=12000, grinder.reportTimesToConsole=true, grinder.logProcessStreams=true, grinder.debug.singleprocess=false, grinder.runs=1, grinder.numberOfOldLogs=1, grinder.processIncrement=0, grinder.jvm.classpath=/usr/sap/ljs/home/ngrinder-agent/ngrinder-agent/lib/ngrinder-runtime-3.3.jar:/usr/sap/ljs/home/ngrinder-agent/ngrinder-agent/lib/grinder-patch-3.9.1-patch.jar:/usr/sap/ljs/home/.ngrinder_agent/file-store/admin/current/:/usr/sap/ljs/home/.ngrinder_agent/file-store/admin/current/lib:/usr/sap/ljs/home/.ngrinder_agent/file-store/admin/current/lib/httpclient-4.5.3.jar:/usr/sap/ljs/home/.ngrinder_agent/file-store/admin/current/lib/httpcore-4.4.6.jar:/usr/sap/ljs/home/.ngrinder_agent/file-store/admin/current/lib/commons-logging-1.1.jar, grinder.dcrinstrumentation=true, grinder.logDirectory=/usr/sap/ljs/home/.ngrinder_agent/log/test_1, grinder.script=AddressCleanse.groovy, grinder.jvm=java, grinder.sleepTimeFactor=1, grinder.consoleHost=127.0.0.1, grinder.processes=1, grinder.user=admin}

How can I modify this setting? I have tried including a .properties file in the resources folder but it doesn't appear to get picked up automatically.
Reply | Threaded
Open this post in threaded view
|

Re: Editing properties to increase grinder.duration

lopiter
Controller properties file is in ${YOUR_HOME}/.ngrinder
Agent properties file is in ${YOUR_HOME}/.ngrinder_agent

Reply | Threaded
Open this post in threaded view
|

Re: Editing properties to increase grinder.duration

kati
I would prefer to not have to modify the properties file directly. There is an automated process setting up my controller/agent and, as far as I can tell, I can't modify the properties file using that process.

Is it possible to modify the properties in a test script, or is it too late at that point?

Something like:

        @BeforeProcess
        public static void beforeProcess() {
                System.setProperty("grinder.duration", "30000");
                test = new GTest(1, "Test")
                grinder.logger.info("before process.");
        }