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

 

相关文章:

  • 2018-06-20
  • 2021-11-11
  • 2021-07-17
  • 2021-10-04
  • 2021-11-11
  • 2021-07-02
  • 2021-07-08
  • 2022-12-23
猜你喜欢
  • 2022-01-01
  • 2021-11-08
  • 2021-08-10
  • 2021-12-24
  • 2022-01-10
  • 2021-05-26
  • 2021-12-27
相关资源
相似解决方案