mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-08 19:32:52 +08:00
change: remove unused step identifier
This commit is contained in:
1
step.go
1
step.go
@@ -71,7 +71,6 @@ type ActionResult struct {
|
|||||||
// one testcase contains one or multiple steps
|
// one testcase contains one or multiple steps
|
||||||
type StepResult struct {
|
type StepResult struct {
|
||||||
Name string `json:"name" yaml:"name"` // step name
|
Name string `json:"name" yaml:"name"` // step name
|
||||||
Identifier string `json:"identifier,omitempty" yaml:"identifier,omitempty"` // step identifier
|
|
||||||
StartTime int64 `json:"start_time" yaml:"time"` // step start time in millisecond(ms)
|
StartTime int64 `json:"start_time" yaml:"time"` // step start time in millisecond(ms)
|
||||||
StepType StepType `json:"step_type" yaml:"step_type"` // step type, testcase/request/transaction/rendezvous
|
StepType StepType `json:"step_type" yaml:"step_type"` // step type, testcase/request/transaction/rendezvous
|
||||||
Success bool `json:"success" yaml:"success"` // step execution result
|
Success bool `json:"success" yaml:"success"` // step execution result
|
||||||
|
|||||||
18
step_ui.go
18
step_ui.go
@@ -755,24 +755,6 @@ func runStepMobileUI(s *SessionRunner, step IStep) (stepResult *StepResult, err
|
|||||||
return stepResult, err
|
return stepResult, err
|
||||||
}
|
}
|
||||||
|
|
||||||
identifier := mobileStep.Identifier
|
|
||||||
if mobileStep.Options != nil && identifier == "" {
|
|
||||||
identifier = mobileStep.Options.Identifier
|
|
||||||
}
|
|
||||||
if len(mobileStep.Actions) != 0 && identifier == "" {
|
|
||||||
for _, action := range mobileStep.Actions {
|
|
||||||
if action.Identifier != "" {
|
|
||||||
identifier = action.Identifier
|
|
||||||
break
|
|
||||||
}
|
|
||||||
if action.Options != nil && action.Options.Identifier != "" {
|
|
||||||
identifier = action.Options.Identifier
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stepResult.Identifier = identifier
|
|
||||||
|
|
||||||
defer func() {
|
defer func() {
|
||||||
attachments := uixt.Attachments{}
|
attachments := uixt.Attachments{}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user