测试积点老人 发表于 2018-10-16 10:19:42

Jenkins+ant+Jmeter持续集成报错,求原因和解答?

这是报错日志
由用户 admin 启动 - Loading node environment variables.
构建中 在工作空间 /Users/Shared/Jenkins/Home/workspace/lynTest 中
$ /Applications/apache-ant-1.10.3/bin/ant -file build.xml run
Buildfile: /Applications/apache-jmeter-4.0/extras/build.xml
       /Applications/apache-jmeter-4.0/TestReport/jtl/TestReport201805041415.jtl
       /Applications/apache-jmeter-4.0/TestReport/html/TestReport201805041415.html
       /Applications/apache-jmeter-4.0/TestReport/html

run:
       /Applications/apache-jmeter-4.0/TestReport/jtl/TestReport201805041415.jtl
       /Applications/apache-jmeter-4.0/TestReport/html/TestReport201805041415.html
       /Applications/apache-jmeter-4.0/TestReport/html

test:
    Executing test plan: /Applications/apache-jmeter-4.0/TestScrip/Wconcept.jmx ==> /Applications/apache-jmeter-4.0/TestReport/jtl/TestReport201805041415.jtl
    Creating summariser <summary>
    Created the tree successfully using /Applications/apache-jmeter-4.0/TestScrip/Wconcept.jmx
    Starting the test @ Fri May 04 14:15:37 CST 2018 (1525414537003)
    Waiting for possible Shutdown/StopTestNow/Heapdump message on port 4445
    summary =   10 in 00:00:07 =    1.4/s Avg:   674 Min:    93 Max:3263 Err:   0 (0.00%)
    Tidying up ...    @ Fri May 04 14:15:45 CST 2018 (1525414545494)
    ... end of run
       /Applications/apache-jmeter-4.0/TestReport/jtl/TestReport201805041415.jtl
       /Applications/apache-jmeter-4.0/TestReport/html/TestReport201805041415.html
       /Applications/apache-jmeter-4.0/TestReport/html

report:

BUILD FAILED
/Applications/apache-jmeter-4.0/extras/build.xml:24: The following error occurred while executing this line:
/Applications/apache-jmeter-4.0/extras/build.xml:51: input file /Applications/apache-jmeter-4.0/TestReport/jtl/TestReport201805041415.jtl does not exist

Total time: 13 seconds
Build step 'Invoke Ant' marked build as failure
Finished: FAILURE我用ant直接执行,调Jmeter是没问题的,但是用Jenkins去调ant来执行build文件就会报错了,求解
Jenkins配置Ant和JDK路径没有问题
工程里调用build.xml的配置也没问题

libingyu135 发表于 2018-10-17 09:02:57

错误很明显Applications/apache-jmeter-4.0/extras/build.xml:51: input file /Applications/apache-jmeter-4.0/TestReport/jtl/TestReport201805041415.jtl does not exist
这个文件不存在,找下具体原因,为啥不存在,你直接调的日志和这个对比看看

栗子草莓和西瓜 发表于 2018-10-17 11:40:03

文件不存在啊

1047490880 发表于 2018-10-17 14:20:35

很明显文件不存在 报错

梦想家 发表于 2018-10-17 14:29:51


文件不存在啊

qqq911 发表于 2018-10-17 14:47:21

缺少文件

jingzizx 发表于 2018-10-17 15:06:37

缺少使用的文件
页: [1]
查看完整版本: Jenkins+ant+Jmeter持续集成报错,求原因和解答?