nagkumar commented on issue #5957: URL: https://github.com/apache/jmeter/issues/5957#issuecomment-1573319281
I force changed the .jmx file to JUnit 5 class, which fails like this.. ``` java.lang.ClassCastException: class com.tejasoft.tests.ju.ju5.ut.perf.TestAllPerfSuite cannot be cast to class junit.framework.TestCase (com.tejasoft.tests.ju.ju5.ut.perf.TestAllPerfSuite and junit.framework.TestCase are in unnamed module of loader org.apache.jmeter.DynamicClassLoader @72ea2f77) at org.apache.jmeter.protocol.java.sampler.JUnitSampler.initializeTestObject(JUnitSampler.java:675) ~[ApacheJMeter_junit-5.4.1.jar:5.4.1] at org.apache.jmeter.protocol.java.sampler.JUnitSampler.threadStarted(JUnitSampler.java:647) ~[ApacheJMeter_junit-5.4.1.jar:5.4.1] at org.apache.jmeter.threads.JMeterThread$ThreadListenerTraverser.addNode(JMeterThread.java:784) [ApacheJMeter_core-5.4.1.jar:5.4.1] at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:993) [jorphan-5.4.1.jar:5.4.1] at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:976) [jorphan-5.4.1.jar:5.4.1] at org.apache.jmeter.threads.JMeterThread.threadStarted(JMeterThread.java:752) [ApacheJMeter_core-5.4.1.jar:5.4.1] at org.apache.jmeter.threads.JMeterThread.initRun(JMeterThread.java:740) [ApacheJMeter_core-5.4.1.jar:5.4.1] at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:252) [ApacheJMeter_core-5.4.1.jar:5.4.1] at java.lang.Thread.run(Thread.java:1589) [?:?] ``` Are there any support for additional JUnit 5-specific samplers...if yes, kindly inform ``` <?xml version="1.0" encoding="UTF-8"?> <jmeterTestPlan version="1.2" properties="5.0" jmeter="5.4.1"> <hashTree> <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" enabled="true"> <stringProp name="TestPlan.comments"></stringProp> <boolProp name="TestPlan.functional_mode">false</boolProp> <boolProp name="TestPlan.serialize_threadgroups">false</boolProp> <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> <collectionProp name="Arguments.arguments"/> </elementProp> <stringProp name="TestPlan.user_define_classpath"></stringProp> </TestPlan> <hashTree> <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="JUnit Test Thread Group" enabled="true"> <stringProp name="ThreadGroup.on_sample_error">continue</stringProp> <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" enabled="true"> <boolProp name="LoopController.continue_forever">false</boolProp> <stringProp name="LoopController.loops">2</stringProp> </elementProp> <stringProp name="ThreadGroup.num_threads">10</stringProp> <stringProp name="ThreadGroup.ramp_time">5</stringProp> <longProp name="ThreadGroup.start_time">1678980642000</longProp> <longProp name="ThreadGroup.end_time">1678980642000</longProp> <boolProp name="ThreadGroup.scheduler">false</boolProp> <stringProp name="ThreadGroup.duration"></stringProp> <stringProp name="ThreadGroup.delay"></stringProp> </ThreadGroup> <hashTree> <JUnitSampler guiclass="JUnitTestSamplerGui" testclass="JUnitSampler" testname="JUnit 5 Sampler" enabled="true"> <stringProp name="junitSampler.classname">com.tejasoft.tests.ju.ju3.ut.learn.TestJU3</stringProp> <!-- <stringProp name="junitSampler.classname">com.tejasoft.tests.ju.ju5.ut.perf.TestAllPerfSuite</stringProp> --> <boolProp name="junitSampler.appendError">false</boolProp> <boolProp name="junitSampler.appendException">false</boolProp> </JUnitSampler> <hashTree/> </hashTree> </hashTree> </hashTree> </jmeterTestPlan> ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@jmeter.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org