Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
-
None
Description
Currently 5000 ms is hard-coded in various places in qtestlib. In addition to that, qtestlib will actually double that value in order to check if a longer timeout value would be required and inform the user of it. So, each time QTRY_VERIFY/QTRY_COMPARE times out, it takes a full 10 seconds to do so.
That might be fine for whatever cases it was originally written for, but in the majority of my tests, it's just wasting my time. In most cases I do actually need to wait for it to finish because I don't know which check it failed for if I kill the test manually.
I would like to be able to configure the default value once (e.g. a Qt configure argument) and special-case the longer waits manually with QTRY_VERIFY_WITH_TIMEOUT, so that my code isn't full of QTRY_VERIFY_WITH_TIMEOUT calls, as QTRY_VERIFY_WITH_TIMEOUT is a very long name. Note that an application argument would be kinda annoying, as it would have to be set every time someone sets their project up in Creator. Another possibility would be a static setter in e.g. QTest.
Attachments
Issue Links
- is cloned by
-
QTBUG-110314 Add QTestRandomNumber that tracks the seed used for reproducability
- Open
- relates to
-
QTBUG-95421 need the ability to delay (increment timestamps of) touch events, as with mouse events
- Reported
-
QTBUG-104087 qtestlib watchdog timeout should be runtime-configurable
- Reported