Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
UNIT TEST METHOD AND APPARATUS, ELECTRONIC DEVICE, STORAGE MEDIUM, AND PROGRAM
Document Type and Number:
WIPO Patent Application WO/2023/103574
Kind Code:
A1
Abstract:
Embodiments of the present application provide a unit test method and apparatus, an electronic device, a storage medium, and computer program. The method comprises: obtaining a plurality of statement sets of an i-th population, each statement set comprising at least one statement, and the statement being used for defining behaviors of a mock object; performing mutation operation on each statement according to the mutation operator corresponding to each statement to obtain a mutation operation result; performing crossing-over on two statement sets in the mutation operation result to obtain an (i+1)-th population; if it is determined that a statement set conforming to the test assertion of a test case is present in the (i+1)-th population, using the statement set conforming to the test assertion to define a mock object; and performing a unit test on the test case on the basis of the mock object.

Inventors:
ZHANG CHENGZHI (CN)
ZHU HENGCHENG (CN)
WEI LILI (CN)
SHENG QIN (CN)
SONG LIHONG (CN)
ZHANG BING (CN)
Application Number:
PCT/CN2022/124385
Publication Date:
June 15, 2023
Filing Date:
October 10, 2022
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
WEBANK CO LTD (CN)
UNIV HONG KONG SCIENCE & TECH (CN)
International Classes:
G06N3/12; G06F11/36
Foreign References:
CN114153742A2022-03-08
CN106528433A2017-03-22
CN103294595A2013-09-11
CN112559344A2021-03-26
CN103559129A2014-02-05
CN112346997A2021-02-09
JP2021096685A2021-06-24
Attorney, Agent or Firm:
CHINA PAT INTELLECTUAL PROPERTY OFFICE (CN)
Download PDF: