Test Case Generation
Essay by review • February 18, 2011 • Research Paper • 1,498 Words (6 Pages) • 1,301 Views
Introduction
1.1 Purpose
Generating minimal test cases for effective program test is a tool for generating test cases for a �c’ program. The main purpose of this tool is to automatically generate the minimum number of test cases for a given program to perform effective test on it. This document describes the software requirements for Test Case Generation tool.
1.2 Intended Audience and Reading Suggestions
The intent of this document is to apprise prospective users of the proposed features of Test Case Generation for the purpose of solicitation of comments and suggestions. The current design is a product of preliminary discussions of data flow diagrams and desired features. This document covers only the current release; further functionality can be added to future releases.
1.3 Project Scope
1.3.1 Aim and Objective
Misconception inputs will result in wrong functionality, in order to acquire the possible outcomes, a tool is to be designed which will diagnosis the code and generates the test cases which assist the tester.
Primary objective of test case generation is that you can use insight of how the software is constructed to efficiently test it. This testing efficiency comes from having the ability to target specific areas of the code for testing, and also allows more efficient selections of test to run.
1.3.2 Motivation
One of the challenges while designing a tool to test the program is to check the efficiency of the code.
Some reasons are:
• While coding, developer will have greater degree of assistance.
• In order to minimize the testing effort, minimal test cases are generated.
• To effectively test the program
1.4 References
• www.processimpact.com
• Writing Software Requirements Specifications A Technical Communication Community.html.
2. Overall Description
2.1 Product Perspective
Testing a program with all possible test inputs is a critical task and also time consuming. Indeed tester also needs in depth knowledge of the code and also the programming language of the program to generate its test cases.
Automatic test case generation is an important task in software development. This topic mainly focuses on white box approach which is based on the source code. Test Case generation is the process of identifying a set of test data which satisfies the selected test criteria.
This approach, will detect path infeasibility in early stages in path selection. Although this technique can partially alleviate the infeasibility problem.
Generating minimal test cases for effective program test tool provide the tester with the ability to target specific areas of the code for testing and also allow more efficient selection of the test to run.
2.2 Product Features
It is useful to have a framework that generates Test Cases in an automated manner. The objective of this framework would be as follows:
1. Complementing the feature of White Box Testing that provides as a solution of internal code test.
2. This framework could serve as a useful checklist of all the critical features to be tested against the code.
3. From a tester perspective, it helps one assess the minimal number of test cases to test the entire program.
4. With this utility factor it calculates the Test Effective Ratio.
2.3 User Classes and Characteristics
The main class of user of this program is
• tester
Main Flow:
1. The tester will import a �c’ program to test.
2. Once the program is executed, the tester will have the minimum number of test cases for the given program.
3. Tester will have a privilege to select the type of coverage he wants to perform for the test.
4. Based on the coverage selection, test cases will be generated.
Alternate Flow:
1. The tester will import a �c’ program to test.
2. Once the program is tested, the tester views the test cases generated for the particular coverage.
3. Based on these inputs, test effective ratio will be generated.
2.4 Operating Environment
a. Generating minimal test cases for effective program test is a Java Application and the stated requirement for the JVM shall be Java.
b. Presently there is Solaris, Linux, and Windows support for Java.
c. For Graphical User Interface, Net Beans or Eclipse is used to have a greater degree of interfaces between end user and the tool.
2.5 Design and Implementation Constraints
• The code should be error free.
• Test cases should be generated for every path.
• For each predicate generate Test Cases.
• Test Date range should be within the range of the loop.
• Boundary value should be checked properly.
2.6 User Documentation
There will be an offline of White Box Testing technique and Test Case Generation manual, and floating tooltips will be employed in the application.
2.7 Assumptions
• Adequate hardware and software resources will be available.
• Adequate manpower will be available.
• Adequate skills will
...
...