mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-03 23:09:36 +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)
|
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 {
|
return {
|
||||||
"config": {"name": api_content["name"]},
|
"config": config,
|
||||||
"teststeps": [teststep],
|
"teststeps": [teststep],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user