jmeter-java-dsl icon indicating copy to clipboard operation
jmeter-java-dsl copied to clipboard

Add support to jmx2dsl for test fragments

Open andy-tarr opened this issue 3 years ago • 2 comments

A jmx that is a test fragment (no TGs etc) results in the following:

@Test public void test() throws IOException { TestPlanStats stats = unsupported() .run(); assertThat(stats.overall().errorsCount()).isEqualTo(0); }

We have a lot of test fragment jmxs that we'd like to convert into dsl without writing manually. Thanks!

andy-tarr avatar Sep 20 '22 15:09 andy-tarr

Hello, thanks for asking for this.

Can you share an example of such test fragment and how you use it in a testplan? Want to understand how you use them to provide good solution for your use case.

Regards

rabelenda avatar Sep 20 '22 15:09 rabelenda

@rabelenda JMXs like this are for shared functiuons like login and referenced from othe jmx file via include controllers Login.txt

andy-tarr avatar Sep 20 '22 15:09 andy-tarr

We just released a new version which includes conversions of test fragments. Give it a try and if you see any issues please create a new issue.

rabelenda avatar Nov 18 '22 18:11 rabelenda