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
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
44 changed files
with
144 additions
and
102 deletions
+144
-102
write_cms_io_var.yml
testcase/5_DataManagement/write_cms_io_var.yml
+0
-0
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
+54
-2
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
This diff is collapsed.
Click to expand it.
testcase/A3_9_API_Interconnection/abnormal_import_json.yml
View file @
9ac02f1c
...
...
@@ -16,7 +16,7 @@
"
id"
:
"
${get_extract_data(api_id)}"
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
-
equals
:
status_code
:
200
...
...
@@ -42,7 +42,7 @@
"
override"
:
true
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
-
equals
:
status_code
:
500
...
...
testcase/A3_9_API_Interconnection/abnormal_import_xml.yml
View file @
9ac02f1c
...
...
@@ -11,7 +11,7 @@
"
override"
:
true
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
-
equals
:
status_code
:
500
...
...
testcase/A3_9_API_Interconnection/copy_api.yml
View file @
9ac02f1c
...
...
@@ -4,7 +4,7 @@
url
:
/api/v1/apiconfig/${get_extract_data(api_id)}/copy
method
:
post
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
api_id_fordelete
:
id
validate
:
...
...
testcase/A3_9_API_Interconnection/create_api.yml
View file @
9ac02f1c
...
...
@@ -4,7 +4,7 @@
url
:
/api/v1/apiconfig/empty/${get_extract_data(api_intern_id)}
method
:
post
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
api_id
:
id
validate
:
...
...
testcase/A3_9_API_Interconnection/create_api_interconnection.yml
View file @
9ac02f1c
...
...
@@ -29,7 +29,7 @@
"
retryCount"
:
5
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
api_intern_id
:
id
validate
:
...
...
testcase/A3_9_API_Interconnection/create_formdata_parameters.yml
View file @
9ac02f1c
...
...
@@ -19,7 +19,7 @@
"
attributes"
:
[
]
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
form_data_param_id
:
id
validate
:
...
...
testcase/A3_9_API_Interconnection/create_global_parameters.yml
View file @
9ac02f1c
...
...
@@ -178,7 +178,7 @@
]
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
global_header_id1
:
id.0
global_query_id1
:
id.1
...
...
testcase/A3_9_API_Interconnection/create_header_parameters.yml
View file @
9ac02f1c
...
...
@@ -19,7 +19,7 @@
"
attributes"
:
[
]
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
header_id1
:
id
validate
:
...
...
@@ -51,7 +51,7 @@
"
attributes"
:
[
]
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
header_id2
:
id
validate
:
...
...
@@ -83,7 +83,7 @@
"
attributes"
:
[
]
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
header_id3
:
id
validate
:
...
...
@@ -115,7 +115,7 @@
"
attributes"
:
[
]
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
header_id4
:
id
validate
:
...
...
testcase/A3_9_API_Interconnection/create_json_parameters.yml
View file @
9ac02f1c
...
...
@@ -14,7 +14,7 @@
"
id"
:
"
${get_extract_data(form_data_param_id)}"
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
param1_id
:
id
validate
:
...
...
@@ -48,7 +48,7 @@
"
attributes"
:
[
]
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
param2_id
:
id
validate
:
...
...
@@ -82,7 +82,7 @@
"
attributes"
:
[
]
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
param3_id
:
id
validate
:
...
...
@@ -116,7 +116,7 @@
"
attributes"
:
[
]
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
param4_id
:
id
validate
:
...
...
@@ -150,7 +150,7 @@
"
attributes"
:
[
]
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
param5_id
:
id
validate
:
...
...
@@ -184,7 +184,7 @@
"
attributes"
:
[
]
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
param6_id
:
id
validate
:
...
...
@@ -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)}
method
:
delete
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
-
equals
:
status_code
:
200
testcase/A3_9_API_Interconnection/create_param_parameters.yml
View file @
9ac02f1c
...
...
@@ -19,7 +19,7 @@
"
attributes"
:
[
]
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
param_id
:
id
validate
:
...
...
testcase/A3_9_API_Interconnection/create_response_json_parameters.yml
View file @
9ac02f1c
...
...
@@ -19,7 +19,7 @@
"
attributes"
:
[
]
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
response1_id
:
id
validate
:
...
...
@@ -52,7 +52,7 @@
"
attributes"
:
[
]
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
response2_id
:
id
validate
:
...
...
@@ -85,7 +85,7 @@
"
attributes"
:
[
]
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
response3_id
:
id
validate
:
...
...
@@ -118,7 +118,7 @@
"
attributes"
:
[
]
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
response4_id
:
id
validate
:
...
...
@@ -151,7 +151,7 @@
"
attributes"
:
[
]
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
response5_id
:
id
validate
:
...
...
@@ -184,7 +184,7 @@
"
attributes"
:
[
]
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
response6_id
:
id
validate
:
...
...
testcase/A3_9_API_Interconnection/create_response_xml_parameters.yml
View file @
9ac02f1c
...
...
@@ -16,7 +16,7 @@
"
id"
:
"
${get_extract_data(api_id)}"
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
-
equals
:
status_code
:
200
...
...
@@ -44,7 +44,7 @@
"
attributes"
:
[
]
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
response1_id
:
id
validate
:
...
...
@@ -78,7 +78,7 @@
"
attributes"
:
[
]
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
response2_id
:
id
validate
:
...
...
@@ -112,7 +112,7 @@
"
attributes"
:
[
]
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
response3_id
:
id
validate
:
...
...
@@ -146,7 +146,7 @@
"
attributes"
:
[
]
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
response4_id
:
id
validate
:
...
...
@@ -180,7 +180,7 @@
"
attributes"
:
[
]
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
response5_id
:
id
validate
:
...
...
@@ -214,7 +214,7 @@
"
attributes"
:
[
]
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
response6_id
:
id
validate
:
...
...
@@ -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)}
method
:
delete
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
-
equals
:
status_code
:
200
testcase/A3_9_API_Interconnection/create_tunnel.yml
View file @
9ac02f1c
...
...
@@ -53,7 +53,7 @@
"
interval"
:
null
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
ResponseStatusCode_id
:
id.0
ResponseBody_id
:
id.1
...
...
testcase/A3_9_API_Interconnection/create_xml_parameters.yml
View file @
9ac02f1c
...
...
@@ -19,7 +19,7 @@
"
attributes"
:
[
]
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
xml_param1_id
:
id
validate
:
...
...
@@ -56,7 +56,7 @@
]
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
-
equals
:
status_code
:
200
...
...
@@ -82,7 +82,7 @@
"
attributes"
:
[
]
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
xml_param2_id
:
id
validate
:
...
...
@@ -116,7 +116,7 @@
"
attributes"
:
[
]
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
xml_param3_id
:
id
validate
:
...
...
@@ -150,7 +150,7 @@
"
attributes"
:
[
]
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
xml_param4_id
:
id
validate
:
...
...
@@ -184,7 +184,7 @@
"
attributes"
:
[
]
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
xml_param5_id
:
id
validate
:
...
...
@@ -218,7 +218,7 @@
"
attributes"
:
[
]
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
xml_param6_id
:
id
validate
:
...
...
@@ -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)}
method
:
delete
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
-
equals
:
status_code
:
200
\ No newline at end of file
testcase/A3_9_API_Interconnection/debug_api.yml
View file @
9ac02f1c
...
...
@@ -316,7 +316,7 @@
]
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
-
equals
:
{
status_code
:
200
}
-
equals
:
{
isSuccess
:
true
}
\ No newline at end of file
testcase/A3_9_API_Interconnection/delete_api.yml
View file @
9ac02f1c
...
...
@@ -4,6 +4,6 @@
url
:
/api/v1/apiconfig/${get_extract_data(api_id_fordelete)}
method
:
delete
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
-
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 @@
url
:
/api/v1/apiserviceconfig/${get_extract_data(api_intern_id)}
method
:
delete
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
-
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 @@
url
:
/api/v1/apiconfig?ids=${get_extract_data(api_id)}
method
:
delete
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
-
equals
:
{
status_code
:
200
}
-
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 @@
url
:
/api/v1/apiparameter?ids=${get_extract_data(param_id2)}
method
:
delete
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
param_id2
:
id
validate
:
...
...
testcase/A3_9_API_Interconnection/export_apilist.yml
View file @
9ac02f1c
...
...
@@ -4,6 +4,6 @@
url
:
/api/v1/apiconfig/export/${get_extract_data(api_intern_id)}
method
:
get
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
-
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 @@
url
:
/api/v1/apiparameter/api/${get_extract_data(api_id)}
method
:
get
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
-
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 @@
url
:
/api/v1/apiconfig?ApiServiceId=${get_extract_data(api_intern_id)}
method
:
get
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
-
equals
:
{
status_code
:
200
}
-
equals
:
{
method
:
Get
}
...
...
testcase/A3_9_API_Interconnection/get_global_parameters.yml
View file @
9ac02f1c
...
...
@@ -4,7 +4,7 @@
url
:
/api/v1/globalparameter?ApiServiceId=${get_extract_data(api_intern_id)}
method
:
get
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
-
equals
:
{
status_code
:
200
}
-
equals
:
{
name
:
header_A1
}
...
...
testcase/A3_9_API_Interconnection/import_apilist.yml
View file @
9ac02f1c
...
...
@@ -6,7 +6,7 @@
files
:
file
:
"
${get_project_path()}
\\
data
\\
API_Interconnection
\\
API接口.xlsx"
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
api_id
:
id.0
validate
:
...
...
@@ -22,6 +22,6 @@
url
:
/api/v1/apiconfig/${get_extract_data(api_id)}
method
:
delete
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
-
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 @@
"
override"
:
true
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
-
equals
:
status_code
:
200
...
...
@@ -29,7 +29,7 @@
"
override"
:
true
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
import_node_id
:
id.0
validate
:
...
...
testcase/A3_9_API_Interconnection/import_xml.yml
View file @
9ac02f1c
...
...
@@ -11,7 +11,7 @@
"
override"
:
true
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
-
equals
:
status_code
:
200
...
...
testcase/A3_9_API_Interconnection/move_param_parameters.yml
View file @
9ac02f1c
...
...
@@ -19,7 +19,7 @@
"
attributes"
:
[
]
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
param_id2
:
id
validate
:
...
...
@@ -43,7 +43,7 @@
"
asChild"
:
false
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
-
equals
:
status_code
:
200
\ No newline at end of file
testcase/A3_9_API_Interconnection/post_api.yml
View file @
9ac02f1c
...
...
@@ -774,4 +774,57 @@
-
equals
:
status_code
:
200
-
equals
:
str2
:
"
响应体"
\ No newline at end of file
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 @@
"
valid"
:
true
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
-
equals
:
{
status_code
:
200
}
-
equals
:
{
method
:
Get
}
...
...
testcase/A3_9_API_Interconnection/rename_api_interconnection.yml
View file @
9ac02f1c
...
...
@@ -16,7 +16,7 @@
"
enabled"
:
true
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
-
equals
:
{
status_code
:
200
}
-
equals
:
{
timeoutDuration
:
5
}
...
...
testcase/A3_9_API_Interconnection/save_api_info.yml
View file @
9ac02f1c
...
...
@@ -316,6 +316,6 @@
]
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
-
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 @@
url
:
/api/v1/apiconfig/${get_extract_data(api_id)}/disable-global/${get_extract_data(global_query_id1)}
method
:
put
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
-
equals
:
status_code
:
200
...
...
@@ -15,7 +15,7 @@
url
:
/api/v1/apiconfig/${get_extract_data(api_id)}/enable-global/${get_extract_data(global_query_id1)}
method
:
put
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
-
equals
:
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 @@
"
validFail"
:
false
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
-
equals
:
status_code
:
200
...
...
@@ -61,7 +61,7 @@
"
id"
:
"
${get_extract_data(api_id)}"
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
-
equals
:
status_code
:
200
...
...
testcase/A3_9_API_Interconnection/switch_raw_type.yml
View file @
9ac02f1c
...
...
@@ -4,7 +4,7 @@
url
:
/api/v1/apiparameter?ids=${get_extract_data(import_node_id)}
method
:
delete
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
-
equals
:
status_code
:
200
...
...
@@ -27,7 +27,7 @@
"
id"
:
"
${get_extract_data(api_id)}"
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
-
equals
:
status_code
:
200
...
...
testcase/A3_9_API_Interconnection/switch_xml_type.yml
View file @
9ac02f1c
...
...
@@ -16,7 +16,7 @@
"
id"
:
"
${get_extract_data(api_id)}"
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
-
equals
:
status_code
:
200
...
...
testcase/A3_9_API_Interconnection/switch_xwwwfromurlencode_type.yml
View file @
9ac02f1c
...
...
@@ -27,7 +27,7 @@
"
_X_ROW_KEY"
:
"
row_5692"
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
-
equals
:
status_code
:
200
...
...
@@ -58,7 +58,7 @@
"
id"
:
"
${get_extract_data(api_id)}"
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
-
equals
:
status_code
:
200
...
...
testcase/A3_9_API_Interconnection/test_api_interconnection.yml
View file @
9ac02f1c
...
...
@@ -29,6 +29,6 @@
"
retryCount"
:
5
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
-
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():
allure
.
dynamic
.
title
(
caseinfo
[
'name'
])
allure
.
dynamic
.
description
(
caseinfo
[
'name'
])
RequestUtil
()
.
analysis_yaml
(
caseinfo
)
time
.
sleep
(
0.2
)
testcase/A3_9_API_Interconnection/updata_fromdata_parameters.yml
View file @
9ac02f1c
...
...
@@ -18,7 +18,7 @@
"
attributesEnabled"
:
true
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
-
equals
:
status_code
:
200
...
...
testcase/A3_9_API_Interconnection/update_api_interconnection.yml
View file @
9ac02f1c
...
...
@@ -17,7 +17,7 @@
"
connectionType"
:
3
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
-
equals
:
{
status_code
:
200
}
-
equals
:
{
timeoutDuration
:
4
}
...
...
testcase/A3_9_API_Interconnection/update_param_parameters.yml
View file @
9ac02f1c
...
...
@@ -18,7 +18,7 @@
"
attributesEnabled"
:
true
}
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
extract
:
query_param_id
:
id
validate
:
...
...
testcase/A3_9_API_Interconnection/view_references.yml
View file @
9ac02f1c
...
...
@@ -4,6 +4,6 @@
url
:
/api/v1/variablereference/findvariablereference/修改api名称?type=&moduleName=
method
:
get
headers
:
X-Project
:
7b70dfc812884f288e6c35d5a7407f3e
X-Project
:
${get_extract_data(x_project)}
validate
:
-
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