0

I am using Taurus for first time. I am configuring the same on windows. I have installed Taurus and trying to convert Selenium to Jmeter Script. I am following the below reference

https://www.blazemeter.com/blog/how-convert-selenium-scripts-jmx-converter/

I have set up proxy in blazemeter and put the same in .bzt.rc file and also placed the secret ID and token.

I have tried with multiple ways to configure proxy2jmx and after several changes now i am able to execute the selenium test where the browser opens and the selenium transactions executes. I get the smartjmx, but with no transaction recorded.

Below is my .bzt-rc file

# 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

I am getting the below error in log file

[2019-09-07 16:35:16,014 WARNING Engine.proxy2jmx] There aren't requests recorded by proxy2jmx, check your proxy configuration [2019-09-07 16:35:16,022 WARNING Engine.proxy2jmx] Problems with chrome tuning are encountered, take look at http://gettaurus.org/docs/Proxy2JMX/ for help

2 Answers2

0

You need to remove these # characters from the beginning of the lines. As per YAML Syntax article:

  • Comments begin with the number sign (#), can start anywhere on a line and continue until the end of the line. Comments must be separated from other tokens by whitespace characters.[15] If # characters appear inside of a string, then they are number sign (#) literals.

You can also try reaching out to Taurus developers via codename-taurus forums or if you're a BlazeMeter customer you can open a support ticket

And last but not the least, you can configure your Selenium tests to use JMeter as the proxy and perform the recording using JMeter's HTTP(S) Test Script Recorder

Dmitri T
  • 159,985
  • 5
  • 83
  • 133
  • Thanks a lot for replying. I think # is not the issue, else i would have not able to run Taurus. Also I have to do all the recording operations on command line and as i am aware about Jmeter test script recorder cannot be initiated as non-gui mode. – user3101408 Sep 09 '19 at 14:28
0

I had the exact same error. I was working on the same tutorial on a Windows machine. From this post, and came I across this statement:

Sorry, only Chrome is supported on Windows.

So, I changed the example files to include ChromeDriver instead of FirefoxDriver and it worked for me.

fenimore
  • 1
  • 1