B2G/QA/Automation/UI/Best Practices: Difference between revisions

Line 8: Line 8:
= Synchronization =
= Synchronization =


* Waits should almost always be conditional, using [http://marionette-client.readthedocs.org/en/latest/reference.html#wait Marionette Wait().until() constructs].
* Waits should almost always be conditional, using Marionette [http://marionette-client.readthedocs.org/en/latest/reference.html#wait Wait().until()] constructs.
* Conversely, any sort of hard sleep() type construct is discouraged. These cause tests to have a longer best-case execution time.
* Conversely, any sort of hard sleep() type construct is discouraged. These cause tests to have a longer best-case execution time.


canmove, Confirmed users
2,041

edits