【问题标题】:How to set directory result robot framework in jenkins如何在 jenkins 中设置目录结果机器人框架
【发布时间】:2020-10-05 13:54:00
【问题描述】:

情况

1.我在robot framework中的脚本有关键字web capture screenshots
${输出目录}

2.New jobs jenkins freestyle > 每天凌晨 12 点跑步

3.从 git 结帐

4.Config发布机器人结果

5.运行机器人时> img,log,report会在workspace中

我想在 build 文件夹中创建文件夹并设置 img,log,report 将在 ..\builds\$BUILD_NUMBER\newfloder

我该怎么办? 谢谢

【问题讨论】:

  • 请帮忙解决

标签: jenkins automated-tests robotframework


【解决方案1】:
robot --help

将为您提供运行机器人的所有选项。在这些文档中:

 -d --outputdir dir       Where to create output files. The default is the
                          directory where tests are run from and the given path
                          is considered relative to that unless it is absolute.

因此,将 --outputdir /where/you/want/to/store/the/stuff 添加到您的机器人调用应该会有所帮助。

【讨论】:

    猜你喜欢
    • 2018-04-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-05-05
    • 1970-01-01
    • 1970-01-01
    • 2019-07-04
    • 1970-01-01
    相关资源
    最近更新 更多