apache / jmeter

Apache JMeter open-source load testing tool for analyzing and measuring the performance of a variety of services
https://jmeter.apache.org/
Apache License 2.0
8.11k stars 2.06k forks source link

Multiple TestPlan execution problems at the same time #6053

Open fit2-zhao opened 12 months ago

fit2-zhao commented 12 months ago

Use case

Executing multiple TestPlans in the same process at the same time, calling the method ""FileServer.getFileServer().closeFiles()"" at the end of one of the TestPlan executions will cause the CSV files of other unfinished TestPlans to be cleaned up.

Possible solution

Is it considered to distinguish and clean up according to the test plan?

Possible workarounds

No response

JMeter Version

5.6

Java Version

17

OS Version

No response

vlsi commented 12 months ago

Unfortunately, executing concurrent testplans within a single Java process is not supported yet. Pull requests are welcome.

FileServer is not the only issue, and things like JMeterProperties would likely collide as well.

fit2-zhao commented 11 months ago

May I ask if you have considered converting FileServer to be used like JMeterContext.

vlsi commented 6 months ago

@fit2-zhao , we probably need something like "per-execution scope", "per-thread group scope" stores: https://github.com/apache/jmeter/issues/6194