如何告诉金牛座(Postman / Newman)测试是Blazemeter Functional 测试,而不是Performance测试?以下是在https://gettaurus.org/docs/Postman/的帮助下创建的bzt.yaml
。
execution:
- executor: newman
iterations: 1
scenario: functional/simple
scenarios:
functional/simple:
script: my.postman_collection.json
reporting:
- module: blazemeter
modules:
blazemeter:
request-logging-limit: 20240
public-report: false
report-name: my-postman-collection
test: newmantrials
project: test
final-stats:
summary-labels: true
我使用金牛座Docker映像运行它:
docker run --rm -t -v `pwd`:/bzt-configs -v `pwd`/artifacts:/tmp/artifacts blazemeter/taurus:1.14.0 bzt.yaml -o modules.blazemeter.token="${token}"
当我登录到Blazemeter UI时,我看到它在“性能”选项卡下列出,并且看起来像一个性能测试。我希望它可以作为功能测试来运行,以获取有关请求和响应有效负载的更多详细信息。
答案 0 :(得分:1)
我目前不认为这是可能的,因为目前BlazeMeter功能测试适合直接API功能测试或GUI(硒)功能测试。
问题是从BlazeMeter的角度来看,文件验证器无法正确识别Postman / Newman JSON文件(尽管YAML文件正确引用了该文件)。我是最近才向BlazeMeter研发团队报告的,因此正在对此进行调查。
但是,与此同时,我不希望它在BlazeMeter中起作用。除非您将其作为过渡期间的性能测试运行,否则它可能无法正确识别您的纽曼脚本。
(很抱歉收到这个坏消息-希望它能尽快得到解决!)
也可以通过support@blazemeter.com在BlazeMeter的支持下随意进行调试。