refactor: use step export to export session variables from referenced testcase

This commit is contained in:
debugtalk
2020-06-05 11:31:51 +08:00
parent 528ddd0c67
commit adf0967888
7 changed files with 39 additions and 35 deletions

View File

@@ -66,7 +66,10 @@ class TStep(BaseModel):
variables: VariablesMapping = {}
setup_hooks: Hook = []
teardown_hooks: Hook = []
extract: Union[Dict[Text, Text], List[Text]] = {}
# used to extract request's response field
extract: Dict[Text, Text] = {}
# used to export session variables from referenced testcase
export: List[Text] = []
validators: Validators = Field([], alias="validate")
validate_script: List[Text] = []