我是第一次使用 Taurus。我在 Windows 上配置相同。我已经安装了 Taurus 并尝试将 Selenium 转换为 Jmeter 脚本。我正在关注以下参考
https://www.blazemeter.com/blog/how-convert-selenium-scripts-jmx-converter/
我已经在 blazemeter 中设置了代理,并将其放入 .bzt.rc 文件中,还放置了秘密 ID 和令牌。
我尝试了多种配置 proxy2jmx 的方法,经过几次更改,现在我能够在浏览器打开和 selenium 事务执行的地方执行 selenium 测试。我得到了 smartjmx,但没有记录交易。
下面是我的 .bzt-rc 文件
# General Settings
settings:
# default-executor: jmeter # if you prefer using other executor by default - change this option
# artifacts-dir: ~/bzt-artifacts/%Y-%m-%d_%H-%M-%S.%f # change the default place to store artifact files
# check-updates: true # check for newer version of Taurus on startup
# check-interval: 1s # interval for Taurus engine to check test status and do other actions
# proxy:
# address: http://xxxxxxxxxxxxxxxxxxx
# username: xxxxxxxxxxxxxxxxxxx
# password: xxxxxxxxxxxxxxxxxxx
---
# CLI aliases - configure your "shortcuts" to apply config pieces
#cli-aliases: # user-defined config pieces to apply from command-line
# debug: # this alias is called as '-debug' from command line
# settings:
# verbose: true
# modules:
# jmeter:
# gui: true
# console:
# disable: true
---
# BlazeMeter reporting settings
modules:
blazemeter:
token: xxxxxxxxxxxxxxxxxxxxxxx:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
#
# test: Test Name # name for test to store reports
# project: Project Name # name for project to store test, can be numeric project ID
# public-report: false # set to true to create a public link to the report
#
# browser-open: start # auto-open the report in browser,
# # can be "start", "end", "both", "none"
# send-interval: 30s # send data each n-th second
# timeout: 5s # connect and request timeout for BlazeMeter API
# artifact-upload-size-limit: 10 # limit max size of file (in megabytes)
# # that goes into zip for artifact upload, 10 by default
# check-interval: 5s # interval which Taurus uses to query test status from BlazeMeter
---
# JMeter settings
#modules:
# jmeter:
# properties: # JMeter properties for every JMeter run
# prop_name: prop value
# system-properties: # Java system properties
# sun.net.http.allowRestrictedHeaders: "true"
# memory-xmx: 4G # allow JMeter to use up to 4G of memory
# path: ~/.bzt/jmeter-taurus/{version}/bin/jmeter # path to local jmeter installation
# version: 3.2 # version to use
# plugins: # plugins to install
# - jpgc-json=2.2
# - jmeter-ftp
# - jpgc-casutg
---
# Gatling settings
#modules:
# gatling:
# properties:
# gatling.data.file.bufferSize: 256 # output buffer size, 256 bytes by default
我在日志文件中收到以下错误
[2019-09-07 16:35:16,014 WARNING Engine.proxy2jmx] proxy2jmx 没有记录请求,请检查您的代理配置 [2019-09-07 16:35:16,022 WARNING Engine.proxy2jmx] chrome 调整的问题是遇到过,看看http://gettaurus.org/docs/Proxy2JMX/求助