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
9ac02f1c
Commit
9ac02f1c
authored
Aug 06, 2024
by
王超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增互联-api模块
parent
6a2d479c
Show whitespace changes
Inline
Side-by-side
Showing
44 changed files
with
936 additions
and
111 deletions
+936
-111
write_cms_io_var.yml
testcase/5_DataManagement/write_cms_io_var.yml
+793
-11
abnormal_import_json.yml
testcase/A3_9_API_Interconnection/abnormal_import_json.yml
+2
-2
abnormal_import_xml.yml
testcase/A3_9_API_Interconnection/abnormal_import_xml.yml
+1
-1
copy_api.yml
testcase/A3_9_API_Interconnection/copy_api.yml
+1
-1
create_api.yml
testcase/A3_9_API_Interconnection/create_api.yml
+1
-1
create_api_interconnection.yml
...e/A3_9_API_Interconnection/create_api_interconnection.yml
+1
-1
create_formdata_parameters.yml
...e/A3_9_API_Interconnection/create_formdata_parameters.yml
+1
-1
create_global_parameters.yml
...ase/A3_9_API_Interconnection/create_global_parameters.yml
+1
-1
create_header_parameters.yml
...ase/A3_9_API_Interconnection/create_header_parameters.yml
+4
-4
create_json_parameters.yml
testcase/A3_9_API_Interconnection/create_json_parameters.yml
+7
-7
create_param_parameters.yml
...case/A3_9_API_Interconnection/create_param_parameters.yml
+1
-1
create_response_json_parameters.yml
...9_API_Interconnection/create_response_json_parameters.yml
+6
-6
create_response_xml_parameters.yml
..._9_API_Interconnection/create_response_xml_parameters.yml
+8
-8
create_tunnel.yml
testcase/A3_9_API_Interconnection/create_tunnel.yml
+1
-1
create_xml_parameters.yml
testcase/A3_9_API_Interconnection/create_xml_parameters.yml
+9
-8
debug_api.yml
testcase/A3_9_API_Interconnection/debug_api.yml
+2
-1
delete_api.yml
testcase/A3_9_API_Interconnection/delete_api.yml
+2
-1
delete_api_interconnection.yml
...e/A3_9_API_Interconnection/delete_api_interconnection.yml
+2
-1
delete_apilist.yml
testcase/A3_9_API_Interconnection/delete_apilist.yml
+2
-1
delete_param_parameters.yml
...case/A3_9_API_Interconnection/delete_param_parameters.yml
+1
-1
export_apilist.yml
testcase/A3_9_API_Interconnection/export_apilist.yml
+2
-1
get_api_info.yml
testcase/A3_9_API_Interconnection/get_api_info.yml
+2
-1
get_apilist.yml
testcase/A3_9_API_Interconnection/get_apilist.yml
+1
-1
get_global_parameters.yml
testcase/A3_9_API_Interconnection/get_global_parameters.yml
+1
-1
import_apilist.yml
testcase/A3_9_API_Interconnection/import_apilist.yml
+3
-2
import_json.yml
testcase/A3_9_API_Interconnection/import_json.yml
+2
-2
import_xml.yml
testcase/A3_9_API_Interconnection/import_xml.yml
+1
-1
move_param_parameters.yml
testcase/A3_9_API_Interconnection/move_param_parameters.yml
+3
-2
post_api.yml
testcase/A3_9_API_Interconnection/post_api.yml
+53
-0
rename_api.yml
testcase/A3_9_API_Interconnection/rename_api.yml
+1
-1
rename_api_interconnection.yml
...e/A3_9_API_Interconnection/rename_api_interconnection.yml
+1
-1
save_api_info.yml
testcase/A3_9_API_Interconnection/save_api_info.yml
+2
-1
start_and_stop_query_parameters.yml
...9_API_Interconnection/start_and_stop_query_parameters.yml
+3
-2
switch_json_type.yml
testcase/A3_9_API_Interconnection/switch_json_type.yml
+2
-2
switch_raw_type.yml
testcase/A3_9_API_Interconnection/switch_raw_type.yml
+2
-2
switch_xml_type.yml
testcase/A3_9_API_Interconnection/switch_xml_type.yml
+1
-1
switch_xwwwfromurlencode_type.yml
...3_9_API_Interconnection/switch_xwwwfromurlencode_type.yml
+2
-2
test_api_interconnection.yml
...ase/A3_9_API_Interconnection/test_api_interconnection.yml
+2
-1
test_api_run.py
testcase/A3_9_API_Interconnection/test_api_run.py
+1
-0
updata_fromdata_parameters.yml
...e/A3_9_API_Interconnection/updata_fromdata_parameters.yml
+1
-1
update_api_interconnection.yml
...e/A3_9_API_Interconnection/update_api_interconnection.yml
+1
-1
update_param_parameters.yml
...case/A3_9_API_Interconnection/update_param_parameters.yml
+1
-1
view_references.yml
testcase/A3_9_API_Interconnection/view_references.yml
+2
-1
write_var.yml
testcase/A3_9_API_Interconnection/write_var.yml
+0
-24
No files found.
testcase/5_DataManagement/write_cms_io_var.yml
View file @
9ac02f1c
-
name
:
下发A1=true
-
name
:
创建api互联项
base_url
:
${get_base_url(cms_url)}
request
:
url
:
/api/v1/apiserviceconfig
method
:
post
json
:
{
"
id"
:
null
,
"
name"
:
"
api调试接口_${get_random_number(1000,9999)}"
,
"
connectionType"
:
3
,
"
databaseType"
:
null
,
"
authenticationType"
:
null
,
"
server"
:
"
"
,
"
port"
:
3306
,
"
database"
:
"
"
,
"
databasePath"
:
"
"
,
"
userName"
:
"
"
,
"
password"
:
"
"
,
"
changedPassword"
:
true
,
"
mqttType"
:
null
,
"
pushType"
:
null
,
"
timingPeriod"
:
null
,
"
changingPeriod"
:
null
,
"
cloudDeviceId"
:
"
"
,
"
originalSecret"
:
"
"
,
"
apiType"
:
1
,
"
url"
:
"
http://127.0.0.1:18000"
,
"
timeoutDuration"
:
5
,
"
retryCount"
:
5
}
headers
:
X-Project
:
${get_extract_data(x_project)}
extract
:
api_intern_id
:
id
validate
:
-
equals
:
{
status_code
:
200
}
-
equals
:
{
timeoutDuration
:
5
}
-
equals
:
{
retryCount
:
5
}
-
equals
:
{
url
:
http
:
//127.0.0.1
:
18000
}
-
name
:
创建api接口
base_url
:
${get_base_url(cms_url)}
request
:
url
:
/api/v1/apiconfig/empty/${get_extract_data(api_intern_id)}
method
:
post
headers
:
X-Project
:
${get_extract_data(x_project)}
extract
:
api_id
:
id
validate
:
-
equals
:
{
status_code
:
200
}
-
equals
:
{
method
:
Get
}
-
equals
:
{
requestContentType
:
multipart/form-data
}
-
equals
:
{
responseContentType
:
application/json
}
-
equals
:
{
valid
:
true
}
-
name
:
切换到json类型
base_url
:
${get_base_url(cms_url)}
request
:
url
:
/api/v1/apiconfig/${get_extract_data(api_id)}
method
:
put
json
:
{
"
name"
:
"
post_test"
,
"
description"
:
null
,
"
method"
:
"
Post"
,
"
url"
:
"
/api/v1/simulation/json"
,
"
requestContentType"
:
"
application/json"
,
"
requestBodyExample"
:
null
,
"
responseContentType"
:
"
application/json"
,
"
responseBodyExample"
:
null
,
"
id"
:
"
${get_extract_data(api_id)}"
}
headers
:
X-Project
:
${get_extract_data(x_project)}
validate
:
-
equals
:
status_code
:
200
-
equals
:
method
:
Post
-
equals
:
requestContentType
:
application/json
-
equals
:
responseContentType
:
application/json
-
equals
:
valid
:
true
-
name
:
json参数:添加第一个节点,类型为object
base_url
:
${get_base_url(cms_url)}
request
:
url
:
/api/v1/apiparameter
method
:
post
json
:
{
"
name"
:
"
ROOT"
,
"
dataType"
:
"
object"
,
"
value"
:
"
"
,
"
valueExample"
:
"
"
,
"
description"
:
"
"
,
"
required"
:
false
,
"
apiId"
:
"
${get_extract_data(api_id)}"
,
"
parentId"
:
null
,
"
request"
:
true
,
"
position"
:
"
body"
,
"
attributesEnabled"
:
true
,
"
attributes"
:
[
]
}
headers
:
X-Project
:
${get_extract_data(x_project)}
extract
:
param1_id
:
id
validate
:
-
equals
:
status_code
:
200
-
equals
:
name
:
ROOT
-
equals
:
position
:
Body
-
equals
:
dataType
:
object
-
name
:
json参数:添加第二个节点,类型为int
base_url
:
${get_base_url(cms_url)}
request
:
url
:
/api/v1/apiparameter
method
:
post
json
:
{
"
name"
:
"
json_node2"
,
"
dataType"
:
"
int"
,
"
value"
:
"
int1"
,
"
valueExample"
:
"
"
,
"
description"
:
"
"
,
"
required"
:
true
,
"
apiId"
:
"
${get_extract_data(api_id)}"
,
"
parentId"
:
"
${get_extract_data(param1_id)}"
,
"
request"
:
true
,
"
position"
:
"
body"
,
"
attributesEnabled"
:
true
,
"
attributes"
:
[
]
}
headers
:
X-Project
:
${get_extract_data(x_project)}
extract
:
param2_id
:
id
validate
:
-
equals
:
status_code
:
200
-
equals
:
name
:
json_node2
-
equals
:
position
:
Body
-
equals
:
dataType
:
int
-
name
:
json参数:添加第三个节点,类型为float
base_url
:
${get_base_url(cms_url)}
request
:
url
:
/api/v1/apiparameter
method
:
post
json
:
{
"
name"
:
"
json_node3"
,
"
dataType"
:
"
float"
,
"
value"
:
"
float1"
,
"
valueExample"
:
"
"
,
"
description"
:
"
"
,
"
required"
:
true
,
"
apiId"
:
"
${get_extract_data(api_id)}"
,
"
parentId"
:
"
${get_extract_data(param1_id)}"
,
"
request"
:
true
,
"
position"
:
"
body"
,
"
attributesEnabled"
:
true
,
"
attributes"
:
[
]
}
headers
:
X-Project
:
${get_extract_data(x_project)}
extract
:
param3_id
:
id
validate
:
-
equals
:
status_code
:
200
-
equals
:
name
:
json_node3
-
equals
:
position
:
Body
-
equals
:
dataType
:
float
-
name
:
json参数:添加第四个节点,类型为boolean
base_url
:
${get_base_url(cms_url)}
request
:
url
:
/api/v1/apiparameter
method
:
post
json
:
{
"
name"
:
"
json_node4"
,
"
dataType"
:
"
boolean"
,
"
value"
:
"
bool1"
,
"
valueExample"
:
"
"
,
"
description"
:
"
"
,
"
required"
:
true
,
"
apiId"
:
"
${get_extract_data(api_id)}"
,
"
parentId"
:
"
${get_extract_data(param1_id)}"
,
"
request"
:
true
,
"
position"
:
"
body"
,
"
attributesEnabled"
:
true
,
"
attributes"
:
[
]
}
headers
:
X-Project
:
${get_extract_data(x_project)}
extract
:
param4_id
:
id
validate
:
-
equals
:
status_code
:
200
-
equals
:
name
:
json_node4
-
equals
:
position
:
Body
-
equals
:
dataType
:
boolean
-
name
:
json参数:添加第五个节点,类型为array
base_url
:
${get_base_url(cms_url)}
request
:
url
:
/api/v1/apiparameter
method
:
post
json
:
{
"
name"
:
"
json_node5"
,
"
dataType"
:
"
array"
,
"
value"
:
"
"
,
"
valueExample"
:
"
"
,
"
description"
:
"
"
,
"
required"
:
true
,
"
apiId"
:
"
${get_extract_data(api_id)}"
,
"
parentId"
:
"
${get_extract_data(param1_id)}"
,
"
request"
:
true
,
"
position"
:
"
body"
,
"
attributesEnabled"
:
true
,
"
attributes"
:
[
]
}
headers
:
X-Project
:
${get_extract_data(x_project)}
extract
:
param5_id
:
id
validate
:
-
equals
:
status_code
:
200
-
equals
:
name
:
json_node5
-
equals
:
position
:
Body
-
equals
:
dataType
:
array
-
name
:
json参数:添加第六个节点,类型为string,关联变量
base_url
:
${get_base_url(cms_url)}
request
:
url
:
/api/v1/apiparameter
method
:
post
json
:
{
"
name"
:
"
ITEMS"
,
"
dataType"
:
"
string"
,
"
value"
:
"
str1"
,
"
valueExample"
:
"
"
,
"
description"
:
"
"
,
"
required"
:
true
,
"
apiId"
:
"
${get_extract_data(api_id)}"
,
"
parentId"
:
"
${get_extract_data(param5_id)}"
,
"
request"
:
true
,
"
position"
:
"
body"
,
"
attributesEnabled"
:
true
,
"
attributes"
:
[
]
}
headers
:
X-Project
:
${get_extract_data(x_project)}
extract
:
param6_id
:
id
validate
:
-
equals
:
status_code
:
200
-
equals
:
name
:
ITEMS
-
equals
:
position
:
Body
-
equals
:
dataType
:
string
-
name
:
响应参数:添加第一个参数,类型为object
base_url
:
${get_base_url(cms_url)}
request
:
url
:
/api/v1/apiparameter
method
:
post
json
:
{
"
name"
:
"
ROOT"
,
"
dataType"
:
"
object"
,
"
value"
:
"
"
,
"
valueExample"
:
"
"
,
"
description"
:
"
"
,
"
required"
:
false
,
"
apiId"
:
"
${get_extract_data(api_id)}"
,
"
parentId"
:
null
,
"
request"
:
false
,
"
position"
:
"
body"
,
"
attributesEnabled"
:
true
,
"
attributes"
:
[
]
}
headers
:
X-Project
:
${get_extract_data(x_project)}
extract
:
response1_id
:
id
validate
:
-
equals
:
status_code
:
200
-
equals
:
name
:
ROOT
-
equals
:
position
:
Body
-
equals
:
dataType
:
object
-
name
:
响应参数:添加第二个节点,类型为int
base_url
:
${get_base_url(cms_url)}
request
:
url
:
/api/v1/apiparameter
method
:
post
json
:
{
"
name"
:
"
response_node2"
,
"
dataType"
:
"
int"
,
"
value"
:
"
int2"
,
"
valueExample"
:
"
"
,
"
description"
:
"
"
,
"
required"
:
true
,
"
apiId"
:
"
${get_extract_data(api_id)}"
,
"
parentId"
:
"
${get_extract_data(response1_id)}"
,
"
request"
:
false
,
"
position"
:
"
body"
,
"
attributesEnabled"
:
true
,
"
attributes"
:
[
]
}
headers
:
X-Project
:
${get_extract_data(x_project)}
extract
:
response2_id
:
id
validate
:
-
equals
:
status_code
:
200
-
equals
:
name
:
response_node2
-
equals
:
position
:
Body
-
equals
:
dataType
:
int
-
name
:
响应参数:添加第三个节点,类型为float
base_url
:
${get_base_url(cms_url)}
request
:
url
:
/api/v1/apiparameter
method
:
post
json
:
{
"
name"
:
"
response_node3"
,
"
dataType"
:
"
float"
,
"
value"
:
"
float2"
,
"
valueExample"
:
"
"
,
"
description"
:
"
"
,
"
required"
:
true
,
"
apiId"
:
"
${get_extract_data(api_id)}"
,
"
parentId"
:
"
${get_extract_data(response1_id)}"
,
"
request"
:
false
,
"
position"
:
"
body"
,
"
attributesEnabled"
:
true
,
"
attributes"
:
[
]
}
headers
:
X-Project
:
${get_extract_data(x_project)}
extract
:
response3_id
:
id
validate
:
-
equals
:
status_code
:
200
-
equals
:
name
:
response_node3
-
equals
:
position
:
Body
-
equals
:
dataType
:
float
-
name
:
响应参数:添加第四个节点,类型为boolean
base_url
:
${get_base_url(cms_url)}
request
:
url
:
/api/v1/apiparameter
method
:
post
json
:
{
"
name"
:
"
response_node4"
,
"
dataType"
:
"
boolean"
,
"
value"
:
"
bool2"
,
"
valueExample"
:
"
"
,
"
description"
:
"
"
,
"
required"
:
true
,
"
apiId"
:
"
${get_extract_data(api_id)}"
,
"
parentId"
:
"
${get_extract_data(response1_id)}"
,
"
request"
:
false
,
"
position"
:
"
body"
,
"
attributesEnabled"
:
true
,
"
attributes"
:
[
]
}
headers
:
X-Project
:
${get_extract_data(x_project)}
extract
:
response4_id
:
id
validate
:
-
equals
:
status_code
:
200
-
equals
:
name
:
response_node4
-
equals
:
position
:
Body
-
equals
:
dataType
:
boolean
-
name
:
响应参数:添加第五个节点,类型为array
base_url
:
${get_base_url(cms_url)}
request
:
url
:
/api/v1/apiparameter
method
:
post
json
:
{
"
name"
:
"
response_node5"
,
"
dataType"
:
"
array"
,
"
value"
:
"
"
,
"
valueExample"
:
"
"
,
"
description"
:
"
"
,
"
required"
:
true
,
"
apiId"
:
"
${get_extract_data(api_id)}"
,
"
parentId"
:
"
${get_extract_data(response1_id)}"
,
"
request"
:
false
,
"
position"
:
"
body"
,
"
attributesEnabled"
:
true
,
"
attributes"
:
[
]
}
headers
:
X-Project
:
${get_extract_data(x_project)}
extract
:
response5_id
:
id
validate
:
-
equals
:
status_code
:
200
-
equals
:
name
:
response_node5
-
equals
:
position
:
Body
-
equals
:
dataType
:
array
-
name
:
响应参数:添加第六个节点,类型为string,关联变量
base_url
:
${get_base_url(cms_url)}
request
:
url
:
/api/v1/apiparameter
method
:
post
json
:
{
"
name"
:
"
ITEMS"
,
"
dataType"
:
"
string"
,
"
value"
:
"
str2"
,
"
valueExample"
:
"
"
,
"
description"
:
"
"
,
"
required"
:
true
,
"
apiId"
:
"
${get_extract_data(api_id)}"
,
"
parentId"
:
"
${get_extract_data(response5_id)}"
,
"
request"
:
false
,
"
position"
:
"
body"
,
"
attributesEnabled"
:
true
,
"
attributes"
:
[
]
}
headers
:
X-Project
:
${get_extract_data(x_project)}
extract
:
response6_id
:
id
validate
:
-
equals
:
status_code
:
200
-
equals
:
name
:
ITEMS
-
equals
:
position
:
Body
-
equals
:
dataType
:
string
-
name
:
下发变量
base_url
:
${get_base_url(cms_url)}
base_url
:
${get_base_url(cms_url)}
request
:
request
:
url
:
/api/v1/variable/setvalues
url
:
/api/v1/variable/setvalues
method
:
post
method
:
post
json
:
json
:
A1
:
"
true"
{
"
ResponseStatusCode"
:
"
200"
,
"
ResponseContentType"
:
"
application/json"
,
"
ResponseBody"
:
"
{
\"
response_node2
\"
:70,
\"
response_node3
\"
:80.456,
\"
response_node4
\"
:true,
\"
response_node5
\"
:[
\"
响应体
\"
]}"
,
"
int1"
:
"
10"
,
"
float1"
:
"
20.456"
,
"
bool1"
:
"
true"
,
"
str1"
:
"
请求体"
}
headers
:
headers
:
X-Project
:
${get_extract_data(x_project)}
X-Project
:
${get_extract_data(x_project)}
Authorization
:
Bearer ${get_extract_data(Authorization)}
Authorization
:
Bearer ${get_extract_data(Authorization)}
...
@@ -14,13 +512,213 @@
...
@@ -14,13 +512,213 @@
-
equals
:
-
equals
:
allSuccess
:
true
allSuccess
:
true
-
name
:
下发A1=false
-
name
:
调试
base_url
:
${get_base_url(cms_url)}
base_url
:
${get_base_url(cms_url)}
request
:
request
:
url
:
/api/v1/variable/setvalues
url
:
/api/v1/interconnectionapicall/debug
method
:
post
json
:
{
"
id"
:
"
${get_extract_data(api_id)}"
,
"
apiServiceId"
:
"
${get_extract_data(api_intern_id)}"
,
"
name"
:
"
post_test"
,
"
description"
:
null
,
"
method"
:
"
Post"
,
"
url"
:
"
/api/v1/simulation/json"
,
"
requestContentType"
:
"
application/json"
,
"
requestBodyExample"
:
null
,
"
responseContentType"
:
"
application/json"
,
"
responseBodyExample"
:
null
,
"
sort"
:
1
,
"
mocked"
:
false
,
"
valid"
:
true
,
"
requestHeaders"
:
[
{
"
apiId"
:
"
${get_extract_data(api_id)}"
,
"
parentId"
:
null
,
"
request"
:
true
,
"
systematic"
:
true
,
"
disabled"
:
false
,
"
attributesEnabled"
:
false
,
"
nameWihtPrefix"
:
"
Request_Header_Content-Type"
,
"
id"
:
"
00000000-0000-0000-0000-000000000000"
,
"
position"
:
"
Header"
,
"
name"
:
"
Content-Type"
,
"
dataType"
:
"
string"
,
"
value"
:
"
\"
application/json
\"
"
,
"
valueExample"
:
null
,
"
description"
:
null
,
"
sort"
:
0
,
"
required"
:
true
,
"
treePath"
:
null
,
"
_X_ROW_KEY"
:
"
row_243"
}
],
"
pathVariables"
:
[
],
"
queryParameters"
:
[
],
"
requestBodyTree"
:
[
{
"
children"
:
[
{
"
children"
:
[
],
"
attributes"
:
[
],
"
apiId"
:
"
${get_extract_data(api_id)}"
,
"
parentId"
:
"
${get_extract_data(param1_id)}"
,
"
request"
:
true
,
"
systematic"
:
false
,
"
disabled"
:
false
,
"
attributesEnabled"
:
true
,
"
nameWihtPrefix"
:
"
Request_Body_json_node2"
,
"
id"
:
"
${get_extract_data(param2_id)}"
,
"
position"
:
"
Body"
,
"
name"
:
"
json_node2"
,
"
dataType"
:
"
int"
,
"
value"
:
"
int1"
,
"
valueExample"
:
"
"
,
"
description"
:
"
"
,
"
sort"
:
1
,
"
required"
:
true
,
"
treePath"
:
null
,
"
_X_ROW_KEY"
:
"
row_245"
},
{
"
children"
:
[
],
"
attributes"
:
[
],
"
apiId"
:
"
${get_extract_data(api_id)}"
,
"
parentId"
:
"
${get_extract_data(param1_id)}"
,
"
request"
:
true
,
"
systematic"
:
false
,
"
disabled"
:
false
,
"
attributesEnabled"
:
true
,
"
nameWihtPrefix"
:
"
Request_Body_json_node3"
,
"
id"
:
"
${get_extract_data(param3_id)}"
,
"
position"
:
"
Body"
,
"
name"
:
"
json_node3"
,
"
dataType"
:
"
float"
,
"
value"
:
"
float1"
,
"
valueExample"
:
"
"
,
"
description"
:
"
"
,
"
sort"
:
2
,
"
required"
:
true
,
"
treePath"
:
null
,
"
_X_ROW_KEY"
:
"
row_246"
},
{
"
children"
:
[
],
"
attributes"
:
[
],
"
apiId"
:
"
${get_extract_data(api_id)}"
,
"
parentId"
:
"
${get_extract_data(param1_id)}"
,
"
request"
:
true
,
"
systematic"
:
false
,
"
disabled"
:
false
,
"
attributesEnabled"
:
true
,
"
nameWihtPrefix"
:
"
Request_Body_json_node4"
,
"
id"
:
"
${get_extract_data(param4_id)}"
,
"
position"
:
"
Body"
,
"
name"
:
"
json_node4"
,
"
dataType"
:
"
boolean"
,
"
value"
:
"
bool1"
,
"
valueExample"
:
"
"
,
"
description"
:
"
"
,
"
sort"
:
3
,
"
required"
:
true
,
"
treePath"
:
null
,
"
_X_ROW_KEY"
:
"
row_247"
},
{
"
children"
:
[
{
"
children"
:
[
],
"
attributes"
:
[
],
"
apiId"
:
"
${get_extract_data(api_id)}"
,
"
parentId"
:
"
${get_extract_data(param1_id)}"
,
"
request"
:
true
,
"
systematic"
:
false
,
"
disabled"
:
false
,
"
attributesEnabled"
:
true
,
"
nameWihtPrefix"
:
"
Request_Body_ITEMS"
,
"
id"
:
"
${get_extract_data(param5_id)}"
,
"
position"
:
"
Body"
,
"
name"
:
"
ITEMS"
,
"
dataType"
:
"
string"
,
"
value"
:
"
str1"
,
"
valueExample"
:
"
"
,
"
description"
:
"
"
,
"
sort"
:
1
,
"
required"
:
true
,
"
treePath"
:
null
,
"
_X_ROW_KEY"
:
"
row_249"
}
],
"
attributes"
:
[
],
"
apiId"
:
"
${get_extract_data(api_id)}"
,
"
parentId"
:
"
${get_extract_data(param5_id)}"
,
"
request"
:
true
,
"
systematic"
:
false
,
"
disabled"
:
false
,
"
attributesEnabled"
:
true
,
"
nameWihtPrefix"
:
"
Request_Body_json_node5"
,
"
id"
:
"
${get_extract_data(param6_id)}"
,
"
position"
:
"
Body"
,
"
name"
:
"
json_node5"
,
"
dataType"
:
"
array"
,
"
value"
:
"
"
,
"
valueExample"
:
"
"
,
"
description"
:
"
"
,
"
sort"
:
4
,
"
required"
:
true
,
"
treePath"
:
null
,
"
_X_ROW_KEY"
:
"
row_248"
}
],
"
attributes"
:
[
],
"
apiId"
:
"
${get_extract_data(api_id)}"
,
"
parentId"
:
null
,
"
request"
:
true
,
"
systematic"
:
false
,
"
disabled"
:
false
,
"
attributesEnabled"
:
true
,
"
nameWihtPrefix"
:
"
Request_Body_ROOT"
,
"
id"
:
"
${get_extract_data(param1_id)}"
,
"
position"
:
"
Body"
,
"
name"
:
"
ROOT"
,
"
dataType"
:
"
object"
,
"
value"
:
"
"
,
"
valueExample"
:
"
"
,
"
description"
:
"
"
,
"
sort"
:
1
,
"
required"
:
false
,
"
treePath"
:
null
,
"
_X_ROW_KEY"
:
"
row_244"
}
],
"
globalParameters"
:
[
]
}
headers
:
X-Project
:
${get_extract_data(x_project)}
validate
:
-
equals
:
{
status_code
:
200
}
-
equals
:
{
isSuccess
:
true
}
-
equals
:
{
statusCode
:
200
}
-
equals
:
{
method
:
Post
}
-
equals
:
{
url
:
"
http://127.0.0.1:18000/api/v1/simulation/json"
}
-
equals
:
{
requestContentType
:
application/json
}
-
equals
:
{
requestBody
:
"
{
\"
json_node2
\"
:10,
\"
json_node3
\"
:20.456,
\"
json_node4
\"
:true,
\"
json_node5
\"
:[
\"
请求体
\"
]}"
}
-
equals
:
{
networkError
:
false
}
-
equals
:
{
responseContentType
:
application/json
}
-
equals
:
{
responseBody
:
"
{
\"
response_node2
\"
:70,
\"
response_node3
\"
:80.456,
\"
response_node4
\"
:true,
\"
response_node5
\"
:[
\"
响应体
\"
]}"
}
-
equals
:
{
int2
:
70
}
-
equals
:
{
float2
:
80.456
}
-
equals
:
{
str2
:
"
响应体"
}
-
name
:
检验响应结果是否写入变量(int2变量)
base_url
:
${get_base_url(cms_url)}
request
:
url
:
/api/v1/variable/getvalues
method
:
post
method
:
post
json
:
json
:
A1
:
"
false"
-
int2
headers
:
headers
:
X-Project
:
${get_extract_data(x_project)}
X-Project
:
${get_extract_data(x_project)}
Authorization
:
Bearer ${get_extract_data(Authorization)}
Authorization
:
Bearer ${get_extract_data(Authorization)}
...
@@ -28,15 +726,15 @@
...
@@ -28,15 +726,15 @@
-
equals
:
-
equals
:
status_code
:
200
status_code
:
200
-
equals
:
-
equals
:
allSuccess
:
true
int2
:
"
70"
-
name
:
下发A1=true
-
name
:
检验响应结果是否写入变量(float2变量)
base_url
:
${get_base_url(cms_url)}
base_url
:
${get_base_url(cms_url)}
request
:
request
:
url
:
/api/v1/variable/
s
etvalues
url
:
/api/v1/variable/
g
etvalues
method
:
post
method
:
post
json
:
json
:
A1
:
"
true"
-
float2
headers
:
headers
:
X-Project
:
${get_extract_data(x_project)}
X-Project
:
${get_extract_data(x_project)}
Authorization
:
Bearer ${get_extract_data(Authorization)}
Authorization
:
Bearer ${get_extract_data(Authorization)}
...
@@ -44,4 +742,89 @@
...
@@ -44,4 +742,89 @@
-
equals
:
-
equals
:
status_code
:
200
status_code
:
200
-
equals
:
-
equals
:
allSuccess
:
true
float2
:
"
80.456"
\ No newline at end of file
-
name
:
检验响应结果是否写入变量(bool2变量)
base_url
:
${get_base_url(cms_url)}
request
:
url
:
/api/v1/variable/getvalues
method
:
post
json
:
-
bool2
headers
:
X-Project
:
${get_extract_data(x_project)}
Authorization
:
Bearer ${get_extract_data(Authorization)}
validate
:
-
equals
:
status_code
:
200
-
equals
:
bool2
:
"
True"
-
name
:
检验响应结果是否写入变量(str2变量)
base_url
:
${get_base_url(cms_url)}
request
:
url
:
/api/v1/variable/getvalues
method
:
post
json
:
-
str2
headers
:
X-Project
:
${get_extract_data(x_project)}
Authorization
:
Bearer ${get_extract_data(Authorization)}
validate
:
-
equals
:
status_code
:
200
-
equals
:
str2
:
"
响应体"
-
name
:
校验"api接口调用日志"表是否存入数据
base_url
:
${get_base_url(cms_url)}
request
:
url
:
/api/v1/data/original
method
:
post
json
:
{
"
dataSetId"
:
"
177f7a0a-6512-4427-a52c-81362183e7f5"
,
"
tableName"
:
"
API接口调用日志"
,
"
limit"
:
500
}
headers
:
X-Project
:
${get_extract_data(x_project)}
validate
:
-
equals
:
{
status_code
:
200
}
-
equals
:
{
接口名称
:
"
post_test"
}
-
equals
:
{
请求方法
:
"
Post"
}
-
equals
:
{
请求地址
:
"
http://127.0.0.1:18000/api/v1/simulation/json"
}
-
equals
:
{
请求Headers
:
"
{
\"
Content-Type
\"
:
\"
application/json
\"
}"
}
-
equals
:
{
请求ContentType
:
"
application/json"
}
-
equals
:
{
请求Body
:
"
{
\"
json_node2
\"
:10,
\"
json_node3
\"
:20.456,
\"
json_node4
\"
:true,
\"
json_node5
\"
:[
\"
请求体
\"
]}"
}
-
equals
:
{
是否网络错误
:
"
否"
}
-
equals
:
{
响应状态码
:
200
}
-
equals
:
{
响应ContentType
:
"
application/json"
}
-
equals
:
{
响应Body
:
"
{
\"
response_node2
\"
:70,
\"
response_node3
\"
:80.456,
\"
response_node4
\"
:true,
\"
response_node5
\"
:[
\"
响应体
\"
]}"
}
-
name
:
检验"api请求日志"组件是否存入数据
base_url
:
${get_base_url(cms_url)}
request
:
url
:
/api/v1/interconnectionapicall/querylog
method
:
post
json
:
{
"
method"
:
null
,
"
isSuccess"
:
null
,
"
startTime"
:
"
${get_data()}
00:00:00"
,
"
endTime"
:
"
${get_data()}
23:59:59"
,
"
keyWord"
:
"
"
}
headers
:
X-Project
:
${get_extract_data(x_project)}
validate
:
-
equals
:
{
status_code
:
200
}
-
equals
:
{
interfaceName
:
"
post_test"
}
-
equals
:
{
method
:
"
Post"
}
-
equals
:
{
url
:
"
http://127.0.0.1:18000/api/v1/simulation/json"
}
-
equals
:
{
Content-Type
:
"
application/json"
}
-
equals
:
{
requestContentType
:
"
application/json"
}
-
equals
:
{
requestBody
:
"
{
\"
json_node2
\"
:10,
\"
json_node3
\"
:20.456,
\"
json_node4
\"
:true,
\"
json_node5
\"
:[
\"
请求体
\"
]}"
}
-
equals
:
{
statusCode
:
200
}
-
equals
:
{
responseContentType
:
"
application/json"
}
-
equals
:
{
responseBody
:
"
{
\"
response_node2
\"
:70,
\"
response_node3
\"
:80.456,
\"
response_node4
\"
:true,
\"
response_node5
\"
:[
\"
响应体
\"
]}"
}
testcase/A3_9_API_Interconnection/abnormal_import_json.yml
View file @
9ac02f1c
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
"
id"
:
"
${get_extract_data(api_id)}"
"
id"
:
"
${get_extract_data(api_id)}"
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
validate
:
-
equals
:
-
equals
:
status_code
:
200
status_code
:
200
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
"
override"
:
true
"
override"
:
true
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
validate
:
-
equals
:
-
equals
:
status_code
:
500
status_code
:
500
...
...
testcase/A3_9_API_Interconnection/abnormal_import_xml.yml
View file @
9ac02f1c
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
"
override"
:
true
"
override"
:
true
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
validate
:
-
equals
:
-
equals
:
status_code
:
500
status_code
:
500
...
...
testcase/A3_9_API_Interconnection/copy_api.yml
View file @
9ac02f1c
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
url
:
/api/v1/apiconfig/${get_extract_data(api_id)}/copy
url
:
/api/v1/apiconfig/${get_extract_data(api_id)}/copy
method
:
post
method
:
post
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
api_id_fordelete
:
id
api_id_fordelete
:
id
validate
:
validate
:
...
...
testcase/A3_9_API_Interconnection/create_api.yml
View file @
9ac02f1c
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
url
:
/api/v1/apiconfig/empty/${get_extract_data(api_intern_id)}
url
:
/api/v1/apiconfig/empty/${get_extract_data(api_intern_id)}
method
:
post
method
:
post
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
api_id
:
id
api_id
:
id
validate
:
validate
:
...
...
testcase/A3_9_API_Interconnection/create_api_interconnection.yml
View file @
9ac02f1c
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
"
retryCount"
:
5
"
retryCount"
:
5
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
api_intern_id
:
id
api_intern_id
:
id
validate
:
validate
:
...
...
testcase/A3_9_API_Interconnection/create_formdata_parameters.yml
View file @
9ac02f1c
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
"
attributes"
:
[
]
"
attributes"
:
[
]
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
form_data_param_id
:
id
form_data_param_id
:
id
validate
:
validate
:
...
...
testcase/A3_9_API_Interconnection/create_global_parameters.yml
View file @
9ac02f1c
...
@@ -178,7 +178,7 @@
...
@@ -178,7 +178,7 @@
]
]
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
global_header_id1
:
id.0
global_header_id1
:
id.0
global_query_id1
:
id.1
global_query_id1
:
id.1
...
...
testcase/A3_9_API_Interconnection/create_header_parameters.yml
View file @
9ac02f1c
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
"
attributes"
:
[
]
"
attributes"
:
[
]
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
header_id1
:
id
header_id1
:
id
validate
:
validate
:
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
"
attributes"
:
[
]
"
attributes"
:
[
]
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
header_id2
:
id
header_id2
:
id
validate
:
validate
:
...
@@ -83,7 +83,7 @@
...
@@ -83,7 +83,7 @@
"
attributes"
:
[
]
"
attributes"
:
[
]
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
header_id3
:
id
header_id3
:
id
validate
:
validate
:
...
@@ -115,7 +115,7 @@
...
@@ -115,7 +115,7 @@
"
attributes"
:
[
]
"
attributes"
:
[
]
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
header_id4
:
id
header_id4
:
id
validate
:
validate
:
...
...
testcase/A3_9_API_Interconnection/create_json_parameters.yml
View file @
9ac02f1c
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
"
id"
:
"
${get_extract_data(form_data_param_id)}"
"
id"
:
"
${get_extract_data(form_data_param_id)}"
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
param1_id
:
id
param1_id
:
id
validate
:
validate
:
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
"
attributes"
:
[
]
"
attributes"
:
[
]
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
param2_id
:
id
param2_id
:
id
validate
:
validate
:
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
"
attributes"
:
[
]
"
attributes"
:
[
]
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
param3_id
:
id
param3_id
:
id
validate
:
validate
:
...
@@ -116,7 +116,7 @@
...
@@ -116,7 +116,7 @@
"
attributes"
:
[
]
"
attributes"
:
[
]
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
param4_id
:
id
param4_id
:
id
validate
:
validate
:
...
@@ -150,7 +150,7 @@
...
@@ -150,7 +150,7 @@
"
attributes"
:
[
]
"
attributes"
:
[
]
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
param5_id
:
id
param5_id
:
id
validate
:
validate
:
...
@@ -184,7 +184,7 @@
...
@@ -184,7 +184,7 @@
"
attributes"
:
[
]
"
attributes"
:
[
]
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
param6_id
:
id
param6_id
:
id
validate
:
validate
:
...
@@ -204,7 +204,7 @@
...
@@ -204,7 +204,7 @@
url
:
/api/v1/apiparameter?ids=${get_extract_data(param1_id)}&ids=${get_extract_data(param2_id)}&ids=${get_extract_data(param3_id)}&ids=${get_extract_data(param4_id)}&ids=${get_extract_data(param5_id)}&ids=${get_extract_data(param6_id)}
url
:
/api/v1/apiparameter?ids=${get_extract_data(param1_id)}&ids=${get_extract_data(param2_id)}&ids=${get_extract_data(param3_id)}&ids=${get_extract_data(param4_id)}&ids=${get_extract_data(param5_id)}&ids=${get_extract_data(param6_id)}
method
:
delete
method
:
delete
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
validate
:
-
equals
:
-
equals
:
status_code
:
200
status_code
:
200
testcase/A3_9_API_Interconnection/create_param_parameters.yml
View file @
9ac02f1c
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
"
attributes"
:
[
]
"
attributes"
:
[
]
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
param_id
:
id
param_id
:
id
validate
:
validate
:
...
...
testcase/A3_9_API_Interconnection/create_response_json_parameters.yml
View file @
9ac02f1c
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
"
attributes"
:
[
]
"
attributes"
:
[
]
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
response1_id
:
id
response1_id
:
id
validate
:
validate
:
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
"
attributes"
:
[
]
"
attributes"
:
[
]
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
response2_id
:
id
response2_id
:
id
validate
:
validate
:
...
@@ -85,7 +85,7 @@
...
@@ -85,7 +85,7 @@
"
attributes"
:
[
]
"
attributes"
:
[
]
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
response3_id
:
id
response3_id
:
id
validate
:
validate
:
...
@@ -118,7 +118,7 @@
...
@@ -118,7 +118,7 @@
"
attributes"
:
[
]
"
attributes"
:
[
]
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
response4_id
:
id
response4_id
:
id
validate
:
validate
:
...
@@ -151,7 +151,7 @@
...
@@ -151,7 +151,7 @@
"
attributes"
:
[
]
"
attributes"
:
[
]
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
response5_id
:
id
response5_id
:
id
validate
:
validate
:
...
@@ -184,7 +184,7 @@
...
@@ -184,7 +184,7 @@
"
attributes"
:
[
]
"
attributes"
:
[
]
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
response6_id
:
id
response6_id
:
id
validate
:
validate
:
...
...
testcase/A3_9_API_Interconnection/create_response_xml_parameters.yml
View file @
9ac02f1c
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
"
id"
:
"
${get_extract_data(api_id)}"
"
id"
:
"
${get_extract_data(api_id)}"
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
validate
:
-
equals
:
-
equals
:
status_code
:
200
status_code
:
200
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
"
attributes"
:
[
]
"
attributes"
:
[
]
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
response1_id
:
id
response1_id
:
id
validate
:
validate
:
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
"
attributes"
:
[
]
"
attributes"
:
[
]
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
response2_id
:
id
response2_id
:
id
validate
:
validate
:
...
@@ -112,7 +112,7 @@
...
@@ -112,7 +112,7 @@
"
attributes"
:
[
]
"
attributes"
:
[
]
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
response3_id
:
id
response3_id
:
id
validate
:
validate
:
...
@@ -146,7 +146,7 @@
...
@@ -146,7 +146,7 @@
"
attributes"
:
[
]
"
attributes"
:
[
]
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
response4_id
:
id
response4_id
:
id
validate
:
validate
:
...
@@ -180,7 +180,7 @@
...
@@ -180,7 +180,7 @@
"
attributes"
:
[
]
"
attributes"
:
[
]
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
response5_id
:
id
response5_id
:
id
validate
:
validate
:
...
@@ -214,7 +214,7 @@
...
@@ -214,7 +214,7 @@
"
attributes"
:
[
]
"
attributes"
:
[
]
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
response6_id
:
id
response6_id
:
id
validate
:
validate
:
...
@@ -233,7 +233,7 @@
...
@@ -233,7 +233,7 @@
url
:
/api/v1/apiparameter?ids=${get_extract_data(response1_id)}&ids=${get_extract_data(response2_id)}&ids=${get_extract_data(response3_id)}&ids=${get_extract_data(response4_id)}&ids=${get_extract_data(response5_id)}&ids=${get_extract_data(response6_id)}
url
:
/api/v1/apiparameter?ids=${get_extract_data(response1_id)}&ids=${get_extract_data(response2_id)}&ids=${get_extract_data(response3_id)}&ids=${get_extract_data(response4_id)}&ids=${get_extract_data(response5_id)}&ids=${get_extract_data(response6_id)}
method
:
delete
method
:
delete
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
validate
:
-
equals
:
-
equals
:
status_code
:
200
status_code
:
200
testcase/A3_9_API_Interconnection/create_tunnel.yml
View file @
9ac02f1c
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
"
interval"
:
null
"
interval"
:
null
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
ResponseStatusCode_id
:
id.0
ResponseStatusCode_id
:
id.0
ResponseBody_id
:
id.1
ResponseBody_id
:
id.1
...
...
testcase/A3_9_API_Interconnection/create_xml_parameters.yml
View file @
9ac02f1c
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
"
attributes"
:
[
]
"
attributes"
:
[
]
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
xml_param1_id
:
id
xml_param1_id
:
id
validate
:
validate
:
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
]
]
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
validate
:
-
equals
:
-
equals
:
status_code
:
200
status_code
:
200
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
"
attributes"
:
[
]
"
attributes"
:
[
]
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
xml_param2_id
:
id
xml_param2_id
:
id
validate
:
validate
:
...
@@ -116,7 +116,7 @@
...
@@ -116,7 +116,7 @@
"
attributes"
:
[
]
"
attributes"
:
[
]
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
xml_param3_id
:
id
xml_param3_id
:
id
validate
:
validate
:
...
@@ -150,7 +150,7 @@
...
@@ -150,7 +150,7 @@
"
attributes"
:
[
]
"
attributes"
:
[
]
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
xml_param4_id
:
id
xml_param4_id
:
id
validate
:
validate
:
...
@@ -184,7 +184,7 @@
...
@@ -184,7 +184,7 @@
"
attributes"
:
[
]
"
attributes"
:
[
]
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
xml_param5_id
:
id
xml_param5_id
:
id
validate
:
validate
:
...
@@ -218,7 +218,7 @@
...
@@ -218,7 +218,7 @@
"
attributes"
:
[
]
"
attributes"
:
[
]
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
xml_param6_id
:
id
xml_param6_id
:
id
validate
:
validate
:
...
@@ -237,7 +237,7 @@
...
@@ -237,7 +237,7 @@
url
:
/api/v1/apiparameter?ids=${get_extract_data(xml_param1_id)}&ids=${get_extract_data(xml_param2_id)}&ids=${get_extract_data(xml_param3_id)}&ids=${get_extract_data(xml_param4_id)}&ids=${get_extract_data(xml_param5_id)}&ids=${get_extract_data(xml_param6_id)}
url
:
/api/v1/apiparameter?ids=${get_extract_data(xml_param1_id)}&ids=${get_extract_data(xml_param2_id)}&ids=${get_extract_data(xml_param3_id)}&ids=${get_extract_data(xml_param4_id)}&ids=${get_extract_data(xml_param5_id)}&ids=${get_extract_data(xml_param6_id)}
method
:
delete
method
:
delete
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
validate
:
-
equals
:
-
equals
:
status_code
:
200
status_code
:
200
\ No newline at end of file
testcase/A3_9_API_Interconnection/debug_api.yml
View file @
9ac02f1c
...
@@ -316,7 +316,7 @@
...
@@ -316,7 +316,7 @@
]
]
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
validate
:
-
equals
:
{
status_code
:
200
}
-
equals
:
{
status_code
:
200
}
-
equals
:
{
isSuccess
:
true
}
-
equals
:
{
isSuccess
:
true
}
\ No newline at end of file
testcase/A3_9_API_Interconnection/delete_api.yml
View file @
9ac02f1c
...
@@ -4,6 +4,6 @@
...
@@ -4,6 +4,6 @@
url
:
/api/v1/apiconfig/${get_extract_data(api_id_fordelete)}
url
:
/api/v1/apiconfig/${get_extract_data(api_id_fordelete)}
method
:
delete
method
:
delete
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
validate
:
-
equals
:
{
status_code
:
200
}
-
equals
:
{
status_code
:
200
}
\ No newline at end of file
testcase/A3_9_API_Interconnection/delete_api_interconnection.yml
View file @
9ac02f1c
...
@@ -4,6 +4,6 @@
...
@@ -4,6 +4,6 @@
url
:
/api/v1/apiserviceconfig/${get_extract_data(api_intern_id)}
url
:
/api/v1/apiserviceconfig/${get_extract_data(api_intern_id)}
method
:
delete
method
:
delete
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
validate
:
-
equals
:
{
status_code
:
204
}
-
equals
:
{
status_code
:
204
}
\ No newline at end of file
testcase/A3_9_API_Interconnection/delete_apilist.yml
View file @
9ac02f1c
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
url
:
/api/v1/apiconfig?ids=${get_extract_data(api_id)}
url
:
/api/v1/apiconfig?ids=${get_extract_data(api_id)}
method
:
delete
method
:
delete
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
validate
:
-
equals
:
{
status_code
:
200
}
-
equals
:
{
status_code
:
200
}
-
not_contain
:
id
-
not_contain
:
id
\ No newline at end of file
testcase/A3_9_API_Interconnection/delete_param_parameters.yml
View file @
9ac02f1c
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
url
:
/api/v1/apiparameter?ids=${get_extract_data(param_id2)}
url
:
/api/v1/apiparameter?ids=${get_extract_data(param_id2)}
method
:
delete
method
:
delete
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
param_id2
:
id
param_id2
:
id
validate
:
validate
:
...
...
testcase/A3_9_API_Interconnection/export_apilist.yml
View file @
9ac02f1c
...
@@ -4,6 +4,6 @@
...
@@ -4,6 +4,6 @@
url
:
/api/v1/apiconfig/export/${get_extract_data(api_intern_id)}
url
:
/api/v1/apiconfig/export/${get_extract_data(api_intern_id)}
method
:
get
method
:
get
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
validate
:
-
equals
:
{
status_code
:
200
}
-
equals
:
{
status_code
:
200
}
\ No newline at end of file
testcase/A3_9_API_Interconnection/get_api_info.yml
View file @
9ac02f1c
...
@@ -4,6 +4,6 @@
...
@@ -4,6 +4,6 @@
url
:
/api/v1/apiparameter/api/${get_extract_data(api_id)}
url
:
/api/v1/apiparameter/api/${get_extract_data(api_id)}
method
:
get
method
:
get
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
validate
:
-
equals
:
{
status_code
:
200
}
-
equals
:
{
status_code
:
200
}
\ No newline at end of file
testcase/A3_9_API_Interconnection/get_apilist.yml
View file @
9ac02f1c
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
url
:
/api/v1/apiconfig?ApiServiceId=${get_extract_data(api_intern_id)}
url
:
/api/v1/apiconfig?ApiServiceId=${get_extract_data(api_intern_id)}
method
:
get
method
:
get
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
validate
:
-
equals
:
{
status_code
:
200
}
-
equals
:
{
status_code
:
200
}
-
equals
:
{
method
:
Get
}
-
equals
:
{
method
:
Get
}
...
...
testcase/A3_9_API_Interconnection/get_global_parameters.yml
View file @
9ac02f1c
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
url
:
/api/v1/globalparameter?ApiServiceId=${get_extract_data(api_intern_id)}
url
:
/api/v1/globalparameter?ApiServiceId=${get_extract_data(api_intern_id)}
method
:
get
method
:
get
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
validate
:
-
equals
:
{
status_code
:
200
}
-
equals
:
{
status_code
:
200
}
-
equals
:
{
name
:
header_A1
}
-
equals
:
{
name
:
header_A1
}
...
...
testcase/A3_9_API_Interconnection/import_apilist.yml
View file @
9ac02f1c
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
files
:
files
:
file
:
"
${get_project_path()}
\\
data
\\
API_Interconnection
\\
API接口.xlsx"
file
:
"
${get_project_path()}
\\
data
\\
API_Interconnection
\\
API接口.xlsx"
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
api_id
:
id.0
api_id
:
id.0
validate
:
validate
:
...
@@ -22,6 +22,6 @@
...
@@ -22,6 +22,6 @@
url
:
/api/v1/apiconfig/${get_extract_data(api_id)}
url
:
/api/v1/apiconfig/${get_extract_data(api_id)}
method
:
delete
method
:
delete
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
validate
:
-
equals
:
{
status_code
:
200
}
-
equals
:
{
status_code
:
200
}
\ No newline at end of file
testcase/A3_9_API_Interconnection/import_json.yml
View file @
9ac02f1c
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
"
override"
:
true
"
override"
:
true
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
validate
:
-
equals
:
-
equals
:
status_code
:
200
status_code
:
200
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
"
override"
:
true
"
override"
:
true
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
import_node_id
:
id.0
import_node_id
:
id.0
validate
:
validate
:
...
...
testcase/A3_9_API_Interconnection/import_xml.yml
View file @
9ac02f1c
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
"
override"
:
true
"
override"
:
true
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
validate
:
-
equals
:
-
equals
:
status_code
:
200
status_code
:
200
...
...
testcase/A3_9_API_Interconnection/move_param_parameters.yml
View file @
9ac02f1c
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
"
attributes"
:
[
]
"
attributes"
:
[
]
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
param_id2
:
id
param_id2
:
id
validate
:
validate
:
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
"
asChild"
:
false
"
asChild"
:
false
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
validate
:
-
equals
:
-
equals
:
status_code
:
200
status_code
:
200
\ No newline at end of file
testcase/A3_9_API_Interconnection/post_api.yml
View file @
9ac02f1c
...
@@ -775,3 +775,56 @@
...
@@ -775,3 +775,56 @@
status_code
:
200
status_code
:
200
-
equals
:
-
equals
:
str2
:
"
响应体"
str2
:
"
响应体"
-
name
:
校验"api接口调用日志"表是否存入数据
base_url
:
${get_base_url(cms_url)}
request
:
url
:
/api/v1/data/original
method
:
post
json
:
{
"
dataSetId"
:
"
177f7a0a-6512-4427-a52c-81362183e7f5"
,
"
tableName"
:
"
API接口调用日志"
,
"
limit"
:
500
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
validate
:
-
equals
:
{
status_code
:
200
}
-
equals
:
{
接口名称
:
"
post_test"
}
-
equals
:
{
请求方法
:
"
Post"
}
-
equals
:
{
请求地址
:
"
http://127.0.0.1:18000/api/v1/simulation/json"
}
-
equals
:
{
请求Headers
:
"
{
\"
Content-Type
\"
:
\"
application/json
\"
}"
}
-
equals
:
{
请求ContentType
:
"
application/json"
}
-
equals
:
{
请求Body
:
"
{
\"
json_node2
\"
:10,
\"
json_node3
\"
:20.456,
\"
json_node4
\"
:true,
\"
json_node5
\"
:[
\"
请求体
\"
]}"
}
-
equals
:
{
是否网络错误
:
"
否"
}
-
equals
:
{
响应状态码
:
200
}
-
equals
:
{
响应ContentType
:
"
application/json"
}
-
equals
:
{
响应Body
:
"
{
\"
response_node2
\"
:70,
\"
response_node3
\"
:80.456,
\"
response_node4
\"
:true,
\"
response_node5
\"
:[
\"
响应体
\"
]}"
}
-
name
:
检验"api请求日志"组件是否存入数据
base_url
:
${get_base_url(cms_url)}
request
:
url
:
/api/v1/interconnectionapicall/querylog
method
:
post
json
:
{
"
method"
:
null
,
"
isSuccess"
:
null
,
"
startTime"
:
"
${get_data()}
00:00:00"
,
"
endTime"
:
"
${get_data()}
23:59:59"
,
"
keyWord"
:
"
"
}
headers
:
X-Project
:
${get_extract_data(x_project)}
validate
:
-
equals
:
{
status_code
:
200
}
-
equals
:
{
interfaceName
:
"
post_test"
}
-
equals
:
{
method
:
"
Post"
}
-
equals
:
{
url
:
"
http://127.0.0.1:18000/api/v1/simulation/json"
}
-
equals
:
{
Content-Type
:
"
application/json"
}
-
equals
:
{
requestContentType
:
"
application/json"
}
-
equals
:
{
requestBody
:
"
{
\"
json_node2
\"
:10,
\"
json_node3
\"
:20.456,
\"
json_node4
\"
:true,
\"
json_node5
\"
:[
\"
请求体
\"
]}"
}
-
equals
:
{
statusCode
:
200
}
-
equals
:
{
responseContentType
:
"
application/json"
}
-
equals
:
{
responseBody
:
"
{
\"
response_node2
\"
:70,
\"
response_node3
\"
:80.456,
\"
response_node4
\"
:true,
\"
response_node5
\"
:[
\"
响应体
\"
]}"
}
testcase/A3_9_API_Interconnection/rename_api.yml
View file @
9ac02f1c
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
"
valid"
:
true
"
valid"
:
true
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
validate
:
-
equals
:
{
status_code
:
200
}
-
equals
:
{
status_code
:
200
}
-
equals
:
{
method
:
Get
}
-
equals
:
{
method
:
Get
}
...
...
testcase/A3_9_API_Interconnection/rename_api_interconnection.yml
View file @
9ac02f1c
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
"
enabled"
:
true
"
enabled"
:
true
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
validate
:
-
equals
:
{
status_code
:
200
}
-
equals
:
{
status_code
:
200
}
-
equals
:
{
timeoutDuration
:
5
}
-
equals
:
{
timeoutDuration
:
5
}
...
...
testcase/A3_9_API_Interconnection/save_api_info.yml
View file @
9ac02f1c
...
@@ -316,6 +316,6 @@
...
@@ -316,6 +316,6 @@
]
]
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
validate
:
-
equals
:
{
status_code
:
200
}
-
equals
:
{
status_code
:
200
}
\ No newline at end of file
testcase/A3_9_API_Interconnection/start_and_stop_query_parameters.yml
View file @
9ac02f1c
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
url
:
/api/v1/apiconfig/${get_extract_data(api_id)}/disable-global/${get_extract_data(global_query_id1)}
url
:
/api/v1/apiconfig/${get_extract_data(api_id)}/disable-global/${get_extract_data(global_query_id1)}
method
:
put
method
:
put
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
validate
:
-
equals
:
-
equals
:
status_code
:
200
status_code
:
200
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
url
:
/api/v1/apiconfig/${get_extract_data(api_id)}/enable-global/${get_extract_data(global_query_id1)}
url
:
/api/v1/apiconfig/${get_extract_data(api_id)}/enable-global/${get_extract_data(global_query_id1)}
method
:
put
method
:
put
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
validate
:
-
equals
:
-
equals
:
status_code
:
200
status_code
:
200
\ No newline at end of file
testcase/A3_9_API_Interconnection/switch_json_type.yml
View file @
9ac02f1c
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
"
validFail"
:
false
"
validFail"
:
false
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
validate
:
-
equals
:
-
equals
:
status_code
:
200
status_code
:
200
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
"
id"
:
"
${get_extract_data(api_id)}"
"
id"
:
"
${get_extract_data(api_id)}"
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
validate
:
-
equals
:
-
equals
:
status_code
:
200
status_code
:
200
...
...
testcase/A3_9_API_Interconnection/switch_raw_type.yml
View file @
9ac02f1c
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
url
:
/api/v1/apiparameter?ids=${get_extract_data(import_node_id)}
url
:
/api/v1/apiparameter?ids=${get_extract_data(import_node_id)}
method
:
delete
method
:
delete
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
validate
:
-
equals
:
-
equals
:
status_code
:
200
status_code
:
200
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
"
id"
:
"
${get_extract_data(api_id)}"
"
id"
:
"
${get_extract_data(api_id)}"
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
validate
:
-
equals
:
-
equals
:
status_code
:
200
status_code
:
200
...
...
testcase/A3_9_API_Interconnection/switch_xml_type.yml
View file @
9ac02f1c
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
"
id"
:
"
${get_extract_data(api_id)}"
"
id"
:
"
${get_extract_data(api_id)}"
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
validate
:
-
equals
:
-
equals
:
status_code
:
200
status_code
:
200
...
...
testcase/A3_9_API_Interconnection/switch_xwwwfromurlencode_type.yml
View file @
9ac02f1c
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
"
_X_ROW_KEY"
:
"
row_5692"
"
_X_ROW_KEY"
:
"
row_5692"
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
validate
:
-
equals
:
-
equals
:
status_code
:
200
status_code
:
200
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
"
id"
:
"
${get_extract_data(api_id)}"
"
id"
:
"
${get_extract_data(api_id)}"
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
validate
:
-
equals
:
-
equals
:
status_code
:
200
status_code
:
200
...
...
testcase/A3_9_API_Interconnection/test_api_interconnection.yml
View file @
9ac02f1c
...
@@ -29,6 +29,6 @@
...
@@ -29,6 +29,6 @@
"
retryCount"
:
5
"
retryCount"
:
5
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
validate
:
-
equals
:
{
status_code
:
200
}
-
equals
:
{
status_code
:
200
}
\ No newline at end of file
testcase/A3_9_API_Interconnection/test_api_run.py
View file @
9ac02f1c
...
@@ -310,4 +310,5 @@ class TestCreat():
...
@@ -310,4 +310,5 @@ class TestCreat():
allure
.
dynamic
.
title
(
caseinfo
[
'name'
])
allure
.
dynamic
.
title
(
caseinfo
[
'name'
])
allure
.
dynamic
.
description
(
caseinfo
[
'name'
])
allure
.
dynamic
.
description
(
caseinfo
[
'name'
])
RequestUtil
()
.
analysis_yaml
(
caseinfo
)
RequestUtil
()
.
analysis_yaml
(
caseinfo
)
time
.
sleep
(
0.2
)
testcase/A3_9_API_Interconnection/updata_fromdata_parameters.yml
View file @
9ac02f1c
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
"
attributesEnabled"
:
true
"
attributesEnabled"
:
true
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
validate
:
-
equals
:
-
equals
:
status_code
:
200
status_code
:
200
...
...
testcase/A3_9_API_Interconnection/update_api_interconnection.yml
View file @
9ac02f1c
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
"
connectionType"
:
3
"
connectionType"
:
3
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
validate
:
-
equals
:
{
status_code
:
200
}
-
equals
:
{
status_code
:
200
}
-
equals
:
{
timeoutDuration
:
4
}
-
equals
:
{
timeoutDuration
:
4
}
...
...
testcase/A3_9_API_Interconnection/update_param_parameters.yml
View file @
9ac02f1c
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
"
attributesEnabled"
:
true
"
attributesEnabled"
:
true
}
}
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
extract
:
query_param_id
:
id
query_param_id
:
id
validate
:
validate
:
...
...
testcase/A3_9_API_Interconnection/view_references.yml
View file @
9ac02f1c
...
@@ -4,6 +4,6 @@
...
@@ -4,6 +4,6 @@
url
:
/api/v1/variablereference/findvariablereference/修改api名称?type=&moduleName=
url
:
/api/v1/variablereference/findvariablereference/修改api名称?type=&moduleName=
method
:
get
method
:
get
headers
:
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
validate
:
-
equals
:
{
status_code
:
200
}
-
equals
:
{
status_code
:
200
}
\ No newline at end of file
testcase/A3_9_API_Interconnection/write_var.yml
deleted
100644 → 0
View file @
6a2d479c
-
name
:
下发变量
base_url
:
${get_base_url(cms_url)}
request
:
url
:
/api/v1/variable/setvalues
method
:
post
json
:
{
"
ResponseStatusCode"
:
"
200"
,
"
ResponseContentType"
:
"
application/json"
,
"
ResponseBody"
:
"
{
\"
response_node2
\"
:77,
\"
response_node3
\"
:88.456,
\"
response_node4
\"
:true,
\"
response_node5
\"
:[
\"
响应体
\"
]}"
,
"
int1"
:
"
70"
,
"
float1"
:
"
80.456"
,
"
bool1"
:
"
true"
,
"
str1"
:
"
请求体"
}
headers
:
X-Project
:
${get_extract_data(x_project)}
Authorization
:
Bearer ${get_extract_data(Authorization)}
validate
:
-
equals
:
status_code
:
200
-
equals
:
allSuccess
:
true
\ No newline at end of file
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