gpt4 book ai didi

performance - Jmeter-Ant xslt-report : BUILD FAILED Test. jtl 不存在错误虽然我有 Test.jtl

转载 作者:行者123 更新时间:2023-11-28 20:08:06 27 4
gpt4 key购买 nike

我正在尝试通过下面的 ant cmd 运行我的 Test.jmx 文件:C:\apache-ant-1.10.1-bin\bin>ant

我收到以下错误:

C:\apache-ant-1.10.1-bin\bin>ant
Buildfile: C:\apache-ant-1.10.1-bin\bin\build.xml

run:
[echo] funcMode = false
[jmeter] Executing test plan: C:\apache-ant-1.10.1-bin\bin\Test.jmx ==> C:\apache-ant-1.10.1-bin\bin\Test.jtl

_message_xalan:

xslt-report:

BUILD FAILED
C:\apache-ant-1.10.1-bin\bin\build.xml:124: input file C:\apache-ant-1.10.1-bin\bin\Test.jtl does not exist

Total time: 4 seconds

C:\apache-ant-1.10.1-bin\bin>

我通过创建一个新的 Test.jtl 文件解决了这个问题。

现在我收到这个错误:

C:\apache-ant-1.10.1-bin\bin>ant -Dtestpath=C:\apache-ant-1.10.1-bin\bin\ -Dtest=Test
Buildfile: C:\apache-ant-1.10.1-bin\bin\build.xml

run:
[echo] funcMode = false
[jmeter] Executing test plan: C:\apache-ant-1.10.1-bin\bin\Test.jmx ==> C:\apache-ant-1.10.1-bin\bin\Test.jtl

_message_xalan:

xslt-report:
[xslt] Processing C:\apache-ant-1.10.1-bin\bin\Test.jtl to C:\apache-ant-1.10.1-bin\bin\Test.html
[xslt] Loading stylesheet C:\apache-ant-1.10.1-bin\bin\jmeter-results-report_21.xsl
[xslt] C:\apache-ant-1.10.1-bin\bin\Test.jtl:1:1: Fatal Error! Premature end of file.
[xslt] Failed to process C:\apache-ant-1.10.1-bin\bin\Test.jtl

BUILD FAILED
C:\apache-ant-1.10.1-bin\bin\build.xml:124: Fatal error during transformation using C:\apache-ant-1.10.1-bin\bin\jmeter-results-report_21.xsl: Premature end of file.; SystemID: file:/C:/apache-ant-1.10.1-bin/bin/Test.jtl; Line#: 1; Column#: 1

Total time: 3 seconds

最佳答案

实际上,正确答案是here .只需要从这些行中删除评论:

<jvmarg value="-Xincgc"/>
<jvmarg value="-Xmx128m"/>
<jvmarg value="-Dproperty=value"/>
<jmeterarg value="-qextra.properties"/>

extracts\build.xml 文件中。

关于performance - Jmeter-Ant xslt-report : BUILD FAILED Test. jtl 不存在错误虽然我有 Test.jtl,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47050157/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com