skip to main content
research-article
Free Access

Beyond Page Objects: Testing Web Applications with State Objects: Use states to drive your tests

Published:08 June 2015Publication History
Skip Abstract Section

Abstract

End-to-end testing of Web applications typically involves tricky interactions with Web pages by means of a framework such as Selenium WebDriver. The recommended method for hiding such Web-page intricacies is to use page objects, but there are questions to answer first: Which page objects should you create when testing Web applications? What actions should you include in a page object? Which test scenarios should you specify, given your page objects?

References

  1. AngularJS. ngInclude directive; https://docs.angularjs.org/api/ng/directive/ngInclude.Google ScholarGoogle Scholar
  2. Antoniol, G., Briand, L.C., Di Penta, M., Labiche, Y. 2002. A case study using the round-trip strategy for state-based class testing. Proceedings of the 13th International Symposium on Software Reliability Engineering (ISSRE). IEEE, pp. 269-279. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. Binder, R. V. 1999. Testing Object-oriented Systems. Addison-Wesley. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. Fowler, M. 2013. PageObject; http://martinfowler.com/bliki/PageObject.html.Google ScholarGoogle Scholar
  5. North, D. What's in a story?; http://dannorth.net/whats-in-a-story/.Google ScholarGoogle Scholar
  6. Selenium. 2013. Page Objects; https://github.com/SeleniumHQ/selenium/wiki/PageObjectsGoogle ScholarGoogle Scholar
  7. Selenium. 2014. Promises. In WebDriverJS User's Guide; https://code.google.com/p/selenium/wiki/WebDriverJs#Promises.Google ScholarGoogle Scholar
  8. SeleniumHQ. WebDriver; http://docs.seleniumhq.org/projects/webdriver/.Google ScholarGoogle Scholar

Index Terms

  1. Beyond Page Objects: Testing Web Applications with State Objects: Use states to drive your tests

        Recommendations

        Comments

        Login options

        Check if you have access through your login credentials or your institution to get full access on this article.

        Sign in

        Full Access

        • Published in

          cover image Queue
          Queue  Volume 13, Issue 6
          HCI
          June 2015
          34 pages
          ISSN:1542-7730
          EISSN:1542-7749
          DOI:10.1145/2791301
          Issue’s Table of Contents

          Copyright © 2015 ACM

          Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

          Publisher

          Association for Computing Machinery

          New York, NY, United States

          Publication History

          • Published: 8 June 2015

          Permissions

          Request permissions about this article.

          Request Permissions

          Check for updates

          Qualifiers

          • research-article
          • Popular
          • Refereed

        PDF Format

        View or Download as a PDF file.

        PDF

        eReader

        View online with eReader.

        eReader

        HTML Format

        View this article in HTML Format .

        View HTML Format