def precondition(): testSettings.logScreenshotOnError = True testSettings.logScreenshotOnFail = True global stTestcaseID, iExecutionTime, iPowerCycles, iIterate_exception stTestcaseID, iExecutionTime, iPowerCycles, iIterate_exception = Stability.globalPreCondition( )