Automatic Page Object Generation with APOGEN

  • Andrea Stocco
  • Maurizio Leotta
  • Filippo Ricca
  • Paolo Tonella
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 9671)


Page objects are used in web test automation to decouple the test cases logic from their concrete implementation. Despite the undeniable advantages they bring, as decreasing the maintenance effort of a test suite, yet the burden of their manual development limits their wide adoption. In this demo paper, we give an overview of Apogen, a tool that leverages reverse engineering, clustering and static analysis, to automatically generate Java page objects for web applications.


Test Code Abstract Syntax Tree High Level Architecture Document Object Model Page Object 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


  1. 1.
    Leotta, M., Clerissi, D., Ricca, F., Tonella, P.: Approaches and tools for automated end-to-end web testing. Adv. Comput. 101, 193–237 (2016)CrossRefGoogle Scholar
  2. 2.
    Leotta, M., Stocco, A., Ricca, F., Tonella, P.: Using multi-locators to increase the robustness of web test cases. In: Proceedings of 8th International Conference on Software Testing, Verification and Validation, ICST, pp. 1–10. IEEE (2015)Google Scholar
  3. 3.
    Leotta, M., Stocco, A., Ricca, F., Tonella, P.: ROBULA+: an algorithm for generating robust XPath locators for web testing. J. Softw. Evol. Process 28(3), 177–204 (2016)CrossRefGoogle Scholar
  4. 4.
    Mesbah, A., van Deursen, A., Lenselink, S.: Crawling Ajax-based web applications through dynamic analysis of user interface state changes. TWEB 6(1), 1–30 (2012)CrossRefGoogle Scholar
  5. 5.
    Stocco, A., Leotta, M., Ricca, F., Tonella, P.: Why creating web page objects manually if it can be done automatically? In: Proceedings of 10th International Workshop on Automation of Software Test, AST, pp. 70–74. IEEE (2015)Google Scholar
  6. 6.
    Stocco, A., Leotta, M., Ricca, F., Tonella, P.: Clustering-aided web page object generation. In: Bozzon, A., Cudré-Mauroux, P., Pautasso, C. (eds.) ICWE 2016. LNCS, vol. 9671, pp. 132–151. Springer, Heidelberg (2016)Google Scholar

Copyright information

© Springer International Publishing Switzerland 2016

Authors and Affiliations

  • Andrea Stocco
    • 1
  • Maurizio Leotta
    • 1
  • Filippo Ricca
    • 1
  • Paolo Tonella
    • 2
  1. 1.DIBRIS – Università di GenovaGenovaItaly
  2. 2.Fondazione Bruno KesslerTrentoItaly

Personalised recommendations