![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
Rita_Roseweisse
这个作者很懒,什么都没留下…
展开
-
allure失败添加截图
conftest.py@pytest.hookimpl(tryfirst=True,hookwrapper=True)def pytest_runtest_makereport(item,call):函数名字是固定的,就指定的那些out = yieldoutcome=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 · 607 阅读 · 0 评论 -
jenkins添加pytest allure任务
free版build下D:cd D:\pyproj\learnpytest cases\test_user. py --alluredir. /resultpost-build actionallure reportpath resultpipine版pipeline {agent anystages {stage (‘zhixing’){steps {bat ‘’’D:cd pyproj\learn_unittestpytest case\test_user. py —原创 2021-02-08 11:26:41 · 192 阅读 · 0 评论 -
2021-01-06
python 多进程,除了函数定义,常量(可能),其他需要放在if main里,可能是子进程继承父进程的东西 multiprocessing.Value可以用于进程间共享变量,需要target,args传过去原创 2021-01-06 10:20:59 · 125 阅读 · 0 评论 -
cypress JavaScript
var mysql= require(‘mysql’);导入模块var base_module=require(’./cypress/integration’)需要导出的函数module. exports={a,b,c}原创 2020-06-23 16:14:03 · 246 阅读 · 0 评论 -
python
unittestsetUp和tearDown对一个class里的所有case,每次前后都运行setUpClass和tearDownClass必须使用@classmothod,所有case前后只运行一边原创 2020-06-23 15:36:23 · 70 阅读 · 0 评论 -
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 · 103 阅读 · 0 评论 -
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 · 290 阅读 · 0 评论