自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 allure失败添加截图

conftest.py @pytest.hookimpl(tryfirst=True,hookwrapper=True) def pytest_runtest_makereport(item,call):函数名字是固定的,就指定的那些 out = yield outcome=out.get_result() if outcome.when==“call” and outcome. failed: allure. attach. file(r’c:jpg ','filename=,attachment_typ

2021-02-08 14:43:18 666

原创 jenkins添加pytest allure任务

free版 build下 D: cd D:\pyproj\learn pytest cases\test_user. py --alluredir. /result post-build action allure report path result pipine版 pipeline { agent any stages { stage (‘zhixing’){ steps { bat ‘’’ D: cd pyproj\learn_unittest pytest case\test_user. py —

2021-02-08 11:26:41 278

原创 2021-01-06

python 多进程,除了函数定义,常量(可能),其他需要放在if main里,可能是子进程继承父进程的东西 multiprocessing.Value可以用于进程间共享变量,需要target,args传过去

2021-01-06 10:20:59 200

原创 cypress JavaScript

var mysql= require(‘mysql’);导入模块 var base_module=require(’./cypress/integration’) 需要导出的函数 module. exports={a,b,c}

2020-06-23 16:14:03 327

原创 python

unittest setUp和tearDown对一个class里的所有case,每次前后都运行 setUpClass和tearDownClass必须使用@classmothod,所有case前后只运行一边

2020-06-23 15:36:23 111

原创 mysql经验

mysql -h ip -u -p -e ‘truncate armnative.games’ 清空表 mysqldump -h ip -u -p -t armnative table1 table2 > file -t是只有数据 -d是只有结构 mysql -h ip -u -p armnative <file

2020-06-23 15:17:06 169

原创 shell经验

cat report|while read line;do echo $line;done |grep -v “pass”|cut -d ‘,’ -f 1|uniq -c|gawk ‘{if ($1==6) print KaTeX parse error: Expected 'EOF', got '}' at position 2: 2}̲' 检查值 -n有值 -z无值…? 原来是-n “re”,要用双引号,不能单引号−d是否存在切为目录−f是否存在切为文件−e是否存在−s存在且非空IFS=re”,要用双引

2020-06-23 15:01:22 359

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除