mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 11:29:48 +08:00
fix: missing export when ensuring api testcase
This commit is contained in:
@@ -200,8 +200,13 @@ def ensure_testcase_v3_api(api_content: Dict) -> Dict:
|
||||
|
||||
teststep = _sort_step_by_custom_order(teststep)
|
||||
|
||||
config = {"name": api_content["name"]}
|
||||
extract_variable_names: List = list(teststep.get("extract", {}).keys())
|
||||
if extract_variable_names:
|
||||
config["export"] = extract_variable_names
|
||||
|
||||
return {
|
||||
"config": {"name": api_content["name"]},
|
||||
"config": config,
|
||||
"teststeps": [teststep],
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user