We propose a slice based testing technique to generate test paths for web applications. Our web application is based on
Common Gateway Interface
(CGI) and we have used
programming language. Our technique uses slicing criterion for all variables defined and used in the program. Then, it computes the slices for each of these criteria and generates test paths. Finally, we generate test cases using these test paths.