I've seen some script which accesses the grinder.processes and grinder.threads properties like following.
g_numberOfProcesses = int(grinder.properties["grinder.processes"])
g_numberOfThreads = int(grinder.properties["grinder.threads"])
It's very interesting they are using the this property to modify the script behavior.
However this properties are not provided in the validation mode. so they run the script on real agent every time.
I need to add it in LocalScriptTestDrive