mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-21 08:10:24 +08:00
fix: display api name when running api as testcase
This commit is contained in:
@@ -1254,6 +1254,9 @@ def parse_tests(tests_mapping):
|
||||
# encapsulate api as a testcase
|
||||
for api_content in tests_mapping["apis"]:
|
||||
testcase = {
|
||||
"config": {
|
||||
"name": api_content.get("name")
|
||||
},
|
||||
"teststeps": [api_content]
|
||||
}
|
||||
parsed_testcase = _parse_testcase(testcase, project_mapping)
|
||||
|
||||
Reference in New Issue
Block a user