DocumentCode :
2891637
Title :
Unit Testing: Static Analysis and Dynamic Analysis
Author :
Zhang, Na ; Bao, Xiaoan ; Ding, Zuohua
Author_Institution :
Center of Math. Comput. & Software Eng., Zhejiang Sci-Tech Univ., Hangzhou, China
fYear :
2009
fDate :
24-26 Nov. 2009
Firstpage :
232
Lastpage :
237
Abstract :
Unit testing is used by programmers to discover bugs with least cost. Static unit testing offers the minimum path coverage while dynamic unit testing detects control and data flow problems. In this paper, we develop a method to translate a program from "character" mode to "graph" mode, so that the tester can picture the existing code without losing the ability to generate tests. In static analysis phrase, this method can help testers to detect grammar errors, extra code, non-initialized variables, search paths to cover the code, and generate tests. In dynamic phrase, testers can get benefit from this method to check internal logic, exception and boundary conditions.
Keywords :
data flow analysis; program debugging; program testing; character mode; data flow problems detection; dynamic unit testing; extra code detection; grammar errors detection; graph mode; noninitialized variables detection; search paths detection; static unit testing; Boundary conditions; Computer bugs; Costs; Information analysis; Information technology; Logic testing; Petri nets; Software engineering; Software testing; Vehicle crash testing;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Computer Sciences and Convergence Information Technology, 2009. ICCIT '09. Fourth International Conference on
Conference_Location :
Seoul
Print_ISBN :
978-1-4244-5244-6
Electronic_ISBN :
978-0-7695-3896-9
Type :
conf
DOI :
10.1109/ICCIT.2009.106
Filename :
5367954
Link To Document :
بازگشت