This repository has been archived by the owner on Aug 13, 2024. It is now read-only.
TypeError: Invalid type passed to setApplicationContext() #558
Labels
Squish
Tasks related to Squish framework but not necessarily related to tests implementation
Milestone
i realised finally when the issue shows up
On the screenshot there is the following: framework (pytest in my case) was executing some tests one by one (around 20 or so). Then when it came to the one marked as yellow, the test fails with
TypeError: Invalid type passed to setApplicationContext()
which seem to be true, because it looks like the application has just crashed , so Squish was not really able to attach indeedApp log:
it is visible in the shorten log of aut:
aut log 29-feb-24.log
This is confirmed in squishserver log that i also run with --verbose. In that log is visible , that my code did 10 attempts to connect and failed (which i assume is really stupid, because there is no AUT to connect to)
squishserver 29-02-24.log
I also collect some output from pytest, attaching it too (it actually contains the invalid application context error)
pytest 29-02-24.log
I am seeing 2 problems here:
sometimes my application crashes. I talked to developers and there's been some fixes for the inline components in 5.15.8 which we want to upgrade to. Addressed that for tracking in Status application crashed on Linux randomly status-desktop#13811
task to upgrade linux to 5.15.8 Setup Linux CI for Qt5.15.8+KDAB using minimum glibc version compatibility status-desktop#9350
the framework does not handle the case when the app crashes and neither do retries. Currently we use
pytest-rerunfailures
plugin that seem to be not supporting app crashes https://pypi.org/project/pytest-rerunfailures/#recover-from-hard-crashesUPD: i fixed retries in Implement reruns functionality and fix data directory parameter #559
UPD: logged the task to implement crash handler Implement crash event handler #567
The text was updated successfully, but these errors were encountered: