随笔分类 -  用例管理

摘要:之前的接口是 Api,ApiModel,ApiHelper的形式。 用ApiHelper专门处理api的数据加工,发送请求并获取返回。 后来发现这种写法在单线程没问题,多线程并发下时,apiHelper处理数据会出现数据错乱。 大致原因是apiHelper作为一个工具类,对api的所有操作都是sta 阅读全文
posted @ 2020-08-03 14:48 头鹰在学习 阅读(361) 评论(0) 推荐(0)
摘要:junit5本地run单个是没问题的,放到jenkins上面mvn执行,注解一直没有生效。 本来以为是代码的方法写错了,排查后是mvn 执行的时候没有跑@BeforeAll注解。 解决办法就是把junit engine和junit api放到dependency里面。 <dependency> <g 阅读全文
posted @ 2020-08-03 14:41 头鹰在学习 阅读(588) 评论(0) 推荐(0)
摘要:代码参考:https://github.com/googlesamples/android-testing 解释参考: https://www.jianshu.com/p/5732b4afd12f 官网教程: https://developer.android.google.cn/training/ 阅读全文
posted @ 2019-08-21 15:46 头鹰在学习 阅读(862) 评论(0) 推荐(0)
摘要:extentreport部分参考: https://blog.csdn.net/Care_sQueendom/article/details/78651950 https://testerhome.com/topics/8134 extentX(替换为klov)部分参考: https://blog. 阅读全文
posted @ 2018-05-21 18:20 头鹰在学习 阅读(1525) 评论(1) 推荐(0)
摘要:一系列的before after的操作测试 由操作日志可以得出: 按照时间线排列 1.before suite ,在多个class中写了,在执行的时候,会把每个class的beforeSuite先执行 2.beforeTest ,在多个class中写了,在执行的时候,会把每个class的before 阅读全文
posted @ 2018-05-17 11:48 头鹰在学习 阅读(660) 评论(0) 推荐(0)
摘要:1. [TestNGContentHandler] [WARN] It is strongly recommended to add "<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >" at the top of your fi 阅读全文
posted @ 2018-05-07 14:21 头鹰在学习 阅读(1015) 评论(0) 推荐(0)
摘要:参考https://blog.csdn.net/hjianhui24/article/details/50554828 之前的用例自己一笔一划写出来的,知道了数据驱动的概念之后,修改了一下用例。 成功的把一大堆用例 ,精简到1/10. 阅读全文
posted @ 2018-04-23 11:28 头鹰在学习 阅读(262) 评论(0) 推荐(0)