首页 > 技术文章 > 四、日志输出Reporter.log

chushujin 2019-08-19 17:47 原文

一、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

 

推荐阅读