如何将外部jar文件添加到grinder项目 [英] How to add external jar files to grinder project

查看:108
本文介绍了如何将外部jar文件添加到grinder项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Grinder负载测试框架的新手.

I am new to Grinder load testing framework.

我用tcpproxy录制了一个grinder脚本.然后,我进行了一些修改,其中包括使用外部jar文件.

I recorded a grinder script using tcpproxy. And then I made some modifications which includes use of external jar files.

在使用grinder插件的eclipse中,我为这些jar文件添加了一个依赖项.

In eclipse using grinder plugin I added a dependency for those jar files.

但是我如何使用命令行设置类似的内容-假设我没有日食.

But how do I setup similar stuff using command line - assuming I dont have eclipse available to me..

我是否必须在grinder.properties中添加任何内容?

Do I have to add anything in grinder.properties ?

谢谢

推荐答案

您可以使用属性文件添加外部jar文件.您必须使用grinder.jvm.classpath属性.指定此属性后,每次grinder代理启动时,它就会添加到类路径中.

you can add external jar file using properties file. You have to use grinder.jvm.classpath property. When you specify this property, it is added to class path every time grinder agent starts.

grinder.jvm.classpath=/lib/jyson-1.0.1.jar:/home/lib/my-loadtest-0.0.1-SNAPSHOT.jar

这篇关于如何将外部jar文件添加到grinder项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆