Greetings all,
In another post I asked about rendering PDF in Jmeter, and it would seem the solution is to use iText.
在另一篇文章中,我询问了如何在Jmeter中渲染PDF,似乎解决方案是使用iText。
Using iText requires installing another library and referencing it. Does anyone know how to do this? I can't find a tutorial. Much thanks. iText is also dependent upon bouncycastle
使用iText需要安装另一个库并引用它。有谁知道如何做到这一点?我找不到教程。非常感谢。 iText也依赖于bouncycastle
iText: http://www.1t3xt.com/downloads/index.php iText dependency: http://www.bouncycastle.org/latest_releases.html
iText:http://www.1t3xt.com/downloads/index.php iText依赖:http://www.bouncycastle.org/latest_releases.html
1 个解决方案
#1
You just need to add it to your classpath when running JMeter. Unfortunately in the jmeter.bat or jmeter.sh they run JMeter using the -jar flag which will ignore your custom classpath. To get around this you need to simply include the ApacheJMeter jar in your class path and run the class org.apache.jmeter.NewDriver as your starting class.
您只需在运行JMeter时将其添加到类路径中。不幸的是,在jmeter.bat或jmeter.sh中,他们使用-jar标志运行JMeter,这将忽略您的自定义类路径。要解决这个问题,您需要在类路径中包含ApacheJMeter jar并运行类org.apache.jmeter.NewDriver作为您的起始类。
#1
You just need to add it to your classpath when running JMeter. Unfortunately in the jmeter.bat or jmeter.sh they run JMeter using the -jar flag which will ignore your custom classpath. To get around this you need to simply include the ApacheJMeter jar in your class path and run the class org.apache.jmeter.NewDriver as your starting class.
您只需在运行JMeter时将其添加到类路径中。不幸的是,在jmeter.bat或jmeter.sh中,他们使用-jar标志运行JMeter,这将忽略您的自定义类路径。要解决这个问题,您需要在类路径中包含ApacheJMeter jar并运行类org.apache.jmeter.NewDriver作为您的起始类。