mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-06 20:32:44 +08:00
fix: update step failed in ParseStep
This commit is contained in:
@@ -1 +1 @@
|
||||
v5.0.0-beta-2506171946
|
||||
v5.0.0-beta-2506181131
|
||||
|
||||
@@ -27,10 +27,7 @@ func (s *StepFunction) Type() StepType {
|
||||
}
|
||||
|
||||
func (s *StepFunction) Config() *StepConfig {
|
||||
return &StepConfig{
|
||||
StepName: s.StepName,
|
||||
Variables: s.Variables,
|
||||
}
|
||||
return &s.StepConfig
|
||||
}
|
||||
|
||||
func (s *StepFunction) Run(r *SessionRunner) (*StepResult, error) {
|
||||
|
||||
@@ -26,10 +26,7 @@ func (s *StepRendezvous) Type() StepType {
|
||||
}
|
||||
|
||||
func (s *StepRendezvous) Config() *StepConfig {
|
||||
return &StepConfig{
|
||||
StepName: s.StepName,
|
||||
Variables: s.Variables,
|
||||
}
|
||||
return &s.StepConfig
|
||||
}
|
||||
|
||||
func (s *StepRendezvous) Run(r *SessionRunner) (*StepResult, error) {
|
||||
|
||||
@@ -30,10 +30,7 @@ func (s *StepShell) Type() StepType {
|
||||
}
|
||||
|
||||
func (s *StepShell) Config() *StepConfig {
|
||||
return &StepConfig{
|
||||
StepName: s.StepName,
|
||||
Variables: s.Variables,
|
||||
}
|
||||
return &s.StepConfig
|
||||
}
|
||||
|
||||
func (s *StepShell) Run(r *SessionRunner) (*StepResult, error) {
|
||||
@@ -63,10 +60,7 @@ func (s *StepShellValidation) Type() StepType {
|
||||
}
|
||||
|
||||
func (s *StepShellValidation) Config() *StepConfig {
|
||||
return &StepConfig{
|
||||
StepName: s.StepName,
|
||||
Variables: s.Variables,
|
||||
}
|
||||
return &s.StepConfig
|
||||
}
|
||||
|
||||
func (s *StepShellValidation) Run(r *SessionRunner) (*StepResult, error) {
|
||||
|
||||
10
step_ui.go
10
step_ui.go
@@ -691,11 +691,11 @@ func (s *StepMobileUIValidation) Type() StepType {
|
||||
}
|
||||
|
||||
func (s *StepMobileUIValidation) Config() *StepConfig {
|
||||
return &StepConfig{
|
||||
StepName: s.StepName,
|
||||
Variables: s.Variables,
|
||||
Validators: s.Validators,
|
||||
}
|
||||
// Get the original StepConfig from embedded StepMobile
|
||||
config := &s.StepMobile.StepConfig
|
||||
// Sync validators to the StepConfig
|
||||
config.Validators = s.Validators
|
||||
return config
|
||||
}
|
||||
|
||||
func (s *StepMobileUIValidation) Run(r *SessionRunner) (*StepResult, error) {
|
||||
|
||||
Reference in New Issue
Block a user