JMeter 执行ant测试本地失败
JMeter execute ant test local failed
我正在关注 CommittingChanges 的 JMeter wiki 页面,该页面已更新。
我运行宁
ant checkstyle
ant package
ant test
测试失败,与 Bug52310.csv 的差异错误:
BUILD FAILED
C:\jmeter\jmeter\build.xml:2681: The following error occurred while executing th
is line:
C:\jmeter\jmeter\build.xml:2621: CSV Files are not identical.
C:\jmeter\jmeter\bin\testfiles\Bug52310.csv
ComputeIPAddr,200,OK,TG2 1-1,text,true
HTTP-Request-HC31,200,OK,TG2 1-1,text,true
HTTP-Request-HC4,200,OK,TG2 1-1,text,true
C:\jmeter\jmeter\bin\Bug52310.csv
ComputeIPAddr,200,OK,TG2 1-1,text,true
HTTP-Request-HC31,Non HTTP response code: java.net.SocketException,Non HTTP resp
onse message: Network is unreachable: connect,TG2 1-1,text,false
HTTP-Request-HC4,Non HTTP response code: java.net.SocketException,Non HTTP respo
nse message: Network is unreachable: connect,TG2 1-1,text,false
Total time: 3 minutes 9 seconds
这是错误还是 configuration/network 问题?可以在本地环境中执行所有 JMeter 测试吗?
编辑
另外下一步是运行不同的测试
ant test-headless or ant test-headed (whichever was not run by the ant test)
为什么不首先执行ant test-both
?
当我执行 ant test-headed
甚至 and test-both
时它成功运行
关于您的第一个问题,这看起来像是您机器的临时连接问题,或者更可能是测试为您的机器计算了一个无法访问的 IP 地址。
此测试通过将 ip 源设置为您的机器地址来测试 ip 欺骗功能。
运行 在 gui 中查看它在您的计算机上计算出的 IP,然后尝试解析它。
关于ant test-both,是的会更好,请报告错误。
我正在关注 CommittingChanges 的 JMeter wiki 页面,该页面已更新。
我运行宁
ant checkstyle
ant package
ant test
测试失败,与 Bug52310.csv 的差异错误:
BUILD FAILED
C:\jmeter\jmeter\build.xml:2681: The following error occurred while executing th
is line:
C:\jmeter\jmeter\build.xml:2621: CSV Files are not identical.
C:\jmeter\jmeter\bin\testfiles\Bug52310.csv
ComputeIPAddr,200,OK,TG2 1-1,text,true
HTTP-Request-HC31,200,OK,TG2 1-1,text,true
HTTP-Request-HC4,200,OK,TG2 1-1,text,true
C:\jmeter\jmeter\bin\Bug52310.csv
ComputeIPAddr,200,OK,TG2 1-1,text,true
HTTP-Request-HC31,Non HTTP response code: java.net.SocketException,Non HTTP resp
onse message: Network is unreachable: connect,TG2 1-1,text,false
HTTP-Request-HC4,Non HTTP response code: java.net.SocketException,Non HTTP respo
nse message: Network is unreachable: connect,TG2 1-1,text,false
Total time: 3 minutes 9 seconds
这是错误还是 configuration/network 问题?可以在本地环境中执行所有 JMeter 测试吗?
编辑
另外下一步是运行不同的测试
ant test-headless or ant test-headed (whichever was not run by the ant test)
为什么不首先执行ant test-both
?
当我执行 ant test-headed
甚至 and test-both
时它成功运行
关于您的第一个问题,这看起来像是您机器的临时连接问题,或者更可能是测试为您的机器计算了一个无法访问的 IP 地址。
此测试通过将 ip 源设置为您的机器地址来测试 ip 欺骗功能。
运行 在 gui 中查看它在您的计算机上计算出的 IP,然后尝试解析它。
关于ant test-both,是的会更好,请报告错误。