[go: up one dir, main page]

CN111459798A - Test methods, devices, media and electronic equipment - Google Patents

Test methods, devices, media and electronic equipment Download PDF

Info

Publication number
CN111459798A
CN111459798A CN202010138639.1A CN202010138639A CN111459798A CN 111459798 A CN111459798 A CN 111459798A CN 202010138639 A CN202010138639 A CN 202010138639A CN 111459798 A CN111459798 A CN 111459798A
Authority
CN
China
Prior art keywords
test
test case
cases
case
execution
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
Application number
CN202010138639.1A
Other languages
Chinese (zh)
Inventor
郑如刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
OneConnect Smart Technology Co Ltd
OneConnect Financial Technology Co Ltd Shanghai
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Priority to CN202010138639.1A priority Critical patent/CN111459798A/en
Publication of CN111459798A publication Critical patent/CN111459798A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

本申请是关于一种测试方法及相关装置,属于计算机技术领域,该方法包括:获取用于目标测试任务的测试用例集合中的测试用例的配置信息;从所述测试用例的配置信息中提取测试用例特征信息;将所述测试用例特征信息输入预先训练的分组模型,得到多个测试用例组;并发执行可并行类型的测试用例组中的测试用例,并接入线程锁锁定并发执行时运行中的测试用例,且在运行结束时释放所述线程锁;当所述可并行的测试用例组中的测试用例执行结束时,得到并发测试结果。本申请可以提升测试可靠性及稳定性。

Figure 202010138639

The present application relates to a testing method and a related device, belonging to the technical field of computers. The method includes: acquiring configuration information of test cases in a test case set used for a target test task; extracting test case configuration information from the test case configuration information Use case feature information; input the test case feature information into the pre-trained grouping model to obtain multiple test case groups; concurrently execute the test cases in the parallel-type test case group, and access the thread lock to lock the concurrent execution while running and the thread lock is released at the end of the running; when the execution of the test cases in the parallelizable test case group ends, the concurrent test result is obtained. The present application can improve test reliability and stability.

Figure 202010138639

Description

测试方法、装置、介质及电子设备Test methods, devices, media and electronic equipment

技术领域technical field

本申请涉及计算机技术领域,具体而言,涉及一种测试方法、装置、介质及电子设备。The present application relates to the field of computer technology, and in particular, to a testing method, apparatus, medium and electronic device.

背景技术Background technique

目前,目前测试脚本在执行过程会出现一些误报率,误报率一般分为两类,一类是不可抗力因素,也就是断网,断电,系统重启或者没哟启动的情况下无法正常运行测试脚本的这类情况称之为环境误报,这类错误发生的概率极为少数,第二类则是逻辑误报,也就是说测试上面所说的验证过程出现逻辑错误导致验证结果和预期的结果不符合,这类错误往往是在执行一个测试用例的时候没有考虑完善导致,多线程控制施加不可靠,容易出现逻辑错误,多线程控制测试脚本的时候前一个测试没有完成后就触发了后面一个逻辑测试导致脚本执行错误,这样的误报会对测试带来较严重的稳定性影响,因此,目前在测试时存在测试可靠性及测试稳定性较低的问题。At present, there will be some false alarm rates during the execution process of the current test scripts. The false alarm rates are generally divided into two categories. One is force majeure factors, that is, network disconnection, power failure, system restart or failure to start normal operation. This type of situation in the test script is called environmental false positives. The probability of such errors occurring is extremely small. The second type is logical false positives, that is to say, logical errors in the verification process mentioned above lead to the verification results and the expected results. The results do not match. This type of error is often caused by not considering perfection when executing a test case. The application of multi-threaded control is unreliable, and logic errors are prone to occur. When the multi-threaded control test script is not completed, the previous test is triggered. A logic test causes script execution errors, and such false positives will have a serious impact on the stability of the test. Therefore, there are problems of low test reliability and test stability during testing at present.

发明内容SUMMARY OF THE INVENTION

本申请的目的在于提供一种测试方案,进而至少在一定程度上提升测试可靠性及稳定性。The purpose of the present application is to provide a test solution, thereby improving test reliability and stability at least to a certain extent.

根据本申请的一个方面,提供一种测试方法,包括:According to one aspect of the present application, a test method is provided, comprising:

获取用于目标测试任务的测试用例集合中的测试用例的配置信息;Obtain the configuration information of the test case in the test case collection for the target test task;

从所述测试用例的配置信息中提取测试用例特征信息,所述测试用例特征信息为每个测试用例的执行策略的关键属性特征;Extract test case feature information from the configuration information of the test case, where the test case feature information is a key attribute feature of the execution strategy of each test case;

将所述测试用例特征信息输入预先训练的分组模型,得到多个测试用例组;Inputting the test case feature information into a pre-trained grouping model to obtain multiple test case groups;

并发执行可并行类型的测试用例组中的测试用例,并接入线程锁锁定并发执行时运行中的测试用例,且在运行结束时释放所述线程锁;Concurrently execute the test cases in the parallel test case group, and access the thread lock to lock the running test case during concurrent execution, and release the thread lock at the end of the operation;

当所述可并行类型的测试用例组中的测试用例执行结束时,得到并发测试结果。When the execution of the test cases in the test case group of the parallelizable type ends, the concurrent test result is obtained.

在本申请的一种示例性实施例中,所述分组模型的训练方法,包括:In an exemplary embodiment of the present application, the training method of the grouping model includes:

收集测试用例特征信息样本集,所述样本集中每个样本事先标定了对应的测试用例的分组标签;Collect a sample set of test case feature information, where each sample in the sample set is pre-calibrated with the grouping label of the corresponding test case;

将所述样本集中的样本输入分组模型,输出所述样本的预测分组标签;Input the samples in the sample set into the grouping model, and output the predicted grouping labels of the samples;

当所述预测分组标签与对所述样本事先标定的分组标签不一致,调整分组模型的系数,直到一致;When the predicted grouping label is inconsistent with the pre-calibrated grouping label for the sample, adjust the coefficients of the grouping model until they are consistent;

当所述分组模型针对所述样本集合中,所有样本的预测分组标签与对样本事先标定的分组标签一致,训练结束。When the grouping model is for the sample set, the predicted grouping labels of all the samples are consistent with the pre-calibrated grouping labels for the samples, and the training ends.

在本申请的一种示例性实施例中,所述并发执行可并行类型的测试用例组中的测试用例,并接入线程锁锁定并发执行时运行中的测试用例,且在运行结束时释放所述线程锁,包括:In an exemplary embodiment of the present application, the concurrent execution of the test cases in the test case group of the parallel type is performed, and the thread lock is used to lock the running test cases during the concurrent execution, and all the test cases are released at the end of the running. Thread locks described above, including:

启动可并行类型的测试用例组中的测试用例的并发执行,接入第一线程锁锁定第一个启动运行的测试用例;Start the concurrent execution of the test cases in the parallel test case group, and access the first thread lock to lock the first test case to start running;

当所述第一个启动运行的测试用例结束运行时,释放所述第一线程锁,并接入第二线程锁锁定第二个启动运行的测试用例;When the first start-running test case finishes running, release the first thread lock, and access the second thread lock to lock the second start-running test case;

当所述第二个启动运行的测试用例结束运行时,释放所述第二线程锁,并依次交替接入和释放后续线程锁,以执行后续启动运行的测试用例,直到测试完毕所述可并行的测试用例组中的测试用例。When the second start-running test case finishes running, the second thread lock is released, and subsequent thread locks are alternately accessed and released to execute subsequent start-running test cases until the test is completed. test cases in the test case group.

在本申请的一种示例性实施例中,所述从所述测试用例的配置信息中提取测试用例特征信息,包括:In an exemplary embodiment of the present application, the extracting test case feature information from the configuration information of the test case includes:

基于预设属性关键字,从所述测试用例的配置信息中提取与所述预设属性关键字对应的测试用例属性信息,得到所述测试用例特征信息。Based on the preset attribute keyword, the test case attribute information corresponding to the preset attribute keyword is extracted from the configuration information of the test case to obtain the test case feature information.

在本申请的一种示例性实施例中,所述基于预设属性关键字,从所述测试用例的配置信息中提取与所述预设属性关键字对应的测试用例属性信息,得到所述测试用例特征信息,包括:In an exemplary embodiment of the present application, based on a preset attribute keyword, the test case attribute information corresponding to the preset attribute keyword is extracted from the configuration information of the test case to obtain the test case Use case characteristic information, including:

获取每个所述测试用例的用例类型所对应的预设属性关键字,所述预设属性关键字包括通用属性关键字和专用属性关键字,所述通用属性关键字对应于所有测试用例,所述专用属性关键字对应于每个用例类型;Obtain the preset attribute keyword corresponding to the use case type of each test case, the preset attribute keyword includes a general attribute keyword and a special attribute keyword, the general attribute keyword corresponds to all test cases, and the The dedicated attribute keywords described above correspond to each use case type;

根据每个测试用例对应的所述专用属性关键字及所述通用属性关键字,从每个所述测试用例的配置信息中提取测试用例属性信息,得到所述测试用例特征信息。According to the dedicated attribute keyword and the general attribute keyword corresponding to each test case, test case attribute information is extracted from the configuration information of each test case to obtain the test case feature information.

在本申请的一种示例性实施例中,所述多个测试用例组中还包括测试用例需串行的测试用例组,所述方法还包括:In an exemplary embodiment of the present application, the multiple test case groups further include test case groups whose test cases need to be serialized, and the method further includes:

串行执行所述需串行的测试用例组中的测试用例,直到所有测试用例执行结束;Serially execute the test cases in the test case group to be serialized until all the test cases are executed;

当所述需串行的测试用例组中的测试用例执行结束时,得到串行测试结果;When the execution of the test cases in the test case group to be serialized ends, the serial test result is obtained;

将所述并发测试结果与所述串行测试结果,作为总测试结果。The concurrent test result and the serial test result are taken as the total test result.

在本申请的一种示例性实施例中,所述需串行的测试用例组按照串行顺序排列成组,所述串行执行所述需串行的测试用例组中的测试用例,包括:In an exemplary embodiment of the present application, the test case groups to be serialized are arranged into groups in a serial order, and the serial execution of the test cases in the test case group to be serialized includes:

按照所述需串行的测试用例组中测试用例的串行顺序,串行执行所述需串行的测试用例组中的测试用例。According to the serial order of the test cases in the test case group to be serialized, the test cases in the test case group to be serialized are executed serially.

根据本申请的一个方面,提供一种测试装置,其特征在于,包括:According to one aspect of the present application, a testing device is provided, characterized in that it includes:

获取模块,用于获取用于目标测试任务的测试用例集合中的测试用例的配置信息;The acquisition module is used to acquire the configuration information of the test cases in the test case set used for the target test task;

提取模块,用于从所述测试用例的配置信息中提取测试用例特征信息,所述测试用例特征信息为每个测试用例的执行策略的关键属性特征;an extraction module, configured to extract test case feature information from the configuration information of the test case, where the test case feature information is a key attribute feature of the execution strategy of each test case;

分组模块,用于将所述测试用例特征信息输入预先训练的分组模型,得到多个测试用例组;a grouping module for inputting the test case feature information into a pre-trained grouping model to obtain multiple test case groups;

并发模块,用于并发执行可并行类型的测试用例组中的测试用例,并接入线程锁锁定并发执行时运行中的测试用例,且在运行结束时释放所述线程锁;A concurrency module, used for concurrently executing the test cases in the parallel-type test case group, and accessing the thread lock to lock the running test case during concurrent execution, and releasing the thread lock at the end of the operation;

结束并发模块,用于当所述可并行类型的测试用例组中的测试用例执行结束时,得到并发测试结果。The concurrency ending module is used to obtain the concurrent test result when the execution of the test cases in the test case group of the parallelizable type ends.

根据本申请的一个方面,提供一种计算机可读存储介质,其上存储有程序指令,其特征在于,所述程序指令被处理器执行时实现上述任一项所述的方法。According to an aspect of the present application, there is provided a computer-readable storage medium on which program instructions are stored, characterized in that, when the program instructions are executed by a processor, any one of the methods described above is implemented.

根据本申请的一个方面,提供一种电子设备,其特征在于,包括:According to one aspect of the present application, an electronic device is provided, characterized in that it includes:

处理器;以及processor; and

存储器,用于存储所述处理器的程序指令;其中,所述处理器配置为经由执行所述程序指令来执行上述任一项所述的方法。a memory for storing program instructions of the processor; wherein the processor is configured to perform any of the methods described above by executing the program instructions.

本申请提供一种测试方法及相关装置,首先,获取用于目标测试任务的测试用例集合中的测试用例的配置信息;可以获取到描述针对该目标测试任务配置的测试用例相关信息。然后,从测试用例的配置信息中提取测试用例特征信息,测试用例特征信息为每个测试用例的执行策略的关键属性特征;通过提取每个测试用例的执行策略的关键属性特征,可以得到基于用例执行策略的各个用例之间的潜在关系及用例的关键特征。进而,将测试用例特征信息输入预先训练的分组模型,得到多个测试用例组;可以基于分组模型根据测试用例特征信息,分析出测试用例可并行的测试用例组,进而可以进行测试用例的高效并发执行。进而,并发执行可并行的测试用例组中的测试用例,并接入线程锁锁定并发执行时运行中的测试用例,且在运行中的测试用例运行结束时释放线程锁;这样可以通过依次在每个测试用例执行时接入线程锁锁定线程,结束时释放线程锁的同时,接入下一个线程锁,直到测试结束,保证高并发过程,所有测试的有序可靠进行。最后,当可并行的测试用例组中的测试用例执行结束时,得到并发测试结果,有效提升测试可靠性及稳定性。The present application provides a testing method and related device. First, the configuration information of test cases in the test case set used for the target test task is obtained; the test case related information describing the configuration of the target test task can be obtained. Then, the test case feature information is extracted from the configuration information of the test case, and the test case feature information is the key attribute feature of the execution strategy of each test case; Potential relationships between use cases that enforce the policy and key characteristics of the use cases. Then, input the test case feature information into the pre-trained grouping model to obtain multiple test case groups; based on the test case feature information based on the grouping model, the test case groups that can be parallelized by the test cases can be analyzed, and then the efficient concurrency of test cases can be carried out. implement. Further, concurrently execute the test cases in the parallel test case group, and access the thread lock to lock the running test case during concurrent execution, and release the thread lock at the end of the running test case; When a test case is executed, access the thread lock to lock the thread, release the thread lock at the end, and access the next thread lock until the end of the test, to ensure the high concurrency process, and all tests to be carried out in an orderly and reliable manner. Finally, when the execution of the test cases in the parallel test case group ends, the concurrent test results are obtained, which effectively improves the test reliability and stability.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not limiting of the present application.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description serve to explain the principles of the application. Obviously, the drawings in the following description are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.

图1示意性示出一种测试方法的流程图。FIG. 1 schematically shows a flow chart of a testing method.

图2示意性示出一种测试方法的应用场景示例图。FIG. 2 schematically shows an example diagram of an application scenario of a testing method.

图3示意性示出一种并发执行的方法流程图。FIG. 3 schematically shows a flow chart of a method for concurrent execution.

图4示意性示出一种测试装置的方框图。FIG. 4 schematically shows a block diagram of a testing device.

图5示意性示出一种用于实现上述测试方法的电子设备示例框图。FIG. 5 schematically shows a block diagram of an example of an electronic device for implementing the above-mentioned testing method.

图6示意性示出一种用于实现上述测试方法的计算机可读存储介质。FIG. 6 schematically shows a computer-readable storage medium for implementing the above-mentioned testing method.

具体实施方式Detailed ways

现在将参考附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些实施方式使得本申请将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施方式中。在下面的描述中,提供许多具体细节从而给出对本申请的实施方式的充分理解。然而,本领域技术人员将意识到,可以实践本申请的技术方案而省略所述特定细节中的一个或更多,或者可以采用其它的方法、组元、装置、步骤等。在其它情况下,不详细示出或描述公知技术方案以避免喧宾夺主而使得本申请的各方面变得模糊。Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments, however, can be embodied in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided in order to give a thorough understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical solutions of the present application may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be employed. In other instances, well-known solutions have not been shown or described in detail to avoid obscuring aspects of the application.

此外,附图仅为本申请的示意性图解,并非一定是按比例绘制。图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。附图中所示的一些方框图是功能实体,不一定必须与物理或逻辑上独立的实体相对应。可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。Furthermore, the drawings are merely schematic illustrations of the present application and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repeated descriptions will be omitted. Some of the block diagrams shown in the figures are functional entities that do not necessarily necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.

本申请实施方式中首先提供了测试方法,该测试方法可以运行于服务器,也可以运行于服务器集群或云服务器等,当然,本领域技术人员也可以根据需求在其他平台运行本申请的方法,本示例性实施例中对此不做特殊限定。参考图1所示,该测试方法可以包括以下步骤:In the embodiment of the present application, a test method is provided first, and the test method can be run on a server, a server cluster or a cloud server, etc. Of course, those skilled in the art can also run the method of the present application on other platforms as required. This is not particularly limited in the exemplary embodiment. Referring to Figure 1, the test method may include the following steps:

步骤S110,获取用于目标测试任务的测试用例集合中的测试用例的配置信息;Step S110, obtaining configuration information of test cases in the test case set used for the target test task;

步骤S120,从所述测试用例的配置信息中提取测试用例特征信息,所述测试用例特征信息为每个测试用例的执行策略的关键属性特征;Step S120, extracting test case feature information from the configuration information of the test case, where the test case feature information is a key attribute feature of the execution strategy of each test case;

步骤S130,将所述测试用例特征信息输入预先训练的分组模型,得到多个测试用例组;Step S130, inputting the test case feature information into a pre-trained grouping model to obtain multiple test case groups;

步骤S140,并发执行可并行类型的测试用例组中的测试用例,并接入线程锁锁定并发执行时运行中的测试用例,且在运行结束时释放所述线程锁;Step S140, concurrently execute the test cases in the parallel-type test case group, and access the thread lock to lock the running test case during concurrent execution, and release the thread lock at the end of the operation;

步骤S150,当所述可并行类型的测试用例组中的测试用例执行结束时,得到并发测试结果。Step S150, when the execution of the test cases in the test case group of the parallel type is completed, a concurrent test result is obtained.

首先,获取用于目标测试任务的测试用例集合中的测试用例的配置信息;可以获取到描述针对该目标测试任务配置的测试用例相关信息。然后,从测试用例的配置信息中提取测试用例特征信息,测试用例特征信息为每个测试用例的执行策略的关键属性特征;通过提取每个测试用例的执行策略的关键属性特征,可以得到基于用例执行策略的各个用例之间的潜在关系及用例的关键特征。进而,将测试用例特征信息输入预先训练的分组模型,得到多个测试用例组;可以基于分组模型根据测试用例特征信息,分析出测试用例可并行的测试用例组,进而可以进行测试用例的高效并发执行。进而,并发执行可并行的测试用例组中的测试用例,并接入线程锁锁定并发执行时运行中的测试用例,且在运行中的测试用例运行结束时释放线程锁;这样可以通过依次在每个测试用例执行时接入线程锁锁定线程,结束时释放线程锁的同时,接入下一个线程锁,直到测试结束,保证高并发过程,所有测试的有序可靠进行。最后,当可并行的测试用例组中的测试用例执行结束时,得到并发测试结果,有效提升测试可靠性及稳定性。First, the configuration information of the test case in the test case set used for the target test task is obtained; the test case related information describing the configuration for the target test task can be obtained. Then, the test case feature information is extracted from the configuration information of the test case, and the test case feature information is the key attribute feature of the execution strategy of each test case; Potential relationships between use cases that enforce the policy and key characteristics of the use cases. Then, input the test case feature information into the pre-trained grouping model to obtain multiple test case groups; based on the test case feature information based on the grouping model, the test case groups that can be parallelized by the test cases can be analyzed, and then the efficient concurrency of test cases can be carried out. implement. Further, concurrently execute the test cases in the parallel test case group, and access the thread lock to lock the running test case during concurrent execution, and release the thread lock at the end of the running test case; When a test case is executed, access the thread lock to lock the thread, release the thread lock at the end, and access the next thread lock until the end of the test, to ensure the high concurrency process, and all tests to be carried out in an orderly and reliable manner. Finally, when the execution of the test cases in the parallel test case group ends, the concurrent test results are obtained, which effectively improves the test reliability and stability.

下面,将结合附图对本示例实施方式中上述并发测试方法中的各步骤进行详细的解释以及说明。Hereinafter, each step in the above-mentioned concurrent testing method in this exemplary embodiment will be explained and described in detail with reference to the accompanying drawings.

在步骤S110中,获取用于目标测试任务的测试用例集合中的测试用例的配置信息。In step S110, the configuration information of the test cases in the test case set for the target test task is acquired.

本示例的实施方式中,参考图2所示,服务器201从用户终端202用于目标测试任务的测试用例集合中的测试用例的配置信息。这样可以在后续步骤中,由服务器201根据测试用例的配置信息进行测试从策略的制定及进行测试。可以理解,其中,服务器201可以是任何具有处理能力的设备,例如,电脑、微处理器等,在此不做特殊限定;用户终端202可以是任何具有信息录入功能的终端。In the implementation of this example, referring to FIG. 2 , the server 201 uses the configuration information of the test case in the test case set of the target test task from the user terminal 202 . In this way, in the subsequent steps, the server 201 can carry out the formulation and testing of the test strategy according to the configuration information of the test case. It can be understood that the server 201 can be any device with processing capabilities, such as a computer, a microprocessor, etc., which is not particularly limited here; the user terminal 202 can be any terminal with an information input function.

测试用例(Test Case)可以是为某个特殊目标而编制的一组测试输入、执行条件以及预期结果,以便测试某个程序路径或核实是否满足某个特定需求。A test case can be a set of test inputs, execution conditions, and expected results prepared for a particular goal in order to test a program path or verify that a particular requirement is met.

测试用例的配置信息是为每个测试用例配置的配置的用例相关信息,可以包括各个测试用例的要素:测试用例的标题、测试思路、预设条件、测试步骤、预期输出、软件或项目的名称、软件或项目的版本(内部版本号)、本测试用例与其他测试用例间的依赖关系等。The configuration information of the test case is the case-related information of the configuration configured for each test case, and can include the elements of each test case: the title of the test case, the test idea, the preset conditions, the test steps, the expected output, the name of the software or project , the software or project version (internal version number), the dependencies between this test case and other test cases, etc.

通常一个测试任务会包括多个测试用例的测试用例集合,例如1000条测试用例组成的集合,这些测试用例可以部分存在逻辑调用关系(例如,A方法运行时,其中有个变量的取值是B方法的动态产出值。这样就必须先执行B方法。其它部分测试用例则可以相互独立没有调用关系。Usually, a test task will include a set of test cases of multiple test cases, such as a set of 1000 test cases, and these test cases may have a logical calling relationship (for example, when method A runs, one of the variables has a value of B The dynamic output value of the method. In this way, method B must be executed first. Other test cases can be independent of each other without calling relationship.

可以通过目标测试任务的任务标识,获取与目标测试任务的任务标识相对应的测试用例集合,以及每个测试用例的配置信息。目标测试任务的测试用例的配置信息可以事先由开发人员进行配置。The test case set corresponding to the task identifier of the target test task and the configuration information of each test case can be obtained through the task identifier of the target test task. The configuration information of the test case of the target test task can be configured by the developer in advance.

这样可以获取到描述针对该目标测试任务配置的测试用例相关信息,进而可以在后续步骤中基于配置信息进行测试策略分析制定。In this way, the relevant information of the test case describing the configuration for the target test task can be obtained, and then the analysis and formulation of the test strategy can be performed based on the configuration information in the subsequent steps.

在步骤S120中,从所述测试用例的配置信息中提取测试用例特征信息,所述测试用例特征信息为每个测试用例的执行策略的关键属性特征。In step S120, test case feature information is extracted from the configuration information of the test case, where the test case feature information is a key attribute feature of the execution strategy of each test case.

本示例的实施方式中,每个测试用例的执行策略的关键属性特征,也就是测试用例特征信息,可以是测试用例配置信息中反映执行策略的关键信息,这些关键信息可以是对应于多个关键要素的信息。例如,关键要素可以是测试思路、预设条件、测试步骤、预期输出以及本测试用例与其他测试用例间的依赖关系等,关键属性特征可以是这些关键属性对应的属性信息,可以直接通过预设关键要素,将关键要素对应的信息直接作为用例特征信息,可以完整包含每个测试用例的执行策略的关键属性特征。In the implementation of this example, the key attribute characteristics of the execution strategy of each test case, that is, the test case characteristic information, may be the key information reflecting the execution strategy in the test case configuration information, and these key information may be corresponding to multiple key information. element information. For example, key elements can be test ideas, preset conditions, test steps, expected output, and dependencies between this test case and other test cases, etc. Key attribute features can be attribute information corresponding to these key attributes, which can be directly passed through the preset Key elements, the information corresponding to the key elements is directly used as the use case feature information, which can completely contain the key attribute characteristics of the execution strategy of each test case.

可以预先按照属性与属性信息对照关系,在配置信息中配置每个测试用例要素中的内容,进而可以通过预设属性关键词确定每个测试用例要素中的关键属性特征。The content of each test case element can be configured in the configuration information according to the comparison relationship between attributes and attribute information in advance, and then the key attribute features in each test case element can be determined by preset attribute keywords.

通过提取每个测试用例的执行策略的关键属性特征,可以得到反映用例执行策略的各个用例之间的潜在关系及用例的关键特征。By extracting the key attribute features of the execution strategy of each test case, the potential relationship between the use cases and the key features of the use cases that reflect the execution strategy of the use case can be obtained.

在其中一种实施例中,所述从所述测试用例的配置信息中提取测试用例特征信息,包括:In one of the embodiments, the extracting test case feature information from the configuration information of the test case includes:

基于预设属性关键字,从所述测试用例的配置信息中提取与所述预设属性关键字对应的测试用例属性信息,得到所述测试用例特征信息。Based on the preset attribute keyword, the test case attribute information corresponding to the preset attribute keyword is extracted from the configuration information of the test case to obtain the test case feature information.

预设属性关键字可以是预定设置的多个测试用例配置信息中的测试要素名(例如,测试思路、预设条件、测试步骤、预期输出以及依赖关系等)。也可以是各个测试要素内容中的内容属性,例如,对于测试思路要素,其内容可以为:异常条件1-存储空间满后,异常条件2-再去运行占用空间的程序,测试目的-终端在存储溢出的情况是否会发生异常,测试思路要素内容中的内容属性关键字就是异常条件1、异常条件2及测试目的等。进而,可以根据预设属性关键字,从测试用例的配置信息中提取与预设属性关键字对应的测试用例属性信息,得到测试用例特征信息。The preset attribute keywords may be test element names (eg, test ideas, preset conditions, test steps, expected outputs, and dependencies, etc.) in the preset multiple test case configuration information. It can also be the content attribute in the content of each test element. For example, for the test idea element, the content can be: abnormal condition 1 - after the storage space is full, abnormal condition 2 - run the program that occupies the space, test purpose - the terminal is in Whether an exception will occur in the case of storage overflow, the content attribute keywords in the content of the test idea elements are abnormal condition 1, abnormal condition 2, and test purpose. Furthermore, according to the preset attribute keyword, the test case attribute information corresponding to the preset attribute keyword can be extracted from the configuration information of the test case to obtain the test case characteristic information.

在其中一种实施例中,所述基于预设属性关键字,从所述测试用例的配置信息中提取与所述预设属性关键字对应的测试用例属性信息,得到所述测试用例特征信息,包括:In one embodiment, based on a preset attribute keyword, the test case attribute information corresponding to the preset attribute keyword is extracted from the configuration information of the test case to obtain the test case feature information, include:

获取每个所述测试用例的用例类型所对应的预设属性关键字,所述预设属性关键字包括通用属性关键字和专用属性关键字,所述通用属性关键字对应于所有测试用例,所述专用属性关键字对应于每个用例类型;Obtain the preset attribute keyword corresponding to the use case type of each test case, the preset attribute keyword includes a general attribute keyword and a special attribute keyword, the general attribute keyword corresponds to all test cases, and the The dedicated attribute keywords described above correspond to each use case type;

根据每个测试用例对应的所述专用属性关键字及所述通用属性关键字,从每个所述测试用例的配置信息中提取测试用例属性信息,得到所述测试用例特征信息。According to the dedicated attribute keyword and the general attribute keyword corresponding to each test case, test case attribute information is extracted from the configuration information of each test case to obtain the test case feature information.

每个测试用例的用例类型,例如:功能测试、易用性测试、可安装性测试、异常测试、压力测试、GUI测试、兼容性测试、安全测试、可靠性测试等。The use case type of each test case, such as: functional test, usability test, installability test, exception test, stress test, GUI test, compatibility test, security test, reliability test, etc.

测试用例的用例类型不同,其测试思路等配置信息与根据用例类型的相适应,通过获取每个测试用例的用例类型所对应的预设属性关键字,可以准确获取每个测试用例的特征信息。The use case types of test cases are different, and the configuration information such as the test idea is adapted to the use case type. By obtaining the preset attribute keywords corresponding to the use case type of each test case, the characteristic information of each test case can be accurately obtained.

其中,预设属性关键字包括通用属性关键字和专用属性关键字,通用属性关键字对应于所有测试用例,也就是通用属性关键词是适用于所有测试用例配置信息的,可以获取到测试用例的通用属性对应的关键词,例如测试目的等。专用属性关键字对应于每个用例类型的配置信息,与测试用例的类型相对应,例如,对于异常测试的测试用例,专用属性关键字可以是异常条件1、异常条件2等。这样通过通用属性关键字和专用属性关键字可以完整的获取到测试用例的特征信息。Among them, the preset attribute keywords include general attribute keywords and special attribute keywords. The general attribute keywords correspond to all test cases, that is, the general attribute keywords are applicable to all test case configuration information, and the test case information can be obtained. Keywords corresponding to common attributes, such as test purpose, etc. The dedicated attribute keyword corresponds to the configuration information of each use case type, and corresponds to the type of the test case. For example, for a test case of an exception test, the dedicated attribute keyword can be exception condition 1, exception condition 2, and so on. In this way, the characteristic information of the test case can be completely obtained through the general attribute keyword and the special attribute keyword.

在步骤S130中,将所述测试用例特征信息输入预先训练的分组模型,得到多个测试用例组。In step S130, the test case feature information is input into a pre-trained grouping model to obtain multiple test case groups.

本示例的实施方式中,预先训练的分组模型是基于大量测试用例的测试用例特征信息作为输入,每个测试用例所属的组别标签作为输出,训练得到的机器学习模型,通过标签标定实现测试用例分组。一种实施例中,每个测试用例组中的测试用例的数量小于预定阈值。In the implementation of this example, the pre-trained grouping model is based on the test case feature information of a large number of test cases as input, and the group label to which each test case belongs is used as output. grouping. In one embodiment, the number of test cases in each test case group is less than a predetermined threshold.

该组别标签可以包括可并行标签、需串行标签的总标签;其中可并行标签又可以包括可并行标签1、可并行标签2等子标签,需串行标签又可以包括需串行标签1、需串行标签2等子标签。This group of tags can include parallel tags and total tags requiring serial tags; the parallel tags can also include parallel tags 1, parallel tags 2 and other sub tags, and serial tags can also include serial tags 1 , Sub-tags such as serial tag 2 are required.

可并行标签指向的测试用例是可以并行的,而可并行标签的每个子标签可以对应多个测试用例,即每个子标签可以对应一个测试用例组,每个可并行测试用例组中的用例在一起并发执行时,基于每个用例的用例执行策略的各个用例之间的潜在关系及用例的关键特征,使得用例分组更加合理,测试用例在执行时有效提升测试效率,例如可以在功能测试的同时,进行健壮性的测试。The test cases pointed to by the parallelizable tag can be parallelized, and each subtag of the parallelizable tag can correspond to multiple test cases, that is, each subtag can correspond to a test case group, and the use cases in each parallelizable test case group are together. During concurrent execution, based on the potential relationship between each use case and the key characteristics of the use case in the use case execution strategy of each use case, the use case grouping is more reasonable, and the test case can effectively improve the test efficiency during execution. Conduct robustness tests.

一般高效测试脚本需要在一小时内完成上千上万条测试用例,一条测试用例所花费的时间是在1-2分钟,执行1000条用例,如果按照串行方式1000*(1-2)大约需要一天多的时间。进而,通过并行的方式:在1小时内运行1000条测试用例,一分钟并行任务大约需要完成16条测试用例,可以有效的节约时间,提高效率。Generally, an efficient test script needs to complete thousands of test cases in one hour. The time spent on one test case is 1-2 minutes, and 1000 test cases are executed. If the serial method is 1000*(1-2) about It takes more than a day. Furthermore, through the parallel method: running 1000 test cases in 1 hour, about 16 test cases need to be completed in one minute of parallel tasks, which can effectively save time and improve efficiency.

同时对于一些特殊场景,比如测试用例1完成以后测试用例2才能运行,这样测试方式只能用到串行方式。通过分组,比如1000条中动态分为100个组,可以在后续步骤中这100个组中可并行的组中测试用例并行执行,需串行的测试用例进行串行执行。At the same time, for some special scenarios, for example, test case 2 can only be run after test case 1 is completed, so that the test method can only be used in serial mode. Through grouping, for example, 1000 items are dynamically divided into 100 groups. In the subsequent steps, the test cases in the parallel groups of the 100 groups can be executed in parallel, and the test cases that need to be serialized can be executed serially.

基于分组模型,利用测试用例特征信息可以准确、合理地将测试用例组分为多个组,其中,包括多个可并行的测试用例组,进而可以实现后续步骤中每个可并行的测试用例组中并发测试,保证后续步骤中测试用例执行的高效性、可靠性及稳定性,同时通过模型的合理分组,保证后续步骤中并发执行中线程锁添加(可并行的测试用例组中测试用例并发执行中线程锁的添加)的可靠性。Based on the grouping model, the test case group can be accurately and reasonably divided into multiple groups by using the test case feature information, including multiple parallel test case groups, and then each parallel test case group in the subsequent steps can be realized. Concurrent testing ensures the efficiency, reliability and stability of test case execution in subsequent steps, and at the same time, through the reasonable grouping of models, it ensures that thread locks are added in concurrent execution in subsequent steps (concurrent execution of test cases in parallel test case groups) Addition of thread locks in ) reliability.

在其中一种实施例中,所述分组模型的训练方法,包括:In one embodiment, the training method of the grouping model includes:

收集测试用例特征信息样本集,所述样本集中每个样本事先标定了对应的测试用例的分组标签;Collect a sample set of test case feature information, where each sample in the sample set is pre-calibrated with the grouping label of the corresponding test case;

将所述样本集中的样本输入分组模型,输出所述样本的预测分组标签;Input the samples in the sample set into the grouping model, and output the predicted grouping labels of the samples;

当所述预测分组标签与对所述样本事先标定的分组标签不一致,调整分组模型的系数,直到一致;When the predicted grouping label is inconsistent with the pre-calibrated grouping label for the sample, adjust the coefficients of the grouping model until they are consistent;

当所述分组模型针对所述样本集合中,所有样本的预测分组标签与对样本事先标定的分组标签一致,训练结束。When the grouping model is for the sample set, the predicted grouping labels of all the samples are consistent with the pre-calibrated grouping labels for the samples, and the training ends.

测试用例特征信息样本集中,每个样本事先由专家根据测试用例之间的组合经验,标定了对应的测试用例的分组标签,进而,通过将测试用例的特征信息样本输入分组模型,训练模型输出对应样本实现标定的标签,该标签可以是字符串或者数字代码等表示。当分组模型针对样本集合中,所有样本的预测分组标签与对样本事先标定的分组标签一致,训练结束。这样可以训练得到通过测试用例的特征信息反映的各类用例潜在特征的分析输出分组标签。In the test case feature information sample set, each sample has been demarcated by experts in advance according to the combined experience between test cases and the corresponding test case grouping labels, and then, by inputting the test case feature information samples into the grouping model, the training model outputs corresponding The sample implements the label of the calibration, and the label can be represented by a string or a numerical code. When the grouping model is aimed at the sample set, the predicted grouping labels of all the samples are consistent with the pre-calibrated grouping labels for the samples, and the training ends. In this way, the analysis output grouping labels of the latent features of various use cases reflected by the feature information of the test cases can be obtained by training.

在步骤S140中,并发执行可并行类型的测试用例组中的测试用例,并接入线程锁锁定并发执行时运行中的测试用例,且在运行结束时释放所述线程锁。In step S140, concurrently execute the test cases in the parallelizable test case group, access the thread lock to lock the running test case during concurrent execution, and release the thread lock at the end of the running.

本示例的实施方式中,并发执行测试用例组就是采用多线程并发执行多个测试用例,进而有效提升测试速度。In the implementation of this example, the concurrent execution of the test case group is to use multiple threads to execute multiple test cases concurrently, thereby effectively improving the test speed.

当高并发测试无序并行执行时,只能测试单一的环境,比如说一个场景的测试。对于多场景测试就无法做到,因为高并发用到的是线程无序的排列也就是说哪个线程抢占到资源就挂载中,这就导致一定概率的死锁,这类问题即出现误报。通过将无序的线程排列到线程池当中,基于分组模型进行动态分组,得到多个可并行的测试用例组,进行测试用例的并行执行,进一步的通过线程锁锁住运行中的测试用例被线程,可以在执行结束后再进行释放线程锁,依次在每个测试用例执行结束时释放线程锁的同时,接入下一个锁,直到测试用例组的并发测试结束,有效保证并发过程中测试用例的有序性。这样能偶保证每个测试用例线程做完后可以释放资源,不会导致误报这类问题。When high-concurrency tests are executed out of order and in parallel, only a single environment, such as a scenario test, can be tested. It cannot be done for multi-scenario testing, because high concurrency uses the disordered arrangement of threads, that is, whichever thread preempts the resource will be mounted, which will lead to a certain probability of deadlock, and this kind of problem will cause false positives. . By arranging the unordered threads into the thread pool, dynamically grouping them based on the grouping model, obtaining multiple parallel test case groups, executing the test cases in parallel, and further locking the running test cases by thread locks. , you can release the thread lock after the execution ends, release the thread lock at the end of each test case execution, and access the next lock until the concurrent test of the test case group ends, effectively ensuring the test case in the concurrent process. orderliness. This ensures that resources can be released after each test case thread is completed, and will not cause problems such as false positives.

在其中一种实施例中,参考图3所示,所述并发执行可并行类型的测试用例组中的测试用例,并接入线程锁锁定并发执行时运行中的测试用例,且在运行结束时释放所述线程锁,包括:In one of the embodiments, as shown in FIG. 3 , the concurrent execution of the test cases in the test case group of the parallel type is performed, and the thread lock is used to lock the running test cases during concurrent execution, and when the execution ends Release the thread lock, including:

步骤S310,启动可并行类型的测试用例组中的测试用例的并发执行,接入第一线程锁锁定第一个启动运行的测试用例;Step S310, start the concurrent execution of the test cases in the test case group of the parallel type, and access the first thread lock to lock the first start-running test case;

步骤S320,当所述第一个启动运行的测试用例结束运行时,释放所述第一线程锁,并接入第二线程锁锁定第二个启动运行的测试用例;Step S320, when the first test case that starts to run ends, releases the first thread lock, and accesses the second thread lock to lock the second test case that starts to run;

步骤S330,当所述第二个启动运行的测试用例结束运行时,释放所述第二线程锁,并依次交替接入和释放后续线程锁,以执行后续启动运行的测试用例,直到测试完毕所述可并行的测试用例组中的测试用例。Step S330, when the second test case started to run ends, the second thread lock is released, and subsequent thread locks are alternately accessed and released to execute subsequent test cases that are started and run until the test is completed. Describe the test cases in the parallelizable test case group.

例如,可以当一组7个测试用例非串行情况下,使用线程锁来锁住正在运行的测试用例,然后通过完成执行后释放锁的过程继续接入第二个线程锁,这样测用例和用例之间不会因为出现互斥最后产生一个误报bug的情况,也能保证执行过程中节约测试时间,同时也保证测试的质量。特别对于业务逻辑非常复杂的测试用例而言,可以有效保证测试结果的真实性和测试效率。同样,对于无需业务逻辑的测试用例,也可以进行并行测试。For example, when a set of 7 test cases is not serial, use thread lock to lock the running test case, and then continue to access the second thread lock through the process of releasing the lock after completion of execution, so that the test case and the There will not be a false positive bug due to mutual exclusion between use cases, and it can also save testing time during execution and ensure the quality of testing. Especially for test cases with very complex business logic, it can effectively ensure the authenticity of test results and test efficiency. Likewise, parallel testing is possible for test cases that do not require business logic.

在步骤S150中,当所述可并行类型的测试用例组中的测试用例执行结束时,得到并发测试结果。In step S150, when the execution of the test cases in the test case group of the parallel type is completed, a concurrent test result is obtained.

本示例的实施方式中,可并行的测试用例组可以覆盖所有测试用例时,当可并行的测试用例组中的测试用例执行结束时,得到并发测试结果即本次目标测试任务对应的最终测试结果。这样通过在可并行的测试用例组中的测试用例执行结束时,得到并发测试结果,可以高效准确稳定的得到测试任务的测试结果。In the implementation of this example, when the parallelizable test case group can cover all test cases, when the execution of the test cases in the parallelizable test case group ends, the concurrent test result is obtained, that is, the final test result corresponding to the current target test task . In this way, by obtaining the concurrent test result when the execution of the test case in the parallelizable test case group ends, the test result of the test task can be obtained efficiently, accurately and stably.

如果模型分组结果中除了可并行的测试用例组之外,还包括其它测试用例组,如,需串行测试用例组,该并发测试结果为测试任务测试结果的部分结果。这样通过在可并行的测试用例组中的测试用例执行结束时,得到并发测试结果,使得最大可能的保证高效准确稳定的得到测试任务的该部分测试结果,进而在整体上保证测试的高效准确稳定。If the model grouping result includes other test case groups in addition to parallel test case groups, for example, serial test case groups, the concurrent test result is a partial result of the test task test result. In this way, the concurrent test results are obtained at the end of the execution of the test cases in the parallel test case group, so that the test results of this part of the test task can be obtained as efficiently, accurately and stably as possible, thereby ensuring the overall efficiency, accuracy and stability of the test. .

在其中一种实施例中,所述多个测试用例组中还包括测试用例需串行的测试用例组,所述方法还包括:In one embodiment, the multiple test case groups further include test case groups whose test cases need to be serialized, and the method further includes:

串行执行所述需串行的测试用例组中的测试用例,直到所有测试用例执行结束;Serially execute the test cases in the test case group to be serialized until all the test cases are executed;

当所述需串行的测试用例组中的测试用例执行结束时,得到串行测试结果;When the execution of the test cases in the test case group to be serialized ends, the serial test result is obtained;

将所述并发测试结果与所述串行测试结果,作为总测试结果。The concurrent test result and the serial test result are taken as the total test result.

需串行标签指向的测试用例是需要串行的,测试用例的执行后一个测试用例需要用的前一个测试用例的结果。而需串行标签的每个子标签可以对应多个测试用例,即每个子标签可以对应一个测试用例组,每个测试用例组中的用例在执行时串行执行。一示例中,一个需串行的测试用例组中的测试用例之间并非绝对需要串行,可以是通过每个用例的用例执行策略的各个用例之间的潜在关系及用例的关键特征,反映的用例串行执行时可以有效提升测试稳定性的多个测试用例组成一组。The test case pointed to by the serial tag needs to be serialized, and the result of the previous test case needs to be used by the next test case after the execution of the test case. However, each sub-tag of the serial tag can correspond to multiple test cases, that is, each sub-tag can correspond to a test case group, and the use cases in each test case group are executed serially during execution. In an example, the test cases in a test case group that needs to be serialized do not absolutely need to be serialized, but can be reflected by the potential relationship between the use cases and the key characteristics of the use cases through the use case execution strategy of each use case. Multiple test cases that can effectively improve test stability when the test cases are executed serially form a group.

将并发测试结果与串行测试结果,作为总测试结果,可以完整可靠的完成测试,得到测试结果。Taking the concurrent test results and serial test results as the total test results, the test can be completed completely and reliably, and the test results can be obtained.

在其中一种实施例中,所述需串行的测试用例组按照串行顺序排列成组,所述串行执行所述需串行的测试用例组中的测试用例,包括:In one embodiment, the test case groups to be serialized are arranged into groups in a serial order, and the serial execution of the test cases in the test case group to be serialized includes:

按照所述需串行的测试用例组中测试用例的串行顺序,串行执行所述需串行的测试用例组中的测试用例。According to the serial order of the test cases in the test case group to be serialized, the test cases in the test case group to be serialized are executed serially.

通过分组模型,根据测试用例的调用关系等特征为需串行的测试用例添加分组标签及标签序号,可以得到测试用例组串行顺序,进而将需串行的测试用例组按照串行顺序排列成组。在按照需串行的测试用例组中测试用例的串行顺序,串行执行需串行的测试用例组中的测试用例时,可以有效保证串行准确性。Through the grouping model, adding group labels and label serial numbers to the test cases that need to be serialized according to the characteristics of the calling relationship of the test cases, the serial order of the test case groups can be obtained, and then the test case groups that need to be serialized are arranged in serial order into Group. When the test cases in the test case group to be serialized are executed serially according to the serial order of the test cases in the test case group to be serialized, the serial accuracy can be effectively guaranteed.

本申请还提供了一种测试装置。参考图4所示,并发测试装置,其特征在于,包括:The present application also provides a testing device. Referring to Figure 4, the concurrent testing device is characterized in that it includes:

获取模块410用于获取用于目标测试任务的测试用例集合中的测试用例的配置信息;The obtaining module 410 is used for obtaining the configuration information of the test case in the test case set for the target test task;

提取模块420用于从所述测试用例的配置信息中提取测试用例特征信息,所述测试用例特征信息为每个测试用例的执行策略的关键属性特征;The extraction module 420 is configured to extract test case feature information from the configuration information of the test case, where the test case feature information is a key attribute feature of the execution strategy of each test case;

分组模块430用于将所述测试用例特征信息输入预先训练的分组模型,得到多个测试用例组;The grouping module 430 is configured to input the test case feature information into a pre-trained grouping model to obtain multiple test case groups;

并发模块440用于并发执行可并行类型的测试用例组中的测试用例,并接入线程锁锁定并发执行时运行中的测试用例,且在运行结束时释放所述线程锁;The concurrency module 440 is used for concurrently executing the test cases in the parallel-type test case group, and accessing the thread lock to lock the running test case during concurrent execution, and releasing the thread lock at the end of the operation;

结束并发模块450用于当所述可并行类型的测试用例组中的测试用例执行结束时,得到并发测试结果。The concurrency ending module 450 is configured to obtain a concurrent test result when the execution of the test cases in the test case group of the parallelizable type ends.

上述测试装置中各模块的具体细节已经在对应的并发测试方法中进行了详细的描述,因此此处不再赘述。The specific details of each module in the above-mentioned test apparatus have been described in detail in the corresponding concurrent test method, and thus are not repeated here.

应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本申请的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。It should be noted that although several modules or units of the apparatus for action performance are mentioned in the above detailed description, this division is not mandatory. Indeed, according to embodiments of the present application, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of one module or unit described above may be further divided into multiple modules or units to be embodied.

此外,尽管在附图中以特定顺序描述了本申请中方法的各个步骤,但是,这并非要求或者暗示必须按照该特定顺序来执行这些步骤,或是必须执行全部所示的步骤才能实现期望的结果。附加的或备选的,可以省略某些步骤,将多个步骤合并为一个步骤执行,以及/或者将一个步骤分解为多个步骤执行等。Additionally, although the various steps of the methods of the present application are depicted in the figures in a particular order, this does not require or imply that the steps must be performed in the particular order, or that all illustrated steps must be performed to achieve the desired result. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step for execution, and/or one step may be decomposed into multiple steps for execution, and the like.

通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本申请实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、移动终端、或者网络设备等)执行根据本申请实施方式的方法。From the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein may be implemented by software, or may be implemented by software combined with necessary hardware. Therefore, the technical solutions according to the embodiments of the present application may be embodied in the form of software products, and the software products may be stored in a non-volatile storage medium (which may be CD-ROM, U disk, mobile hard disk, etc.) or on the network , including several instructions to cause a computing device (which may be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the embodiment of the present application.

在本申请的示例性实施例中,还提供了一种能够实现上述方法的电子设备。In an exemplary embodiment of the present application, an electronic device capable of implementing the above method is also provided.

所属技术领域的技术人员能够理解,本申请的各个方面可以实现为系统、方法或程序产品。因此,本申请的各个方面可以具体实现为以下形式,即:完全的硬件实施方式、完全的软件实施方式(包括固件、微代码等),或硬件和软件方面结合的实施方式,这里可以统称为“电路”、“模块”或“系统”。As will be appreciated by one skilled in the art, various aspects of the present application may be implemented as a system, method or program product. Therefore, various aspects of the present application can be embodied in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software aspects, which may be collectively referred to herein as implementations "circuit", "module" or "system".

下面参照图5来描述根据本申请的这种实施方式的电子设备500。图5显示的电子设备500仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。The electronic device 500 according to this embodiment of the present application is described below with reference to FIG. 5 . The electronic device 500 shown in FIG. 5 is only an example, and should not impose any limitations on the functions and scope of use of the embodiments of the present application.

如图5所示,电子设备500以通用计算设备的形式表现。电子设备500的组件可以包括但不限于:上述至少一个处理单元510、上述至少一个存储单元520、连接不同系统组件(包括存储单元520和处理单元510)的总线530。As shown in FIG. 5, electronic device 500 takes the form of a general-purpose computing device. Components of the electronic device 500 may include, but are not limited to, the above-mentioned at least one processing unit 510 , the above-mentioned at least one storage unit 520 , and a bus 530 connecting different system components (including the storage unit 520 and the processing unit 510 ).

其中,所述存储单元存储有程序代码,所述程序代码可以被所述处理单元510执行,使得所述处理单元510执行本说明书上述“示例性方法”部分中描述的根据本申请各种示例性实施方式的步骤。例如,所述处理单元510可以执行如图1中所示的步骤。Wherein, the storage unit stores program codes, and the program codes can be executed by the processing unit 510, so that the processing unit 510 executes various exemplary methods according to the present application described in the above-mentioned “Exemplary Methods” section of this specification. Implementation steps. For example, the processing unit 510 may perform the steps shown in FIG. 1 .

存储单元520可以包括易失性存储单元形式的可读介质,例如随机存取存储单元(RAM)5201和/或高速缓存存储单元5202,还可以进一步包括只读存储单元(ROM)5203。The storage unit 520 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 5201 and/or a cache storage unit 5202 , and may further include a read only storage unit (ROM) 5203 .

存储单元520还可以包括具有一组(至少一个)程序模块5205的程序/实用工具5204,这样的程序模块5205包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。The storage unit 520 may also include a program/utility 5204 having a set (at least one) of program modules 5205 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, An implementation of a network environment may be included in each or some combination of these examples.

总线530可以为表示几类总线结构中的一种或多种,包括存储单元总线或者存储单元控制器、外围总线、图形加速端口、处理单元或者使用多种总线结构中的任意总线结构的局域总线。The bus 530 may be representative of one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local area using any of a variety of bus structures. bus.

电子设备500也可以与一个或多个外部设备700(例如键盘、指向设备、蓝牙设备等)通信,还可与一个或者多个使得客户能与该电子设备500交互的设备通信,和/或与使得该电子设备500能与一个或多个其它计算设备进行通信的任何设备(例如路由器、调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口550进行。还可以包括与输入/输出(I/O)接口550连接的显示单元540,并且,电子设备500还可以通过网络适配器560与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器560通过总线530与电子设备500的其它模块通信。应当明白,尽管图中未示出,可以结合电子设备500使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。The electronic device 500 may also communicate with one or more external devices 700 (eg, keyboards, pointing devices, Bluetooth devices, etc.), with one or more devices that enable a customer to interact with the electronic device 500, and/or with Any device (eg, router, modem, etc.) that enables the electronic device 500 to communicate with one or more other computing devices. Such communication may occur through input/output (I/O) interface 550 . A display unit 540 connected to an input/output (I/O) interface 550 may also be included, and the electronic device 500 may also be connected to one or more networks (eg, a local area network (LAN), a wide area network (WAN), and/or a network adapter 560 through a network adapter 560 ). or a public network such as the Internet). As shown, network adapter 560 communicates with other modules of electronic device 500 via bus 530 . It should be understood that, although not shown, other hardware and/or software modules may be used in conjunction with electronic device 500, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives and data backup storage systems.

通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本申请实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、终端装置、或者网络设备等)执行根据本申请实施方式的方法。From the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein may be implemented by software, or may be implemented by software combined with necessary hardware. Therefore, the technical solutions according to the embodiments of the present application may be embodied in the form of software products, and the software products may be stored in a non-volatile storage medium (which may be CD-ROM, U disk, mobile hard disk, etc.) or on the network , including several instructions to cause a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiment of the present application.

在本申请的示例性实施例中,参考图6所示,还提供了一种计算机可读存储介质,其上存储有能够实现本说明书上述方法的程序产品。在一些可能的实施方式中,本申请的各个方面还可以实现为一种程序产品的形式,其包括程序代码,当所述程序产品在终端设备上运行时,所述程序代码用于使所述终端设备执行本说明书上述“示例性方法”部分中描述的根据本申请各种示例性实施方式的步骤。In an exemplary embodiment of the present application, as shown in FIG. 6 , a computer-readable storage medium is also provided, on which a program product capable of implementing the above-mentioned method of the present specification is stored. In some possible implementations, various aspects of the present application can also be implemented in the form of a program product, which includes program code, which is used to cause the program product to run on a terminal device when the program product is executed. The terminal device performs the steps according to various exemplary embodiments of the present application described in the above-mentioned "Example Method" section of this specification.

参考图6所示,描述了根据本申请的实施方式的用于实现上述方法的程序产品600,其可以采用便携式紧凑盘只读存储器(CD-ROM)并包括程序代码,并可以在终端设备,例如个人电脑上运行。然而,本申请的程序产品不限于此,在本文件中,可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。Referring to FIG. 6, a program product 600 for implementing the above method according to an embodiment of the present application is described, which can adopt a portable compact disk read only memory (CD-ROM) and include program codes, and can be used in a terminal device, For example running on a personal computer. However, the program product of the present application is not limited thereto, and in this document, a readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

所述程序产品可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以为但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读信号介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer readable signal medium may include a propagated data signal in baseband or as part of a carrier wave with readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable signal medium can also be any readable medium, other than a readable storage medium, that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.

可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。Program code embodied on a readable medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

可以以一种或多种程序设计语言的任意组合来编写用于执行本申请操作的程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、C++等,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在客户计算设备上执行、部分地在客户设备上执行、作为一个独立的软件包执行、部分在客户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到客户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。Program code for carrying out the operations of the present application may be written in any combination of one or more programming languages, including object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural Programming Language - such as the "C" language or similar programming language. The program code may execute entirely on the client computing device, partly on the client device, as a stand-alone software package, partly on the client computing device and partly on a remote computing device, or entirely on the remote computing device or server execute on. In the case of a remote computing device, the remote computing device may be connected to the client computing device through any kind of network, including a local area network (LAN) or wide area network (WAN), or may be connected to an external computing device (eg, using an Internet service provider business via an Internet connection).

此外,上述附图仅是根据本申请示例性实施例的方法所包括的处理的示意性说明,而不是限制目的。易于理解,上述附图所示的处理并不表明或限制这些处理的时间顺序。另外,也易于理解,这些处理可以是例如在多个模块中同步或异步执行的。In addition, the above-mentioned figures are only schematic illustrations of the processes included in the methods according to the exemplary embodiments of the present application, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not indicate or limit the chronological order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, in multiple modules.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本申请的其他实施例。本申请旨在涵盖本申请的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本申请未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本申请的真正范围和精神由权利要求指出。Other embodiments of the present application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of this application that follow the general principles of this application and include common knowledge or conventional techniques in the technical field not disclosed in this application . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the application being indicated by the claims.

Claims (10)

1.一种测试方法,其特征在于,包括:1. a test method, is characterized in that, comprises: 获取用于目标测试任务的测试用例集合中的测试用例的配置信息;Obtain the configuration information of the test case in the test case collection for the target test task; 从所述测试用例的配置信息中提取测试用例特征信息,所述测试用例特征信息为每个测试用例的执行策略的关键属性特征;Extract test case feature information from the configuration information of the test case, where the test case feature information is a key attribute feature of the execution strategy of each test case; 将所述测试用例特征信息输入预先训练的分组模型,得到多个测试用例组;Inputting the test case feature information into a pre-trained grouping model to obtain multiple test case groups; 并发执行可并行类型的测试用例组中的测试用例,并接入线程锁锁定并发执行时运行中的测试用例,且在运行结束时释放所述线程锁;Concurrently execute the test cases in the parallel test case group, and access the thread lock to lock the running test case during concurrent execution, and release the thread lock at the end of the operation; 当所述可并行的测试用例组中的测试用例执行结束时,得到并发测试结果。When the execution of the test cases in the parallelizable test case group ends, the concurrent test result is obtained. 2.根据权利要求1所述的方法,其特征在于,所述分组模型的训练方法,包括:2. The method according to claim 1, wherein the training method of the grouping model comprises: 收集测试用例特征信息样本集,所述样本集中每个样本事先标定了对应的测试用例的分组标签;Collect a sample set of test case feature information, where each sample in the sample set is pre-calibrated with the grouping label of the corresponding test case; 将所述样本集中的样本输入分组模型,输出所述样本的预测分组标签;Input the samples in the sample set into the grouping model, and output the predicted grouping labels of the samples; 当所述预测分组标签与对所述样本事先标定的分组标签不一致,调整分组模型的系数,直到一致;When the predicted grouping label is inconsistent with the pre-calibrated grouping label for the sample, adjust the coefficients of the grouping model until they are consistent; 当所述分组模型针对所述样本集合中,所有样本的预测分组标签与对样本事先标定的分组标签一致,训练结束。When the grouping model is for the sample set, the predicted grouping labels of all the samples are consistent with the pre-calibrated grouping labels for the samples, and the training ends. 3.根据权利要求1所述的方法,其特征在于,所述并发执行可并行类型的测试用例组中的测试用例,并接入线程锁锁定并发执行时运行中的测试用例,且在运行结束时释放所述线程锁,包括:3. The method according to claim 1, characterized in that, the concurrent execution of the test cases in the parallel type test case group, and the access thread lock to lock the test cases in running during concurrent execution, and the end of the operation. when releasing the thread lock, including: 启动可并行类型的测试用例组中的测试用例的并发执行,接入第一线程锁锁定第一个启动运行的测试用例;Start the concurrent execution of the test cases in the parallel test case group, and access the first thread lock to lock the first test case to start running; 当所述第一个启动运行的测试用例结束运行时,释放所述第一线程锁,并接入第二线程锁锁定第二个启动运行的测试用例;When the first start-running test case finishes running, release the first thread lock, and access the second thread lock to lock the second start-running test case; 当所述第二个启动运行的测试用例结束运行时,释放所述第二线程锁,并依次交替接入和释放后续线程锁,以执行后续启动运行的测试用例,直到测试完毕所述可并行的测试用例组中的测试用例。When the second start-running test case finishes running, the second thread lock is released, and subsequent thread locks are alternately accessed and released to execute subsequent start-running test cases until the test is completed. test cases in the test case group. 4.根据权利要求1所述的方法,其特征在于,所述从所述测试用例的配置信息中提取测试用例特征信息,包括:4. The method according to claim 1, wherein the extracting test case feature information from the configuration information of the test case comprises: 基于预设属性关键字,从所述测试用例的配置信息中提取与所述预设属性关键字对应的测试用例属性信息,得到所述测试用例特征信息。Based on the preset attribute keyword, the test case attribute information corresponding to the preset attribute keyword is extracted from the configuration information of the test case to obtain the test case feature information. 5.根据权利要求1所述的方法,其特征在于,所述基于预设属性关键字,从所述测试用例的配置信息中提取与所述预设属性关键字对应的测试用例属性信息,得到所述测试用例特征信息,包括:5. The method according to claim 1, wherein, based on a preset attribute keyword, the test case attribute information corresponding to the preset attribute keyword is extracted from the configuration information of the test case to obtain The test case feature information includes: 获取每个所述测试用例的用例类型所对应的预设属性关键字,所述预设属性关键字包括通用属性关键字和专用属性关键字,所述通用属性关键字对应于所有测试用例,所述专用属性关键字对应于每个用例类型;Obtain the preset attribute keyword corresponding to the use case type of each test case, the preset attribute keyword includes a general attribute keyword and a special attribute keyword, the general attribute keyword corresponds to all test cases, and the The dedicated attribute keywords described above correspond to each use case type; 根据每个测试用例对应的所述专用属性关键字及所述通用属性关键字,从每个所述测试用例的配置信息中提取测试用例属性信息,得到所述测试用例特征信息。According to the dedicated attribute keyword and the general attribute keyword corresponding to each test case, test case attribute information is extracted from the configuration information of each test case to obtain the test case feature information. 6.根据权利要求1所述的方法,其特征在于,所述多个测试用例组中还包括测试用例需串行的测试用例组,所述方法还包括:6. The method according to claim 1, wherein the multiple test case groups further include test case groups whose test cases need to be serialized, and the method further comprises: 串行执行所述需串行的测试用例组中的测试用例,直到所有测试用例执行结束;Serially execute the test cases in the test case group to be serialized until all the test cases are executed; 当所述需串行的测试用例组中的测试用例执行结束时,得到串行测试结果;When the execution of the test cases in the test case group to be serialized ends, the serial test result is obtained; 将所述并发测试结果与所述串行测试结果,作为总测试结果。The concurrent test result and the serial test result are taken as the total test result. 7.根据权利要求6所述的方法,其特征在于,所述需串行的测试用例组按照串行顺序排列成组,所述串行执行所述需串行的测试用例组中的测试用例,包括:7. The method according to claim 6, wherein the test case groups to be serialized are arranged into groups in a serial order, and the test cases in the test case groups to be serialized are executed serially ,include: 按照所述需串行的测试用例组中测试用例的串行顺序,串行执行所述需串行的测试用例组中的测试用例。According to the serial order of the test cases in the test case group to be serialized, the test cases in the test case group to be serialized are executed serially. 8.一种测试装置,其特征在于,包括:8. A test device, characterized in that, comprising: 获取模块,用于获取用于目标测试任务的测试用例集合中的测试用例的配置信息;The acquisition module is used to acquire the configuration information of the test cases in the test case set used for the target test task; 提取模块,用于从所述测试用例的配置信息中提取测试用例特征信息,所述测试用例特征信息为每个测试用例的执行策略的关键属性特征;an extraction module, configured to extract test case feature information from the configuration information of the test case, where the test case feature information is a key attribute feature of the execution strategy of each test case; 分组模块,用于将所述测试用例特征信息输入预先训练的分组模型,得到多个测试用例组;a grouping module for inputting the test case feature information into a pre-trained grouping model to obtain multiple test case groups; 并发模块,用于并发执行可并行类型的测试用例组中的测试用例,并接入线程锁锁定并发执行时运行中的测试用例,且在运行结束时释放所述线程锁;A concurrency module, used for concurrently executing the test cases in the parallel-type test case group, and accessing the thread lock to lock the running test case during concurrent execution, and releasing the thread lock at the end of the operation; 结束并发模块,用于当所述可并行的测试用例组中的测试用例执行结束时,得到并发测试结果。The end concurrency module is used to obtain concurrent test results when the execution of the test cases in the parallelizable test case group ends. 9.一种计算机可读存储介质,其上存储有程序指令,其特征在于,所述程序指令被处理器执行时实现权利要求1-7任一项所述的方法。9 . A computer-readable storage medium having program instructions stored thereon, wherein when the program instructions are executed by a processor, the method of any one of claims 1-7 is implemented. 10 . 10.一种电子设备,其特征在于,包括:10. An electronic device, comprising: 处理器;以及processor; and 存储器,用于存储所述处理器的程序指令;其中,所述处理器配置为经由执行所述程序指令来执行权利要求1-7任一项所述的方法。a memory for storing program instructions of the processor; wherein the processor is configured to perform the method of any one of claims 1-7 by executing the program instructions.
CN202010138639.1A 2020-03-03 2020-03-03 Test methods, devices, media and electronic equipment Pending CN111459798A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010138639.1A CN111459798A (en) 2020-03-03 2020-03-03 Test methods, devices, media and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010138639.1A CN111459798A (en) 2020-03-03 2020-03-03 Test methods, devices, media and electronic equipment

Publications (1)

Publication Number Publication Date
CN111459798A true CN111459798A (en) 2020-07-28

Family

ID=71684225

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010138639.1A Pending CN111459798A (en) 2020-03-03 2020-03-03 Test methods, devices, media and electronic equipment

Country Status (1)

Country Link
CN (1) CN111459798A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112685326A (en) * 2021-01-26 2021-04-20 政采云有限公司 Software testing method, system, equipment and readable storage medium
CN112882883A (en) * 2021-02-25 2021-06-01 中国工商银行股份有限公司 Shutdown test method and apparatus, electronic device, and computer-readable storage medium
CN113360330A (en) * 2021-06-23 2021-09-07 北京百度网讯科技有限公司 Concurrent lock testing method, related device and computer program product
CN113590440A (en) * 2021-06-28 2021-11-02 浪潮商用机器有限公司 Pressure testing method, device, equipment and medium for bank core system
CN113760747A (en) * 2021-06-03 2021-12-07 京东科技控股股份有限公司 Software testing method, apparatus, equipment, storage medium and program product
CN114020637A (en) * 2021-11-25 2022-02-08 新华三大数据技术有限公司 A test method and device
CN114064503A (en) * 2021-11-25 2022-02-18 上海华兴数字科技有限公司 UI automation testing method, device, electronic device and storage medium
CN114064457A (en) * 2021-10-24 2022-02-18 郑州云海信息技术有限公司 Test method, system, equipment and medium
CN114610617A (en) * 2022-03-10 2022-06-10 网易(杭州)网络有限公司 A test case management method, apparatus, system, equipment and medium
CN114643587A (en) * 2020-12-18 2022-06-21 深圳Tcl新技术有限公司 Test method, test control terminal, test system and storage medium
CN114860576A (en) * 2022-03-31 2022-08-05 北京达佳互联信息技术有限公司 Test method, test device, electronic equipment and storage medium
CN115437907A (en) * 2021-06-04 2022-12-06 中国移动通信集团浙江有限公司 Automated testing method, device, equipment and computer program product
CN116166566A (en) * 2023-04-23 2023-05-26 成都华兴汇明科技有限公司 Test case multithreading scheduling method, system and test management device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141753A (en) * 2006-09-06 2008-03-12 中兴通讯股份有限公司 Big traffic automatization testing device and method
JP2014109966A (en) * 2012-12-04 2014-06-12 Hitachi Ltd Test case generation system and method
CN105183644A (en) * 2015-08-20 2015-12-23 上海斐讯数据通信技术有限公司 Multipletask integrated automatic test system and method
CN105591782A (en) * 2014-10-24 2016-05-18 中兴通讯股份有限公司 Management method and apparatus for testing device
US20160210534A1 (en) * 2014-11-18 2016-07-21 Harry Friedbert Padubrin Learning Contour Identification System Using Portable Contour Metrics Derived From Contour Mappings
CA2990074A1 (en) * 2017-01-23 2018-07-23 Accenture Global Solutions Limited Cloud connected automated testing
CN108491201A (en) * 2018-03-13 2018-09-04 天津瑷睿卡仕福测控技术有限公司 A kind of integrated test system graphic programming interface and its programmed method
CN109376090A (en) * 2018-10-25 2019-02-22 京信通信系统(中国)有限公司 Software automatic testing method and device
CN109460333A (en) * 2018-11-01 2019-03-12 郑州云海信息技术有限公司 A kind of function test method of storage system, device and relevant device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141753A (en) * 2006-09-06 2008-03-12 中兴通讯股份有限公司 Big traffic automatization testing device and method
JP2014109966A (en) * 2012-12-04 2014-06-12 Hitachi Ltd Test case generation system and method
CN105591782A (en) * 2014-10-24 2016-05-18 中兴通讯股份有限公司 Management method and apparatus for testing device
US20160210534A1 (en) * 2014-11-18 2016-07-21 Harry Friedbert Padubrin Learning Contour Identification System Using Portable Contour Metrics Derived From Contour Mappings
US20180232599A1 (en) * 2014-11-18 2018-08-16 Harry Padubrin Learning Contour Identification System Using Portable Contour Metrics Derived From Contour Mappings
CN105183644A (en) * 2015-08-20 2015-12-23 上海斐讯数据通信技术有限公司 Multipletask integrated automatic test system and method
CA2990074A1 (en) * 2017-01-23 2018-07-23 Accenture Global Solutions Limited Cloud connected automated testing
CN108491201A (en) * 2018-03-13 2018-09-04 天津瑷睿卡仕福测控技术有限公司 A kind of integrated test system graphic programming interface and its programmed method
CN109376090A (en) * 2018-10-25 2019-02-22 京信通信系统(中国)有限公司 Software automatic testing method and device
CN109460333A (en) * 2018-11-01 2019-03-12 郑州云海信息技术有限公司 A kind of function test method of storage system, device and relevant device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李伟华,康继昌: "实时并发软件的测试研究", 微电子学与计算机, no. 02, 1 April 1996 (1996-04-01) *

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114643587A (en) * 2020-12-18 2022-06-21 深圳Tcl新技术有限公司 Test method, test control terminal, test system and storage medium
CN112685326A (en) * 2021-01-26 2021-04-20 政采云有限公司 Software testing method, system, equipment and readable storage medium
CN112882883A (en) * 2021-02-25 2021-06-01 中国工商银行股份有限公司 Shutdown test method and apparatus, electronic device, and computer-readable storage medium
CN113760747A (en) * 2021-06-03 2021-12-07 京东科技控股股份有限公司 Software testing method, apparatus, equipment, storage medium and program product
CN115437907A (en) * 2021-06-04 2022-12-06 中国移动通信集团浙江有限公司 Automated testing method, device, equipment and computer program product
CN113360330A (en) * 2021-06-23 2021-09-07 北京百度网讯科技有限公司 Concurrent lock testing method, related device and computer program product
CN113590440A (en) * 2021-06-28 2021-11-02 浪潮商用机器有限公司 Pressure testing method, device, equipment and medium for bank core system
CN114064457A (en) * 2021-10-24 2022-02-18 郑州云海信息技术有限公司 Test method, system, equipment and medium
CN114064503A (en) * 2021-11-25 2022-02-18 上海华兴数字科技有限公司 UI automation testing method, device, electronic device and storage medium
CN114020637A (en) * 2021-11-25 2022-02-08 新华三大数据技术有限公司 A test method and device
CN114610617A (en) * 2022-03-10 2022-06-10 网易(杭州)网络有限公司 A test case management method, apparatus, system, equipment and medium
CN114860576A (en) * 2022-03-31 2022-08-05 北京达佳互联信息技术有限公司 Test method, test device, electronic equipment and storage medium
CN116166566A (en) * 2023-04-23 2023-05-26 成都华兴汇明科技有限公司 Test case multithreading scheduling method, system and test management device

Similar Documents

Publication Publication Date Title
CN111459798A (en) Test methods, devices, media and electronic equipment
CN111488174B (en) Method and device for generating application program interface document, computer equipment and medium
EP2368189B1 (en) Debugging pipeline
CN113553309B (en) A method, device, electronic device and storage medium for determining a log template
WO2023177442A1 (en) Data traffic characterization prioritization
WO2019153544A1 (en) Annotation backend check method and apparatus, computer device and storage medium.
US20100153693A1 (en) Code execution with automated domain switching
CN111538659B (en) Interface testing methods, systems, electronic devices and storage media for business scenarios
CN110688111A (en) Configuration method, device, server and storage medium for business process
US11853196B1 (en) Artificial intelligence driven testing
CN111240955A (en) Automatic testing method and device for Http interface, storage medium and electronic device
CN118885406B (en) Database cluster abnormity testing method and device
CN111240971B (en) Method and device for generating wind control rule test case, server and storage medium
US8484591B2 (en) Enhancing redundancy removal with early merging
CN111694729B (en) Application testing method, device, electronic equipment and computer readable medium
CN110716843A (en) System fault analysis processing method and device, storage medium and electronic equipment
CN109920466B (en) Hard disk test data analysis method, device, terminal and storage medium
US20240220403A1 (en) Identifying root causes of test failures
CN118916262A (en) Fault analysis method, device, apparatus, storage medium and program product
CN118394659A (en) Multi-database scene automatic test method, device, equipment, medium and product
Gao et al. Easy over Hard: A Simple Baseline for Test Failures Causes Prediction
CN117215725A (en) Script generation method and device, electronic equipment and storage medium
CN114741260A (en) Interface compatibility detection method, device, electronic device and storage medium
CN114328189A (en) Fault recurrence method, device, terminal and computer readable storage medium
CN112380142A (en) Interface document management method and device and test 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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200728