Data Flow Testing of CGI Based Web Applications

The functionality of most programs is delivered in terms of data. The values are somehow received by variables, which represent data and these values are used in computation of values for other variables. Data flow testing focuses on variable definition and variable usage. One of the fastest growing and most wide-spread application domains is the web application domain. The wide acceptance of Internet Technology requires sophisticated and high quality web applications. There are some sorts of entry forms that are provided by many web pages. These web pages require the user to supply input to the forms and click on the button or image. Sometimes, this program (commonly known as CGI program) is just an interface to an existing database, massaging user input into a database understandable format and massaging the database's output into the web browser understandable format (usually HTML). In this paper, we propose a technique for data flow testing of CGI programs that are written in Perl. We first propose a data flow model and compute definition-use chains. Then, we identify the paths to be exercised for each of these definition-use pairs.

[1]  Manfred Widera Data Flow Coverage for Testing Erlang Programs , 2005 .

[2]  Chien-Hung Liu Data flow analysis and testing of JSP-based Web applications , 2006, Inf. Softw. Technol..

[3]  Jianjun Zhao,et al.  Data-flow-based unit testing of aspect-oriented programs , 2003, Proceedings 27th Annual International Computer Software and Applications Conference. COMPAC 2003.

[4]  Jan Wen Voung,et al.  Dataflow analysis for concurrent programs using datarace detection , 2008, PLDI '08.

[5]  Rajiv Gupta,et al.  Data Flow Testing , 2002, The Compiler Design Handbook.

[6]  Priti Shankar,et al.  The Compiler Design Handbook: Optimizations and Machine Code Generation , 2002, The Compiler Design Handbook.

[7]  Gopalaswamy Ramesh,et al.  Software Testing: Principles and Practices , 2005 .

[8]  Herbert Kuchen,et al.  Data-flow testing of declarative programs , 2008, ICFP 2008.

[9]  Bixin Li,et al.  Analyzing information-flow in java program based on slicing technique , 2002, SOEN.

[10]  Gregg Rothermel,et al.  Performing data flow testing on classes , 1994, SIGSOFT '94.

[11]  Paul C. Jorgensen,et al.  Software Testing: A Craftsman's Approach , 1995 .

[12]  Barbara G. Ryder,et al.  Data-flow-based Testing of Object-Oriented Libraries , 1999 .

[13]  Alfred V. Aho,et al.  Compilers: Principles, Techniques, and Tools , 1986, Addison-Wesley series in computer science / World student series edition.

[14]  Alfred V. Aho,et al.  , “Compilers- Principles, Techniques, and Tools”, Pearson Education Asia, 2007. , 2015 .