chore: add more logging to QT components

This commit is contained in:
Anastasiya Semiankevich 2024-06-26 10:21:20 +03:00 committed by Anastasiya
parent 3e04967309
commit 5b30d25387
3 changed files with 11 additions and 0 deletions

View File

@ -82,6 +82,12 @@ pipeline {
/* Runtime flag to make testing of the app easier. Switched off: unpredictable app behavior under new tests */
/* STATUS_RUNTIME_TEST_MODE = 'True' */
/* Logging rules let you enable or disable logging for categories */
QT_LOGGING_RULES = '*.warning=true'
/* Set to a non-zero value to make Qt print out diagnostic information about the each (C++) plugin it tries to load. */
QT_DEBUG_PLUGINS = 0
}
stages {

View File

@ -1,3 +1,5 @@
import time
import allure
import logging
import cv2
@ -117,6 +119,7 @@ class AUT:
LOG.info('Stopping AUT: %s', self.path)
self.detach_context()
local_system.kill_process(self.pid)
time.sleep(1)
@allure.step("Start and attach AUT")
def launch(self) -> 'AUT':

View File

@ -1,4 +1,5 @@
import logging
import time
import typing
import configs.testpath
@ -43,6 +44,7 @@ class SquishServer:
return
LOG.info('Stopping Squish Server with PID: %d', cls.pid)
local_system.kill_process(cls.pid)
time.sleep(1)
cls.pid = None
cls.port = None