Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anyway to fetch and update existing threadgroup from testplan (fromJmx) ? #291

Open
ihsaddamhussain opened this issue Jan 27, 2025 · 1 comment
Labels
question Further information is requested

Comments

@ihsaddamhussain
Copy link

Hi, I have a usecase to override existing load configuration of ThreadGroup from jmx file

I get the jmx test plan by doing below
DslTestPlan testPlan = DslTestPlan.fromJmx(jmxPath);
How can I fetch the existing thread groups from this test plan ? I see the testplan olnly has .children() method where I can only add new thread group.

@ihsaddamhussain ihsaddamhussain changed the title How to fetch and update existing threadgroup from testplan ? Anyway to fetch and update existing threadgroup from testplan (fromJmx) ? Jan 27, 2025
@rabelenda
Copy link
Contributor

Hello, thank you for trying.

JMeter DSL API is focused on test plan creation and execution, but not in modifying an existing test plan.

I think the best thing would be for your JMX test plan to have parameterized properties so you can later on change them if you need, for example using JMeter Properties. If you have that setting JMeter properties in JMeter DSL execution is very simple.

Have you considered migrating your JMX test plans to JMeter DSL code with jmsdl jmx2dsl command?

@rabelenda rabelenda added the question Further information is requested label Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants