Transferring Tests Across Web Applications

When manually testing Web applications, humans can go with vague, yet general instructions, such as “add the product to shopping cart and proceed to checkout”. Can we teach a robot to follow such instructions as well? We show how to leverage tests of other applications to guide test generation for new applications in the same domain: Given a test for payments on Amazon, we guide test generation on eBay towards payment functionality, exploiting the semantic similarity between UI elements across both applications. Evaluated on twelve Web apps in three domains, our approach allows for discovering deep functionality in a few minutes, where an undirected crawler would require days or weeks to accomplish the same task.

[1]  Farn Wang,et al.  Using Semantic Similarity for Input Topic Identification in Crawling-based Web Application Testing , 2016, ArXiv.

[2]  Burns David Selenium 2 Testing Tools: Beginner's Guide , 2012 .

[3]  Diana Inkpen,et al.  Semantic text similarity using corpus-based word similarity and string similarity , 2008, ACM Trans. Knowl. Discov. Data.

[4]  Arie van Deursen,et al.  Crawling Ajax-Based Web Applications through Dynamic Analysis of User Interface State Changes , 2012, TWEB.

[5]  Martin Burger,et al.  WebMate: Generating Test Cases for Web 2.0 , 2013, SWQD.

[6]  Hinrich Schütze,et al.  Introduction to information retrieval , 2008 .

[7]  Alessandro Orso,et al.  Cross-platform feature matching for web applications , 2014, ISSTA 2014.

[8]  Saurabh Sinha,et al.  Efficient and change-resilient test automation: An industrial case study , 2013, 2013 35th International Conference on Software Engineering (ICSE).

[9]  Fei-Fei Li,et al.  Deep visual-semantic alignments for generating image descriptions , 2015, CVPR.

[10]  Arie van Deursen,et al.  Invariant-Based Automatic Testing of Modern Web Applications , 2012, IEEE Transactions on Software Engineering.

[11]  John A. Carroll,et al.  Applied morphological processing of English , 2001, Natural Language Engineering.

[12]  M. Elgin Akpinar,et al.  Vision Based Page Segmentation Algorithm: Extended and Perceived Success , 2013, ICWE Workshops.

[13]  Anjali Ganesh Jivani,et al.  A Comparative Study of Stemming Algorithms , 2011 .

[14]  Gilad Mishne,et al.  ClickRank: Learning Session-Context Models to Enrich Web Search Ranking , 2012, TWEB.

[15]  Farn Wang,et al.  Using Semantic Similarity in Crawling-Based Web Application Testing , 2017, 2017 IEEE International Conference on Software Testing, Verification and Validation (ICST).

[16]  Saurabh Sinha,et al.  Automating test automation , 2012, 2012 34th International Conference on Software Engineering (ICSE).

[17]  Andreas Zeller,et al.  Mining behavior models from enterprise web applications , 2013, ESEC/FSE 2013.

[18]  Tharam S. Dillon,et al.  Tree model guided candidate generation for mining frequent subtrees from XML documents , 2008, TKDD.

[19]  Andreas Rau Topic-Driven Testing , 2017, 2017 IEEE/ACM 39th International Conference on Software Engineering Companion (ICSE-C).

[20]  Lori L. Pollock,et al.  Automated Oracle Comparators for TestingWeb Applications , 2007, The 18th IEEE International Symposium on Software Reliability (ISSRE '07).