【发布时间】:2019-02-26 04:27:47
【问题描述】:
我正在使用带有 blazemeter 报告模块的 blazemeter/taurus:1.13.2 Docker 映像来执行测试。
taurus 命令行有没有一种方法可以为 BlazeMeter 上的“Notes”字段传递一个值?我已经成功传递了其他值,例如:
-o modules.blazemeter.report-name="${report_name}"
我希望在“Notes”中传递类似的东西。我试过了:
-o modules.blazemeter.notes="${notes}"
但没有运气。
这是我运行完整命令行的脚本:
#!/bin/bash
api_token=$1
timestamp=`date +%s`
report_name="`hostname`_`git log --format='%h' -n 1`_taurus-jmeter_${timestamp}"
notes="testing use of notes through taurus command line args"
artifacts_dir="artifacts/${timestamp}"
docker run -t --rm -v `pwd`:/bzt-configs -v `pwd`/artifacts:/tmp/artifacts blazemeter/taurus:1.13.2 taurus.yml -o settings.artifacts-dir="${artifacts_dir}" -o modules.blazemeter.report-name="${report_name}" -o modules.blazemeter.notes="${notes}" -o modules.blazemeter.token="${api_token}"
【问题讨论】:
标签: blazemeter taurus