mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-21 08:10:24 +08:00
change: ensure step name not empty
This commit is contained in:
@@ -10,7 +10,10 @@ type stepRequestValidation struct {
|
||||
}
|
||||
|
||||
func (s *stepRequestValidation) Name() string {
|
||||
return s.step.Name
|
||||
if s.step.Name != "" {
|
||||
return s.step.Name
|
||||
}
|
||||
return fmt.Sprintf("%s %s", s.step.Request.Method, s.step.Request.URL)
|
||||
}
|
||||
|
||||
func (s *stepRequestValidation) Type() string {
|
||||
|
||||
Reference in New Issue
Block a user