摘要:
Pytest 参数化(数据驱动)_小满测试-CSDN博客_pytest数据驱动
阅读全文
posted @ 2021-11-08 13:40
小黄鸭调试法
阅读(24)
推荐(0)
posted @ 2021-11-03 13:48
小黄鸭调试法
阅读(36)
推荐(0)
摘要:
使用ymal文件管理用例,好处:读取出来的是个字典 使用Excel,text管理用例,读取出来的是个String类型,还需要转化成字典格式
阅读全文
posted @ 2021-11-01 14:25
小黄鸭调试法
阅读(129)
推荐(0)
摘要:
python提取接口返回的字段值_竹狼的博客-CSDN博客_python获取接口返回值
阅读全文
posted @ 2021-10-29 13:49
小黄鸭调试法
阅读(467)
推荐(0)
摘要:
Python unittest 上一个接口值作为下一个接口的参数_SKY_PLA的博客-CSDN博客_pythontest将一个接口的结果作为另一个接口的输入参数
阅读全文
posted @ 2021-10-29 13:49
小黄鸭调试法
阅读(591)
推荐(0)
摘要:
一个Django项目就类似于是一所大学,而app就类似于大学里面的学院 Django其实就是用来一个个应用的 一个app就相当于一块独立的功能 用户功能 管理功能 Django支持任意多个功能 1.创建Django框架 django-admin startproject mysite 注:mysit
阅读全文
posted @ 2021-09-23 22:18
小黄鸭调试法
阅读(41)
推荐(0)
摘要:
conftest.py是pytest特有的本地测试文件,既可以用来设置项目级别的Fixture,也可以用来导入外部插件,还可以用来指定钩子函数 创建test_project/conftest.py 1 import pytest 2 3 @pytest.fixture() 4 def test_ur
阅读全文
posted @ 2021-09-11 20:30
小黄鸭调试法
阅读(77)
推荐(0)
摘要:
1 #功能函数 2 def multiply(a,b): 3 return a * b 4 5 # fixture 6 def setup_module(): #模块级:在当前文件中,在所有测试用例执行之前与之后执行 7 print("setup_module ") 8 9 def teardown
阅读全文
posted @ 2021-09-11 18:17
小黄鸭调试法
阅读(81)
推荐(0)
摘要:
在每次用例开始前和结束后都会执行一次 setupClass和teardownClass需要配合@classmethod装饰器一起用 模块级(setup_module/teardown_module)开始于模块始末,全局的 函数级(setup_function/teardown_function)只对
阅读全文
posted @ 2021-09-11 14:09
小黄鸭调试法
阅读(66)
推荐(0)
摘要:
特点: 定义Fixture跟定义普通函数差不多,唯一的区别就是在函数上加个装饰器@pytest.fixture() fixture命名不要以test开头,跟用例区分开。fixture是有返回值得,没有返回值默认为None。 用例调用fixture的返回值,直接就是把fixture的函数名称当做变量名
阅读全文
posted @ 2021-09-11 13:49
小黄鸭调试法
阅读(87)
推荐(0)
/*simplememory*/
#google_ad_c1, #google_ad_c2 {display:none;}
.syntaxhighlighter a, .syntaxhighlighter div, .syntaxhighlighter code, .syntaxhighlighter table, .syntaxhighlighter table td, .syntaxhighlighter table tr, .syntaxhighlighter table tbody, .syntaxhighlighter table thead, .syntaxhighlighter table caption, .syntaxhighlighter textarea {
font-size: 14px!important;
}
#home {
opacity: 0.80;
margin: 0 auto;
width: 85%;
min-width: 950px;
background-color: #fff;
padding: 30px;
margin-top: 30px;
margin-bottom: 50px;
box-shadow: 0 2px 6px rgba(100, 100, 100, 0.3);
}
#blogTitle h1 {
font-size: 30px;
font-weight: bold;
font-family: "Comic Sans MS";
line-height: 1.5em;
margin-top: 20px;
color: #515151;
}
#navList a:hover {
color: #4C9ED9;
text-decoration: none;
}
#navList a {
display: block;
width: 5em;
height: 22px;
float: left;
text-align: center;
padding-top: 18px;
}
#navigator {
font-size: 15px;
border-bottom: 1px solid #ededed;
border-top: 1px solid #ededed;
height: 50px;
clear: both;
margin-top: 25px;
}
.catListTitle {
margin-top: 21px;
margin-bottom: 10.5px;
text-align: left;
border-left: 10px solid rgba(82, 168, 236, 0.8);
padding: 10px 0 14px 10px;
background-color: #f5f5f5;
}
#ad_under_post_holder #google_ad_c1,#google_ad_c2{
display: none !important;
}
body {
color: #000;
background: url(https://i.cnblogs.com/albums/edit/2011852) fixed;
background-size: 100%;
background-repeat: no-repeat;
font-family: "Helvetica Neue",Helvetica,Verdana,Arial,sans-serif;
font-size: 12px;
min-height: 101%;
}
#topics .postTitle {
border: 0px;
font-size: 200%;
font-weight: bold;
float: left;
line-height: 1.5;
width: 100%;
padding-left: 5px;
}
div.commentform p{
margin-bottom:10px;
}
.comment_btn {
padding: 5px 10px;
height: 35px;
width: 90px;
border: 0 none;
border-radius: 5px;
background: #ddd;
color: #999;
cursor:pointer;
font-family: "Lato", Helvetica Neue, Helvetica, Microsoft Yahei, 宋体, Arial, sans-serif;
text-shadow: 0 0 1px #fff;
display: inline !important;
}
.comment_btn:hover{
padding: 5px 10px;
height: 35px;
width: 90px;
border: 0 none;
border-radius: 5px;
background: #258fb8;
color: white;
cursor:pointer;
font-family: "Lato", Helvetica Neue, Helvetica, Microsoft Yahei, 宋体, Arial, sans-serif;
text-shadow: 0 0 1px #fff;
display: inline !important;
}
#commentform_title {
background-image:none;
background-repeat:no-repeat;
margin-bottom:10px;
padding:0;
font-size:24px;
}
#commentbox_opt,#commentbox_opt + p {
text-align:center;
}
.commentbox_title {
width: 100%;
}
#tbCommentBody {
font-family:'Microsoft Yahei', Microsoft Yahei, 宋体, sans-serif;
margin-top:10px;
max-width:100%;
min-width:100%;
background:white;
color:#333;
border:2px solid #fff;
box-shadow:inset 0 0 8px #aaa;
// padding:10px;
height:250px;
font-size:14px;
min-height:120px;
}
.feedbackItem {
font-size:14px;
line-height:24px;
margin:10px 0;
padding:20px;
background:#F2F2F2;
box-shadow:0 0 5px #aaa;
}
.feedbackListSubtitle {
font-weight:normal;
}
#blog-comments-placeholder, #comment_form {
padding: 20px;
background: #fff;
-webkit-box-shadow: 1px 2px 3px #ddd;
box-shadow: 1px 2px 3px #ddd;
margin-bottom: 50px;
}
.feedback_area_title {
margin-bottom: 15px;
font-size: 1.8em;
}
.feedbackItem {
border-bottom: 1px solid #CCC;
margin-bottom: 10px;
padding: 5px;
background: rgb(248, 248, 248);
}
.color_shine {background: rgb(226, 242, 255);}
.feedbackItem:hover {-webkit-animation-name: color_shine;-webkit-animation-duration: 2s;-webkit-animation-iteration-count: infinite;}
#comment_form .title {
font-weight: normal;
margin-bottom: 15px;
}