我想用JMETER来运行python脚本,用Jython编译我的python脚本,但是显示importError requsets,我不知道如何在Jmeter enter image description here中安装这个模块(包)
requests
模块,如:
\\location\\of\\jython\\jython -m pip install requests
import sys
sys.path.append('\\location\\of\\jython\\site-packages')
但是,上述方法更像是“解决方法”:
作为第一步,您需要在jmeter的lib文件夹中添加jython独立jar:
如果问题仍然存在,请显示您的JSR223采样器。