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

(File Headers added)
Line 120: Line 120:
* Actions should wait for the appropriate action to complete. This could be an implicit or explicit wait. For example, clicking a login button might explicitly wait for a username field to be visible.
* Actions should wait for the appropriate action to complete. This could be an implicit or explicit wait. For example, clicking a login button might explicitly wait for a username field to be visible.


== Using high-level methods <jlorenzo>==
== Using high-level methods ==
* In a test script, make sure to only have steps that are high level.  Details can be encapsulated in the helper methods.
* In a test script, make sure to only have steps that are high level.  Details can be encapsulated in the helper methods.
* A test should remain a short entry point which leads to more details (like the main() function of a program).
* A test should remain a short entry point which leads to more details (like the main() function of a program).
352

edits