diff --git a/hrp/internal/version/VERSION b/hrp/internal/version/VERSION index 2d1a4d89..7920650d 100644 --- a/hrp/internal/version/VERSION +++ b/hrp/internal/version/VERSION @@ -1 +1 @@ -v5.0.0+2411141743 +v5.0.0+2411142009 diff --git a/hrp/step.go b/hrp/step.go index b3c39e0b..dbb7c623 100644 --- a/hrp/step.go +++ b/hrp/step.go @@ -1,5 +1,7 @@ package hrp +import "github.com/httprunner/httprunner/v4/hrp/pkg/uixt" + type StepType string const ( @@ -49,10 +51,10 @@ type TStep struct { // one step contains one or multiple actions type ActionResult struct { - Name string `json:"name"` // action name - StartTime int64 `json:"start_time"` // action start time - Elapsed int64 `json:"elapsed_ms"` // action elapsed time(ms) - Error error `json:"error"` // action execution result + uixt.MobileAction `json:",inline"` + StartTime int64 `json:"start_time"` // action start time + Elapsed int64 `json:"elapsed_ms"` // action elapsed time(ms) + Error error `json:"error"` // action execution result } // one testcase contains one or multiple steps diff --git a/hrp/step_mobile_ui.go b/hrp/step_mobile_ui.go index 0de373d5..3e0bed64 100644 --- a/hrp/step_mobile_ui.go +++ b/hrp/step_mobile_ui.go @@ -714,8 +714,8 @@ func runStepMobileUI(s *SessionRunner, step IStep) (stepResult *StepResult, err default: actionStartTime := time.Now() actionResult := &ActionResult{ - Name: string(action.Method), - StartTime: actionStartTime.Unix(), // action 开始时间 + MobileAction: action, + StartTime: actionStartTime.Unix(), // action 开始时间 } if action.Params, err = s.caseRunner.parser.Parse(action.Params, stepVariables); err != nil { if !code.IsErrorPredefined(err) {