随笔分类 -  Java(TestNG、JUnit)

摘要:1、int与Integer用==比较详解 public static void main(String[] args) { int t1 = 12; int t2 = 12; Integer integer1 = new Integer(12); Integer integer2 = new Int 阅读全文
posted @ 2021-10-11 22:21 whitewall 阅读(40) 评论(0) 推荐(0)
摘要:参考来源:https://blog.csdn.net/u011622109/article/details/106904955 官网:https://rest-assured.io/ 文档翻译: https://iworkh.gitee.io/blog/2020/06/17/java_rest_as 阅读全文
posted @ 2021-10-04 18:47 whitewall 阅读(723) 评论(0) 推荐(0)
摘要:目前看到的有好几种 1、Java自带的java.io和java.net2、Apache的HttpClient上面2个比较老了,不准备用,就了解一下有这个东西就行了。参考来源:https://www.cnblogs.com/sinosoft/p/10556993.html3、okhttp,这个是我自己 阅读全文
posted @ 2021-09-29 11:43 whitewall 阅读(2442) 评论(0) 推荐(0)
摘要:一、Allure安装官网:https://docs.qameta.io/allure/1、我下载的是2.10.0 的zip版本 https://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline/2、然后解压,设置bin目 阅读全文
posted @ 2021-09-28 17:44 whitewall 阅读(216) 评论(0) 推荐(0)
摘要:testng默认模板乱码,体验也不好,以下是reportng使用方法 依赖 <dependencies> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> <version>1.7.25</ 阅读全文
posted @ 2021-09-28 15:57 whitewall 阅读(113) 评论(0) 推荐(0)
摘要:一、maven项目添加插件 <dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <version>6.14.3</version> <scope>compile</scope> </dependency 阅读全文
posted @ 2021-09-26 18:34 whitewall 阅读(156) 评论(0) 推荐(0)
摘要:类似python中测试类下面的执行顺序 import org.junit.*; import static org.junit.Assert.assertEquals; public class CalculatorTest { public CalculatorTest() { System.ou 阅读全文
posted @ 2021-02-20 18:48 whitewall 阅读(384) 评论(0) 推荐(0)