@inproceedings{SisLab4069, booktitle = {12th International Conference on Knowledge and Systems Engineering (KSE 2020)}, month = {November}, title = {Generate Test Data from C/C++ Source Code using Weighted CFG and Boundary Values}, author = {Nguyen Huong Tran and Minh Kha Do and Hoang Viet Tran and Ngoc Hung Pham}, year = {2020}, url = {https://eprints.uet.vnu.edu.vn/eprints/id/eprint/4069/}, 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.} }