eprintid: 4069 rev_number: 7 eprint_status: archive userid: 304 dir: disk0/00/00/40/69 datestamp: 2020-10-02 03:30:04 lastmod: 2020-10-02 03:30:04 status_changed: 2020-10-02 03:30:04 type: conference_item metadata_visibility: show creators_name: Tran, Nguyen Huong creators_name: Do, Minh Kha creators_name: Tran, Hoang Viet creators_name: Pham, Ngoc Hung creators_id: 17028005@vnu.edu.vn creators_id: 17020827@vnu.edu.vn creators_id: vietth2004@gmail.com creators_id: hungpn@vnu.edu.vn title: Generate Test Data from C/C++ Source Code using Weighted CFG and Boundary Values ispublished: inpress subjects: IT divisions: fac_fit 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. date: 2020-11 date_type: published full_text_status: public pres_type: paper event_title: 12th International Conference on Knowledge and Systems Engineering (KSE 2020) event_location: Can Tho, Vietnam event_dates: 12-14 November, 2020 event_type: conference refereed: FALSE citation: 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) document_url: https://eprints.uet.vnu.edu.vn/eprints/id/eprint/4069/1/KSE_paper_Submit_29_9_2020.pdf