我在使用ANT中运行JDK1.8时会得到此例外:
D:jmeterbuild.xml:50: The following error occurred while executing this line:
D:jmeterbuild.xml:68: The following error occurred while executing this line:
: The following error occurred while executing this line:
D:jmeterbuild.xml:100: The following error occurred while executing this line:
D:jmeterbuild.xml:124: java.lang.RuntimeException: XPathFactory#newInstance()
failed to create an XPathFactory for the default object model: http://java.sun.c
om/jaxp/xpath/dom with the XPathFactoryConfigurationException: javax.xml.xpath.X
PathFactoryConfigurationException: java.util.ServiceConfigurationError: javax.xm
l.xpath.XPathFactory: jar:file:/D:/ant/lib/saxon9he.jar!/META-INF/services/javax
.xml.xpath.XPathFactory:2: Illegal configuration-file syntax
错误代表畸形的 build.xml
文件,有一个"良好"一个位于jmeter安装的" extras"文件夹中,您可以将其用作参考。
如果您从其他地方安装了jmeter,则可以从Jmeter SVN存储库中获取文件。从它开始,验证它的工作原理并根据需要对其进行修改。
参见 2。使用apache ant 在不使用Jmeter GUI的情况下启动Jmeter测试的五种章节,以获取有关使用ANT运行Jmeter测试的更多详细信息。
我已经在下面的链接中使用ANT Jmeter以及下载的示例项目进行了解释。
http://www.testautomatimationguru.com/jmeter-continouul-performance-testing-part1/