mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 23:51:25 +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
|
||||||
|
|||||||
+1
-4
@@ -27,10 +27,7 @@ func (s *StepFunction) Type() StepType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *StepFunction) Config() *StepConfig {
|
func (s *StepFunction) Config() *StepConfig {
|
||||||
return &StepConfig{
|
return &s.StepConfig
|
||||||
StepName: s.StepName,
|
|
||||||
Variables: s.Variables,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *StepFunction) Run(r *SessionRunner) (*StepResult, error) {
|
func (s *StepFunction) Run(r *SessionRunner) (*StepResult, error) {
|
||||||
|
|||||||
+1
-4
@@ -26,10 +26,7 @@ func (s *StepRendezvous) Type() StepType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *StepRendezvous) Config() *StepConfig {
|
func (s *StepRendezvous) Config() *StepConfig {
|
||||||
return &StepConfig{
|
return &s.StepConfig
|
||||||
StepName: s.StepName,
|
|
||||||
Variables: s.Variables,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *StepRendezvous) Run(r *SessionRunner) (*StepResult, error) {
|
func (s *StepRendezvous) Run(r *SessionRunner) (*StepResult, error) {
|
||||||
|
|||||||
+2
-8
@@ -30,10 +30,7 @@ func (s *StepShell) Type() StepType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *StepShell) Config() *StepConfig {
|
func (s *StepShell) Config() *StepConfig {
|
||||||
return &StepConfig{
|
return &s.StepConfig
|
||||||
StepName: s.StepName,
|
|
||||||
Variables: s.Variables,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *StepShell) Run(r *SessionRunner) (*StepResult, error) {
|
func (s *StepShell) Run(r *SessionRunner) (*StepResult, error) {
|
||||||
@@ -63,10 +60,7 @@ func (s *StepShellValidation) Type() StepType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *StepShellValidation) Config() *StepConfig {
|
func (s *StepShellValidation) Config() *StepConfig {
|
||||||
return &StepConfig{
|
return &s.StepConfig
|
||||||
StepName: s.StepName,
|
|
||||||
Variables: s.Variables,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *StepShellValidation) Run(r *SessionRunner) (*StepResult, error) {
|
func (s *StepShellValidation) Run(r *SessionRunner) (*StepResult, error) {
|
||||||
|
|||||||
+5
-5
@@ -691,11 +691,11 @@ func (s *StepMobileUIValidation) Type() StepType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *StepMobileUIValidation) Config() *StepConfig {
|
func (s *StepMobileUIValidation) Config() *StepConfig {
|
||||||
return &StepConfig{
|
// Get the original StepConfig from embedded StepMobile
|
||||||
StepName: s.StepName,
|
config := &s.StepMobile.StepConfig
|
||||||
Variables: s.Variables,
|
// Sync validators to the StepConfig
|
||||||
Validators: s.Validators,
|
config.Validators = s.Validators
|
||||||
}
|
return config
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *StepMobileUIValidation) Run(r *SessionRunner) (*StepResult, error) {
|
func (s *StepMobileUIValidation) Run(r *SessionRunner) (*StepResult, error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user