51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1427|回复: 0
打印 上一主题 下一主题

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

[复制链接]
  • TA的每日心情
    开心
    2016-8-1 14:34
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]测试小兵

    跳转到指定楼层
    1#
    发表于 2018-5-4 14:25:15 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    这是报错日志
    由用户 admin 启动
    [EnvInject] - Loading node environment variables.
    构建中 在工作空间 /Users/Shared/Jenkins/Home/workspace/lynTest 中
    [extras] $ /Applications/apache-ant-1.10.3/bin/ant -file build.xml run
    Buildfile: /Applications/apache-jmeter-4.0/extras/build.xml
         [echo] /Applications/apache-jmeter-4.0/TestReport/jtl/TestReport201805041415.jtl
         [echo] /Applications/apache-jmeter-4.0/TestReport/html/TestReport201805041415.html
         [echo] /Applications/apache-jmeter-4.0/TestReport/html

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

    test:
       [jmeter] Executing test plan: /Applications/apache-jmeter-4.0/TestScrip/Wconcept.jmx ==> /Applications/apache-jmeter-4.0/TestReport/jtl/TestReport201805041415.jtl
       [jmeter] Creating summariser <summary>
       [jmeter] Created the tree successfully using /Applications/apache-jmeter-4.0/TestScrip/Wconcept.jmx
       [jmeter] Starting the test @ Fri May 04 14:15:37 CST 2018 (1525414537003)
       [jmeter] Waiting for possible Shutdown/StopTestNow/Heapdump message on port 4445
       [jmeter] summary =     10 in 00:00:07 =    1.4/s Avg:   674 Min:    93 Max:  3263 Err:     0 (0.00%)
       [jmeter] Tidying up ...    @ Fri May 04 14:15:45 CST 2018 (1525414545494)
       [jmeter] ... end of run
         [echo] /Applications/apache-jmeter-4.0/TestReport/jtl/TestReport201805041415.jtl
         [echo] /Applications/apache-jmeter-4.0/TestReport/html/TestReport201805041415.html
         [echo] /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的配置也没问题
    分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
    收藏收藏
    回复

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /1 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2024-11-17 18:45 , Processed in 0.061509 second(s), 23 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    快速回复 返回顶部 返回列表