In this work a tool is developed to generate test cases automatically for C++ Programs. This approach analyses the prototypes and is focused to detect defects in the program. A defect results due to omission or commission made when developing the software. This work checks the correctness of the program when operator[] is overloaded. In the context of inheritance when virtual function is used, it has been observed that expected results are not achieved under certain circumstances. A test case has been developed to handle this situation. Test case has been prepared to ascertain the working of template functions in the context of character input. A test case has been developed to tackle dangling reference problem. In the context of exception handling, test cases have been developed to ascertain the working of the program.
展开▼