TestNG (xiv) threaded test

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());
    }
}

 

Guess you like

Origin www.cnblogs.com/dwdw/p/11422410.html