B2G/QA/Automation/Style Guide/Python Script Style: Difference between revisions

Jump to navigation Jump to search
Line 124: Line 124:
* Sleep() does not care about the UI changes in app.  If you're using sleep() to just 'wait enough', you'll run into problems when the app behavior changes and requires more/less time to wait.
* Sleep() does not care about the UI changes in app.  If you're using sleep() to just 'wait enough', you'll run into problems when the app behavior changes and requires more/less time to wait.
* Sleep() does not care about the phone performance.  If the speed of the execution changes because of the changes in memory allocation or running on a newer/older devices, it will still wait for specified time.
* Sleep() does not care about the phone performance.  If the speed of the execution changes because of the changes in memory allocation or running on a newer/older devices, it will still wait for specified time.
<br>
When you have to use the sleep() call, make sure to put in the comment explaining why other methods won't work.
When you have to use the sleep() call, make sure to put in the comment explaining why other methods won't work.


352

edits

Navigation menu