将Taurus测试指定为Blazemeter功能测试。

huangapple go评论54阅读模式
英文:

Specify Taurus test as a Blazemeter Functional test

问题

如何告诉Taurus我的(Postman/Newman)测试是Blazemeter的功能测试,而不是性能测试?以下是我使用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

我使用Taurus 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时,我看到它在“性能”选项卡下列出,并且看起来像性能测试。我想要它作为功能测试运行,以获取更多有关请求和响应负载的详细信息。

英文:

How do I tell Taurus that my (Postman/Newman) test is a Blazemeter Functional test, and not a Performance test? Below is my bzt.yaml I created with the help of https://gettaurus.org/docs/Postman/.

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

I run it using the taurus Docker image:

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}"

When I log into the Blazemeter UI, I see that it's listed under the "Performance" tab, and looks like a performance test. I would like it to run as a Functional test to get more details on the request and response payloads.

答案1

得分: 1

I do not believe it's possible at the moment, because presently BlazeMeter functional tests are geared toward either straight API functional tests or GUI (Selenium) functional tests.

The problem is that from BlazeMeter's side, the file validator is failing to correctly identify the Postman/Newman JSON file (despite the YAML file referencing it properly). I reported this to the BlazeMeter R&D team fairly recently, so it's being looked into.

In the meantime though, I don't expect this to work in BlazeMeter. It likely won't correctly identify your Newman script unless you run it as a Performance test for the interim.

(Sorry for the bad news on this one -- Hopefully it'll get sorted soon!)

Feel free to bring this up with BlazeMeter support at support@blazemeter.com as well.

英文:

I do not believe it's possible at the moment, because presently BlazeMeter functional tests are geared toward either straight API functional tests or GUI (Selenium) functional tests.

The problem is that from BlazeMeter's side, the file validator is failing to correctly identify the Postman/Newman JSON file (despite the YAML file referencing it properly). I reported this to the BlazeMeter R&D team fairly recently, so it's being looked into.

In the meantime though, I don't expect this to work in BlazeMeter. It likely won't correctly identify your Newman script unless you run it as a Performance test for the interim.

(Sorry for the bad news on this one -- Hopefully it'll get sorted soon!)

Feel free to bring this up with BlazeMeter support at support@blazemeter.com as well.

huangapple
  • 本文由 发表于 2020年1月3日 16:16:26
  • 转载请务必保留本文链接:https://go.coder-hub.com/59575190.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定