CN107622007A - Application testing method and device - Google Patents
Application testing method and device Download PDFInfo
- Publication number
- CN107622007A CN107622007A CN201610555124.5A CN201610555124A CN107622007A CN 107622007 A CN107622007 A CN 107622007A CN 201610555124 A CN201610555124 A CN 201610555124A CN 107622007 A CN107622007 A CN 107622007A
- Authority
- CN
- China
- Prior art keywords
- application
- function
- application sub
- sub
- functions
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
本申请公开了应用测试方法和装置。所述方法的一具体实施方式包括:获取对应用进行测试的候选测试用例集合,其中,应用包括至少一个应用子功能,每个应用子功能与用于对该应用子功能进行测试的测试用例相对应;从至少一个应用子功能中确定待用于测试的应用子功能集合,其中,应用子功能集合包括以下至少一项:按照应用子功能的缺陷数由多到少的顺序选取的预定数目的应用子功能;具有最大损失期望值的应用子功能,最大损失期望值是根据应用子功能的历史缺陷数据进行分析得出的;从候选测试用例集合中获取与应用子功能集合对应的测试用例集合;利用测试用例集合对应用进行测试。该实施方式实现了富于针对性的应用测试。
The application discloses application testing methods and devices. A specific implementation manner of the method includes: obtaining a set of candidate test cases for testing an application, wherein the application includes at least one application sub-function, and each application sub-function corresponds to a test case for testing the application sub-function. Corresponding; determining a set of application sub-functions to be used for testing from at least one application sub-function, wherein the set of application sub-functions includes at least one of the following: a predetermined number of Application sub-function; the application sub-function with the maximum expected loss value, the maximum expected loss value is obtained by analyzing the historical defect data of the application sub-function; obtain the test case set corresponding to the application sub-function set from the candidate test case set; use A collection of test cases tests the application. This embodiment realizes pertinent application testing.
Description
技术领域technical field
本申请涉及计算机技术领域,具体涉及测试技术领域,尤其涉及应用测试方法和应用测试装置。The present application relates to the field of computer technology, in particular to the field of testing technology, in particular to an application testing method and an application testing device.
背景技术Background technique
在完成一个应用的基本功能之后,还会对应用增加新的功能。新功能代码并入原有代码后,普遍会对原有功能产生影响,有可接受的影响,也有严重影响原有功能的影响。为了保障原有功能的正常使用,尽量降低新功能对原有功能的影响,在新功能代码并入后,必须对应用进行回归测试。After completing the basic functions of an application, new functions will be added to the application. After the new function code is merged into the original code, it will generally have an impact on the original function, with acceptable impact and serious impact on the original function. In order to ensure the normal use of the original function and minimize the impact of the new function on the original function, after the new function code is incorporated, the application must be regression tested.
然而,现有的应用测试方式通常是由测试人员根据经验和测试对象的特点,选择应用的主要功能对应的测试用例或者全部功能对应的测试用例对应用进行测试,从而,存在着功能的历史缺陷数据利用不足,应用测试缺乏针对性的问题。However, in the existing application testing methods, the testers usually select the test cases corresponding to the main functions of the application or the test cases corresponding to all functions to test the application according to the experience and the characteristics of the test object. Therefore, there are historical defects in the functions. Insufficient data utilization and lack of targeted application testing.
发明内容Contents of the invention
本申请的目的在于提出一种改进的应用测试方法和装置,来解决以上背景技术部分提到的技术问题。The purpose of this application is to propose an improved application testing method and device to solve the technical problems mentioned in the background technology section above.
第一方面,本申请提供了一种应用测试方法,所述方法包括:获取对应用进行测试的候选测试用例集合,其中,所述应用包括至少一个应用子功能,每个应用子功能与用于对该应用子功能进行测试的测试用例相对应;从所述至少一个应用子功能中确定待用于测试的应用子功能集合,其中,所述应用子功能集合包括以下至少一项:按照应用子功能的缺陷数由多到少的顺序选取的预定数目的应用子功能;具有最大损失期望值的应用子功能,所述最大损失期望值是根据应用子功能的历史缺陷数据进行分析得出的;从所述候选测试用例集合中获取与所述应用子功能集合对应的测试用例集合;利用所述测试用例集合对所述应用进行测试。In a first aspect, the present application provides an application testing method, the method comprising: obtaining a set of candidate test cases for testing an application, wherein the application includes at least one application sub-function, and each application sub-function is related to the Corresponding to the test case for testing the application sub-function; determining a set of application sub-functions to be used for testing from the at least one application sub-function, wherein the set of application sub-functions includes at least one of the following: according to the application sub-function A predetermined number of application sub-functions selected in descending order of the defect number of the function; the application sub-function with the largest loss expectation value, the maximum loss expectation value is obtained by analyzing the historical defect data of the application sub-function; from the Obtain a test case set corresponding to the application sub-function set from the candidate test case set; use the test case set to test the application.
在一些实施例中,在所述从所述至少一个应用子功能中确定待用于测试的应用子功能集合之后,所述方法还包括:对所述应用子功能集合进行去重处理,生成各个应用子功能不重复的应用子功能集合;从所述候选测试用例集合中获取与所述不重复的应用子功能集合对应的测试用例集合。In some embodiments, after the determination of the set of application sub-functions to be used for testing from the at least one application sub-function, the method further includes: performing deduplication processing on the set of application sub-functions to generate each A set of application sub-functions with non-repetitive application sub-functions; a set of test cases corresponding to the non-repetitive set of application sub-functions is obtained from the set of candidate test cases.
在一些实施例中,在所述从所述候选测试用例集合中获取与所述不重复的应用子功能集合对应的测试用例集合之后,所述方法还包括:对所述测试用例集合进行去重处理,生成各个测试用例不重复的测试用例集合;利用所述不重复的测试用例集合对所述应用进行测试。In some embodiments, after obtaining the test case set corresponding to the non-repetitive application sub-function set from the candidate test case set, the method further includes: deduplicating the test case set processing, generating a non-repetitive test case set for each test case; using the non-repetitive test case set to test the application.
在一些实施例中,所述候选测试用例集合包括以下至少一项:预先存储于本地的候选测试用例集合,所述候选测试用例集合编写于其上的终端上存储的候选测试用例集合。In some embodiments, the set of candidate test cases includes at least one of the following: a set of candidate test cases stored locally in advance, and the set of candidate test cases is written on the set of candidate test cases stored on the terminal.
在一些实施例中,所述利用所述不重复的测试用例集合对所述应用进行测试包括:向所述应用安装于其上的终端发送所述不重复的测试用例集合以供所述终端利用所述不重复的测试用例集合对所述应用进行测试。In some embodiments, the testing the application by using the non-repetitive set of test cases includes: sending the non-repetitive set of test cases to the terminal on which the application is installed for use by the terminal The unique set of test cases tests the application.
第二方面,本申请提供了一种应用测试装置,所述装置包括:第一获取单元,配置用于获取对应用进行测试的候选测试用例集合,其中,所述应用包括至少一个应用子功能,每个应用子功能与用于对该应用子功能进行测试的测试用例相对应;确定单元,配置用于从所述至少一个应用子功能中确定待用于测试的应用子功能集合,其中,所述应用子功能集合包括以下至少一项:按照应用子功能的缺陷数由多到少的顺序选取的预定数目的应用子功能;具有最大损失期望值的应用子功能,所述最大损失期望值是根据应用子功能的历史缺陷数据进行分析得出的;第二获取单元,配置用于从所述候选测试用例集合中获取与所述应用子功能集合对应的测试用例集合;测试单元,配置用于利用所述测试用例集合对所述应用进行测试。In a second aspect, the present application provides an application testing device, the device comprising: a first acquiring unit configured to acquire a set of candidate test cases for testing an application, wherein the application includes at least one application sub-function, Each application subfunction corresponds to a test case for testing the application subfunction; the determining unit is configured to determine a set of application subfunctions to be used for testing from the at least one application subfunction, wherein the The set of application sub-functions includes at least one of the following: a predetermined number of application sub-functions selected in descending order of the number of defects in the application sub-functions; The historical defect data of the sub-function is analyzed; the second acquisition unit is configured to obtain the test case set corresponding to the application sub-function set from the candidate test case set; the test unit is configured to use the set of test cases. The above test case set is used to test the application.
在一些实施例中,所述装置还包括:第一生成单元,配置用于对所述应用子功能集合进行去重处理,生成各个应用子功能不重复的应用子功能集合;以及所述第二获取单元进一步配置用于从所述候选测试用例集合中获取与所述不重复的应用子功能集合对应的测试用例集合。In some embodiments, the device further includes: a first generating unit configured to perform deduplication processing on the set of application sub-functions, and generate a set of application sub-functions in which each application sub-function does not repeat; and the second The obtaining unit is further configured to obtain a test case set corresponding to the non-repeated application sub-function set from the candidate test case set.
在一些实施例中,所述装置还包括:第二生成单元,配置用于对所述测试用例集合进行去重处理,生成各个测试用例不重复的测试用例集合;以及所述测试单元进一步配置用于利用所述不重复的测试用例集合对所述应用进行测试。In some embodiments, the apparatus further includes: a second generation unit configured to perform deduplication processing on the set of test cases, and generate a set of test cases in which each test case is not repeated; and the test unit is further configured for The application is tested by using the non-repetitive test case set.
在一些实施例中,所述候选测试用例集合包括以下至少一项:预先存储于本地的候选测试用例集合,所述候选测试用例集合编写于其上的终端上存储的候选测试用例集合。In some embodiments, the set of candidate test cases includes at least one of the following: a set of candidate test cases stored locally in advance, and the set of candidate test cases is written on the set of candidate test cases stored on the terminal.
在一些实施例中,所述测试单元进一步配置用于:向所述应用安装于其上的终端发送所述不重复的测试用例集合以供所述终端利用所述不重复的测试用例集合对所述应用进行测试。In some embodiments, the testing unit is further configured to: send the non-repetitive test case set to the terminal on which the application is installed, so that the terminal can use the non-repetitive test case set to test all The above application is tested.
本申请提供的应用测试方法和装置,通过从应用的至少一个应用子功能中确定应用子功能的缺陷数多的应用子功能和具有最大损失期望值的应用子功能作为待用于测试的应用子功能集合,而后从获取的对应用进行测试的候选测试用例集合中获取待用于测试的应用子功能集合对应的测试用例集合,最后利用测试用例集合对应用进行测试,从而有效利用了应用子功能的历史缺陷数据,实现了富于针对性的应用测试。The application testing method and device provided by the present application determine the application sub-function with the largest number of defects of the application sub-function and the application sub-function with the largest expected loss value as the application sub-function to be tested from at least one application sub-function of the application Then obtain the test case set corresponding to the application sub-function set to be used for testing from the obtained candidate test case set for testing the application, and finally use the test case set to test the application, thereby effectively utilizing the application sub-function Historical defect data enables targeted application testing.
附图说明Description of drawings
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:Other characteristics, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
图1是本申请可以应用于其中的示例性系统架构图;FIG. 1 is an exemplary system architecture diagram to which the present application can be applied;
图2是根据本申请的应用测试方法的一个实施例的流程图;Fig. 2 is a flow chart according to an embodiment of the application testing method of the present application;
图3是根据本申请的应用测试方法的又一个实施例的流程图;Fig. 3 is a flow chart according to yet another embodiment of the application testing method of the present application;
图4是根据本申请的应用测试装置的一个实施例的结构示意图;Fig. 4 is a schematic structural view of an embodiment of an application testing device according to the present application;
图5是适于用来实现本申请实施例的服务器的计算机系统的结构示意图。Fig. 5 is a schematic structural diagram of a computer system suitable for implementing the server of the embodiment of the present application.
具体实施方式detailed description
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。The application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain related inventions, rather than to limit the invention. It should also be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.
图1示出了可以应用本申请的应用测试方法或应用测试装置的实施例的示例性系统架构100。FIG. 1 shows an exemplary system architecture 100 to which embodiments of the application testing method or application testing device of the present application can be applied.
如图1所示,系统架构100可以包括终端设备101、102、103,网络104和服务器105。网络104用以在终端设备101、102、103和服务器105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 1 , a system architecture 100 may include terminal devices 101 , 102 , 103 , a network 104 and a server 105 . The network 104 is used as a medium for providing communication links between the terminal devices 101 , 102 , 103 and the server 105 . Network 104 may include various connection types, such as wires, wireless communication links, or fiber optic cables, among others.
用户可以使用终端设备101、102、103通过网络104与服务器105交互,以接收或发送消息等。终端设备101、102、103上可以安装有各种通讯客户端应用,例如终端设备安全类应用、购物类应用、搜索类应用、代码编辑类工具等。Users can use terminal devices 101 , 102 , 103 to interact with server 105 via network 104 to receive or send messages and the like. Various communication client applications may be installed on the terminal devices 101, 102, 103, such as terminal device security applications, shopping applications, search applications, code editing tools, and the like.
终端设备101、102、103可以是具有显示屏并且支持代码编辑的各种电子设备,包括但不限于智能手机、平板电脑、电子书阅读器、MP3播放器(Moving Picture ExpertsGroup Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving PictureExperts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、膝上型便携计算机和台式计算机等等。Terminal devices 101, 102, 103 can be various electronic devices that have a display screen and support code editing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, dynamic image Expert Compression Standard Audio Layer 3), MP4 (Moving PictureExperts Group Audio Layer IV, Moving Picture Experts Compression Standard Audio Layer 4) Players, Laptop Portable Computers and Desktop Computers, etc.
服务器105可以是提供各种服务的服务器,例如对终端设备101、102、103上编写的测试用例提供支持的后台测试服务器。后台测试服务器可以对获取到的测试用例集合等进行分析等处理,并利用处理结果(例如筛选后的测试用例集合)对应用进行测试。The server 105 may be a server that provides various services, such as a background test server that provides support for test cases written on the terminal devices 101 , 102 , and 103 . The background test server can analyze and process the obtained test case set, etc., and use the processing result (for example, the filtered test case set) to test the application.
需要说明的是,本申请实施例所提供的应用测试方法一般由服务器105执行,相应地,应用测试装置一般设置于服务器105中。It should be noted that the application testing method provided in the embodiment of the present application is generally executed by the server 105 , and correspondingly, the application testing device is generally set in the server 105 .
应该理解,图1中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the numbers of terminal devices, networks and servers in Fig. 1 are only illustrative. According to the implementation needs, there can be any number of terminal devices, networks and servers.
继续参考图2,示出了根据本申请的应用测试方法的一个实施例的流程200。所述的应用测试方法,包括以下步骤:Continuing to refer to FIG. 2 , a flow 200 of an embodiment of the application testing method according to the present application is shown. The described application testing method comprises the following steps:
步骤201,获取对应用进行测试的候选测试用例集合。Step 201, acquiring a set of candidate test cases for testing an application.
在本实施例中,应用测试方法运行于其上的电子设备(例如图1所示的服务器)可以获取对应用进行测试的候选测试用例集合,其中,上述应用可以包括至少一个应用子功能,每个应用子功能与用于对该应用子功能进行测试的测试用例相对应,上述测试用例是为某个特殊目标而编制的一组测试输入、执行条件以及预期结果,以便测试某个程序路径或核实是否满足某个特定需求。作为示例,上述应用可以包含多个功能,例如:用户管理功能、商品结算功能等,上述商品结算功能可以包含多个应用子功能,例如,计算购物车中商品价格的功能,支付功能等,那么,计算购物车中商品价格的功能与用于对计算购物车中商品价格的功能进行测试的测试用例相对应,支付功能与用于对支付功能进行测试的测试用例相对应。In this embodiment, the electronic device on which the application testing method runs (such as the server shown in FIG. 1 ) can obtain a set of candidate test cases for testing the application, wherein the above-mentioned application can include at least one application sub-function, each An application sub-function corresponds to a test case used to test the application sub-function. The above-mentioned test case is a set of test inputs, execution conditions and expected results compiled for a specific target in order to test a program path or Verify that a specific requirement is met. As an example, the above-mentioned application may include multiple functions, such as: user management function, commodity settlement function, etc., and the above-mentioned commodity settlement function may contain multiple application sub-functions, such as the function of calculating the price of commodities in the shopping cart, payment function, etc., then , the function of calculating the price of goods in the shopping cart corresponds to the test case used to test the function of calculating the price of goods in the shopping cart, and the payment function corresponds to the test case used to test the payment function.
在本实施例的一些可选的实现方式中,上述候选测试用例集合可以预先存储于上述电子设备中,当对上述应用进行测试时,上述电子设备可以直接从本地获取对应用进行测试的候选测试用例集合;上述候选测试用例也可以存储于上述候选测试用例编写与其上的终端设备中,当对上述应用进行测试时,上述电子设备可以通过有线连接方式或者无线连接方式从测试人员利用其进行测试用例编写的终端设备获取对应用进行测试的候选测试用例集合。需要指出的是,上述无线连接方式可以包括但不限于3G/4G连接、WiFi连接、蓝牙连接、WiMAX连接、Zigbee连接、UWB(ultra wideband)连接、以及其他现在已知或将来开发的无线连接方式。In some optional implementations of this embodiment, the above-mentioned set of candidate test cases may be pre-stored in the above-mentioned electronic device, and when the above-mentioned application is tested, the above-mentioned electronic device may directly obtain the candidate test case for testing the application locally. A collection of use cases; the above-mentioned candidate test cases can also be stored in the terminal equipment on which the above-mentioned candidate test cases are written, and when the above-mentioned application is tested, the above-mentioned electronic equipment can be used by testers to perform tests through a wired connection or a wireless connection The terminal device for use case writing obtains a set of candidate test cases for testing the application. It should be pointed out that the above wireless connection methods may include but not limited to 3G/4G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, and other wireless connection methods known or developed in the future .
步骤202,从至少一个应用子功能中确定待用于测试的应用子功能集合。Step 202, determining a set of application sub-functions to be used for testing from at least one application sub-function.
在本实施例中,上述电子设备可以从上述应用包含的至少一个应用子功能中确定待用于对上述应用进行测试的应用子功能集合,其中,上述应用子功能集合中的应用子功能可以是按照在预定时间段内应用子功能的缺陷数由多到少的顺序选取的预定数目的应用子功能,上述缺陷数记录于上述应用的缺陷管理系统中;上述应用子功能集合中的应用子功能也可以是具有最大损失期望值的应用子功能,其中,上述最大损失期望值可以是根据记录于上述应用的缺陷管理系统中的历史缺陷数据进行分析得出的。In this embodiment, the above-mentioned electronic device may determine a set of application sub-functions to be used for testing the above-mentioned application from at least one application sub-function contained in the above-mentioned application, wherein the application sub-functions in the above-mentioned application sub-function set may be A predetermined number of application sub-functions selected in descending order of the number of defects in the application sub-functions within a predetermined period of time, the number of defects is recorded in the defect management system of the above-mentioned application; the application sub-functions in the above-mentioned application sub-function set It may also be an application sub-function with a maximum loss expectation, wherein the maximum loss expectation may be obtained by analyzing historical defect data recorded in the defect management system of the above application.
在本实施例中,上述电子设备可以首先从上述应用的缺陷管理系统中获取上述应用的各个应用子功能的历史缺陷数据;之后,可以分析上述历史缺陷数据,确定各个应用子功能的潜在缺陷数据,其中,上述潜在缺陷数据可以包括严重潜在缺陷数目和非严重潜在缺陷数目,上述缺陷管理系统可以按照缺陷对应用子功能的影响程度,预先将潜在缺陷分为严重潜在缺陷和非严重潜在缺陷,上述严重潜在缺陷可以是阻止上述应用子功能实现其功能的缺陷,例如,在购物类应用中,可以将无法将商品添加进购物车的缺陷划分为严重潜在缺陷;然后,可以获取实现各个应用子功能的步骤的总数量和关键步骤的数量,应用子功能包括至少一个步骤,上述关键步骤可以是决定应用子功能的功能实现的步骤;之后,利用上述步骤的总数量减去上述关键步骤的数量,得到非关键步骤的数量,再利用上述关键步骤的数量除以上述步骤的总数量,确定各个应用子功能出现严重缺陷的概率,再利用上述非关键步骤的数量除以上述步骤的总数量,确定各个应用子功能出现非严重缺陷的概率;然后,计算上述严重潜在缺陷数目乘以上述出现严重缺陷的概率与上述非严重潜在缺陷数目乘以上述出现非严重缺陷的概率之和,确定各个应用子功能的损失期望值;最后,选取具有最大损失期望值的应用子功能。In this embodiment, the above-mentioned electronic device can first obtain the historical defect data of each application sub-function of the above-mentioned application from the defect management system of the above-mentioned application; after that, it can analyze the above-mentioned historical defect data to determine the potential defect data of each application sub-function , wherein the above-mentioned potential defect data may include the number of serious potential defects and the number of non-serious potential defects, and the above-mentioned defect management system may pre-classify potential defects into serious potential defects and non-serious potential defects according to the degree of impact of defects on application sub-functions, The above-mentioned serious potential defects may be defects that prevent the above-mentioned application sub-functions from realizing their functions. For example, in shopping applications, the defects that cannot add products to the shopping cart can be classified as serious potential defects; then, each application sub-function may be obtained and implemented The total number of steps of the function and the number of key steps. The application sub-function includes at least one step. The above-mentioned key step may be a step that determines the function realization of the application sub-function; after that, subtract the number of the above-mentioned key steps from the total number of the above-mentioned steps , to obtain the number of non-critical steps, and then divide the above-mentioned number of critical steps by the total number of the above-mentioned steps to determine the probability of serious defects in each application sub-function, and then divide the above-mentioned number of non-critical steps by the total number of the above-mentioned steps, Determine the probability of non-serious defects in each application sub-function; then, calculate the sum of the above-mentioned number of serious potential defects multiplied by the above-mentioned probability of serious defects and the number of non-serious potential defects multiplied by the above-mentioned probability of non-serious defects to determine each application The expected loss of the subfunction; finally, the applied subfunction with the largest expected loss is chosen.
作为示例,上述电子设备确定第一应用子功能的严重潜在缺陷数目为1、非严重潜在缺陷数目为2,第二应用子功能的严重潜在缺陷数目为2、非严重潜在缺陷数目为5,第三应用子功能的严重潜在缺陷数目为4、非严重潜在缺陷数目为2;之后,获取实现第一应用子功能的步骤的总数量为5、关键步骤的数量为1,则第一应用子功能出现严重缺陷的概率为0.2,出现非严重缺陷的概率为0.8,获取实现第二应用子功能的步骤的总数量为2、关键步骤的数量为1,则第一应用子功能出现严重缺陷的概率为0.5,出现非严重缺陷的概率为0.5,获取实现第三应用子功能的步骤的总数量为10、关键步骤的数量为3,则第一应用子功能出现严重缺陷的概率为0.3,出现非严重缺陷的概率为0.7;然后,计算第一应用子功能的严重潜在缺陷数目1乘以出现严重缺陷的概率0.2与非严重潜在缺陷数目2乘以出现非严重缺陷的概率0.8之和,确定第一应用子功能的损失期望值为1.8,计算第二应用子功能的严重潜在缺陷数目2乘以出现严重缺陷的概率0.5与非严重潜在缺陷数目5乘以出现非严重缺陷的概率0.5之和,确定第一应用子功能的损失期望值为3.5,计算第三应用子功能的严重潜在缺陷数目4乘以出现严重缺陷的概率0.3与非严重潜在缺陷数目2乘以出现非严重缺陷的概率0.7之和,确定第三应用子功能的损失期望值为2.6;最后,选取具有最大损失期望值3.5的第二应用子功能。As an example, the electronic device determines that the number of serious potential defects of the first application sub-function is 1 and the number of non-serious potential defects is 2, the number of serious potential defects of the second application sub-function is 2, and the number of non-serious potential defects is 5. The number of serious potential defects of the three application sub-functions is 4, and the number of non-serious potential defects is 2; after that, the total number of steps to realize the first application sub-function is 5, and the number of key steps is 1, then the first application sub-function The probability of serious defects is 0.2, the probability of non-serious defects is 0.8, the total number of steps to achieve the second application sub-function is 2, and the number of key steps is 1, then the probability of serious defects in the first application sub-function is 0.5, the probability of non-serious defects is 0.5, the total number of steps to achieve the third application sub-function is 10, and the number of key steps is 3, then the probability of serious defects in the first application sub-function is 0.3, and non-serious defects occur. The probability of serious defects is 0.7; then, calculate the sum of the number of serious potential defects of the first application sub-function multiplied by the probability of serious defects 0.2 and the number of non-serious potential defects 2 times the probability of non-serious defects 0.8, and determine the first The loss expectation value of an application sub-function is 1.8, calculate the sum of the number of serious potential defects of the second application sub-function multiplied by the probability of serious defects 0.5 and the number of non-serious potential defects 5 multiplied by the probability of non-serious defects 0.5, and determine The loss expectation value of the first application sub-function is 3.5, calculate the sum of the number of serious potential defects of the third application sub-function multiplied by 0.3, the number of serious potential defects, and the number of non-serious potential defects, multiplied by the probability of non-serious defects 0.7, The expected loss value of the third application sub-function is determined to be 2.6; finally, the second application sub-function with the largest expected loss value of 3.5 is selected.
在本实施例中,当上述应用增加功能之后,上述电子设备可以首先获取增加的应用子功能对上述应用原有的应用子功能的影响度;之后,可以从上述应用的缺陷管理系统中获取上述应用的各个应用子功能的历史缺陷数据;然后,可以分析上述历史缺陷数据和上述影响度,确定各个应用子功能的潜在缺陷数据。In this embodiment, after the above-mentioned application adds a function, the above-mentioned electronic device can first obtain the degree of influence of the added application sub-function on the above-mentioned original application sub-function of the above-mentioned application; after that, it can obtain the above-mentioned The historical defect data of each application sub-function of the application; then, the above-mentioned historical defect data and the above-mentioned degree of influence may be analyzed to determine the potential defect data of each application sub-function.
步骤203,从候选测试用例集合中获取与应用子功能集合对应的测试用例集合。Step 203, obtaining a test case set corresponding to the application sub-function set from the candidate test case set.
在本实施例中,上述电子设备可以从步骤201中获取的候选测试用例集合中获取与步骤202中确定的应用子功能集合对应的测试用例集合。In this embodiment, the above-mentioned electronic device may acquire a set of test cases corresponding to the set of application sub-functions determined in step 202 from the set of candidate test cases acquired in step 201 .
步骤204,利用所述测试用例集合对所述应用进行测试。Step 204, using the set of test cases to test the application.
在本实施例中,上述电子设备可以利用步骤203中获取的测试用例集合对上述应用进行测试。In this embodiment, the above-mentioned electronic device may use the test case set acquired in step 203 to test the above-mentioned application.
在本实施例的一些可选的实现方式中,上述电子设备可以向上述应用安装于其上的终端设备发送上述测试用例集合以供上述终端设备利用上述测试用例集合对上述应用进行测试。In some optional implementation manners of this embodiment, the above-mentioned electronic device may send the above-mentioned test case set to the terminal device on which the above-mentioned application is installed, so that the above-mentioned terminal device uses the above-mentioned test case set to test the above-mentioned application.
进一步参考图3,其示出了应用测试方法的又一个实施例的流程300。该应用测试方法的流程300,包括以下步骤:Further referring to FIG. 3 , a flow 300 of yet another embodiment of the application testing method is shown. The flow 300 of the application testing method includes the following steps:
步骤301,获取对应用进行测试的候选测试用例集合。Step 301, acquiring a set of candidate test cases for testing an application.
在本实施例中,应用测试方法运行于其上的电子设备(例如图1所示的服务器)可以获取对应用进行测试的候选测试用例集合,其中,上述应用可以包括至少一个应用子功能,每个应用子功能与用于对该应用子功能进行测试的测试用例相对应,上述测试用例是为某个特殊目标而编制的一组测试输入、执行条件以及预期结果,以便测试某个程序路径或核实是否满足某个特定需求。In this embodiment, the electronic device on which the application testing method runs (such as the server shown in FIG. 1 ) can obtain a set of candidate test cases for testing the application, wherein the above-mentioned application can include at least one application sub-function, each An application sub-function corresponds to a test case used to test the application sub-function. The above-mentioned test case is a set of test inputs, execution conditions and expected results compiled for a specific target in order to test a program path or Verify that a specific requirement is met.
在本实施例的一些可选的实现方式中,上述候选测试用例集合可以预先存储于上述电子设备中,当对上述应用进行测试时,上述电子设备可以直接从本地获取对应用进行测试的候选测试用例集合;上述候选测试用例也可以存储于上述候选测试用例编写与其上的终端设备中,当对上述应用进行测试时,上述电子设备可以通过有线连接方式或者无线连接方式从测试人员利用其进行测试用例编写的终端设备获取对应用进行测试的候选测试用例集合。In some optional implementations of this embodiment, the above-mentioned set of candidate test cases may be pre-stored in the above-mentioned electronic device, and when the above-mentioned application is tested, the above-mentioned electronic device may directly obtain the candidate test case for testing the application locally. A collection of use cases; the above-mentioned candidate test cases can also be stored in the terminal equipment on which the above-mentioned candidate test cases are written, and when the above-mentioned application is tested, the above-mentioned electronic equipment can be used by testers to perform tests through a wired connection or a wireless connection The terminal device for use case writing obtains a set of candidate test cases for testing the application.
步骤302,从至少一个应用子功能中确定待用于测试的应用子功能集合。Step 302, determining a set of application sub-functions to be used for testing from at least one application sub-function.
在本实施例中,上述电子设备可以从上述至少一个应用子功能中确定待用于对上述应用进行测试的应用子功能集合,其中,上述应用子功能集合中的应用子功能可以是按照在历史时间段内应用子功能的缺陷数由多到少的顺序选取的预定数目的应用子功能,上述历史时间段可以是过去一个月,上述缺陷数记录于上述应用的缺陷管理系统中;上述应用子功能集合中的应用子功能也可以是具有最大损失期望值的应用子功能,其中,上述最大损失期望值可以是根据记录于上述应用的缺陷管理系统中的历史缺陷数据进行分析得出的。In this embodiment, the above-mentioned electronic device may determine a set of application sub-functions to be used for testing the above-mentioned application from the above-mentioned at least one application sub-function, wherein, the application sub-functions in the above-mentioned application sub-function set may be based on historical A predetermined number of application sub-functions are selected in descending order of the number of defects in application sub-functions within a time period. The above-mentioned historical time period can be the past month, and the above-mentioned number of defects is recorded in the defect management system of the above-mentioned application; the above-mentioned application sub-function The application sub-function in the function set may also be the application sub-function with the maximum expected loss value, wherein the maximum expected loss value may be obtained by analyzing historical defect data recorded in the defect management system of the above-mentioned application.
步骤303,对应用子功能集合进行去重处理,生成各个应用子功能不重复的应用子功能集合。Step 303, deduplication processing is performed on the application sub-function set to generate an application sub-function set in which each application sub-function does not overlap.
在本实施例中,上述电子设备可以首先获取上述应用子功能集合中重复的应用子功能;之后,可以删除上述重复的应用子功能中的至少一项直至各个应用子功能均剩余一个;最后,可以生成各个应用子功能不重复的应用子功能集合。In this embodiment, the above-mentioned electronic device may first obtain repeated application sub-functions in the above-mentioned set of application sub-functions; then, at least one of the above-mentioned repeated application sub-functions may be deleted until there is only one application sub-function left; finally, It is possible to generate a set of application sub-functions in which each application sub-function does not repeat.
作为示例,按照应用子功能的缺陷数由多到少的顺序选取的预定数目的应用子功能为第一应用子功能、第三应用子功能、第六应用子功能、第七应用子功能和第十应用子功能,具有最大损失期望值的应用子功能为第二应用子功能、第三应用子功能、第五应用子功能、第八应用子功能和第十应用子功能,对上述应用子功能组成的应用子功能集合第一应用子功能、第三应用子功能、第六应用子功能、第七应用子功能、第十应用子功能、第二应用子功能、第三应用子功能、第五应用子功能、第八应用子功能和第十应用子功能进行去重处理,生成各个应用子功能不重复的应用子功能集合为第一应用子功能、第二应用子功能、第三应用子功能、第五应用子功能、第六应用子功能、第七应用子功能、第八应用子功能和第十应用子功能。As an example, the predetermined number of application sub-functions selected in descending order of the number of defects in the application sub-functions are the first application sub-function, the third application sub-function, the sixth application sub-function, the seventh application sub-function and the seventh application sub-function. Ten application sub-functions, the application sub-functions with the largest expected value of loss are the second application sub-function, the third application sub-function, the fifth application sub-function, the eighth application sub-function and the tenth application sub-function, the composition of the above application sub-functions The first application sub-function, the third application sub-function, the sixth application sub-function, the seventh application sub-function, the tenth application sub-function, the second application sub-function, the third application sub-function, the fifth application sub-function The sub-functions, the eighth application sub-function and the tenth application sub-function are de-duplicated, and a set of application sub-functions with no repetition of each application sub-function is generated as the first application sub-function, the second application sub-function, the third application sub-function, The fifth application sub-function, the sixth application sub-function, the seventh application sub-function, the eighth application sub-function and the tenth application sub-function.
步骤304,从候选测试用例集合中获取与不重复的应用子功能集合对应的测试用例集合。Step 304, obtaining a test case set corresponding to a non-repeated application sub-function set from the candidate test case set.
在本实施例中,上述电子设备可以从步骤301中获取的候选测试用例集合中获取与上述步骤303中生成的不重复的应用子功能集合对应的测试用例集合。In this embodiment, the above-mentioned electronic device may obtain a test case set corresponding to the non-repeated application sub-function set generated in step 303 from the candidate test case set obtained in step 301 .
步骤305,对测试用例集合进行去重处理,生成各个测试用例不重复的测试用例集合。Step 305 , deduplicating the test case set to generate a test case set in which each test case does not repeat.
在本实施例中,上述电子设备可以获取上述步骤304获取的测试用例集合中重复的测试用例;之后,可以删除上述重复的测试用例中的至少一项直至各个测试用例均剩余一个;最后,可以生成各个测试用例不重复的测试用例集合。In this embodiment, the above-mentioned electronic device may obtain repeated test cases in the test case set obtained in step 304; afterward, at least one of the above-mentioned repeated test cases may be deleted until there is one remaining test case; finally, it may be Generate a set of test cases that do not repeat each test case.
步骤306,利用不重复的测试用例集合对应用进行测试。In step 306, the application is tested using a set of non-repetitive test cases.
在本实施例中,上述电子设备可以利用步骤305中生成的不重复的测试用例集合对上述应用进行测试。In this embodiment, the above-mentioned electronic device may use the non-repetitive test case set generated in step 305 to test the above-mentioned application.
在本实施例的一些可选的实现方式中,上述电子设备也可以向上述应用安装于其上的终端设备发送上述不重复的测试用例集合以供上述终端设备利用上述不重复的测试用例集合对上述应用进行测试。In some optional implementations of this embodiment, the above-mentioned electronic device may also send the above-mentioned non-repetitive test case set to the terminal device on which the above-mentioned application is installed, so that the above-mentioned terminal device can use the above-mentioned non-repetitive test case set to pair The above application was tested.
从图3中可以看出,与图2对应的实施例相比,本实施例中的应用测试方法的流程300突出了对应用子功能集合和测试用例集合进行去重的步骤。由此,本实施例描述的方案可以使得对应用进行测试的测试用例更加精简,从而实现更有针对性的应用测试。It can be seen from FIG. 3 that, compared with the embodiment corresponding to FIG. 2 , the process 300 of the application testing method in this embodiment highlights the step of deduplicating the application sub-function set and the test case set. Therefore, the solution described in this embodiment can make the test cases for testing the application more streamlined, thereby realizing more targeted application testing.
进一步参考图4,作为对上述各图所示方法的实现,本申请提供了一种应用测试装置的一个实施例,该装置实施例与图2所示的方法实施例相对应,该装置具体可以应用于各种电子设备中。Further referring to FIG. 4, as an implementation of the methods shown in the above figures, the present application provides an embodiment of an application testing device, which corresponds to the method embodiment shown in FIG. 2, and the device can specifically Used in various electronic equipment.
如图4所示,本实施例所述的应用测试装置400包括:第一获取单元401、确定单元402、第二获取单元403和测试单元404。其中,第一获取单元401配置用于获取对应用进行测试的候选测试用例集合,其中,所述应用包括至少一个应用子功能,每个应用子功能与用于对该应用子功能进行测试的测试用例相对应;确定单元402配置用于从所述至少一个应用子功能中确定待用于测试的应用子功能集合,其中,所述应用子功能集合包括以下至少一项:按照应用子功能的缺陷数由多到少的顺序选取的预定数目的应用子功能;具有最大损失期望值的应用子功能,所述最大损失期望值是根据应用子功能的历史缺陷数据进行分析得出的;第二获取单元403配置用于从所述候选测试用例集合中获取与所述应用子功能集合对应的测试用例集合;测试单元404配置用于利用所述测试用例集合对所述应用进行测试。As shown in FIG. 4 , the application testing device 400 in this embodiment includes: a first acquiring unit 401 , a determining unit 402 , a second acquiring unit 403 and a testing unit 404 . Wherein, the first obtaining unit 401 is configured to obtain a set of candidate test cases for testing the application, wherein the application includes at least one application sub-function, and each application sub-function is related to a test case used for testing the application sub-function. Corresponding to the use case; the determining unit 402 is configured to determine a set of application sub-functions to be used for testing from the at least one application sub-function, wherein the set of application sub-functions includes at least one of the following: defects according to the application sub-functions A predetermined number of application sub-functions are selected in descending order; the application sub-function with the largest loss expectation value is obtained by analyzing the historical defect data of the application sub-function; the second acquisition unit 403 It is configured to obtain a test case set corresponding to the application sub-function set from the candidate test case set; the testing unit 404 is configured to use the test case set to test the application.
在本实施例中,应用测试装置400的第一获取单元401可以获取对应用进行测试的候选测试用例集合,其中,上述应用可以包括至少一个应用子功能,每个应用子功能与用于对该应用子功能进行测试的测试用例相对应,上述测试用例是为某个特殊目标而编制的一组测试输入、执行条件以及预期结果,以便测试某个程序路径或核实是否满足某个特定需求。In this embodiment, the first acquiring unit 401 of the application testing device 400 can acquire a set of candidate test cases for testing the application, wherein the above-mentioned application can include at least one application sub-function, and each application sub-function is related to the Corresponding to the test case for testing the application sub-function, the above test case is a set of test inputs, execution conditions and expected results compiled for a special purpose, in order to test a program path or verify whether a specific requirement is met.
在本实施例中,上述确定单元402可以从上述应用包含的至少一个应用子功能中确定待用于对上述应用进行测试的应用子功能集合,其中,上述应用子功能集合中的应用子功能可以是按照在预定时间段内应用子功能的缺陷数由多到少的顺序选取的预定数目的应用子功能,上述缺陷数记录于上述应用的缺陷管理系统中;上述应用子功能集合中的应用子功能也可以是具有最大损失期望值的应用子功能,其中,上述最大损失期望值可以是根据记录于上述应用的缺陷管理系统中的历史缺陷数据进行分析得出的。In this embodiment, the determining unit 402 may determine a set of application sub-functions to be used for testing the above-mentioned application from at least one application sub-function included in the above-mentioned application, wherein the application sub-functions in the above-mentioned set of application sub-functions may be It is a predetermined number of application sub-functions selected in descending order of the number of defects in the application sub-functions within a predetermined period of time. The above-mentioned number of defects is recorded in the defect management system of the above-mentioned application; The function may also be an application sub-function with a maximum expected loss value, wherein the expected maximum loss value may be obtained by analyzing historical defect data recorded in the defect management system of the above-mentioned application.
在本实施例中,上述第二获取单元403可以从上述第一获取单元401中获取的候选测试用例集合中获取与上述确定单元402中确定的应用子功能集合对应的测试用例集合。In this embodiment, the second acquiring unit 403 may acquire a test case set corresponding to the application sub-function set determined in the determining unit 402 from the candidate test case set acquired in the first acquiring unit 401 .
在本实施例中,上述测试单元404可以利用上述第二获取单元403中获取的测试用例集合对上述应用进行测试。In this embodiment, the testing unit 404 may use the test case set acquired in the second acquiring unit 403 to test the application.
在本实施例的一些可选的实现方式中,上述应用测试装置400还可以包括第一生成单元(图中未示出),上述第一生成单元可以首先获取上述应用子功能集合中重复的应用子功能;之后,可以删除上述重复的应用子功能中的至少一项直至各个应用子功能均剩余一个;最后,可以生成各个应用子功能不重复的应用子功能集合。上述第二获取单元403还可以从上述第一获取单元401中获取的候选测试用例集合中获取与上述第一生成单元中生成的不重复的应用子功能集合对应的测试用例集合。In some optional implementations of this embodiment, the above-mentioned application testing device 400 may further include a first generation unit (not shown in the figure), and the above-mentioned first generation unit may first acquire the repeated applications in the above-mentioned application sub-function set sub-functions; afterward, at least one of the above repeated application sub-functions may be deleted until there is only one application sub-function left; finally, a set of application sub-functions in which each application sub-function is not repeated may be generated. The second obtaining unit 403 may also obtain, from the candidate test case sets obtained by the first obtaining unit 401 , a test case set corresponding to the non-duplicated application sub-function set generated in the first generating unit.
在本实施例的一些可选的实现方式中,上述应用测试装置400还可以包括第二生成单元(图中未示出),上述第二生成单元可以获取上述第二获取单元403获取的测试用例集合中重复的测试用例;之后,可以删除上述重复的测试用例中的至少一项直至各个测试用例均剩余一个;最后,可以生成各个测试用例不重复的测试用例集合。上述测试单元404可以利用第二生成单元中生成的不重复的测试用例集合对上述应用进行测试。In some optional implementations of this embodiment, the above-mentioned application testing device 400 may further include a second generation unit (not shown in the figure), and the above-mentioned second generation unit may obtain the test cases obtained by the above-mentioned second obtaining unit 403 Repeated test cases in the collection; then, at least one of the above repeated test cases can be deleted until each test case has one remaining; finally, a test case set in which each test case is not repeated can be generated. The testing unit 404 may use the non-repetitive test case set generated in the second generating unit to test the application.
在本实施例的一些可选的实现方式中,上述候选测试用例集合可以预先存储于上述电子设备中,当对上述应用进行测试时,上述电子设备可以直接从本地获取对应用进行测试的候选测试用例集合;上述候选测试用例也可以存储于上述候选测试用例编写与其上的终端设备中,当对上述应用进行测试时,上述电子设备可以通过有线连接方式或者无线连接方式从测试人员利用其进行测试用例编写的终端设备获取对应用进行测试的候选测试用例集合。In some optional implementations of this embodiment, the above-mentioned set of candidate test cases may be pre-stored in the above-mentioned electronic device, and when the above-mentioned application is tested, the above-mentioned electronic device may directly obtain the candidate test case for testing the application locally. A collection of use cases; the above-mentioned candidate test cases can also be stored in the terminal equipment on which the above-mentioned candidate test cases are written, and when the above-mentioned application is tested, the above-mentioned electronic equipment can be used by testers to perform tests through a wired connection or a wireless connection The terminal device for use case writing obtains a set of candidate test cases for testing the application.
在本实施例的一些可选的实现方式中,上述测试单元404也可以向上述应用安装于其上的终端设备发送上述不重复的测试用例集合以供上述终端设备利用上述不重复的测试用例集合对上述应用进行测试。In some optional implementations of this embodiment, the test unit 404 may also send the non-repetitive test case set to the terminal device on which the above-mentioned application is installed, so that the above-mentioned terminal device can use the above-mentioned non-repetitive test case set Test the application above.
下面参考图5,其示出了适于用来实现本申请实施例的服务器的计算机系统500的结构示意图。Referring now to FIG. 5 , it shows a schematic structural diagram of a computer system 500 suitable for implementing the server of the embodiment of the present application.
如图5所示,计算机系统500包括中央处理单元(CPU)501,其可以根据存储在只读存储器(ROM)502中的程序或者从存储部分508加载到随机访问存储器(RAM)503中的程序而执行各种适当的动作和处理。在RAM503中,还存储有系统500操作所需的各种程序和数据。CPU501、ROM502以及RAM503通过总线504彼此相连。输入/输出(I/O)接口505也连接至总线504。As shown in FIG. 5 , a computer system 500 includes a central processing unit (CPU) 501 that can be programmed according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage section 508 into a random-access memory (RAM) 503 Instead, various appropriate actions and processes are performed. In the RAM 503, various programs and data necessary for the operation of the system 500 are also stored. The CPU 501 , ROM 502 , and RAM 503 are connected to each other via a bus 504 . An input/output (I/O) interface 505 is also connected to the bus 504 .
以下部件连接至I/O接口505:包括键盘、鼠标等的输入部分506;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分507;包括硬盘等的存储部分508;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分509。通信部分509经由诸如因特网的网络执行通信处理。驱动器510也根据需要连接至I/O接口505。可拆卸介质511,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器510上,以便于从其上读出的计算机程序根据需要被安装入存储部分508。The following components are connected to the I/O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 508 including a hard disk, etc. and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I/O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is mounted on the drive 510 as necessary so that a computer program read therefrom is installed into the storage section 508 as necessary.
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括有形地包含在机器可读介质上的计算机程序,上述计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分509从网络上被下载和安装,和/或从可拆卸介质511被安装。In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product including a computer program tangibly embodied on a machine-readable medium, the computer program including program code for performing the methods shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via communication portion 509 and/or installed from removable media 511 .
附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or portion of code that includes one or more logical functions for implementing specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.
描述于本申请实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,例如,可以描述为:一种处理器包括第一获取单元、确定单元、第二获取单元和测试单元。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定。例如,第一获取单元还可以被描述为“获取候选测试用例集合的单元”。The units involved in the embodiments described in the present application may be implemented by means of software or by means of hardware. The described units may also be set in a processor. For example, it may be described as: a processor includes a first acquiring unit, a determining unit, a second acquiring unit, and a testing unit. Wherein, the names of these units do not constitute a limitation of the unit itself under certain circumstances. For example, the first obtaining unit may also be described as "a unit for obtaining a set of candidate test cases".
作为另一方面,本申请还提供了一种非易失性计算机存储介质,该非易失性计算机存储介质可以是上述实施例中上述装置中所包含的非易失性计算机存储介质;也可以是单独存在,未装配入终端中的非易失性计算机存储介质。上述非易失性计算机存储介质存储有一个或者多个程序,当上述一个或者多个程序被一个设备执行时,使得上述设备:获取对应用进行测试的候选测试用例集合,其中,所述应用包括至少一个应用子功能,每个应用子功能与用于对该应用子功能进行测试的测试用例相对应;从所述至少一个应用子功能中确定待用于测试的应用子功能集合,其中,所述应用子功能集合包括以下至少一项:按照应用子功能的缺陷数由多到少的顺序选取的预定数目的应用子功能;具有最大损失期望值的应用子功能,所述最大损失期望值是根据应用子功能的历史缺陷数据进行分析得出的;从所述候选测试用例集合中获取与所述应用子功能集合对应的测试用例集合;利用所述测试用例集合对所述应用进行测试。As another aspect, the present application also provides a non-volatile computer storage medium, which may be the non-volatile computer storage medium contained in the above-mentioned device in the above-mentioned embodiment; It is a non-volatile computer storage medium that exists independently and is not assembled into a terminal. The above-mentioned non-volatile computer storage medium stores one or more programs, and when the above-mentioned one or more programs are executed by a device, the above-mentioned device: acquires a set of candidate test cases for testing the application, wherein the application includes At least one application sub-function, each application sub-function corresponds to a test case for testing the application sub-function; a set of application sub-functions to be used for testing is determined from the at least one application sub-function, wherein the The set of application sub-functions includes at least one of the following: a predetermined number of application sub-functions selected in descending order of the number of defects in the application sub-functions; The test case set corresponding to the application sub-function set is obtained from the candidate test case set; and the application is tested by using the test case set.
以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离所述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present application and an illustration of the applied technical principle. Those skilled in the art should understand that the scope of the invention involved in this application is not limited to the technical solution formed by the specific combination of the above-mentioned technical features, but should also cover the technical solutions made by the above-mentioned technical features without departing from the inventive concept. Other technical solutions formed by any combination of or equivalent features thereof. For example, a technical solution formed by replacing the above-mentioned features with technical features with similar functions disclosed in (but not limited to) this application.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610555124.5A CN107622007A (en) | 2016-07-14 | 2016-07-14 | Application testing method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610555124.5A CN107622007A (en) | 2016-07-14 | 2016-07-14 | Application testing method and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN107622007A true CN107622007A (en) | 2018-01-23 |
Family
ID=61087611
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610555124.5A Pending CN107622007A (en) | 2016-07-14 | 2016-07-14 | Application testing method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107622007A (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108073518A (en) * | 2018-01-24 | 2018-05-25 | 广东睿江云计算股份有限公司 | A kind of testing case management and device |
| CN108776631A (en) * | 2018-05-31 | 2018-11-09 | 康键信息技术(深圳)有限公司 | Server, the method and storage medium for obtaining compatibility test equipment |
| CN109189673A (en) * | 2018-08-14 | 2019-01-11 | 联动优势电子商务有限公司 | A kind of determination method and device of the testing scheme of software, test case |
| CN110297770A (en) * | 2019-06-18 | 2019-10-01 | 平安普惠企业管理有限公司 | Application testing method and relevant apparatus |
| CN111858288A (en) * | 2019-04-25 | 2020-10-30 | 深圳兆日科技股份有限公司 | Test case optimization method, apparatus, device, and computer-readable storage medium |
| CN117573525A (en) * | 2023-11-14 | 2024-02-20 | 深圳市君时达科技有限公司 | Cash register testing method and device, cash register and storage medium |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102006604A (en) * | 2010-01-28 | 2011-04-06 | 北京邮电大学 | Method and system for testing security of IP multimedia subsystem core network |
| CN103365765A (en) * | 2012-03-28 | 2013-10-23 | 腾讯科技(深圳)有限公司 | Test case screening method and system |
| CN104679656A (en) * | 2015-03-13 | 2015-06-03 | 哈尔滨工程大学 | Combination testing method for adaptively adjusting defect detection rate |
| CN105068936A (en) * | 2015-09-18 | 2015-11-18 | 北京金山安全软件有限公司 | Method and device for testing stability of software |
-
2016
- 2016-07-14 CN CN201610555124.5A patent/CN107622007A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102006604A (en) * | 2010-01-28 | 2011-04-06 | 北京邮电大学 | Method and system for testing security of IP multimedia subsystem core network |
| CN103365765A (en) * | 2012-03-28 | 2013-10-23 | 腾讯科技(深圳)有限公司 | Test case screening method and system |
| CN104679656A (en) * | 2015-03-13 | 2015-06-03 | 哈尔滨工程大学 | Combination testing method for adaptively adjusting defect detection rate |
| CN105068936A (en) * | 2015-09-18 | 2015-11-18 | 北京金山安全软件有限公司 | Method and device for testing stability of software |
Non-Patent Citations (1)
| Title |
|---|
| 杨斌: "软件功能测试用例设计方法的探讨", 《龙岩学院学报》 * |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108073518A (en) * | 2018-01-24 | 2018-05-25 | 广东睿江云计算股份有限公司 | A kind of testing case management and device |
| CN108776631A (en) * | 2018-05-31 | 2018-11-09 | 康键信息技术(深圳)有限公司 | Server, the method and storage medium for obtaining compatibility test equipment |
| CN109189673A (en) * | 2018-08-14 | 2019-01-11 | 联动优势电子商务有限公司 | A kind of determination method and device of the testing scheme of software, test case |
| CN109189673B (en) * | 2018-08-14 | 2021-08-27 | 联动优势电子商务有限公司 | Software test scheme, and method and device for determining test cases |
| CN111858288A (en) * | 2019-04-25 | 2020-10-30 | 深圳兆日科技股份有限公司 | Test case optimization method, apparatus, device, and computer-readable storage medium |
| CN110297770A (en) * | 2019-06-18 | 2019-10-01 | 平安普惠企业管理有限公司 | Application testing method and relevant apparatus |
| CN117573525A (en) * | 2023-11-14 | 2024-02-20 | 深圳市君时达科技有限公司 | Cash register testing method and device, cash register and storage medium |
| CN117573525B (en) * | 2023-11-14 | 2024-07-05 | 深圳市君时达科技有限公司 | Cash register testing method and device, cash register and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107944481B (en) | Method and apparatus for generating information | |
| CN107622007A (en) | Application testing method and device | |
| CN109684188B (en) | Test method and device | |
| CN111488995A (en) | Method and apparatus for evaluating jointly trained models | |
| CN107316082A (en) | Method and system for determining feature importance of machine learning samples | |
| US11501172B2 (en) | Accurately identifying members of training data in variational autoencoders by reconstruction error | |
| CN109542743B (en) | Log checking method and device, electronic equipment and computer readable storage medium | |
| CN111666201A (en) | Regression testing method, apparatus, medium and electronic equipment | |
| CN107688533A (en) | Applied program testing method, device, computer equipment and storage medium | |
| CN107944956A (en) | Method and apparatus for generating information | |
| CN111444077A (en) | Method and device for generating flow node test data | |
| CN111045653A (en) | System generation method and device, computer readable medium and electronic equipment | |
| CN110647459A (en) | Application testing method and device | |
| CN109783381B (en) | Test data generation method, device and system | |
| CN107766106A (en) | The method and apparatus for generating configuration file | |
| CN113760713B (en) | Test method, system, computer system and medium | |
| CN111126649A (en) | Method and apparatus for generating information | |
| Emari et al. | Determining the dimensions of service quality in banking industry: Examining the gronroos's model in Iran | |
| CN113656326B (en) | Program testing method, device, computer system and storage medium | |
| CN111008058A (en) | Page display method and device | |
| CN110688295A (en) | Data testing method and device | |
| CN112579428B (en) | Interface testing method, device, electronic equipment and storage medium | |
| US9860155B1 (en) | Code coverage and data analysis | |
| CN107515821B (en) | Control test method and device | |
| CN111210279B (en) | Target user prediction method and device and electronic equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180123 |