jmeter icon indicating copy to clipboard operation
jmeter copied to clipboard

Multiple TestPlan execution problems at the same time

Open fit2-zhao opened this issue 1 year ago • 3 comments

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

fit2-zhao avatar Jul 21 '23 07:07 fit2-zhao

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.

vlsi avatar Jul 21 '23 11:07 vlsi

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

fit2-zhao avatar Jul 27 '23 03:07 fit2-zhao

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

vlsi avatar Dec 30 '23 10:12 vlsi