mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-04 23:16:57 +08:00
change: update docs
This commit is contained in:
+4
-1
@@ -1,8 +1,11 @@
|
|||||||
# Release History
|
# 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: 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)
|
## v0.5.1 (2022-01-13)
|
||||||
|
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ func (s *requestStats) logTransaction(name string, success bool, responseTime in
|
|||||||
s.transactionPassed++
|
s.transactionPassed++
|
||||||
} else {
|
} else {
|
||||||
s.transactionFailed++
|
s.transactionFailed++
|
||||||
s.get(name, "transaction").logError("")
|
s.get(name, "transaction").logFailures()
|
||||||
}
|
}
|
||||||
s.get(name, "transaction").log(responseTime, contentLength)
|
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) {
|
func (s *requestStats) logError(method, name, err string) {
|
||||||
s.total.logError(err)
|
s.total.logFailures()
|
||||||
s.get(name, method).logError(err)
|
s.get(name, method).logFailures()
|
||||||
|
|
||||||
// store error in errors map
|
// store error in errors map
|
||||||
key := genMD5(method, name, err)
|
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++
|
s.NumFailures++
|
||||||
key := time.Now().Unix()
|
key := time.Now().Unix()
|
||||||
_, ok := s.NumFailPerSec[key]
|
_, ok := s.NumFailPerSec[key]
|
||||||
|
|||||||
Reference in New Issue
Block a user