Jinglong233

Results comments of Jinglong233

@krmahadevan By using the-Dtestng.thread.affinity=true parameter, the problem mentioned above is indeed solved. But I encountered a new problem: using parallel="classes", when the number of threads is less than the number...

@krmahadevan ``` @Slf4j public class ZK_JXB_Index_DownloadTestCase extends BaseTest { @Test public void switch_ZKCJGL_ZK_JXB_Index_DownloadTestCase() { log.info("switch_ZKCJGL_ZK_JXB_Index_DownloadTestCase " + Thread.currentThread().getName()); } @Test(priority = 1, groups = "ZK_JXB_Index_Button_Download",dependsOnMethods = {"switch_ZKCJGL_ZK_JXB_Index_DownloadTestCase"}) public void download_PLDCJXB()...

@krmahadevan Supplement: The effect I'm aiming for is that after one thread has completed executing a test class, it will then proceed to execute another test class.

@krmahadevan After my repeated verification, I found that the reason for this phenomenon is that I used the `@priority` annotation. Could this be a bug?

In my XML file, I used "parallel="classes"" and enabled multithreading. Then the expected outcome should be that after one class is executed by a thread, it will proceed to execute...

@krmahadevan ``` @Slf4j public class Manager { public static void initThreadResources() { log.info(Thread.currentThread().getName() + " initThreadResources"); } public static void closeThreadResources() { log.info(Thread.currentThread().getName() + " closeThreadResources"); } } ``` ```...

@krmahadevan I'm sorry to bother you again. Could you please tell me if the phenomenon I observed is normal or if it's a bug? And are there any other solutions?

@krmahadevan Thank you for your reply. But the current plan you mentioned will still have the problems I mentioned above. I'm trying to find other solutions