且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从Jmeter运行jar文件?

更新时间:2023-09-29 22:11:16

如果需要使用Beanshell,我建议对流程命令行进行以下修改:

If you need to do it with Beanshell, I would suggest the following amendment to the process command line:

cmd /c start java -jar .....

请参见 cmd .exe文档以获取更多信息

但是,在大多数情况下,使用 OS Process Sampler 可能会更容易允许执行任意命令和程序.查看如何运行外部命令和从JMeter本地和远程进行程序

However in majority of cases it might be easier to use OS Process Sampler which allows executing arbitrary commands and programs. Check out How to Run External Commands and Programs Locally and Remotely from JMeter