B2G/QA/Automation/Style Guide/General Concepts: Difference between revisions

From MozillaWiki
< B2G‎ | QA‎ | Automation‎ | Style Guide
Jump to navigation Jump to search
(page creation)
 
Line 4: Line 4:
== End-to-end Testing ==
== End-to-end Testing ==
== The Page Object Pattern ==
== The Page Object Pattern ==
TBD - jlorenzo
* where to call marionette's APIs
* why a page class shouldn't import data from the test
* All page objects should inherit from <code>Page</code> in page.py.
* Page objects should not do asserts. This should be done within the test.
* Each page should be grouped within one module.
* If using multiple words to describe a module separate them with underscores '_'
* Single quotes (') should be used instead of double (") throughout.
* Methods should have a single purpose.
== Commonly Used Acronyms ==
== Commonly Used Acronyms ==

Revision as of 15:29, 3 November 2015

General Concepts

Web Testing

End-to-end Testing

The Page Object Pattern

TBD - jlorenzo

  • where to call marionette's APIs
  • why a page class shouldn't import data from the test
  • All page objects should inherit from Page in page.py.
  • Page objects should not do asserts. This should be done within the test.
  • Each page should be grouped within one module.
  • If using multiple words to describe a module separate them with underscores '_'
  • Single quotes (') should be used instead of double (") throughout.
  • Methods should have a single purpose.

Commonly Used Acronyms