Test Data Generation for Web Applications: A Constraint and Knowledge-based Approach

Software testing is an important part of the software development process. Much work been has done on automating various parts of testing. In previous work, we had proposed a knowledge-based approach to generate test scenarios for Web applications. However, our previous work did not account for generation of actual test data. Thus, in order to execute the test scenarios, the user would need to (manually) create the test data. This paper proposes an approach to generate test data for our previously proposed test scenario generation tool. Our approach can generate two types of test data: constraint-based test data and database-based test data. Our tool can now automatically execute the combined test scenario and test data. We confirmed the usefulness of our approach through a case study. Keywords-test data generation; Web applications; test scenario

[1]  Tadahiro Uehara,et al.  Test data generation for web application using a UML class diagram with OCL constraints , 2011, Innovations in Systems and Software Engineering.

[2]  Andreas Zeller,et al.  Search-based system testing: high coverage, no false alarms , 2012, ISSTA 2012.

[3]  James C. King,et al.  Symbolic execution and program testing , 1976, CACM.

[4]  Michael D. Ernst,et al.  Randoop: feedback-directed random testing for Java , 2007, OOPSLA '07.

[5]  Koushik Sen,et al.  CUTE: a concolic unit testing engine for C , 2005, ESEC/FSE-13.

[6]  Phil McMinn,et al.  Search-Based Software Testing: Past, Present and Future , 2011, 2011 IEEE Fourth International Conference on Software Testing, Verification and Validation Workshops.

[7]  Mark Harman,et al.  Automated web application testing using search based software engineering , 2011, 2011 26th IEEE/ACM International Conference on Automated Software Engineering (ASE 2011).

[8]  Shingo Takada,et al.  A Knowledge-based Approach for Generating Test Scenarios for Web Applications , 2013, SEKE.

[9]  Leonardo Mariani,et al.  AutoBlackTest: Automatic Black-Box Testing of Interactive Applications , 2012, 2012 IEEE Fifth International Conference on Software Testing, Verification and Validation.