Abstract
In this work a tool is developed to generate test cases automatically for C++ programs. This approach analyses the prototypes. When data type differs, the compiler raises a warning and implicitly converts and performs the operation. This may affect further computations in number crunching applications. So, the tool checks the data type of the actual parameters and formal parameters for a exact match. If a match doesn’t occur, the tool reports this situation. This implementation is mainly focused to detect defects in the program. A defect results due to omission or mismanipulation. 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 and prepared to ascertain the working of template functions in the context of character input, to tackle dangling reference problem and to ascertain the working of the program, in the context of exception handling.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Rothermel, G., Harrold, M.J., Dedhia, J.: Regression Test Selection for C++ Software. Journal of Software Testing and Reliability 10, 1–35 (2000)
Beizer, B.: Software-testing techniques. Van Nostrand Reinhold, New York (1990)
Younessi, H.: Object -Oriented Defect Management of Software. Prentice Hall, USA (2002)
Edward, K.: Software Testing in the Real World. Addison-Wesley, Reading (1995)
Myers, G.J.: The Art of Software Testing. John Wiley & Sons, Chichester (1979)
Antoniol, G., Briand, L.C., Penta, M.D., Labiche, Y.: A case study using the round trip strategy for state based class testing. Technical Report, Research Centre on Software Technology, 1–10 (2002)
Delamaro, M.E., Maldonado, J.C., Mathur, A.P.: Interface Mutation: An Approach for Integration Testing. IEEE Transactions on Software Engineering 27, 228–248 (2001)
Souter, A.L., Pollock, L.: A Strategy for Testing Object Oriented Software. In: ACM International Symposium on Software Testing and Analysis, Portland, pp. 49–59 (2000)
Kim, Y.G., Hong, H.S., Bae, D.H., Cha, S.D.: Test Case Generation from UML State Diagrams. IEE Proceedings on Software 4 (1999)
Doong, R.K., Frankl, P.G.: The ASTOOT approach to testing object oriented programs. ACM Transactions on Software Engineering and Methodology 3, 101–130 (1994)
Harrold, M.J., Rothermel, G.: Performing data flow testing on classes. ACM Software Engineering Notes 19, 154–163 (1994)
McGregor, J.D., Harrold, M.J., Fitzpatrick, K.J.: Incremental Testing of Object Oriented class structures. In: 14th IEEE International Conference on Software Engineering, pp. 68–80. IEEE Computer Society, Los Alamitos (1992)
Tse, T.H., Xu, Z.: Test Case Generation For Class Level Object-Oriented Testing. In: Quality Process Convergence: Proceedings of 9th International software Quality Week, California, pp. 1–12 (1996)
Korel, B.: Automated test data generation for Programs with Procedures. In: ACM International Symposium on Software Testing and Analysis, USA, pp. 209–215 (1996)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2004 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Sarala, S., Valli, S. (2004). A Tool to Automatically Detect Defects in C++ Programs. In: Das, G., Gulati, V.P. (eds) Intelligent Information Technology. CIT 2004. Lecture Notes in Computer Science, vol 3356. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-30561-3_32
Download citation
DOI: https://doi.org/10.1007/978-3-540-30561-3_32
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-24126-3
Online ISBN: 978-3-540-30561-3
eBook Packages: Computer ScienceComputer Science (R0)