QTAF icon indicating copy to clipboard operation
QTAF copied to clipboard

why disable use __init__?

Open FunkyGod opened this issue 2 years ago • 2 comments

image image want reload function init! tks.

FunkyGod avatar Jan 10 '23 07:01 FunkyGod

Why not use preTest fun?

pig98 avatar May 19 '23 10:05 pig98

Please use preTest or initTest instead of __init__. The reason we disable __init__ for a TestCase is to prevent unexpected behavior during the test loading stage. For example, if you have pending operations like a network request that could cause significant delays, it will cause test loading being hang or slow.

eeelin avatar May 19 '23 15:05 eeelin