« Return to Thread: Need to know how to import a file

Need help on parametization

by Haritha_Dandu :: Rate this Message:

Reply to Author | View in Thread

SCRIPT I have used to do parameterization:
 import sys
import string
import random
from java.lang import String
from java.net import URLEncoder
from net.grinder.script import Test
from net.grinder.script.Grinder import grinder
#import D:\grinder scripts\uids.txt

class TestRandomise:
          def __init__(self, uids):
                          self._users = []
                          infile = open('uids.txt', 'r')
                          for line in infile.readlines():
                                          self._users.append(string.split((line),','))
                          infile.close()

          def getUserInfo(self):
  #      "Pick a random (user, password) from the list."
                          return random.choice(self._users)

PROPERTIES file for my script:
grinder.processes=1
grinder.threads=1
grinder.runs=1
grinder.script=grinder3.py

grinder.jvm.arguments=-Dpython.home=D:\grinder-3.0.1\lib

ERROR I am getting:
grinder.processes=1
grinder.threads=1
grinder.runs=1
grinder.script=grinder3.py

grinder.jvm.arguments=-Dpython.home=D:\grinder-3.0.1\lib
could you please help in the process if used above is wrong
 we are using grinder 3 version.
Thanks



DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
grinder-use mailing list
grinder-use@...
https://lists.sourceforge.net/lists/listinfo/grinder-use

 « Return to Thread: Need to know how to import a file

LightInTheBox - Buy quality products at wholesale price!