ngrinder支持python脚本吗?

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

ngrinder支持python脚本吗?

shuewah
ngrinder否支持python,我能直接用Python写脚本?还是只能用jython?

另外如果jython脚本调试,也是放在eclipse中安装PyDev后就可以了吗?我上述操作后,提示

Traceback (most recent call last):
  File "C:\Documents and Settings\Administrator\workspace\JythonHello\src\ndsearch.py", line 14, in <module>
    from net.grinder.script.Grinder import grinder
ImportError: No module named net

这个是否要手动把ngrinder的相关jar导入,还是其他操作?

==新手上路,问题比较多,希望能抽空帮忙解答一下,谢谢~


Reply | Threaded
Open this post in threaded view
|

RE: ngrinder支持python脚本吗?

Mavlarn

jython就是可以在JVM里面运行python脚本的包。所以,jython脚本就是python脚本。

但是,python脚本没有办法在eclipse里面执行。因为它是有一个测试脚本的执行引擎的,脚本是在这个引擎里面执行。

 

 

-----Original Message-----
From: "shuewah [via ngrinder]"<[hidden email]>
To: "Mavlarn"<[hidden email]>;
Cc:
Sent: 2014-04-28 (星期一) 19:33:56
Subject: ngrinder支持python脚本吗?

ngrinder否支持python,我能直接用Python写脚本?还是只能用jython?

另外如果jython脚本调试,也是放在eclipse中安装PyDev后就可以了吗?我上述操作后,提示

Traceback (most recent call last):
  File "C:\Documents and Settings\Administrator\workspace\JythonHello\src\ndsearch.py", line 14, in <module>
    from net.grinder.script.Grinder import grinder
ImportError: No module named net

这个是否要手动把ngrinder的相关jar导入,还是其他操作?

==新手上路,问题比较多,希望能抽空帮忙解答一下,谢谢~





If you reply to this email, your message will be added to the discussion below:
http://ngrinder.642.n7.nabble.com/ngrinder-python-tp1504.html
To start a new topic under ngrinder-user-cn, email [hidden email]
To unsubscribe from ngrinder-user-cn, click here.
NAML
Reply | Threaded
Open this post in threaded view
|

RE: ngrinder支持python脚本吗?

shuewah
那ngrinder的jython脚本放在哪边调试呢?不能放在eclipse中??
Reply | Threaded
Open this post in threaded view
|

RE: ngrinder支持python脚本吗?

Mavlarn

不能调试,只是在脚本编辑页面验证,它会运行一次脚本,如果运行有错,在下面能看到。

还是推荐使用groovy,如果一定要用python脚本,我看到过另一个开源项目,是一个eclipse的插件,可以运行调试运行脚本。

https://code.google.com/p/grinderstone/ 

但是我没有用过,你可以试用一下。

 

 

-----Original Message-----
From: "shuewah [via ngrinder]"<[hidden email]>
To: "Mavlarn"<[hidden email]>;
Cc:
Sent: 2014-04-29 (星期二) 15:20:57
Subject: RE: ngrinder支持python脚本吗?

那ngrinder的jython脚本放在哪边调试呢?不能放在eclipse中??


If you reply to this email, your message will be added to the discussion below:
http://ngrinder.642.n7.nabble.com/ngrinder-python-tp1504p1507.html
To start a new topic under ngrinder-user-cn, email [hidden email]
To unsubscribe from ngrinder-user-cn, click here.
NAML