Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CMS2.0_API_AUTOMATION_TEST
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王超
CMS2.0_API_AUTOMATION_TEST
Commits
6ce9f3f2
Commit
6ce9f3f2
authored
Aug 06, 2024
by
王超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
9ac02f1c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
接口自动化测试框架规则.txt
接口自动化测试框架规则.txt
+8
-0
No files found.
接口自动化测试框架规则.txt
View file @
6ce9f3f2
...
...
@@ -40,6 +40,7 @@
#获取随机数的方法
def get_random_number(self,min,max):
return random.randint(int(min),int(max))
引用格式:${函数名(参数1,参数2)}
6.断言:
1)实际值等于预期值,关键字:equals
用法: equals: {status_code: 200}
...
...
@@ -79,5 +80,12 @@
1. 读取yaml文件报:expected ',' or '}', but got '{'
解决方式:格式异常,需改为yaml格式
10、典型示例:
1)上传文件:testcase/A3_9_API_Interconnection/import_apilist.yml,导入api接口
testcase/A3_9_API_Interconnection/create_tunnel.yml,导入变量
2)数据驱动:testcase/3_VariableManagement/creat_io_variable.yml
3)断言:testcase/3_VariableManagement/creat_io_variable.yml
testcase/1_EngineeringManagement/data_check(data_clear).yml.yml
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment