feat: input params by funcion in ui automation

This commit is contained in:
xucong.053
2022-10-13 14:17:24 +08:00
parent 1392fe293f
commit c9279fb4f7
4 changed files with 21 additions and 0 deletions
+7
View File
@@ -618,6 +618,13 @@ func runStepMobileUI(s *SessionRunner, step *TStep) (stepResult *StepResult, err
// run actions
for _, action := range actions {
if action.Function != "" {
parsedParams, err := parser.ParseString(action.Function, stepVariables)
if err != nil {
return stepResult, err
}
action.Params = parsedParams
}
if action.Params, err = parser.Parse(action.Params, stepVariables); err != nil {
return stepResult, errors.Wrap(err, "parse action params failed")
}