mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 15:37:35 +08:00
fix: stop logcat only when enabled
This commit is contained in:
+9
-6
@@ -625,13 +625,16 @@ func (r *SessionRunner) GetSummary() (*TestCaseSummary, error) {
|
||||
|
||||
for uuid, client := range r.caseRunner.hrpRunner.uiClients {
|
||||
// add WDA/UIA logs to summary
|
||||
log, err := client.Driver.StopCaptureLog()
|
||||
if err != nil {
|
||||
return caseSummary, err
|
||||
}
|
||||
logs := map[string]interface{}{
|
||||
"uuid": uuid,
|
||||
"content": log,
|
||||
"uuid": uuid,
|
||||
}
|
||||
|
||||
if client.Device.LogEnabled() {
|
||||
log, err := client.Driver.StopCaptureLog()
|
||||
if err != nil {
|
||||
return caseSummary, err
|
||||
}
|
||||
logs["content"] = log
|
||||
}
|
||||
|
||||
// stop performance monitor
|
||||
|
||||
Reference in New Issue
Block a user