mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-11 18:11:21 +08:00
change: update docs
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
# Release History
|
||||
|
||||
## v0.5.2 (2022-01-16)
|
||||
## v0.5.2 (2022-01-19)
|
||||
|
||||
- feat: support creating and calling custom functions with [hashicorp/go-plugin](https://github.com/hashicorp/go-plugin)
|
||||
- feat: add scaffold demo with hashicorp plugin
|
||||
- feat: report events for initializing plugin
|
||||
- fix: log failures when the assertion failed
|
||||
|
||||
## v0.5.1 (2022-01-13)
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ func (s *requestStats) logTransaction(name string, success bool, responseTime in
|
||||
s.transactionPassed++
|
||||
} else {
|
||||
s.transactionFailed++
|
||||
s.get(name, "transaction").logError("")
|
||||
s.get(name, "transaction").logFailures()
|
||||
}
|
||||
s.get(name, "transaction").log(responseTime, contentLength)
|
||||
}
|
||||
@@ -77,8 +77,8 @@ func (s *requestStats) logRequest(method, name string, responseTime int64, conte
|
||||
}
|
||||
|
||||
func (s *requestStats) logError(method, name, err string) {
|
||||
s.total.logError(err)
|
||||
s.get(name, method).logError(err)
|
||||
s.total.logFailures()
|
||||
s.get(name, method).logFailures()
|
||||
|
||||
// store error in errors map
|
||||
key := genMD5(method, name, err)
|
||||
@@ -264,7 +264,7 @@ func (s *statsEntry) logResponseTime(responseTime int64) {
|
||||
}
|
||||
}
|
||||
|
||||
func (s *statsEntry) logError(err string) {
|
||||
func (s *statsEntry) logFailures() {
|
||||
s.NumFailures++
|
||||
key := time.Now().Unix()
|
||||
_, ok := s.NumFailPerSec[key]
|
||||
|
||||
Reference in New Issue
Block a user