上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页

2021年2月1日

赠送录播笔记

摘要: 官网:pytest.org 测试类中不能包含__init__方法 运行: 测试用例常用参数: pytest框架结构 unittest官网:https://docs.python.org/3/library/unittest.html 参数化: * 单个参数化:参数名称写在字符串中,参数值用列表传递 阅读全文

posted @ 2021-02-01 22:25 Cc01 阅读(45) 评论(0) 推荐(0) 编辑

赠送课=python基础

摘要: 1/python允许在模块里定义变量和方法 2.函数里是可以调用外部的变量 3.函数里不允许改变外部变量 4.把外部变量设置为global全局的,就可以改变他 5.通过id()方法可以打印对象的内存地址 6.方法默认返回值是None if __name__ == '__main__':入口函数 "" 阅读全文

posted @ 2021-02-01 21:41 Cc01 阅读(55) 评论(0) 推荐(0) 编辑

2021年1月31日

模块三 selenium测试用例编写

摘要: selenium学习文档 https://selenium-python.readthedocs.io/ 用例的关键要素: 例子: https://testerhome.com/ import selenium from selenium import webdriver from time imp 阅读全文

posted @ 2021-01-31 17:36 Cc01 阅读(68) 评论(0) 推荐(0) 编辑

模块一 selenium安装

摘要: 1、selenium安装 pycharm方式安装 2. chromedriver下载 下载地址: https://www.selenium.dev/documentation/en/webdriver/driver_requirements/ http://npm.taobao.org/mirror 阅读全文

posted @ 2021-01-31 09:00 Cc01 阅读(46) 评论(0) 推荐(0) 编辑

2021年1月30日

赠送课-github

摘要: 代码上传github步骤 1.选择文件右键 2.执行命令 git init (让当前目录变成一个git版本控制的目录) 3 点击√(右上角) 4 对于不要上传的文件 5 6 7 8 9 10 用命令 阅读全文

posted @ 2021-01-30 22:34 Cc01 阅读(54) 评论(0) 推荐(0) 编辑

URL汇总

摘要: ### python下载文档 https://www.python.org/ ### 博客: https://www.cnblogs.com/Neeo/p/10864123.html#testing 路飞书籍: http://book.luffycity.com/python-book/di-1-z 阅读全文

posted @ 2021-01-30 22:05 Cc01 阅读(312) 评论(0) 推荐(0) 编辑

2021年1月25日

模块六 测试报告定制

摘要: 学习文档 https://docs.qameta.io/allure/# 安装allure-pytest 生成测试报告需要两个步骤: ① 生成测试报告 pytest --alluredir=./result/1 (执行路径result/1下) ② 打开测试报告: allure serve ./res 阅读全文

posted @ 2021-01-25 21:06 Cc01 阅读(67) 评论(0) 推荐(0) 编辑

模块五 数据驱动

摘要: import pytest import yaml class TestDemo: @pytest.mark.parametrize("env", yaml.safe_load(open("./date.yaml"))) def test_demo(self,env): if "test" in e 阅读全文

posted @ 2021-01-25 20:11 Cc01 阅读(51) 评论(0) 推荐(0) 编辑

模块四 参数化用例

摘要: pytest数据参数化 参数化使用 使用string import pytest @pytest.mark.parametrize("a,b",[ (1,2), (10,20), (100,200) ]) class TestDemo: def test_param(self,a,b): print 阅读全文

posted @ 2021-01-25 19:38 Cc01 阅读(75) 评论(0) 推荐(0) 编辑

模块三 pytest测试框架

摘要: 介绍 官方文档: https://docs.pytest.org/en/stable/ 安装:pip install -U pytest 查看安装版本:pytest --version pytest安装 ① pip install pytest 升级: pip install -U pytest ② 阅读全文

posted @ 2021-01-25 17:32 Cc01 阅读(83) 评论(0) 推荐(0) 编辑

上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页

导航