[prev in list] [next in list] [prev in thread] [next in thread] 

List:       grinder-use
Subject:    Re: [Grinder-use] Unable to Import re module
From:       Philip Aston <philipa () mail ! com>
Date:       2012-10-02 18:18:24
Message-ID: 506B2FF0.7040504 () mail ! com
[Download RAW message or body]

Please see http://grinder.sourceforge.net/faq.html#jython-libraries

You might also need http://grinder.sourceforge.net/faq.html#re-problems

- Phil

On 28/09/12 19:18, pmallur wrote:
> Hi Phil
>
> this is how my test str is 
>
> c1=["a a a", "b b b"]
>
> caaa=["xdfg >1t", "fghjkil"]
>
> cxdfg1t=["beffg", "yuiojklp"]
>
> As you see I start off with the first array and based on what I Grinder
> randomly selects I need to trim out the white space and I look for that word
> and add "c" char to that word and I go to the array list containting
> "c+trimmedoutword" 
> In order for me to trim the white space I am trying to use the re.sub and
> trying to import the re module but I am getting this error
>
> 9/28/12 11:11:24 AM (process ip-T3500-2209-1): Error running worker process
> (ImportError: no module named re
> 	File "c:\grinder-3.6\projects\tests\etc\search\generalAnonymous-3.py", line
> 10, in ?)
> ImportError: no module named re
> 	File "c:\grinder-3.6\projects\tests\etc\search\generalAnonymous-3.py", line
> 10, in ?
>
> even though I have added  json-simple-1.1.1.jar to the lib directory. I am
> using grinder-3.6 
>
> Any help in this will be appreciated as well if you can tell me if there is
> a specific syntax that Grinder recognizes with the re.sub function that
> would greatly help as well
>
> Thanks
> Nima


------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
grinder-use mailing list
grinder-use@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/grinder-use
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic