mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 15:37:35 +08:00
fix: the transaction name recorded is inaccurate, when transaction fails
This commit is contained in:
+1
-1
@@ -393,7 +393,7 @@ func (b *HRPBoomer) convertBoomerTask(testcase *TestCase, rendezvousList []*Rend
|
|||||||
// transaction
|
// transaction
|
||||||
// FIXME: support nested transactions
|
// FIXME: support nested transactions
|
||||||
if step.Struct().Transaction.Type == transactionEnd { // only record when transaction ends
|
if step.Struct().Transaction.Type == transactionEnd { // only record when transaction ends
|
||||||
b.RecordTransaction(stepResult.Name, transactionSuccess, stepResult.Elapsed, 0)
|
b.RecordTransaction(step.Struct().Transaction.Name, transactionSuccess, stepResult.Elapsed, 0)
|
||||||
transactionSuccess = true // reset flag for next transaction
|
transactionSuccess = true // reset flag for next transaction
|
||||||
}
|
}
|
||||||
} else if stepResult.StepType == stepTypeRendezvous {
|
} else if stepResult.StepType == stepTypeRendezvous {
|
||||||
|
|||||||
Reference in New Issue
Block a user