VNU-UET Repository

Generate Test Data from C/C++ Source Code using Weighted CFG and Boundary Values

Tran, Nguyen Huong and Do, Minh Kha and Tran, Hoang Viet and Pham, Ngoc Hung (2020) Generate Test Data from C/C++ Source Code using Weighted CFG and Boundary Values. In: 12th International Conference on Knowledge and Systems Engineering (KSE 2020), 12-14 November, 2020, Can Tho, Vietnam. (In Press)

[img] PDF
Download (223kB)

Abstract

This paper presents two test data automatic generation methods which are based on weighted control flow graph (named WCFT) and boundary values of input parameters (named BVTG). Firstly, WCFT method generates a CFG from a given unit function, updates weight for it, then generates test data from the greatest weight test paths. In the meantime, WCFT can find dead code that can be used for automatic source code errors fix. Secondly, BVTG method generates test data from boundary values of input parameters of the given unit function. The combination of the two generated test data sets from these two methods will improve the error detection ability while maintaining a high code coverage. An implemented tool (named WCFT4Cpp) and experimental results are also presented to show the effectiveness of the two proposed methods in both time required to generate test data and error detection ability.

Item Type: Conference or Workshop Item (Paper)
Subjects: Information Technology (IT)
Divisions: Faculty of Information Technology (FIT)
Depositing User: Phạm Ng�c Hùng
Date Deposited: 02 Oct 2020 03:30
Last Modified: 02 Oct 2020 03:30
URI: http://eprints.uet.vnu.edu.vn/eprints/id/eprint/4069

Actions (login required)

View Item View Item