随笔分类 - 自动化测试
摘要:一、Jenkins 开发项目构建完触发=》自动化测试项目构建(触发远程构建) 测试项目的触发设置:项目=》配置=》构建触发器=》触发远程构建 根据规则拼接 webhook url: http://chentuanzhang.ml:10240/job/AutoTest/buildWithParamet
阅读全文
摘要:# 判断元素是否存在 def isElementExist(driver, element_xpath): flag = True try: driver.find_element_by_xpath(element_xpath) print("Good~找到了元素:"+element_xpath)
阅读全文
摘要:一、python测试生态库构建测试架构: 语言python + UI自动化测试框架selenium + request库 + python测试框架pytest + allure测试报告 二、Jenkins构建自动化测试调度中心(设置定时任务运行测试报告) 下载安装:https://mirrors.t
阅读全文
摘要:https://www.cnblogs.com/Ting-light/p/9770908.html 1.隐式等待,智能等待 driver.implicitly_wait(20) 2.启动 driver=webdriver.Chrome() driver.get("https://www.baidu.
阅读全文
摘要:一、下载安装网站 官网:http://chromedriver.storage.googleapis.com/index.html 国内镜像:http://npm.taobao.org/mirrors/chromedriver/ 二、常见问题 1.如果安装了Anaconda3 的python环境,则
阅读全文
摘要:一、下载安装AirtestIDE http://airtest.netease.com/ 二、下载安装python3.7 https://www.python.org/downloads/windows/ 三、pip install airtest 四、点击airtestIDE运行根据缺少的模块 p
阅读全文
摘要:一、安装jdk https://www.oracle.com/technetwork/java/javase/downloads/index.html 二、安装jmeter https://jmeter.apache.org/ 三、安装ant https://ant.apache.org/bindo
阅读全文
摘要:一.接口流程化回归测试:可以做到一个业务流接口测试,生成测试报告,测试报告可以被Jenkins触发(当有代码提交时),触发后发送测试报告。 技术工具:jmeter+ant+Jenkins+ jmeterpython插件(https://www.cnblogs.com/testway/p/995128
阅读全文
摘要:一、如何解决response内容中文乱码问题? 解决方案:添加一个BeanShell PreProcessor,然后在Script代码区域添加:prev.setDataEncoding("utf-8"); 如图: 二、如何提取response中json格式的内容? 解决方案:在请求Samper,添加
阅读全文
摘要:一.下载安装python,以及pycharm集成开发环境。 略 二.selenium grid for python 环境搭建 1.selenium最新安装包地址:http://selenium-release.storage.googleapis.com/index.html
阅读全文
摘要:自动化测试框架搭建思路: 1.需要一个网站来管理需要执行的测试脚本 2.需要一个python框架来支持编写测试脚本目前使用flask+selenium+unittest+jenkins 3.思路是每个测试脚本都属于一个python测试方法,然后通过flask路由执行到每个测试脚本。这样只要访问一个U
阅读全文

浙公网安备 33010602011771号