So if you want to run a script from eclipse for development/debug
purposes, use the GrinderStone plugin.
For real test runs you should start the grinder outside of eclipse.
- Phil
On 08/02/11 23:24, Alex Frumes wrote:
> Philip,
> Thank you for your reply - I resent my issue to the grinder-use group
> but unfortunately haven't received any feedback yet. I want to prove
> to the management that Grinder can be used for performance and
> scalability testing but I am currently blocked by this issue.
> Thank you,
> Alex
>
> ------------------------------------------------------------------------
> *From:* Philip Aston <philipa@...>
> *To:* Alex Frumes <frumes_alex@...>
> *Sent:* Tue, February 8, 2011 2:33:36 PM
> *Subject:* Re: [Grinder-development] Grinder configuration
> issue/ImportError: No module named net
>
> (Please follow-up to grinder-use, grinder-development is for the
> development of the grinder itself).
>
> Alex,
>
> You can't run scripts directly from Jython, so this is why plain PyDev
> is failing. However, the GrinderStone plugin will help you -
> http://code.google.com/p/grinderstone/
>
> - Phil
>
> On 08/02/11 16:43, Alex Frumes wrote:
>>
>> Hi!
>>
>> I am a newcomer to Grinder world and wantto configure and run Grinder
>> fromEclipse.
>>
>> I downloaded jython2.5.2rc3in C directory and use following
>> parameters in grinders property file:
>>
>> grinder.jvm.arguments =
>> -Dpython.home=C:/jython2.5.2rc3-Dpython.cachedir=C:/_tmp_/_mycache_
>>
>> This is Eclipse console output of the Jython unit-test execution:
>>
>> Finding files... done.
>>
>> Traceback (most recent call last):
>>
>> _File "C:\Documents and
>> Settings\af\Desktop\eclipse-java-helios-SR1-win32\eclipse\plugins\org.python.pydev.debug_1.6.5.2011020317\pysrc\pydev_runfiles.py",
>> line 263, in _PydevTestRunner__get_module_from_str_
>>
>> mod = __import__(modname)
>>
>> _File "C:\Documents and
>> Settings\afrumes\workspace\Grinder\src\amazon.py", line 19, in <module>_
>>
>> from net.grinder.script.Grinder import grinder
>>
>> ImportError: No module named net
>>
>> ERROR: Module: amazon could not be imported (file: C:\Documents and
>> Settings\af\workspace\Grinder\src\amazon.py).
>>
>> Importing test modules ... done.
>>
>> ----------------------------------------------------------------------
>>
>> Ran 0 tests in 0.000s
>>
>> OK
>>
>> Please, advise what is missing in theconfiguration file.
>>
>> Thank you!
>>
>> Alex
>>
>>
|