摘要: 1)项目结构如下: 2) pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSc 阅读全文
posted @ 2022-12-23 17:24 helentester 阅读(303) 评论(0) 推荐(0) 编辑
摘要: 一、项目结构 --driverAction Assessement.py basicPageAction.py BrowserDriver.py --drivers chromedriver.md --features BaiduFanyi.feature --libraries allure-co 阅读全文
posted @ 2022-04-14 11:17 helentester 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 一直在用的webUI自动化测试框架,以前写得太粗糙了,现在细化一下。 weiUI自动化测试需要掌握以下几点:一是获取元素,java获取元素对象与python差不多,用的是findElement方法,不过我在搭建框架过程中为了实现PO模式,从万能的百度中获知还有个一更好的类FindBy,FindBy+ 阅读全文
posted @ 2018-04-07 17:33 helentester 阅读(16402) 评论(5) 推荐(2) 编辑
摘要: 这是《selenium2+python学习总结》的升级版。 1) globalparameter.py 2) log.py 3) send_mail.py 4) excel_data.py 5) Base_Page.py 6) baidu_page.py 7) test_baidu.py 8) so 阅读全文
posted @ 2017-04-10 10:01 helentester 阅读(5828) 评论(2) 推荐(3) 编辑
摘要: pytest -v -s --last-failed --alluredir=report/xml -v 打印详细的信息 -s 输出print打印信息 --last-failed 只执行上次失败的用例 --alluredir=report/xml 输出alluredir 到 report/xml 阅读全文
posted @ 2023-05-22 22:19 helentester 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 做自动化测试的时候,我们经常会出现因为环境或者数据问题导至用例失败,如何能简便快速地重新跑这些case呢?这时候我们就可以加一个很重用的config [rerun]到runer里面了. 如下所示,我们需要在runner里加入["rerun:target/failed_rerun.txt"],这样每次 阅读全文
posted @ 2023-04-09 21:26 helentester 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 承接上一篇:API 测试框架:cucumber+springBoot+restAssured 原始的cucumber report 比较粗糙,如图下: 我们可以通过cucumber-reporting 插件对报告进去优化,集成介绍如下: 1)在pom.xml里面添加cuccumber-reporti 阅读全文
posted @ 2022-12-23 22:46 helentester 阅读(503) 评论(1) 推荐(1) 编辑
摘要: 因为我装的是社区版idea, 不能安装spring initializer插件,所以只能在网站上create. GENERATE 然后下载下来即可: https://start.spring.io/ 生成的maven项目结构如下 阅读全文
posted @ 2022-12-04 21:28 helentester 阅读(27) 评论(0) 推荐(0) 编辑
摘要: new address: http://chromedriver.storage.googleapis.com/index.html (invalid)address: http://npm.taobao.org/mirrors/chromedriver 阅读全文
posted @ 2021-11-13 21:05 helentester 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 引用:https://www.jetbrains.com/help/pycharm/managing-dependencies.html 1) 2) 3) 阅读全文
posted @ 2021-11-13 19:43 helentester 阅读(145) 评论(0) 推荐(0) 编辑
摘要: BDD(Behavior Driven Development),行为驱动开发, 对应自动化测试框架,python有behave,java有cucumber, 这次记录cucumber+springboot+maven的自动化测试框架。 基本结构如下: 1)POM.xml <?xml version 阅读全文
posted @ 2020-09-11 22:14 helentester 阅读(1703) 评论(0) 推荐(0) 编辑
摘要: chrome的webdriver: http://chromedriver.storage.googleapis.com/index.html Firefox驱动下载地址为:https://github.com/mozilla/geckodriver/releases/ IE浏览器驱动下载地址为:h 阅读全文
posted @ 2019-07-04 16:09 helentester 阅读(5714) 评论(0) 推荐(0) 编辑