abstracta / jmeter-java-dsl

Simple JMeter performance tests API
https://abstracta.github.io/jmeter-java-dsl/
Apache License 2.0
477 stars 59 forks source link

jmdsl fails to convert a test plan with JDBC request where query is read via a csvdataset config using the variable of csvdataset #234

Closed george-pc closed 1 year ago

george-pc commented 1 year ago
image

Test Plan contains JDBC request and the query to execute is a vairable ${QUERY} which is read in the CSV Dataset Config (variable Names).

The test plan reads the csv file which has below format QUERY_ALIAS,QUERY,EXPECTED

The jmx plan uses JDBC Sampler and CSV Dataset Config element to iterate through each row and dynamically change the JDBC request as below:

This make the test plan dynamic in nature driven by the csv file. Issue: jmx2dsl fails to convert this jmx and shows unsupported for jdbc sampler that use query as a variable as shown below

    threadGroup(1, 1,
      jdbcSampler("jdbcConfig", "select count(*) from call_center")
        .timeout(Duration.ofMinutes(5))
    ),

    threadGroup(1, 1,
      **unsupported()**
    ),
rabelenda commented 1 year ago

Hello, thanks for reporting this!

We have just released a new version that adds support for converting such scenario.

Regards