51Testing软件测试论坛

标题: Jenkins+ant+Jmeter持续集成报错,求原因和解答? [打印本页]

作者: 测试积点老人    时间: 2018-10-16 10:19
标题: Jenkins+ant+Jmeter持续集成报错,求原因和解答?
这是报错日志
由用户 admin 启动
  1. [EnvInject] - Loading node environment variables.
  2. 构建中 在工作空间 /Users/Shared/Jenkins/Home/workspace/lynTest 中
  3. [extras] $ /Applications/apache-ant-1.10.3/bin/ant -file build.xml run
  4. Buildfile: /Applications/apache-jmeter-4.0/extras/build.xml
  5.       [echo] /Applications/apache-jmeter-4.0/TestReport/jtl/TestReport201805041415.jtl
  6.       [echo] /Applications/apache-jmeter-4.0/TestReport/html/TestReport201805041415.html
  7.       [echo] /Applications/apache-jmeter-4.0/TestReport/html

  8. run:
  9.       [echo] /Applications/apache-jmeter-4.0/TestReport/jtl/TestReport201805041415.jtl
  10.       [echo] /Applications/apache-jmeter-4.0/TestReport/html/TestReport201805041415.html
  11.       [echo] /Applications/apache-jmeter-4.0/TestReport/html

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

  24. report:

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

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


作者: libingyu135    时间: 2018-10-17 09:02
错误很明显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
文件不存在啊
作者: 1047490880    时间: 2018-10-17 14:20
很明显  文件不存在 报错
作者: 梦想家    时间: 2018-10-17 14:29

文件不存在啊
作者: qqq911    时间: 2018-10-17 14:47
缺少文件
作者: jingzizx    时间: 2018-10-17 15:06
缺少使用的文件




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2