四、日志输出Reporter.log
作者:互联网
一、Reporter.log
import org.testng.Reporter;
public class TestLog {
public static void main(String[] args) {
String src="https://baidu.com";
int num=100;
int ramdomInt=0;
Reporter.log(src,true);
Reporter.log(String.valueOf(num),true);
}
}
输出
https://baidu.com
100
标签:String,Reporter,int,num,https,日志,log 来源: https://blog.csdn.net/chushujin/article/details/100045613