08 2021 档案

摘要:随笔 - 22 文章 - 0 评论 - 0 阅读 - 32096 2、Python基础--除法、常用数学函数 整数与整数相除: >>> 2/5 0 >>> 2.0/5 0.4 >>> 2/5.0 0.4 >>> 2.0/5.0 0.4 >>> 7/2 3 >>> 7.0/2 3.5 >>> 注意:整 阅读全文
posted @ 2021-08-25 17:18 Catonce 阅读(22) 评论(0) 推荐(0) 编辑
摘要:查看cpu信息: cat /proc/cpuinfo 查看CPU的信息 linux服务器负载测试: { yes > /dev/null & } && sleep 60 && ps -ef|grep yes|awk'{print$2}'|xargs kill for i in $(seq 0 $(($ 阅读全文
posted @ 2021-08-23 12:13 Catonce 阅读(35) 评论(0) 推荐(0) 编辑
摘要:bash基本使用: vim test.sh →i→esc→:wq chmod +x ./test.sh # 使脚本具有权限 ./test.sh # 执行脚本 /bin/sh test.sh 执行脚本 LInux基本使用: ssh -p22 username@host 服务器链接,22默认端口,可不写 阅读全文
posted @ 2021-08-21 11:42 Catonce 阅读(36) 评论(0) 推荐(0) 编辑
摘要:官网:http://allure.qatools.ru/ --安装 1、Windows 下载安装包,解压 2、配置到path 3、pycharm安装allure-pytest max brew安装 brew install allure --执行 pytest xx.py --allure-feat 阅读全文
posted @ 2021-08-20 15:26 Catonce 阅读(26) 评论(0) 推荐(0) 编辑
摘要:将ssh-keys添加到git hub: 1、 git remote add origin https:/xx 2、 $ git push -u origin master 3、git clone git@xxx.git 阅读全文
posted @ 2021-08-18 19:41 Catonce 阅读(117) 评论(0) 推荐(0) 编辑
摘要:1.创建代码仓库 Step 1:先配置下我们的身份吧,这样在提交代码的时候Git就可以知道是谁提交的,命令如下: git config --global user.name "coder-pig" git config --global user.email "779878443@qq.com" 配 阅读全文
posted @ 2021-08-18 19:02 Catonce 阅读(48) 评论(0) 推荐(0) 编辑
摘要:配置全局: 用户名:git config --global user.name ""xx"" 邮箱:git config --global user.email "yy" 验证:git config --global --list ssh key生成: ssh-keygen -t rsa -C "y 阅读全文
posted @ 2021-08-18 16:54 Catonce 阅读(38) 评论(0) 推荐(0) 编辑
摘要:有“ : ”→{ } 有无“ : ”→[ ] 2个-为 [], xx:yy为{} 案例: 阅读全文
posted @ 2021-08-18 15:33 Catonce 阅读(21) 评论(0) 推荐(0) 编辑
摘要:import pytest def deb(x,y): return print("和:",x + y) def dec(x): return x + 1 @pytest.mark.xfail(reason="标记失败的用例") @pytest.mark.web def test_01(): ass 阅读全文
posted @ 2021-08-17 19:38 Catonce 阅读(43) 评论(0) 推荐(0) 编辑
摘要:unittest基础入门-1 语句覆盖: 遍历每一行代码,主要缺点无法判断逻辑 判断覆盖: 整个语句的 T/F,主要确定多个条件组合无法判断 条件覆盖: 覆盖到每个子条件的(变量级级别)主要缺陷,测试用例指数级增多 路径覆盖: 类似导图,所有路径遍历 Unittest测试框架:: 命名: 测试类:驼 阅读全文
posted @ 2021-08-16 21:41 Catonce 阅读(94) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示