作者:redrose2100 类别: 日期:2022-09-28 02:50:45 阅读:621次 消耗积分:0分
[TOC] ![](https://redrose2100.oss-cn-hangzhou.aliyuncs.com/img/7cd47362-951c-11ee-986a-0242ac110004.png) 在编写自动化脚本时,一般都要求遵循用例之间是独立的,期望在最终连跑验证的时...
作者:redrose2100 类别: 日期:2022-09-28 05:36:07 阅读:614次 消耗积分:0分
[TOC] ![](https://redrose2100.oss-cn-hangzhou.aliyuncs.com/img/7cd47362-951c-11ee-986a-0242ac110004.png) 当使用git管理脚本代码,在有些时候,我们想只跑尚未提交代码仓或者在本地已经修...
作者:redrose2100 类别: 日期:2022-09-28 07:06:51 阅读:818次 消耗积分:0分
[TOC] ![](https://redrose2100.oss-cn-hangzhou.aliyuncs.com/img/7cd47362-951c-11ee-986a-0242ac110004.png) 当存在大量测试脚本的时候,脚本的运行耗时就会变得很长,难免需要对脚本的运行...
作者:redrose2100 类别: 日期:2022-10-18 16:01:29 阅读:713次 消耗积分:0分
[TOC] ![](https://redrose2100.oss-cn-hangzhou.aliyuncs.com/img/7cd47362-951c-11ee-986a-0242ac110004.png) # 一、在Python解释器常用的调试代码 在讲解pytest执行txt格式的文档之前,首先看一...
作者:redrose2100 类别: 日期:2022-09-02 03:02:01 阅读:611次 消耗积分:0分
[TOC] ![](https://redrose2100.oss-cn-hangzhou.aliyuncs.com/img/7cd47362-951c-11ee-986a-0242ac110004.png) # 一、对异常类型进行断言 对捕获的异常进行断言主要用于在比如异常测试时,当我...
作者:redrose2100 类别: 日期:2022-09-01 15:18:27 阅读:684次 消耗积分:0分
[TOC] ![](https://redrose2100.oss-cn-hangzhou.aliyuncs.com/img/7cd47362-951c-11ee-986a-0242ac110004.png) # 一、Python中为False的数值断言均失败 在Python语言中表示False的数值即各个数据...
作者:redrose2100 类别: 日期:2022-09-01 07:53:16 阅读:662次 消耗积分:0分
[TOC] ![](https://redrose2100.oss-cn-hangzhou.aliyuncs.com/img/7cd47362-951c-11ee-986a-0242ac110004.png) Pytest测试脚本的加载原理实质上是模块的导入原理,pytest把每个测试脚本都作为一...
作者:redrose2100 类别: 日期:2022-09-01 07:52:41 阅读:671次 消耗积分:0分
[TOC] ![](https://redrose2100.oss-cn-hangzhou.aliyuncs.com/img/7cd47362-951c-11ee-986a-0242ac110004.png) # 一、指定目录或文件 pytest命令后面可以指定文件或者目录,当指定文件时,pytest...
作者:redrose2100 类别: 日期:2022-09-01 07:49:09 阅读:652次 消耗积分:0分
[TOC] ![](https://redrose2100.oss-cn-hangzhou.aliyuncs.com/img/7cd47362-951c-11ee-986a-0242ac110004.png) # 一、自动化脚本组成简介 一般来说,自动化脚本是由若干个测试套组成的,而每个...
作者:redrose2100 类别: 日期:2022-09-01 07:48:28 阅读:593次 消耗积分:0分
[TOC] ![](https://redrose2100.oss-cn-hangzhou.aliyuncs.com/img/7cd47362-951c-11ee-986a-0242ac110004.png) # 一、测试脚本文件名默认地命名规则 测试脚本文件为python文件,此外文件名命名...
作者:redrose2100 类别: 日期:2022-09-01 07:47:32 阅读:598次 消耗积分:0分
[TOC] ![](https://redrose2100.oss-cn-hangzhou.aliyuncs.com/img/7cd47362-951c-11ee-986a-0242ac110004.png) # 一、Pytest简介 Pytest是一款基于python开源的自动化测试框架,具体来说它有以下...
作者:redrose2100 类别: 日期:2022-05-15 05:18:12 阅读:806次 消耗积分:0分
[TOC] ![](https://redrose2100.oss-cn-hangzhou.aliyuncs.com/img/7cd47362-951c-11ee-986a-0242ac110004.png) ### 1、将要使用的logo图片复制到allure安装目录下 ![](https://redrose2100.oss-cn-hangzh...
作者:redrose2100 类别: 日期:2022-05-15 04:52:51 阅读:1044次 消耗积分:0分
[TOC] ![](https://redrose2100.oss-cn-hangzhou.aliyuncs.com/img/7cd47362-951c-11ee-986a-0242ac110004.png) ### 1 编写如下测试脚本 ```python def test_1(): print("in test_1") assert 1==1 def test_2...
作者:redrose2100 类别: 日期:2022-05-14 14:20:47 阅读:772次 消耗积分:0分
[TOC] ![](https://redrose2100.oss-cn-hangzhou.aliyuncs.com/img/7cd47362-951c-11ee-986a-0242ac110004.png) ### 1 确保win10环境已经正确安装java包 ![](https://redrose2100.oss-cn-hangzhou.aliyuncs.c...
作者:redrose2100 类别: 日期:2022-05-15 05:03:47 阅读:955次 消耗积分:0分
[TOC] ![](https://redrose2100.oss-cn-hangzhou.aliyuncs.com/img/7cd47362-951c-11ee-986a-0242ac110004.png) ### 1、allure可定制报告 Feature: 标注主要功能模块 Story: 标注Features功能模块下的...
作者:redrose2100 类别: 日期:2022-05-15 00:09:39 阅读:1058次 消耗积分:0分
[TOC] ![](https://redrose2100.oss-cn-hangzhou.aliyuncs.com/img/7cd47362-951c-11ee-986a-0242ac110004.png) # 1 下载Allure安装包 打开 allure的github地址https://github.com/allure-framework/allure2/r...
作者:redrose2100 类别: 日期:2022-05-13 16:50:10 阅读:710次 消耗积分:0分
[TOC] ![](https://redrose2100.oss-cn-hangzhou.aliyuncs.com/img/7cd47362-951c-11ee-986a-0242ac110004.png) ## 一、pytest执行txt文件格式的文档测试 pytest 命令本身就可以直接直接执行test*.tx...
作者:redrose2100 类别: 日期:2022-05-13 16:45:02 阅读:898次 消耗积分:0分
[TOC] ![](https://redrose2100.oss-cn-hangzhou.aliyuncs.com/img/7cd47362-951c-11ee-986a-0242ac110004.png) ## 一、猴子补丁简介 在有些场景下的测试可能需要修改全局配置或者系统变量等操...
作者:redrose2100 类别: 日期:2022-05-13 16:40:12 阅读:831次 消耗积分:0分
[TOC] ![](https://redrose2100.oss-cn-hangzhou.aliyuncs.com/img/7cd47362-951c-11ee-986a-0242ac110004.png) ## 一、测试用例级的临时路径fixture:tmp_path tmp_path 是一个testcase级别的fixture,返...
作者:redrose2100 类别: 日期:2022-05-13 16:11:16 阅读:913次 消耗积分:0分
[TOC] ![](https://redrose2100.oss-cn-hangzhou.aliyuncs.com/img/7cd47362-951c-11ee-986a-0242ac110004.png) ## 一、通过request获取模块及文件中的属性 通过request可以获取到测试文件及模块的...
上一页    1   2   3   4   5   6   7   8   9   10   11   12   13   14   15   16   17   18   19   20   21   22   23   24   25   26   27   28   29   30   31   下一页   每页 20 篇   共 612 篇