Parameterization in Taurus yml file for jmx script

44 views
Skip to first unread message

pawan jawalkar

unread,
Jul 28, 2022, 3:40:01 AM7/28/22
to codename-taurus
Hi,

How can I parameterize the values using taurus yml file for my .jmx script.
Do I need to add the CSV Dataset config in .jmx file 

   I used below code in yml file and set the path whatever mentioned in csv dataset config in jmx

Kindly provide steps In detail to perform Parameterization in yml file



    data-sources: # list of external data sources
    - path: D:/PerformanceTesting/QA-PerformanceServer/Automated API_Performance/TestDataCSV.csv
      delimiter: ','
      quoted: false
      encoding: "utf-8"
      loop: true
      variable-names: UserID
      random-order: false
     
      requests:
      - url: https://ilms.test.ielstage.com/api/organizations/200581/users/${UserID}
        method: GET

DT

unread,
Jul 28, 2022, 4:59:00 AM7/28/22
to codename-taurus
There are 2 modes of running a JMeter test in Taurus:

  1. Running existing .jmx script. In this case you need to do everything in JMeter
  2. Create a test in YAML. In this case you need to take care only about YAML requests definitions, Taurus will build the .jmx test plan for you
The code snippet you're referring to is for point 2 which means you don't have to add anything to .jmx, Taurus will generate the CSV Data Set Config itself.
Reply all
Reply to author
Forward
0 new messages