mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 23:51:25 +08:00
support non-blocking screenshot action and screenshot disable_retry
This commit is contained in:
@@ -450,3 +450,10 @@ func GenNameWithTimestamp(tmpl string) string {
|
||||
}
|
||||
return fmt.Sprintf(tmpl, time.Now().Unix())
|
||||
}
|
||||
|
||||
func GenNameWithTimestampMS(tmpl string) string {
|
||||
if !strings.Contains(tmpl, "%d") {
|
||||
tmpl = tmpl + "_%d"
|
||||
}
|
||||
return fmt.Sprintf(tmpl, time.Now().UnixNano()/1e6)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user