我使用ANT在JDK1.8中运行JMeter时遇到此异常:
D:\jmeter\build.xml:50: The following error occurred while executing this line:
D:\jmeter\build.xml:68: The following error occurred while executing this line:
: The following error occurred while executing this line:
D:\jmeter\build.xml:100: The following error occurred while executing this line:
D:\jmeter\build.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
答案 0 :(得分:0)
错误代表格式错误的Pattern.UNICODE_CHARACTER_CLASS
文件,有一个“好”的文件存在于JMeter安装的“extras”文件夹中,您可以将其用作参考。
如果您从其他地方安装了JMeter,则可以从JMeter SVN repo获取该文件。从它开始,验证它是否有效并根据需要进行修改。
参见 2。有关使用Ant运行JMeter测试的更多详细信息,请参阅Five Ways To Launch a JMeter Test without Using the JMeter GUI的APACHE ANT 章节。
答案 1 :(得分:0)
我已经在下面的链接中解释了使用Ant + JMeter以及下载和试用的示例项目。
http://www.testautomationguru.com/jmeter-continuous-performance-testing-part1/