TestNG(十四) 线程测试

Posted dwdw

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了TestNG(十四) 线程测试相关的知识,希望对你有一定的参考价值。

package com.course.testng.thread;

import org.testng.annotations.Test;

public class multiThread 
    @Test(invocationCount = 10, threadPoolSize = 3)
    public void test()
        System.out.println("线程测试");
        System.out.printf("Thread Id: %s%n",Thread.currentThread().getId());
    

技术图片

技术图片

 

以上是关于TestNG(十四) 线程测试的主要内容,如果未能解决你的问题,请参考以下文章