ANT配置异常:BUILD FAILED D:\test\testAuto\pc\build.xml:24: The following error occurred while executing

目录

一、异常如下

​二、解决如下:

2.1找到jmeter的bin目录

2.2找到jmeter.properties文件并打开编辑

三、修改csv为xml

3.1找到这行jmeter.save.saveservice.output_format=csv

​3.2找到build.xml文件所在的文件路径

3.3在build.xml文件地址,输入cmd并回车

​ 四、成功


一、异常如下

BUILD FAILED
D:\test\testAuto\pc\build.xml:24: The following error occurred while executing this line:
D:\test\testAuto\pc\build.xml:46: input file D:\test\testAuto\pc\resultlog\jtl\TestReport202009211140.jtl does not exist

ANT配置异常:BUILD FAILED D:\test\testAuto\pc\build.xml:24: The following error occurred while executing_第1张图片
image

二、解决如下:

2.1找到jmeter的bin目录

ANT配置异常:BUILD FAILED D:\test\testAuto\pc\build.xml:24: The following error occurred while executing_第2张图片
image

2.2找到jmeter.properties文件并打开编辑

ANT配置异常:BUILD FAILED D:\test\testAuto\pc\build.xml:24: The following error occurred while executing_第3张图片
image
ANT配置异常:BUILD FAILED D:\test\testAuto\pc\build.xml:24: The following error occurred while executing_第4张图片
image

三、修改csv为xml

3.1找到这行jmeter.save.saveservice.output_format=csv

修改为jmeter.save.saveservice.output_format=xml

#jmeter.save.saveservice.output_format=csv
jmeter.save.saveservice.output_format=xml

ANT配置异常:BUILD FAILED D:\test\testAuto\pc\build.xml:24: The following error occurred while executing_第5张图片
image

3.2找到build.xml文件所在的文件路径

ANT配置异常:BUILD FAILED D:\test\testAuto\pc\build.xml:24: The following error occurred while executing_第6张图片
image

3.3在build.xml文件地址,输入cmd并回车

ANT配置异常:BUILD FAILED D:\test\testAuto\pc\build.xml:24: The following error occurred while executing_第7张图片
image

ANT配置异常:BUILD FAILED D:\test\testAuto\pc\build.xml:24: The following error occurred while executing_第8张图片
image

四、成功

ANT配置异常:BUILD FAILED D:\test\testAuto\pc\build.xml:24: The following error occurred while executing_第9张图片
image

你可能感兴趣的:(ANT配置异常:BUILD FAILED D:\test\testAuto\pc\build.xml:24: The following error occurred while executing)