摘要: 认识Shell Shell 是一个用 C 语言编写的程序,它是用户使用 Linux 的桥梁。Shell 既是一种命令语言,又是一种程序设计语言 Shell 是指一种应用程序,这个应用程序提供了一个界面,用户通过这个界面访问操作系统内核的服务 Ken Thompson 的 sh 是第一种 Unix S 阅读全文
posted @ 2021-12-06 18:24 漓白 阅读(74) 评论(0) 推荐(0)
摘要: 功能、步骤命名 功能名称:@allure.feature("功能名称") 子功能名称:@allure.story("子功能名称") 步骤细节:@allure.step("步骤细节") 按名称选择用例 根据功能名称选择:pytest 文件名 --allure-features "功能名称" 根据子功能 阅读全文
posted @ 2021-12-06 17:47 漓白 阅读(88) 评论(0) 推荐(0)
摘要: 目录:测试自动化学习 - pytest 说明:本篇博客基于pytest 6.2.5 作用 实现前置步骤功能,方便用例调用 使用 装饰器:@pytest.fixture() import pytest @pytest.fixture() def fixture1(): print("\nfixture 阅读全文
posted @ 2021-12-06 17:47 漓白 阅读(58) 评论(0) 推荐(0)
摘要: 目录:测试自动化学习 - pytest 说明:本篇博客基于pytest 6.2.5 先看看 allure 命令的帮助文档 打开终端,输入 allure -h allure 命令的语法格式 allure [options] [command] [command options] options 列表 阅读全文
posted @ 2021-12-06 17:45 漓白 阅读(218) 评论(0) 推荐(0)
摘要: 目录:测试自动化学习 - pytest 说明:本篇博客基于pytest 6.2.5 java jdk 作用:allure运行依赖java jdk,否则运行allure时会报错 下载:java_jdk_1.8.0 allure 作用:allure服务,展示测试报告 下载:allure-commandl 阅读全文
posted @ 2021-12-06 17:44 漓白 阅读(105) 评论(0) 推荐(0)
摘要: 目录:测试自动化学习 - pytest 说明:本篇博客基于pytest 6.2.5 参数化装饰器:@pytest.mark.parametrize("参数", 参数列表, ids=用例命名) import pytest import yaml # 单个参数 @pytest.mark.parametr 阅读全文
posted @ 2021-12-06 17:40 漓白 阅读(122) 评论(0) 推荐(0)
摘要: 目录:测试自动化学习 - pytest 说明:本篇博客基于pytest 6.2.5 总览 范围 | 前置 | 后置 | 代码位置 | 运行规则 :- | :- | :- | :- | :- 模块级 | setup_moudle | teardown_moudle | 模块 | 模块调用时,运行一次 阅读全文
posted @ 2021-12-06 17:31 漓白 阅读(80) 评论(0) 推荐(0)
摘要: 目录:测试自动化学习 - pytest 说明:本篇博客基于pytest 6.2.5 用例标记 添加标签 标记:装饰器@pytest.mark.标记名 添加sikp标记 装饰器跳过:装饰器@pytest.mark.skip(reason="跳过说明") 代码跳过:代码中添加pytest.skip("跳 阅读全文
posted @ 2021-12-06 17:30 漓白 阅读(155) 评论(0) 推荐(0)
摘要: 目录:测试自动化学习 - pytest 说明:本篇博客基于pytest 6.2.5 文件:test_开头、_test结尾 类名:Test 开头 方法/函数:test_开头 pytest运行时,会自动查找符合命名规范的代码,执行用例 注意:文件使用test_了命名后,就不再执行常规python代码 原 阅读全文
posted @ 2021-12-06 17:25 漓白 阅读(137) 评论(0) 推荐(0)
摘要: 目录:测试自动化学习 - pytest 说明:本篇博客基于pytest 6.2.5 python文件:demo.py # content of test_sample.py def inc(x): return x + 1 def test_answer(): assert inc(3) == 5 阅读全文
posted @ 2021-12-06 17:25 漓白 阅读(64) 评论(0) 推荐(0)
摘要: 目录:测试自动化学习 - pytest 说明:本篇博客基于pytest 6.2.5 下载pytest 安装内容:python三方库,使用pip进行安装 pip install pytest 修改pycharm默认执行方式 修改后,pycharm可以识别pytest用例,执行时自动使用pytest运行 阅读全文
posted @ 2021-12-06 17:23 漓白 阅读(94) 评论(0) 推荐(0)
摘要: 为了确保数据的完整性和唯⼀性,关系型数 据库通过约束机制来实现目的 约束类型 约束 | 名称 | 作用 :- | :- | :- unique | 唯一性约束 | 值不可重复 not null | 非空约束 | 值不可为空 default | 默认值约束 | 写入数据时,空值设置为value pri 阅读全文
posted @ 2021-12-06 17:20 漓白 阅读(152) 评论(0) 推荐(0)
摘要: ip查询 mac:ifconfig win:ipconfig TCP与UDP TCP - 传输控制协议 UDP- 用户数据报协议 dest_ip:目的地址 src_ip:源地址 dest_port:目标端口 src_port:源端口 content:内容 知名端口(0 ~ 1023),动态端口(10 阅读全文
posted @ 2021-12-06 17:20 漓白 阅读(35) 评论(0) 推荐(0)
摘要: like 普通模糊查询 结构 :字段 like '对比表达式' %: 代替0个或多个任意字符。 _: 代替1个任意字符。 select * from stu where sname like '_强%'; // 查询stu表中学生名字第二个字是‘强’的学生信息 rlike 正则表达式 结构 : 字段 阅读全文
posted @ 2021-12-06 17:19 漓白 阅读(61) 评论(0) 推荐(0)
摘要: 下载mysql并解压 官方下载地址:https://www.mysql.com/downloads/ 解压到任意目录,不用使用中文路径 设置环境变量 依次打开[我的电脑]->[属性] ->[高级系统设置] ->[环境变量] ->编辑path环境变量 添加mysql的bin目录所在路径 添加配置文件 阅读全文
posted @ 2021-12-06 17:13 漓白 阅读(84) 评论(0) 推荐(0)