fix: record all requests of testcase reference in boom mode

This commit is contained in:
xucong053
2022-07-01 11:53:27 +08:00
parent 6c6742d4e4
commit 6b2a13262c
3 changed files with 21 additions and 4 deletions

View File

@@ -74,12 +74,16 @@ func (s *requestStats) logTransaction(name string, success bool, responseTime in
}
func (s *requestStats) logRequest(method, name string, responseTime int64, contentLength int64) {
s.total.log(responseTime, contentLength)
if method != "testcase" {
s.total.log(responseTime, contentLength)
}
s.get(name, method).log(responseTime, contentLength)
}
func (s *requestStats) logError(method, name, err string) {
s.total.logFailures()
if method != "testcase" {
s.total.logFailures()
}
s.get(name, method).logFailures()
// store error in errors map