APOGEN

Automatic Page Object Generator


Page Object is a design pattern aimed at making web test scripts more readable, robust and maintainable. Unfortunately, the effort to manually create the page objects needed for a web application may be substantial and existing tools do not help web developers in such task. APOGEN is a tool for the automatic generation of page objects to be used for end-to-end testing of web applications. Our tool automatically derives a testing model by reverse-engineering the target web application and uses a combination of clustering, dynamic and static analysis to generate Java page objects for the popular Selenium WebDriver framework.

Main publication

  • Andrea Stocco, Maurizio Leotta, Filippo Ricca, Paolo Tonella.
    APOGEN: Automatic Page Object Generator for Web Testing.
    Software Quality Journal, Editors: Rachel Harrison. Springer, 2016.
    DOI: 10.1007/s11219-016-9331-9, ISSN: 0963-9314.

Previous publications

  • Andrea Stocco, Maurizio Leotta, Filippo Ricca, Paolo Tonella.
    Clustering-Aided Page Object Generation for Web Testing.
    In: Proceedings of 16th International Conference on Web Engineering (ICWE 2016), 1-9 June 2016, Lugano, Switzerland, pp.132-151, Volume 9671, Lecture Notes in Computer Science (LNCS), Editors: Alessandro Bozzon, Philippe Cudré-Mauroux, Cesare Pautasso. Springer, 2016.
    DOI: 10.1007/978-3-319-38791-8_8, ISBN: 978-3-319-38790-1.
    [Best Student Paper Award]
  • Andrea Stocco, Maurizio Leotta, Filippo Ricca, Paolo Tonella.
    Automatic Page Object Generation with APOGEN.
    In: Proceedings of 16th International Conference on Web Engineering (ICWE 2016), 1-9 June 2016, Lugano, Switzerland, pp.533-537, Volume 9671, Lecture Notes in Computer Science (LNCS), Editors: Alessandro Bozzon, Philippe Cudré-Mauroux, Cesare Pautasso. Springer, 2016.
    DOI: 10.1007/978-3-319-38791-8_42, ISBN: 978-3-319-38790-1.
  • Andrea Stocco, Maurizio Leotta, Filippo Ricca, Paolo Tonella.
    Why Creating Web Page Objects Manually If It Can Be Done Automatically?
    In: Proceedings of 10th IEEE/ACM International Workshop on Automation of Software Test (AST 2015 co-located with ICSE 2015), 23-24 May 2015, Firenze, Italy, pp.70-74, IEEE, 2015.
    DOI: 10.1109/AST.2015.26, ISBN: 978-1-4673-7022-6.

Awards

The paper: "Clustering-Aided Page Object Generation for Web Testing" won the Best Student Paper Award at the 16th International Conference on Web Engineering (ICWE).

Source Code and Demos

APOGEN can be downloaded HERE

A user manual of APOGEN can be found HERE

A demo of the Clusters Visual Editor (CVE) of APOGEN HERE

Demo Video 1: Page Objects generation on PHP AddressBook and Test Case Development



Demo Video 2: Clustering-Aided Page Objects generation: