WO2019100577A1 - Automated test management method and apparatus, terminal device, and storage medium - Google Patents

Automated test management method and apparatus, terminal device, and storage medium Download PDF

Info

Publication number
WO2019100577A1
WO2019100577A1 PCT/CN2018/073389 CN2018073389W WO2019100577A1 WO 2019100577 A1 WO2019100577 A1 WO 2019100577A1 CN 2018073389 W CN2018073389 W CN 2018073389W WO 2019100577 A1 WO2019100577 A1 WO 2019100577A1
Authority
WO
WIPO (PCT)
Prior art keywords
test
use case
management platform
defect
case
Prior art date
Application number
PCT/CN2018/073389
Other languages
French (fr)
Chinese (zh)
Inventor
伍振亮
伍朗
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019100577A1 publication Critical patent/WO2019100577A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

Abstract

Disclosed are an automated test management method and apparatus, a terminal device, and a storage medium. The automated test management method comprises: acquiring a target test script in a case editing management platform, and sending the target test script to a case test management platform; acquiring, in the case test management platform, a test result by means of testing based on the target test script, wherein the test result comprises a passed identification or a non-passed identification; the case test management platform uploading the test result carrying the non-passed identification to a case defect management platform; and the case defect management platform analyzing the test result, so as to acquire an analysis result, wherein the case editing management platform, the case test management platform and the case defect management platform are connected via a B/S architecture. The automated test management method has the advantages of a strong real-time synchronism, making it difficult to make mistakes, and improving the work efficiency.

Description

自动化测试管理方法、装置、终端设备及存储介质Automated test management method, device, terminal device and storage medium
本专利申请以2017年11月27日提交的申请号为201711204948.9,名称为“自动化测试管理方法、装置、终端设备及存储介质”的中国发明专利申请为基础,并要求其优先权。This patent application is based on the Chinese invention patent application filed on November 27, 2017, with the application number of 201711204948.9, entitled "Automated Test Management Method, Apparatus, Terminal Equipment and Storage Medium", and requires its priority.
技术领域Technical field
本申请涉及自动化测试管理领域,尤其涉及一种自动化测试管理方法、装置、终端设备及存储介质。The present application relates to the field of automated test management, and in particular, to an automated test management method, apparatus, terminal device, and storage medium.
背景技术Background technique
C/S(Client/Server,客户端/服务器)架构是一种典型的两层架构,其客户端包含一个或多个在用户的电脑上运行的程序,其服务器有两种,一种是数据库服务器,客户端通过数据库连接访问服务器的数据;另一种是Socket服务器,服务器的程序通过Socket与客户端的程序通信。目前,大多数自动化测试管理平台都是基于C/S架构的,用户需要安装才可以使用,共享性低且维护成本高。The C/S (Client/Server, Client/Server) architecture is a typical two-tier architecture. The client contains one or more programs running on the user's computer. There are two types of servers, one is the database. The server, the client accesses the server's data through a database connection; the other is a Socket server, and the server's program communicates with the client's program through the Socket. At present, most automated test management platforms are based on the C/S architecture, which users need to install before they can be used, with low sharing and high maintenance costs.
在传统自动化测试管理平台中,通过自动化测试管理平台对测试脚本进行测试后,仅显示测试结果,缺乏对测试结果进行分析的缺陷分析机制,无法对测试结果中存在的缺陷进行分析改进。而且,在采用当前测试脚本测试时,由测试人员独立对存在缺陷的测试脚本进行修改,存在相同缺陷的测试脚本可能分配给不同测试人员分别进行处理,这样容易导致不同测试人员进行重复工作,增大测试人员的工作量,降低工作效率。In the traditional automated test management platform, after testing the test script through the automated test management platform, only the test results are displayed, and the defect analysis mechanism for analyzing the test results is lacking, and the defects existing in the test results cannot be analyzed and improved. Moreover, when testing with the current test script, the tester independently modifies the test script with defects, and the test script with the same defect may be assigned to different testers for processing separately, which may easily lead to repeated work by different testers. The workload of large testers reduces work efficiency.
发明内容Summary of the invention
本申请提供一种自动化测试管理方法、装置、终端设备及存储介质,以解决目前自动化测试管理平台无法对测试结果中存在测试缺陷的测试脚本进行分析改进以及不同测试人员对存在相同缺陷的测试脚本进行重复修改导致工作效率低的问题。The present application provides an automated test management method, apparatus, terminal device and storage medium to solve the problem that the current automated test management platform cannot analyze and improve the test scripts with test defects in the test results, and different testers have test scripts with the same defects. Repeated modifications result in inefficient work.
第一方面,本申请提供一种自动化测试管理方法,包括:In a first aspect, the application provides an automated test management method, including:
在用例编辑管理平台中获取目标测试脚本,并将所述目标测试脚本发送给用例测试管 理平台;Obtaining a target test script in the use case editing management platform, and sending the target test script to the use case test management platform;
在所述用例测试管理平台中基于所述目标测试脚本进行测试,获取测试结果,所述测试结果包括通过标识或未通过标识;Performing a test based on the target test script in the use case test management platform, and obtaining a test result, where the test result includes an identifier or a failed identifier;
所述用例测试管理平台将携带未通过标识的所述测试结果上传到用例缺陷管理平台;The use case test management platform uploads the test result carrying the failed identifier to the use case defect management platform;
所述用例缺陷管理平台获取基于所述测试结果分析形成的分析结果;The use case defect management platform obtains an analysis result formed based on the analysis of the test result;
其中,所述用例编辑管理平台、所述用例测试管理平台和所述用例缺陷管理平台通过B/S架构相连。The use case editing management platform, the use case test management platform, and the use case defect management platform are connected by a B/S architecture.
第二方面,本申请提供一种自动化测试管理装置,包括:In a second aspect, the application provides an automated test management apparatus, including:
目标测试脚本获取模块,用于在用例编辑管理平台中获取目标测试脚本,并将所述目标测试脚本发送给用例测试管理平台;a target test script obtaining module, configured to obtain a target test script in the use case editing management platform, and send the target test script to the use case test management platform;
测试结果获取模块,用于在所述用例测试管理平台中基于所述目标测试脚本进行测试,获取测试结果,所述测试结果包括通过标识或未通过标识;a test result obtaining module, configured to perform a test based on the target test script in the use case test management platform, and obtain a test result, where the test result includes an identifier or a failure identifier;
测试结果上传模块,用于所述用例测试管理平台将携带未通过标识的所述测试结果上传到用例缺陷管理平台;a test result uploading module, configured to upload, by the use case test management platform, the test result carrying the unsigned identifier to the use case defect management platform;
分析结果获取模块,用于在所述用例缺陷管理平台对所述测试结果进行分析,获取分析结果。The analysis result obtaining module is configured to analyze the test result on the use case defect management platform to obtain an analysis result.
第三方面,本申请提供一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如下步骤:In a third aspect, the present application provides a terminal device including a memory, a processor, and computer readable instructions stored in the memory and executable on the processor, the processor executing the computer readable instructions The following steps are implemented:
在用例编辑管理平台中获取目标测试脚本,并将所述目标测试脚本发送给用例测试管理平台;Obtaining a target test script in the use case editing management platform, and sending the target test script to the use case test management platform;
在所述用例测试管理平台中基于所述目标测试脚本进行测试,获取测试结果,所述测试结果包括通过标识或未通过标识;Performing a test based on the target test script in the use case test management platform, and obtaining a test result, where the test result includes an identifier or a failed identifier;
所述用例测试管理平台将携带未通过标识的所述测试结果上传到用例缺陷管理平台;The use case test management platform uploads the test result carrying the failed identifier to the use case defect management platform;
所述用例缺陷管理平台获取基于所述测试结果分析形成的分析结果;The use case defect management platform obtains an analysis result formed based on the analysis of the test result;
其中,所述用例编辑管理平台、所述用例测试管理平台和所述用例缺陷管理平台通过B/S架构相连。The use case editing management platform, the use case test management platform, and the use case defect management platform are connected by a B/S architecture.
第四方面,本申请提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,所述计算机可读指令被处理器执行时实现如下步骤:In a fourth aspect, the present application provides a computer readable storage medium storing computer readable instructions that, when executed by a processor, implement the following steps:
在用例编辑管理平台中获取目标测试脚本,并将所述目标测试脚本发送给用例测试管 理平台;Obtaining a target test script in the use case editing management platform, and sending the target test script to the use case test management platform;
在所述用例测试管理平台中基于所述目标测试脚本进行测试,获取测试结果,所述测试结果包括通过标识或未通过标识;Performing a test based on the target test script in the use case test management platform, and obtaining a test result, where the test result includes an identifier or a failed identifier;
所述用例测试管理平台将携带未通过标识的所述测试结果上传到用例缺陷管理平台;The use case test management platform uploads the test result carrying the failed identifier to the use case defect management platform;
所述用例缺陷管理平台获取基于所述测试结果分析形成的分析结果;The use case defect management platform obtains an analysis result formed based on the analysis of the test result;
其中,所述用例编辑管理平台、所述用例测试管理平台和所述用例缺陷管理平台通过B/S架构相连。The use case editing management platform, the use case test management platform, and the use case defect management platform are connected by a B/S architecture.
本申请提供的自动化测试管理方法、装置、终端设备及存储介质中,首先在用例编辑管理平台中获取目标测试脚本,并基于B/S架构将目标测试脚本发送给用例测试管理平台,然后在用例测试管理平台中基于目标测试脚本进行测试,获取测试结果,并将用例测试管理平台将携带未通过标识的测试结果基于B/S架构上传到用例缺陷管理平台,最后,在用例缺陷管理平台对测试结果进行分析,获取分析结果,以使自动化测试管理平台与用例缺陷管理平台相关联,并对存在缺陷的测试结果进行分析改进。该工作流程中各平台之间具有实时同步性强,不易出现纰漏的优点。并且通过B/S架构将用例编辑管理平台和用例测试管理平台相连,以使用户无需下载应用软件即可使用,共享性高且维护成本低。In the automatic test management method, device, terminal device and storage medium provided by the application, the target test script is first obtained in the use case editing management platform, and the target test script is sent to the use case test management platform based on the B/S architecture, and then in the use case The test management platform tests based on the target test script, obtains the test result, and uploads the test result of the failed test by the use case test management platform to the use case defect management platform based on the B/S architecture, and finally, tests the defect in the use case defect management platform. The results were analyzed and the analysis results were obtained to correlate the automated test management platform with the use case defect management platform and to analyze and improve the test results with defects. The real-time synchronization between the platforms in the workflow is not easy to leak. And the use case editing management platform and the use case test management platform are connected through the B/S architecture, so that the user can use without downloading the application software, and the sharing is high and the maintenance cost is low.
附图说明DRAWINGS
为了更清楚地说明本申请的技术方案,下面将对本申请的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the present application, the drawings to be used in the description of the present application will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present application. For ordinary technicians, other drawings can be obtained based on these drawings without paying for creative labor.
图1是实施例1中提供的自动化测试管理方法的一流程图.Figure 1 is a flow chart of the automated test management method provided in Embodiment 1.
图2是图1中步骤S10的一具体示意图。FIG. 2 is a specific schematic diagram of step S10 of FIG. 1.
图3是图2中步骤S12的一具体示意图。FIG. 3 is a specific schematic diagram of step S12 of FIG. 2.
图4是图2中步骤S12的另一具体示意图。FIG. 4 is another specific schematic diagram of step S12 of FIG. 2.
图5是图2中步骤S13的一具体示意图。FIG. 5 is a specific schematic diagram of step S13 of FIG. 2.
图6是图2中步骤S14的一具体示意图。FIG. 6 is a specific schematic diagram of step S14 of FIG. 2.
图7是图1中步骤S40的一具体示意图。FIG. 7 is a specific schematic diagram of step S40 of FIG. 1.
图8是实施例2中提供的自动化测试管理装置的一原理框图。8 is a schematic block diagram of an automated test management apparatus provided in Embodiment 2.
图9是实施例4中提供的终端设备的一示意图。9 is a schematic diagram of a terminal device provided in Embodiment 4.
具体实施方式Detailed ways
下面将结合本申请中的附图,对本申请中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the present application will be clearly and completely described in the following with reference to the drawings in the present application. It is obvious that the described embodiments are a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
实施例1Example 1
图1示出本实施例中自动化测试管理方法的流程图。该自动化测试管理方法可应用在银行、证券、保险等金融机构或其他需要对系统进行自动化测试的机构的终端设备中,以便利用该自动化测试管理方法提升测试质量、提高工作效率。如图1所示,该自动化测试管理方法包括如下步骤:FIG. 1 shows a flow chart of an automated test management method in this embodiment. The automated test management method can be applied to financial institutions such as banks, securities, insurance, or other institutions that need to automatically test the system, so as to improve test quality and improve work efficiency by using the automated test management method. As shown in FIG. 1, the automated test management method includes the following steps:
S10:在用例编辑管理平台中获取目标测试脚本,并将目标测试脚本发送给用例测试管理平台。S10: Obtain a target test script in the use case editing management platform, and send the target test script to the use case test management platform.
其中,用例编辑管理平台是指测试人员用来获取目标测试脚本的平台。目标测试脚本是将测试人员编辑好的测试用例进行脚本化处理得到的测试脚本。具体地,用例编辑管理平台会将得到的目标测试脚本发送到用例测试管理平台,并发送提醒信息到测试管理邮箱,增强工作管理流程的实时同步性。Among them, the use case editing management platform refers to the platform used by testers to obtain target test scripts. The target test script is a test script obtained by scripting a test case edited by a tester. Specifically, the use case editing management platform sends the obtained target test script to the use case test management platform, and sends the reminder information to the test management mailbox to enhance the real-time synchronization of the work management process.
如图2所示,步骤S10中,在用例编辑管理平台中获取目标测试脚本,具体包括如下步骤:As shown in FIG. 2, in step S10, the target test script is obtained in the use case editing management platform, which specifically includes the following steps:
S11:在用例编辑管理平台的配置界面上依序显示至少两个用例执行编号。S11: Display at least two use case execution numbers sequentially on the configuration interface of the use case editing management platform.
其中,用例编辑管理平台是指测试人员用来创建测试用例的管理平台。用例编辑管理平台的配置界面是测试人员在编辑测试用例时所显示的界面,具体是指测试人员在点击用例编辑按钮而输入的用例编辑指令时,用例编辑管理平台基于用例编辑指令所跳转到的界面。用例执行编号是指测试人员所编辑的原始测试用例中每一测试执行步骤的执行顺序的编号。Among them, the use case editing management platform refers to the management platform used by testers to create test cases. The configuration interface of the use case editing management platform is the interface displayed by the tester when editing the test case. Specifically, when the test case editing instruction input by the tester when clicking the use case editing button, the use case editing management platform jumps based on the use case editing command. Interface. The use case execution number is the number of the execution order of each test execution step in the original test case edited by the tester.
本实施例中,当终端设备跳转到用例编辑管理平台的配置界面时,由于界面资源有限,该配置界面会依据显示预设数量的用例执行编号,如按照阿拉伯数字的顺序展示出1-10等10个用例执行编号。当测试人员想要添加测试用例时,可以选择批量添加方式或者逐条添加方式,降低界面资源占有率,提升加载速率。具体地,当测试人员想要添加测试用例的测试执行步骤时,可点击该用例编辑管理平台的配置界面中的“添加编号”按钮而向用例编辑管理平台输入执行编号添加指令,该执行编号添加指令中可自定义输入所要添加 的用例执行编号的数量;如选择批量添加方式时,则定义该用例执行编号的数量为大于1的整数;即选择逐条添加方式,则定义该用例执行编号的数量为1,以达到添加便捷的目的。In this embodiment, when the terminal device jumps to the configuration interface of the use case editing management platform, because the interface resource is limited, the configuration interface performs the execution number according to the preset number of use cases, such as displaying 1-10 in the order of Arabic numerals. Wait for 10 use cases to execute the number. When the tester wants to add test cases, you can choose batch add mode or add one by one to reduce the interface resource share and increase the load rate. Specifically, when the tester wants to add the test execution step of the test case, the "add number" button in the configuration interface of the use case editing management platform may be clicked to input an execution number addition instruction to the use case editing management platform, and the execution number is added. The number of use case execution numbers to be added to the input can be customized. If the batch addition mode is selected, the number of execution number of the use case is defined as an integer greater than 1. If the item-by-add method is selected, the number of execution numbers of the use case is defined. It is 1 for the purpose of adding convenience.
S12:在用例编辑管理平台上,将每一用例执行编号与一基础动作关联,形成原始测试用例,并将原始测试用例发送给用例审核平台。S12: On the use case editing management platform, each use case execution number is associated with a basic action to form an original test case, and the original test case is sent to the use case review platform.
其中,原始测试用例是指测试人员根据待测试系统的需求进行编辑所得到的一组包含测试执行步骤的测试方案。基础动作是服务器预先存储的一些基础的测试动作,例如“登录”的动作。用例测试管理平台是基于测试用例编辑测试脚本的管理平台。用例审核平台是指能够对测试人员所发送的原始测试用例进行审核的平台。具体地,将每一个用例执行编号与测试人员在预先存储的基础动作中选取的一所需基础动作(以下简称为目标动作)相关联,形成一组包含至少两个基础动作,且至少两个基础动作之间的执行顺序与用例执行编号相对应的测试方案,即原始测试用例。The original test case refers to a set of test scenarios including test execution steps obtained by the tester according to the requirements of the system to be tested. The basic action is some basic test action pre-stored by the server, such as the action of "login". The use case test management platform is a management platform based on test case editing test scripts. A use case audit platform is a platform that enables auditing of the original test cases sent by testers. Specifically, each use case execution number is associated with a required basic action selected by the tester in the pre-stored basic action (hereinafter referred to as a target action) to form a group comprising at least two basic actions, and at least two The test scenario in which the execution order between the base actions corresponds to the use case execution number, that is, the original test case.
由于至少两个用例执行编号是依序显示并依序执行的,使得基于与用例执行编号关联的基础动作形成的原始测试用例在后续测试时,能够严格按照用例执行编号的显示和执行顺序执行,保证对待测试系统的测试可依据用户设计好的原始测试用例中各基础动作的顺序执行,增强测试的准确性。本实施例中,用例编辑管理平台会将得到的原始测试用例发送到用例测试管理平台,并发送提醒信息到测试管理邮箱,增强测试脚本编辑流程的实时同步性。Since at least two use case execution numbers are sequentially displayed and sequentially executed, the original test cases formed based on the basic actions associated with the use case execution number can be executed strictly in accordance with the use case execution number display and execution order in subsequent tests. Ensure that the test to be tested can be performed in the order of the basic actions in the original test case designed by the user to enhance the accuracy of the test. In this embodiment, the use case editing management platform sends the obtained original test case to the use case test management platform, and sends the reminder information to the test management mailbox, thereby enhancing the real-time synchronization of the test script editing process.
如图3所示,步骤S12中,将每一用例执行编号与一基础动作关联,具体包括如下步骤:As shown in FIG. 3, in step S12, each use case execution number is associated with a basic action, and specifically includes the following steps:
S1211:在每一用例执行编号对应的输入框中,获取用户输入的动作选择指令,动作选择指令包括动作ID和/或动作名称。S1211: Acquire an action selection instruction input by the user in an input box corresponding to each use case execution number, and the action selection instruction includes an action ID and/or an action name.
其中,动作选择指令是用于选择用户所需动作的指令。动作ID是用于唯一识别服务器中预先存储的基础动作的标识。动作名称是指测试人员输入目标动作的名称或者服务器中预先存储的基础动作的名称。具体地,每一用例执行编号都对应一输入框以使测试人员输入目标动作,测试人员可以只输入动作ID,也可以只输入动作名称,或者可以同时输入动作ID和动作名称,并在输入完成后点击确定按钮即可输入相应的动作选择指令,以便基于该动作选择指令获取所需的基础动作。The action selection instruction is an instruction for selecting a desired action of the user. The action ID is an identifier for uniquely identifying a base action pre-stored in the server. The action name refers to the name of the test action input by the tester or the name of the base action pre-stored in the server. Specifically, each use case execution number corresponds to an input box to enable the tester to input the target action, and the tester can input only the action ID, or only input the action name, or can input the action ID and the action name at the same time, and complete the input. After clicking the OK button, the corresponding action selection instruction can be input to obtain the required basic action based on the action selection instruction.
S1212:基于动作ID和/或动作名称,以使用例执行编号与基础动作关联。S1212: Associate the basic operation with the use case execution number based on the action ID and/or the action name.
具体地,测试人员获取目标动作的方式可以有如下两种情况:一是测试人员知道服务器中预先存储目标动作的动作ID和/或动作名称时,可以直接输入目标动作的动作ID和/ 或动作名称,以获取目标动作。二是测试人员不知道服务器中预先存储目标动作的动作ID和/或动作名称时,可以输入目标动作所要实现的目标动作名称,用例编辑管理平台会根据测试人员所输入的目标动作名称,给测试人员提供与目标动作相对应的相似基础动作,以供测试人员从所提供的相似基础动作中选择目标动作,即用户可通过向用例编辑管理平台输入动作选择指令,以便基于该动作选择指令中的相似基础动作确定目标动作。可以理解地,若用例编辑管理平台推荐的相似基础动作没有用户所要使用的目标动作,则用例编辑管理平台会生成到提醒开发人员加载该目标动作的提醒信息,并发送给该用例编辑管理平台的开发人员的客户端,以提醒开发人员基于提醒信息进行基础动作开发,从而使得该用例编辑管理平台更具有实用性,满足测试人员的需求。Specifically, the manner in which the tester obtains the target action may be as follows: First, when the tester knows the action ID and/or the action name of the target action stored in the server in advance, the action ID and/or action of the target action may be directly input. Name to get the target action. Second, when the tester does not know the action ID and/or the action name of the target action stored in the server, the target action name to be achieved by the target action may be input, and the use case editing management platform will test according to the target action name input by the tester. The person provides a similar basic action corresponding to the target action for the tester to select the target action from the similar basic actions provided, that is, the user can input an action selection instruction to the use case editing management platform, so as to select an instruction based on the action Similar basic actions determine the target action. It can be understood that if the similar basic action recommended by the use case editing management platform does not have a target action to be used by the user, the use case editing management platform generates a reminder information for reminding the developer to load the target action, and sends the reminder information to the use case editing management platform. The developer's client is used to remind the developer to perform basic action development based on the reminder information, which makes the use case editing management platform more practical and meets the needs of testers.
进一步地,用例编辑管理平台在给测试人员推荐相似基础动作时,可以采用关键词匹配算法,获取与目标动作相对应的相似基础动作。其中,关键词匹配算法包括但不限于克努特-莫里斯-普拉特(Knuth-Morris-Pratt,以下简称KMP)算法。具体地,KMP算法是一种改进的字符串匹配算法,KMP算法的关键是利用匹配失败后的信息,尽量减少模式串与主串的匹配次数以达到快速匹配的目的。本实施例中,选用KMP算法对测试人员所输入的目标动作和数据库中存储的动作名称进行关键词匹配,获取相似基础动作,节省时间,提高效率。Further, when the use case editing management platform recommends a similar basic action to the tester, the keyword matching algorithm may be used to obtain a similar basic action corresponding to the target action. Among them, the keyword matching algorithm includes but is not limited to the Knuth-Morris-Pratt (KMP) algorithm. Specifically, the KMP algorithm is an improved string matching algorithm. The key of the KMP algorithm is to use the information after the matching failure to minimize the number of matching between the pattern string and the main string to achieve fast matching. In this embodiment, the KMP algorithm is used to perform keyword matching on the target action input by the tester and the action name stored in the database, to obtain similar basic actions, save time, and improve efficiency.
具体地,服务器会预先存储关键词信息表,该关键词信息表中存储基础动作的动作名称,每一动作名称对应一个或多个关键词,通过KMP算法匹配目标动作与关键词信息表中的关键词,以确定相似基础动作。例如“打开浏览器”的关键词可以为浏览器,当测试人员输入“点击浏览器”时,服务器会在预先存储的关键词信息表中,通过匹配到关键词“浏览器”而为测试人员推荐“打开浏览器”的动作,方便测试人员使用,提升用户体验。Specifically, the server stores a keyword information table in which the action name of the basic action is stored, and each action name corresponds to one or more keywords, and the target action and the keyword information table are matched by the KMP algorithm. Key words to determine similar underlying actions. For example, the keyword "open browser" can be a browser. When the tester inputs "click browser", the server will be a tester in the pre-stored keyword information table by matching the keyword "browser". It is recommended to "open the browser" to facilitate the use of testers to enhance the user experience.
在另一具体实施方式中,如图4所示,步骤S12中,将每一用例执行编号与一基础动作关联,具体包括如下步骤:In another embodiment, as shown in FIG. 4, in step S12, each use case execution number is associated with a basic action, and specifically includes the following steps:
S1221:在用例编辑管理平台的配置界面上显示基础动作列表,基础动作列表包括至少一个基础动作。S1221: Display a basic action list on the configuration interface of the use case editing management platform, where the basic action list includes at least one basic action.
其中,基础动作列表是指用例编辑管理平台中预先存储的包含至少一个基础动作的动作列表。本实施例中,用例编辑管理平台的配置界面上以分级列表的形式显示基础动作列表。具体地,测试人员也可根据基础动作列表选取目标动作,以使测试人员更快速的查看服务器存储的所有基础动作,提升用户体验。The basic action list refers to an action list that is pre-stored in the use case editing management platform and includes at least one basic action. In this embodiment, the basic action list is displayed in a hierarchical list on the configuration interface of the use case editing management platform. Specifically, the tester can also select the target action according to the basic action list, so that the tester can quickly view all the basic actions stored by the server and improve the user experience.
S1222:采用拖拽方式将一基础动作拖拽到与一用例执行编号对应的输入框中,以使 用例执行编号与所述基础动作关联。S1222: Drag and drop a basic action into an input box corresponding to a use case execution number by using a drag and drop method, so that the use case execution number is associated with the basic action.
具体地,测试人员可以采用拖拽方式在基础动作列表中选取目标动作,将其拖拽到与用例执行编号所对应的输入框中,以使测试人员选取到的目标动作与用例执行编号相关联。本实施例中,采用拖拽方式将测试人员选取到的目标动作输入到与用例执行编号所对应的输入框中,该操作过程简单,提高了工作效率。Specifically, the tester can select the target action in the basic action list by dragging and dropping, and drag it to the input box corresponding to the use case execution number, so that the target action selected by the tester is associated with the use case execution number. . In this embodiment, the target action selected by the tester is input into the input box corresponding to the use case execution number by using a drag and drop method, and the operation process is simple, and the work efficiency is improved.
S13:在用例审核平台中基于原始测试用例,获取目标测试用例,并将目标测试用例发送给用例编辑管理平台。S13: Based on the original test case in the use case review platform, obtain the target test case, and send the target test case to the use case editing management platform.
其中,目标测试用例是指审核人员对原始测试用例进行审核,并标记审核通过后获取到的测试用例。若审核未通过时,用例审核平台会将原始测试用例发送给用例编辑管理平台进行修改,之后用例编辑管理平台会将修改后的原始测试用例发送给用例审核平台进行审核,直到审核通过即可获取目标测试用例。或者,若审核未通过时,用例审核平台可以获取审核人员输入的审核修改指令,并基于该审核修改指令对原始测试用例进行修改,以获取目标测试用例。Among them, the target test case refers to the auditor reviewing the original test case and marking the test case obtained after the audit is passed. If the audit fails, the use case auditing platform will send the original test case to the use case editing management platform for modification. After that, the use case editing management platform will send the modified original test case to the use case review platform for review, until the review is passed. Target test case. Or, if the audit fails, the use case audit platform can obtain the audit modification instruction input by the auditor, and modify the original test case based on the audit modification instruction to obtain the target test case.
在一具体实施方式中,步骤S13之前,该自动化测试管理方法还包括对原始测试用例进行审核权限配置。其中,如图5所示,对原始测试用例进行审核权限配置具体包括如下步骤:In a specific implementation, before step S13, the automated test management method further includes performing audit authority configuration on the original test case. As shown in FIG. 5, the configuration of the audit permission for the original test case specifically includes the following steps:
S1311:在用例编辑管理平台中获取用户输入的审核权限配置请求,审核权限配置请求包括审核人员ID。S1311: Obtain an audit permission configuration request input by the user in the use case editing management platform, and the audit authority configuration request includes an auditor ID.
具体地,测试人员在保存编辑好的原始测试用例时,若需要指定审核人员对该原始测试用例进行审核时,可选择点击界面上显示的审核权限配置按钮,此时用例编辑管理平台会获取到用户输入的审核权限配置请求,该审核权限配置请求包括审核人员ID,以使原始测试用例分配给审核人员ID对应的审核人员。其中,审核人员ID是可识别审核人员的唯一标识。Specifically, when the tester saves the original test case, if the auditor needs to specify the auditor to review the original test case, the test permission configuration button displayed on the interface may be selected, and the use case editing management platform may obtain The audit authority configuration request entered by the user, the audit authority configuration request includes the auditor ID, so that the original test case is assigned to the auditor corresponding to the auditor ID. Among them, the auditor ID is a unique identifier that identifies the auditor.
S1312:基于审核权限配置请求,将原始测试用例发送给用例审核平台,以使审核人员ID对应的审核界面显示原始测试用例。S1312: Send the original test case to the use case auditing platform based on the audit permission configuration request, so that the auditing interface corresponding to the auditor ID displays the original test case.
具体地,测试人员在指定审核人员ID对应的审核人员对原始测试用例进行审核时,点击上传,用例编辑管理平台即可将原始测试用例发送到与审核人员ID相对应的审核界面,并给与审核人员ID对应的审核邮箱发送提醒信息。Specifically, when the tester corresponding to the auditor ID specifies the original test case, the tester clicks upload, and the use case editing management platform can send the original test case to the audit interface corresponding to the auditor ID, and give The auditing email corresponding to the auditor ID sends an alert message.
可以理解地,若测试人员不需要指定审核人员对原始测试用例进行审核,可直接选择上传,用例编辑管理平台会直接将原始测试用例发送给用例审核平台,并由用例审核平台 进行分配。具体地,用例审核平台中每一个审核人员的工作任务包括待完成工作任务和已完成工作任务。服务器会对用例审核平台中每一个审核人员的待完成工作任务进行定时统计并存储审核任务信息表,该审核任务信息表包括审核人员ID、审核人员ID对应的审核邮箱和对应的待完成工作任务。本实施例中,每个审核人员的待完成工作任务的上限是预先定义好的。当用例审核平台接收到没有指定审核人员的原始测试用例时,依次查找审核人员对应的待完成工作任务,若查找到待完成任务的数量未达上限的审核人员,则获取该审核人员ID,用例审核平台会将原始测试用例发送到该审核人员ID对应的审核界面,并给与审核人员ID对应的审核邮箱发送提醒信息。该过程通过合理分配工作任务,以达到合理利用资源的目的,提高效率。Understandably, if the tester does not need to specify the auditor to review the original test case, he or she can directly select the upload. The use case editing management platform will directly send the original test case to the use case audit platform and be allocated by the use case review platform. Specifically, the work tasks of each auditor in the use case review platform include a work task to be completed and a work task completed. The server periodically counts and records the task to be completed for each auditor in the use case auditing platform, and the audit task information table includes the auditor ID, the audit mailbox corresponding to the auditor ID, and the corresponding work task to be completed. . In this embodiment, the upper limit of each auditor's task to be completed is predefined. When the use case auditing platform receives the original test case without the designated auditor, it searches for the work task to be completed corresponding to the auditor in turn. If the number of the task to be completed does not reach the upper limit, the auditor ID is obtained. The audit platform sends the original test case to the audit interface corresponding to the auditor ID, and sends a reminder message to the audit mailbox corresponding to the auditor ID. This process improves the efficiency by reasonably allocating work tasks to achieve rational use of resources.
具体地,步骤S13中,在用例审核平台中基于原始测试用例,获取目标测试用例,具体包括如下步骤:Specifically, in step S13, the target test case is obtained based on the original test case in the use case review platform, and specifically includes the following steps:
S1321:在审核人员ID对应的审核界面上获取审核指令,审核指令包括审核标识。S1321: Obtain an audit instruction on the audit interface corresponding to the auditor ID, and the audit instruction includes an audit identifier.
本实施例中,每个审核人员通过自己的登录帐号登录与审核人员ID对应的审核界面;在用例审核平台中,审核人员可选择所要进行审核的任一原始测试用例,以输入选择审核指令,以使审核界面显示与该审核选择指令相对应的原始测试用例。审核人员在审核时,要点击审核界面上显示的“审核通过”和“审核未通过”按钮,以输出相应的审核指令,该审核指令携带的审核标识可以为审核通过标识,也可以为审核未通过标识。In this embodiment, each auditor logs in to the audit interface corresponding to the auditor ID through his login account; in the use case audit platform, the auditor can select any original test case to be audited to input the selection audit command. In order for the review interface to display the original test case corresponding to the audit selection instruction. During the audit, the auditor should click the “Audit Pass” and “Audit Passed” buttons displayed on the audit interface to output the corresponding audit instruction. The audit ID carried by the audit instruction may be the audit pass identifier or the audit. By identification.
S1322:若审核标识为审核通过标识,则将原始测试用例作为目标测试用例。S1322: If the audit identifier is an audit pass identifier, the original test case is used as the target test case.
具体地,审核人员根据自己的判断对原始测试用例进行审核,若原始测试用例通过审核,审核人员会将该原始测试用例标记为审核通过(即审核通过标识)并选择确认保存,用例审核平台即可在获取到该原始测试用例的审核标识时,将该带有审核通过标识的目标测试用例发送到用例编辑管理平台。若原始测试用例未通过审核,审核人员会将该原始测试用例标记为审核未通过(即审核未通过标识)并确认保存,则用例审核平台会获取到审核修改指令,该审核修改指令包括审核修改意见和用例编辑管理平台对应的用例管理邮箱。用例审核平台在将携带有审核未通过标识的原始测试用例以及审核修改意见发送到用例编辑管理平台以及发送提醒信息到创建该原始测试用例的开发人员对应的邮箱,以增强自动化测试管理流程的实时同步性,不易出现纰漏,提高工作效率。Specifically, the auditor audits the original test case according to his own judgment. If the original test case passes the audit, the auditor will mark the original test case as the approval pass (ie, the audit pass mark) and select the confirmation save. The use case review platform is The target test case with the audit pass identifier may be sent to the use case editing management platform when the audit identifier of the original test case is obtained. If the original test case fails the audit, the auditor will mark the original test case as unapproved (ie, the audit fails the identification) and confirm the save. The use case review platform will obtain the audit modification instruction, which includes the audit modification. The use case management mailbox corresponding to the opinion and use case editing management platform. The use case review platform enhances the automated test management process by sending the original test case with the audit failed identifier and the review modification comments to the use case editing management platform and sending the reminder information to the mailbox corresponding to the developer who created the original test case. Synchronization, not easy to leak, improve work efficiency.
本实施例中,若审核人员对原始测试用例的标记出现错误时,在没有选择确认保存的状态下可以进行更改,用例审核平台只有在接收到确认保存状态的指令时,才会将带有审核标识的原始测试用例发送给用例编辑管理平台,提高管理流程的容错性。In this embodiment, if the auditor has an error in the mark of the original test case, the change can be made without checking the save state, and the use case review platform will only have the review when receiving the instruction to confirm the save state. The original test case of the identification is sent to the use case editing management platform to improve the fault tolerance of the management process.
S14:在用例编辑管理平台中基于目标测试用例,获取目标测试脚本。S14: Obtain a target test script based on the target test case in the use case editing management platform.
其中,自动化测试需要根据测试脚本进行测试,因此需要将目标测试用例进行脚本化处理。具体地,目标测试脚本是将目标测试用例进行脚本化处理得到的测试脚本。用例编辑管理平台会将得到的目标测试脚本发送到用例测试管理平台,并发送提醒信息到测试管理邮箱,增强工作管理流程的实时同步性。Among them, automated testing needs to be tested according to the test script, so the target test case needs to be scripted. Specifically, the target test script is a test script obtained by scripting the target test case. The use case editing management platform will send the obtained target test script to the use case test management platform, and send reminder information to the test management mailbox to enhance the real-time synchronization of the work management process.
具体地,如图6所示,步骤S14中,在用例编辑管理平台中基于目标测试用例,获取目标测试脚本,具体包括如下步骤:Specifically, as shown in FIG. 6 , in step S14, the target test scenario is obtained based on the target test case in the use case editing management platform, and specifically includes the following steps:
S141:在用例编辑管理平台中基于目标测试用例,依序调用与至少两个用例执行编号对应的基础动作,形成原始测试脚本。S141: In the use case editing management platform, based on the target test case, sequentially calling the basic actions corresponding to the at least two use case execution numbers to form the original test script.
其中,用例执行编号与基础动作关联,数据库中存储有每个基础动作的动作ID对应的动作执行代码。具体地,用例编辑管理平台在接收到用例审核平台发送的携带有审核通过标识的目标测试用例后,会获取测试人员输入的用例脚本化指令。该用例脚本化指令包括与至少两个用例执行编号相关联的动作ID。用例编辑管理平台会基于动作ID依序调用目标测试用例中每个用例执行编号对应的动作执行代码,以形成原始测试脚本。该过程无需测试人员重新根据目标测试用例编写测试脚本,可直接调用已存储的动作执行代码,节省时间,提高工作效率。The use case execution number is associated with the base action, and the database stores the action execution code corresponding to the action ID of each base action. Specifically, after receiving the target test case sent by the use case review platform and carrying the audit pass identifier, the use case editing management platform acquires the use case scripting instruction input by the tester. The use case scripting instructions include an action ID associated with at least two use case execution numbers. The use case editing management platform sequentially calls the action execution code corresponding to each use case execution number in the target test case based on the action ID to form the original test script. This process eliminates the need for the tester to rewrite the test script according to the target test case, and can directly call the stored action execution code, saving time and improving work efficiency.
S142:获取用户输入的脚本修改指令,脚本修改指令包括动作ID和调节参数。S142: Acquire a script modification instruction input by the user, where the script modification instruction includes an action ID and an adjustment parameter.
可以理解地,每一基础动作对应的动作执行代码包括方法函数和对应的原始参数。其中,调节参数是指测试人员根据系统需求对原始测试脚本进行修改时所输入的参数。具体地,动作执行代码包括用于实现基础动作的方法函数和对应的原始参数;此时,用户可向用例编辑管理平台输入脚本修改指令,以将原始参数修改为脚本修改指令中的调节参数。例如当测试人员选择的基础动作为“打开浏览器”时,其对应的动作执行脚本包括用于实现打印浏览器功能的方法函数和对应的原始参数,可以对浏览器的网址进行更改,输入所需的调节参数(即所需网址),以使原始测试用例更合符合待测试系统的需求。It can be understood that the action execution code corresponding to each basic action includes a method function and corresponding original parameters. The adjustment parameter refers to the parameter input by the tester when the original test script is modified according to the system requirements. Specifically, the action execution code includes a method function for implementing the base action and corresponding original parameters; at this time, the user may input a script modification instruction to the use case editing management platform to modify the original parameter to the adjustment parameter in the script modification instruction. For example, when the basic action selected by the tester is “open browser”, the corresponding action execution script includes a method function for implementing the function of the print browser and corresponding original parameters, and the URL of the browser can be changed, and the input is performed. The required adjustment parameters (ie the required URL) are needed to make the original test case more suitable for the system to be tested.
S143:基于调节参数,对原始测试脚本进行修改,以形成目标测试脚本。S143: Modify the original test script to form a target test script based on the adjustment parameters.
具体地,通过步骤S32获取的每一动作执行代码对应的调节参数修改原始测试脚本中与动作ID对应的动作执行代码,以形成目标测试脚本,并将目标测试脚本发送到用例测试管理平台。本实施例中,在发送目标测试脚本到用例测试管理平台之前也可配置接收测试结果的测试人员ID和对应的邮箱,使得待测试系统对应一测试人员,以增强工作管理流程条理性。Specifically, the action execution code corresponding to the action ID in the original test script is modified by the adjustment parameter corresponding to each action execution code acquired in step S32 to form a target test script, and the target test script is sent to the use case test management platform. In this embodiment, before sending the target test script to the use case test management platform, the tester ID and the corresponding mailbox for receiving the test result may be configured, so that the system to be tested corresponds to a tester to enhance the work management process.
S20:在用例测试管理平台中基于目标测试脚本进行测试,获取测试结果,测试结果包括通过标识或未通过标识。S20: Perform test based on the target test script in the use case test management platform, and obtain test results, and the test results include identification or failure identification.
其中,测试结果包括通过标识和未通过标识。具体地,在测试完成后,用例测试管理平台会将测试结果发送到与测试人员ID对应的邮箱。本实施例中,测试人员也可将用例测试管理平台中的待测试系统进行分组批量测试,提高工作效率。Among them, the test results include identification and failure identification. Specifically, after the test is completed, the use case test management platform sends the test result to the mailbox corresponding to the tester ID. In this embodiment, the tester can also perform batch test on the system to be tested in the use case test management platform to improve work efficiency.
本实施例中,用例编辑管理平台和用例测试管理平台通过B/S架构相连。其中,B/S架构即浏览器和服务器结构,在这种结构下,用户工作界面是通过WEB浏览器来实现,极少部分事务逻辑在浏览器(Browser)实现,但是主要事务逻辑在服务器(Server)实现。B/S架构是WEB兴起后的一种网络结构模式,WEB浏览器是客户端最主要的应用软件。用户无需下载,只要安装浏览器即可使用,大大降低维护成本。In this embodiment, the use case editing management platform and the use case test management platform are connected through the B/S architecture. Among them, the B/S architecture is the browser and server structure. Under this structure, the user work interface is implemented by the WEB browser. Very few transaction logic is implemented in the browser, but the main transaction logic is on the server ( Server) implementation. The B/S architecture is a network structure mode after the rise of WEB. The WEB browser is the most important application software for the client. Users do not need to download, just install the browser to use, greatly reducing maintenance costs.
S30:用例测试管理平台将携带未通过标识的测试结果上传到用例缺陷管理平台。S30: The use case test management platform uploads the test result carrying the failed identifier to the use case defect management platform.
其中,用例缺陷管理平台是指分析人员对测试结果进行分析获取缺陷报告的平台。具体地,用例测试管理平台接收携带未通过标识的测试结果之后,将测试结果上传到用例缺陷管理平台,并给缺陷管理邮箱发送提醒信息。本实施例中,当测试人员对待测试系统进行批量测试时,可能会得到多个携带未通过标识的测试结果,则测试人员在点击“上传”时,会弹出“是否选择批量上传”的窗口,测试人员只要点击“是”即可输入批量上传指令,基于该批量上传指令可将所选中的多个携带未通过标识的测试结果批量上传到用例缺陷管理平台,满足用户需求。Among them, the use case defect management platform refers to the platform for analysts to analyze the test results and obtain defect reports. Specifically, after the use case test management platform receives the test result carrying the failed identifier, the test result is uploaded to the use case defect management platform, and the reminder information is sent to the defect management mailbox. In this embodiment, when the tester performs batch test on the test system, multiple test results carrying the failed identifier may be obtained, and the tester pops up a window of “whether to select batch upload” when clicking “upload”. The tester only needs to click “Yes” to input the batch uploading instruction. Based on the batch uploading instruction, the selected plurality of test results carrying the unidentified identification can be batch uploaded to the use case defect management platform to meet the user requirements.
S40:用例缺陷管理平台获取基于测试结果分析形成的分析结果。S40: The use case defect management platform obtains the analysis result formed based on the analysis of the test result.
具体地,分析人员可在用例缺陷管理平台中对测试结果进行分析,获取分析结果有如下两种方式:Specifically, the analyst can analyze the test results in the use case defect management platform, and obtain the analysis results in the following two ways:
一是用例缺陷管理平台具有自动推荐测试缺陷的功能。具体地,用例缺陷管理平台接收到的测试结果包括测试用例执行编号和与测试用例执行编号对应的基础动作,由于服务器预先存储有关键词信息表,该关键词信息表中存储基础动作的动作名称,每一动作名称对应一个或多个关键词。因此,用例缺陷管理平台会基于关键词信息表提取与基础动作对应的关键词并与服务器中预存储的测试缺陷列表中的测试缺陷名称进行匹配,将匹配成功的测试缺陷名称自动推荐给用户以形成分析结果,方便用户使用。First, the use case defect management platform has the function of automatically recommending test defects. Specifically, the test result received by the use case defect management platform includes a test case execution number and a basic action corresponding to the test case execution number. Since the server stores the keyword information table in advance, the action information name of the base action is stored in the keyword information table. Each action name corresponds to one or more keywords. Therefore, the use case defect management platform extracts the keyword corresponding to the basic action based on the keyword information table and matches the test defect name in the pre-stored test defect list in the server, and automatically recommends the matching test defect name to the user. The analysis results are formed and are convenient for users to use.
二是分析人员认为平台自动推荐的测试缺陷名称不理想,分析人员也可手动添加分析得到的测试缺陷的测试缺陷名称和缺陷处理方法,形成分析结果,并且平台会将分析人员手动添加的测试缺陷名称实时更新到数据库,以使再次出现该测试缺陷时,无需测试人员 对该测试缺陷所对应的测试脚本进行重复更改,减轻测试人员的工作量,提高工作效率。Second, the analyst believes that the test defect name automatically recommended by the platform is not ideal. The analyst can also manually add the test defect name and defect processing method of the test defect obtained by the analysis to form the analysis result, and the platform will manually add the test defect by the analyst. The name is updated to the database in real time, so that when the test defect occurs again, the tester does not need to repeatedly change the test script corresponding to the test defect, thereby reducing the workload of the tester and improving work efficiency.
进一步地,用例缺陷管理平台还会将获取到的分析结果发送给用例编辑管理平台和/或用例测试管理平台,用例编辑管理平台和/或用例测试管理平台发送提醒信息到与目标测试脚本相关的处理人员对应的邮箱(如测试人员)和测试管理邮箱,以使相关处理人员实时跟进测试处理状态,及时处理,提高工作效率。本实施例中,用例编辑管理平台、用例测试管理平台和用例缺陷管理平台通过B/S架构相连。Further, the use case defect management platform further sends the obtained analysis result to the use case editing management platform and/or the use case test management platform, and the use case editing management platform and/or the use case test management platform send the reminder information to the target test script. The corresponding mailbox (such as the tester) and the test management mailbox are processed by the processing personnel, so that the relevant processing personnel can follow up the test processing state in real time, and process in time to improve work efficiency. In this embodiment, the use case editing management platform, the use case test management platform, and the use case defect management platform are connected through the B/S architecture.
具体地,在上传测试结果到用例缺陷管理平台之前,测试人员可以指定用例缺陷管理平台中的分析人员进行分析;点击界面上显示的分析人员配置按钮,此时,用例测试管理平台会获取到用户输入的分析人员配置请求,该分析人员配置请求包括分析人员ID,以使原始测试用例分配给分析人员ID对应的分析人员,并给与分析人员ID对应的分析邮箱发送提醒信息。其中,分析人员ID是可识别分析人员的唯一标识。Specifically, before uploading the test result to the use case defect management platform, the tester can specify the analyst in the use case defect management platform for analysis; click the analyst configuration button displayed on the interface, at this time, the use case test management platform will obtain the user. The input analyst configuration request includes an analyst ID to assign the original test case to the analyst corresponding to the analyst ID, and send the reminder information to the analysis mailbox corresponding to the analyst ID. Among them, the analyst ID is a unique identifier that can identify the analyst.
可以理解地,用例缺陷管理平台在接收到用例测试管理平台所上传的测试结果时,若测试人员没有指定分析人员进行分析,则服务器会对每一个分析人员的待完成工作任务进行统计。具体地,用例缺陷管理平台会对用例缺陷管理平台中每一个分析人员的待完成工作任务进行定时统计并存储分析任务信息表,该分析任务信息表包括分析人员ID、分析人员ID对应的分析邮箱和对应的待完成工作任务。本实施例中,每个分析人员的待完成工作任务的上限是预先定义好的。当用例缺陷管理平台接收到没有指定分析人员的携带未通过标识的测试结果时,依次查找分析人员对应的待完成工作任务,若查找到待完成任务的数量未达上限的分析人员,则获取该分析人员ID,用例缺陷管理平台会将携带未通过标识测试结果发送到该分析人员ID对应的分析界面,并给与分析人员ID对应的分析邮箱发送提醒信息。该过程通过合理分配工作任务,以达到合理利用资源的目的,提高效率。It can be understood that when the test result uploaded by the use case test management platform is received by the use case defect management platform, if the tester does not specify an analyst to perform the analysis, the server will perform statistics on each of the analyst's work tasks to be completed. Specifically, the use case defect management platform performs timing statistics on each of the analysts' work tasks to be completed in the use case defect management platform, and stores an analysis task information table, where the analysis task information table includes an analyst ID and an analysis mailbox corresponding to the analyst ID. And the corresponding work task to be completed. In this embodiment, the upper limit of each analyst's work task to be completed is predefined. When the use case defect management platform receives the test result of carrying the unidentified identifier of the unspecified analyst, the task to be completed corresponding to the analyst is searched in turn, and if the number of the task to be completed does not reach the upper limit, the The analyst ID, the use case defect management platform will send the carrying failure test result to the analysis interface corresponding to the analyst ID, and send the reminder information to the analysis mailbox corresponding to the analyst ID. This process improves the efficiency by reasonably allocating work tasks to achieve rational use of resources.
在一具体实施方式中,步骤S40之前,该自动化测试管理方法还包括在用例缺陷管理平台预先创建测试缺陷列表。其中,测试缺陷列表包括至少一个测试缺陷信息,每一测试缺陷信息包括测试缺陷名称和缺陷处理方法。测试缺陷名称是指未通过测试的测试缺陷的简要描述。缺陷处理方法是解决上述未通过测试的测试缺陷的方法。如图7所示,在用例缺陷管理平台预先创建测试缺陷列表,具体包括如下步骤:In a specific embodiment, prior to step S40, the automated test management method further includes pre-creating a test defect list in the use case defect management platform. The test defect list includes at least one test defect information, and each test defect information includes a test defect name and a defect processing method. The test defect name is a brief description of the test defect that failed the test. The defect processing method is a method of solving the above-mentioned test defects that have not passed the test. As shown in FIG. 7, the test defect list is pre-created in the use case defect management platform, and specifically includes the following steps:
S411:在用例缺陷管理平台获取至少两个缺陷编辑请求,缺陷编辑请求包括测试缺陷名称和缺陷处理方法。S411: Acquire at least two defect editing requests in the use case defect management platform, where the defect editing request includes a test defect name and a defect processing method.
具体地,分析人员在用例缺陷管理平台上查看用例测试管理平台上传的携带未通过标识的测试结果时,可基于该测试结果分析确定其对应的测试缺陷名称,并向用户缺陷管理 平台上传相应的该测试缺陷名称和缺陷处理方法,点击确认按钮后即可向用例缺陷管理平台输入缺陷编辑请求。用例缺陷管理平台获取到的每一缺陷编辑请求时,会在与用例缺陷管理平台对应的数据库中存储测试缺陷名称和对应的缺陷处理方法,例如测试缺陷的名称为“按钮控件中的文字被截断”,则对应的缺陷处理方法为设置按钮的背景色替换系统自带的背景色,让文字完整显示。通过在在数据库中预存储测试缺陷名称和对应的缺陷处理方法,以便于后续调用相应的缺陷处理方法进行处理,提高处理效率。Specifically, when the analysis result of the test result of the unsuccessful identifier uploaded by the use case test management platform is displayed on the use case defect management platform, the analyst may determine the corresponding test defect name based on the test result and upload the corresponding test defect to the user defect management platform. The test defect name and defect processing method, after clicking the confirmation button, the defect editing request can be input to the use case defect management platform. When each defect editing request obtained by the use case defect management platform is stored, the test defect name and the corresponding defect processing method are stored in the database corresponding to the use case defect management platform, for example, the name of the test defect is "the text in the button control is truncated. ", the corresponding defect processing method is to set the background color of the button to replace the background color of the system, so that the text is completely displayed. The processing efficiency is improved by pre-storing the test defect name and the corresponding defect processing method in the database, so as to facilitate subsequent processing by calling the corresponding defect processing method.
S412:采用聚类算法对至少两个测试缺陷名称进行聚类处理,以使用例缺陷管理平台对测试缺陷名称进行分类管理,形成分级显示的测试缺陷列表。S412: Clustering the at least two test defect names by using a clustering algorithm, and classifying and managing the test defect names by using the defect management platform to form a hierarchically displayed test defect list.
其中,测试缺陷列表是预先存储好的包括至少两个测试缺陷的缺陷列表。具体地,采用K-means聚类算法对至少两个测试缺陷名称进行聚类处理,以使用例缺陷管理平台对测试缺陷名称进行分类管理,形成分级显示的测试缺陷列表,方便管理并可使用户能够更直观的查看服务器存储的所有测试缺陷,提升用户体验。The test defect list is a pre-stored defect list including at least two test defects. Specifically, the K-means clustering algorithm is used to cluster at least two test defect names, and the defect management platform is used to classify the test defect names to form a hierarchically displayed test defect list, which is convenient for management and can make the user It can more intuitively view all test defects stored in the server and improve the user experience.
本实施例中,采用K-maens聚类算法对至少两个动作名称进行聚类处理的步骤如下:首先,从至少两个测试缺陷名称中随机选取K个作为质心,其中,k代表聚类类簇的数量。然后,采用分词技术将每个测试缺陷名称(包括质心)进行分词,采用TF-IDF计算每个词语在对应的测试缺陷名称的权值形成特征向量。本实施例中,分词技术可采用结巴分词工具进行分词,结巴分词工具是一种常见的中文分词工具,具有准确率高、效率高的优点。例如对“丢失文字”进行分词,得到“丢失”“文字”形成两个向量维度的特征向量;若两个动作名称的特征向量的维度不同,则取最大维度的特征向量对应的维度作为最终维度,其他的特征向量维度不足的用0补齐即可。最后,采用余弦相似度算法计算每个动作名称对应的特征向量与质心的距离,将计算得出的距离最小的质心所属的聚类类簇作为该动作名称的类别,以达到分级显示测试缺陷列表的目的。其中,余弦相似度算法,又称为余弦相似性算法,是通过计算两个向量的夹角余弦值来评估他们的相似度的算法。本实施例中,质心的个数由聚类类簇的数量K决定,具体的K值由开发人员自定义。In this embodiment, the steps of clustering at least two action names by using the K-maens clustering algorithm are as follows: First, K are randomly selected from at least two test defect names as a centroid, where k represents a cluster class. The number of clusters. Then, each test defect name (including the centroid) is segmented by word segmentation technology, and the TF-IDF is used to calculate the weight of each word in the corresponding test defect name to form a feature vector. In this embodiment, the word segmentation technique can use the staging word segmentation tool to perform word segmentation, and the stutter word segmentation tool is a common Chinese word segmentation tool, which has the advantages of high accuracy and high efficiency. For example, the word "missing text" is segmented, and the "missing" "text" is formed to form two vector dimension feature vectors; if the dimension of the feature vector of the two action names is different, the dimension corresponding to the feature vector of the largest dimension is taken as the final dimension. If other feature vector dimensions are insufficient, they can be filled with 0. Finally, the cosine similarity algorithm is used to calculate the distance between the feature vector and the centroid of each action name, and the cluster cluster to which the centroid with the smallest distance is calculated is used as the category of the action name to achieve the hierarchical display test defect list. the goal of. Among them, the cosine similarity algorithm, also known as the cosine similarity algorithm, is an algorithm for evaluating their similarity by calculating the angle cosine of two vectors. In this embodiment, the number of centroids is determined by the number K of clustering clusters, and the specific K value is customized by the developer.
如图7所示,步骤S40中,所述用例缺陷管理平台获取基于所述测试结果分析形成的分析结果,具体包括如下步骤:As shown in FIG. 7, in step S40, the use case defect management platform obtains an analysis result formed based on the analysis of the test result, and specifically includes the following steps:
S421:用例缺陷管理平台获取基于所述测试结果分析形成的当前缺陷名称。S421: The use case defect management platform acquires a current defect name formed based on the analysis of the test result.
其中,当前缺陷名称是对测试结果进行分析所得到的名称,该当前缺陷名称可以通过对测试结果进行关键词提取后获取,也可以由分析人员对测试结果进行分析后并添加到用户缺陷管理平台所预存储的测试缺陷列表。可以理解地,该当前缺陷名称包含与基础动作 对应的关键词。The current defect name is a name obtained by analyzing the test result, and the current defect name may be obtained by extracting the keyword of the test result, or may be analyzed by the analyst and added to the user defect management platform. A list of pre-stored test defects. As can be appreciated, the current defect name contains keywords corresponding to the base action.
S422:采用余弦相似度计算当前缺陷名称和每一测试缺陷名称的相似度,选取最大相似度对应的测试缺陷名称和基于所选取的测试缺陷名称选取缺陷处理方法,形成分析结果。S422: Calculating the similarity between the current defect name and each test defect name by using the cosine similarity degree, selecting the test defect name corresponding to the maximum similarity, and selecting the defect processing method based on the selected test defect name to form an analysis result.
其中,分析结果是指用例缺陷管理平台根据测试缺陷名称和缺陷处理方法所生成的,该分析结果可以为测试缺陷报告。余弦相似度算法,又称为余弦相似性算法,是通过计算两个向量的夹角余弦值来评估他们的相似度的算法。可以理解地,两个向量的夹角余弦值越接近于1,则两个向量的相似度越大。具体地,设A=(A 1,A 2...A n),B=(B 1,B 2...B n),则余弦相似度的计算公式为,
Figure PCTCN2018073389-appb-000001
A表示当前缺陷名称对应的向量,B表示每一测试缺陷名称对应的向量,选取夹角θ最小时(即最接近于1的余弦值)所对应的测试缺陷名称和缺陷处理方法以形成分析结果。
The analysis result refers to the use case defect management platform generated according to the test defect name and the defect processing method, and the analysis result may be a test defect report. The cosine similarity algorithm, also known as the cosine similarity algorithm, is an algorithm that evaluates the similarity of two vectors by evaluating their cosine values. It can be understood that the closer the angle cosine of the two vectors is to 1, the greater the similarity of the two vectors. Specifically, let A = (A 1 , A 2 ... A n ), B = (B 1 , B 2 ... B n ), then the formula for calculating the cosine similarity is
Figure PCTCN2018073389-appb-000001
A represents the vector corresponding to the current defect name, B represents the vector corresponding to each test defect name, and the test defect name and defect processing method corresponding to the minimum angle (ie, the cosine value closest to 1) is selected to form the analysis result. .
本实施例中,用例缺陷管理平台在分析未通过的测试结果的测试缺陷(即当前缺陷)时,分析人员也可自主从测试缺陷列表选取与当前缺陷名称相似的测试缺陷名称,用例缺陷管理平台即可将该缺陷类型对应的测试缺陷名称和缺陷处理方法,生成html(超文本标记语言)格式的测试缺陷报告,并将该缺陷报告发送给与测试人员ID对应的邮箱。该过程无需分析人员编辑缺陷处理方法,节省时间,并且测试人员可根据推荐的缺陷处理方法处理缺陷,提高工作效率。In this embodiment, when the use case defect management platform analyzes the test defect (ie, the current defect) of the untested test result, the analyst can also independently select the test defect name similar to the current defect name from the test defect list, and the use case defect management platform. The test defect name and defect processing method corresponding to the defect type can be generated to generate a test defect report in the html (hypertext markup language) format, and the defect report is sent to the mailbox corresponding to the tester ID. This process saves time by eliminating the need for analysts to edit defect handling methods, and testers can handle defects based on recommended defect handling methods to increase productivity.
本实施例中,首先在用例编辑管理平台中获取目标测试脚本,并基于B/S架构(Browser/Server,浏览器/服务器模式)将目标测试脚本发送给用例测试管理平台,然后在用例测试管理平台中基于目标测试脚本进行测试,获取测试结果,并将用例测试管理平台将携带未通过标识的测试结果基于B/S架构上传到用例缺陷管理平台,最后,在用例缺陷管理平台对测试结果进行分析,获取分析结果,以使自动化测试管理平台与用例缺陷管理平台相关联,并对存在缺陷的测试结果进行分析改进,最后,将分析结果发送给测试管理邮箱,以使用户无需手动发送分析结果,提高工作效率。该工作流程中各平台之间具有实时同步性强,不易出现纰漏的优点。并且通过B/S架构将用例编辑管理平台和用例测试管理平台相连,以使用户无需下载应用软件即可使用,共享性高且维护成本低。In this embodiment, the target test script is first acquired in the use case editing management platform, and the target test script is sent to the use case test management platform based on the B/S architecture (Browser/Server, browser/server mode), and then used in the use case test management. The platform tests based on the target test script to obtain test results, and the use case test management platform uploads the test result carrying the unsigned identifier to the use case defect management platform based on the B/S architecture, and finally, the test result is performed on the use case defect management platform. Analyze and obtain the analysis results, so that the automated test management platform is associated with the use case defect management platform, and analyze and improve the test results of the defects. Finally, the analysis results are sent to the test management mailbox, so that the user does not need to manually send the analysis results. ,Improve work efficiency. The real-time synchronization between the platforms in the workflow is not easy to leak. And the use case editing management platform and the use case test management platform are connected through the B/S architecture, so that the user can use without downloading the application software, and the sharing is high and the maintenance cost is low.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执 行顺序应以其功能和内在逻辑确定,而不应对本申请的实施过程构成任何限定。It should be understood that the size of the serial number of each step in the above embodiments does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the present application.
实施例2Example 2
图8示出与实施例1中自动化测试管理方法一一对应的自动化测试管理装置的原理框图。如图8所示,该自动化测试管理装置包括目标测试脚本获取模块10、测试结果获取模块20、测试结果上传模块30和分析结果获取模块40。其中,目标测试脚本获取模块10、测试结果获取模块20、测试结果上传模块30和分析结果获取模块40的实现功能与实施例中自动化测试管理方法对应的步骤一一对应,为避免赘述,本实施例不一一详述。Fig. 8 is a block diagram showing the principle of an automated test management apparatus corresponding to the automated test management method in the first embodiment. As shown in FIG. 8, the automated test management apparatus includes a target test script acquisition module 10, a test result acquisition module 20, a test result uploading module 30, and an analysis result obtaining module 40. The implementation functions of the target test script acquisition module 10, the test result acquisition module 20, the test result uploading module 30, and the analysis result obtaining module 40 correspond to the steps corresponding to the automated test management method in the embodiment. To avoid redundancy, the implementation The examples are not detailed one by one.
目标测试脚本获取模块10,用于在用例编辑管理平台中获取目标测试脚本,并将目标测试脚本发送给用例测试管理平台。The target test script obtaining module 10 is configured to obtain a target test script in the use case editing management platform, and send the target test script to the use case test management platform.
测试结果获取模块20,用于在用例测试管理平台中基于目标测试脚本进行测试,获取测试结果,测试结果包括通过标识或未通过标识。The test result obtaining module 20 is configured to perform a test based on the target test script in the use case test management platform, and obtain the test result, where the test result includes the identifier or the fail-through identifier.
测试结果上传模块30,用于用例测试管理平台将携带未通过标识的测试结果上传到用例缺陷管理平台。The test result uploading module 30 is used by the use case test management platform to upload the test result carrying the failed identifier to the use case defect management platform.
分析结果获取模块40,用于在用例缺陷管理平台对测试结果进行分析,获取分析结果。The analysis result obtaining module 40 is configured to analyze the test result on the use case defect management platform, and obtain the analysis result.
优选地,目标测试脚本获取模块10包括用例执行编号显示单元11、原始测试用例获取单元12、目标测试用例获取单元13和目标测试脚本获取单元14。Preferably, the target test script acquisition module 10 includes a use case execution number display unit 11, an original test case acquisition unit 12, a target test case acquisition unit 13, and a target test script acquisition unit 14.
用例执行编号显示单元11,用于在用例编辑管理平台的配置界面上依序显示至少两个用例执行编号。The use case execution number display unit 11 is configured to sequentially display at least two use case execution numbers on the configuration interface of the use case editing management platform.
原始测试用例获取单元12,用于在用例编辑管理平台上,将每一用例执行编号与一基础动作关联,形成原始测试用例,并将原始测试用例发送给用例审核平台。The original test case obtaining unit 12 is configured to associate each use case execution number with a basic action on the use case editing management platform to form an original test case, and send the original test case to the use case review platform.
目标测试用例获取单元13,用于在用例审核平台中基于原始测试用例,获取目标测试用例,并将目标测试用例发送给用例编辑管理平台。The target test case obtaining unit 13 is configured to obtain the target test case based on the original test case in the use case review platform, and send the target test case to the use case editing management platform.
目标测试脚本获取单元14,用于在用例编辑管理平台中基于目标测试用例,获取目标测试脚本。The target test script obtaining unit 14 is configured to acquire the target test script based on the target test case in the use case editing management platform.
优选地,原始测试用例获取单元12包括动作选择指令获取子单元1211和用例执行编号关联子单元1212。Preferably, the original test case acquisition unit 12 includes an action selection instruction acquisition sub-unit 1211 and a use case execution number association sub-unit 1212.
动作选择指令获取子单元1211,用于在每一用例执行编号对应的输入框中,获取用户输入的动作选择指令,动作选择指令包括动作ID和/或动作名称。The action selection instruction acquisition sub-unit 1211 is configured to acquire an action selection instruction input by the user in an input box corresponding to each use case execution number, and the action selection instruction includes an action ID and/or an action name.
用例执行编号关联子单元1212,用于基于动作ID和/或动作名称,以使用例执行编 号与基础动作关联。The use case execution number association sub-unit 1212 is configured to associate the use number with the base action based on the action ID and/or the action name.
优选地,原始测试用例获取单元12包括基础动作列表显示子单元1221和用例执行编号关联子单元1222。Preferably, the original test case acquisition unit 12 includes a base action list display sub-unit 1221 and a use case execution number association sub-unit 1222.
基础动作列表显示子单元1221,用于在用例编辑管理平台的配置界面上显示基础动作列表,基础动作列表包括至少一个基础动作。The basic action list display sub-unit 1221 is configured to display a basic action list on the configuration interface of the use case editing management platform, where the basic action list includes at least one basic action.
用例执行编号关联子单元1222,用于采用拖拽方式将一基础动作拖拽到与一用例执行编号对应的输入框中,以使用例执行编号与基础动作关联。The use case execution number association sub-unit 1222 is configured to drag and drop a basic action into an input box corresponding to a use case execution number by using a drag and drop method, and associate the use case execution number with the base action.
优选地,目标测试用例获取单元13包括审核权限配置子单元1311、原始测试用例发送子单元1312、审核指令获取子单元1321和目标测试用例获取子单元1322。Preferably, the target test case acquisition unit 13 includes an audit authority configuration subunit 1311, an original test case transmission subunit 1312, an audit instruction acquisition subunit 1321, and a target test case acquisition subunit 1322.
审核权限配置子单元1311,用于在用例编辑管理平台中获取用户输入的审核权限配置请求,审核权限配置请求包括审核人员ID。The audit authority configuration sub-unit 1311 is configured to obtain an audit authority configuration request input by the user in the use case editing management platform, and the audit authority configuration request includes an auditor ID.
原始测试用例发送子单元1312,用于基于审核权限配置请求,将原始测试用例发送给用例审核平台,以使审核人员ID对应的审核界面显示原始测试用例。The original test case sending sub-unit 1312 is configured to send the original test case to the use case auditing platform based on the auditing authority configuration request, so that the auditing interface corresponding to the auditor ID displays the original test case.
审核指令获取子单元1321,用于在审核人员ID对应的审核界面上获取审核指令,审核指令包括审核标识。The audit instruction acquisition sub-unit 1321 is configured to obtain an audit instruction on the audit interface corresponding to the auditor ID, and the audit instruction includes an audit identifier.
目标测试用例获取子单元1322,用于审核标识为审核通过标识,则将原始测试用例作为目标测试用例。The target test case acquisition sub-unit 1322 is configured to use the original test case as the target test case for the audit identification to be the audit pass identifier.
优选地,目标测试脚本获取单元14包括原始测试脚本获取子单元141、脚本修改指令获取子单元142、目标测试脚本获取子单元143。Preferably, the target test script acquisition unit 14 includes an original test script acquisition sub-unit 141, a script modification instruction acquisition sub-unit 142, and a target test script acquisition sub-unit 143.
原始测试脚本获取子单元141,用于在用例编辑管理平台中基于目标测试用例,依序调用与至少两个用例执行编号对应的基础动作,形成原始测试脚本。The original test script acquisition sub-unit 141 is configured to sequentially call the basic action corresponding to the at least two use case execution numbers based on the target test case in the use case editing management platform to form an original test script.
脚本修改指令获取子单元142,用于获取用户输入的脚本修改指令,脚本修改指令包括动作ID和调节参数。The script modification instruction acquisition sub-unit 142 is configured to acquire a script modification instruction input by the user, and the script modification instruction includes an action ID and an adjustment parameter.
目标测试脚本获取子单元143,用于基于调节参数,对原始测试脚本进行修改,以形成目标测试脚本。The target test script acquisition sub-unit 143 is configured to modify the original test script based on the adjustment parameters to form a target test script.
优选地,分析结果获取模块40包括缺陷编辑请求获取单元411、测试缺陷列表获取单元412、当前缺陷名称获取单元421和分析结果获取单元422。Preferably, the analysis result acquisition module 40 includes a defect editing request acquisition unit 411, a test defect list acquisition unit 412, a current defect name acquisition unit 421, and an analysis result acquisition unit 422.
缺陷编辑请求获取单元411,用于在用例缺陷管理平台获取至少两个缺陷编辑请求,缺陷编辑请求包括测试缺陷名称和缺陷处理方法。The defect editing request obtaining unit 411 is configured to acquire at least two defect editing requests in the use case defect management platform, where the defect editing request includes a test defect name and a defect processing method.
测试缺陷列表获取单元412,用于采用聚类算法对至少两个测试缺陷名称进行聚类处 理,以使用例缺陷管理平台对测试缺陷名称进行分类管理,形成分级显示的测试缺陷列表。The test defect list obtaining unit 412 is configured to perform clustering processing on the at least two test defect names by using a clustering algorithm, and classify and manage the test defect names by using the example defect management platform to form a hierarchically displayed test defect list.
当前缺陷名称获取单元421,用于用例缺陷管理平台获取基于所述测试结果分析形成的当前缺陷名称。The current defect name obtaining unit 421 is configured to acquire, by the use case defect management platform, a current defect name formed based on the analysis of the test result.
分析结果获取单元422,用于用余弦相似度计算当前缺陷名称和每一测试缺陷名称的相似度,选取最大相似度对应的测试缺陷名称和基于所选取的测试缺陷名称选取缺陷处理方法,形成分析结果。The analysis result obtaining unit 422 is configured to calculate the similarity between the current defect name and each test defect name by cosine similarity, select a test defect name corresponding to the maximum similarity, and select a defect processing method based on the selected test defect name to form an analysis. result.
实施例3Example 3
本实施例提供一计算机可读存储介质,该计算机可读存储介质上存储有计算机可读指令,该计算机可读指令被处理器执行时实现实施例1中自动化测试管理方法,为避免重复,这里不再赘述。或者,该计算机可读指令被处理器执行时实现实施例2中自动化测试管理装置中各模块/单元的功能,为避免重复,这里不再赘述。The embodiment provides a computer readable storage medium on which computer readable instructions are stored, and when the computer readable instructions are executed by the processor, the automatic test management method in Embodiment 1 is implemented. No longer. Alternatively, when the computer readable instructions are executed by the processor, the functions of the modules/units in the automatic test management apparatus in Embodiment 2 are implemented. To avoid repetition, details are not described herein again.
实施例4Example 4
图9是本申请一实施例提供的终端设备的示意图。如图9所示,该实施例的终端设备90包括:处理器91、存储器92以及存储在存储器92中并可在处理器91上运行的计算机可读指令93。处理器91执行计算机可读指令93时实现上述各个**方法实施例中的步骤,例如图1所示的步骤S10至S40。或者,处理器91执行计算机可读指令93时实现上述各装置实施例中各模块/单元的功能,例如图8所示模块10至40的功能。FIG. 9 is a schematic diagram of a terminal device according to an embodiment of the present application. As shown in FIG. 9, the terminal device 90 of this embodiment includes a processor 91, a memory 92, and computer readable instructions 93 stored in the memory 92 and operable on the processor 91. The processor 91 implements the steps in the various embodiments of the method described above when the computer readable instructions 93 are executed, such as steps S10 through S40 shown in FIG. Alternatively, the processor 91 implements the functions of the modules/units in the various apparatus embodiments described above when the computer readable instructions 93 are executed, such as the functions of the modules 10 to 40 shown in FIG.
示例性的,计算机可读指令93可以被分割成一个或多个模块/单元,一个或者多个模块/单元被存储在存储器92中,并由处理器91执行,以完成本申请。一个或多个模块/单元可以是能够完成特定功能的一系列计算机可读指令93的指令段,该指令段用于描述计算机可读指令93在终端设备90中的执行过程。例如,计算机可读指令93可以被分割成目标测试脚本获取模块10、测试结果获取模块20、测试结果上传模块30和分析结果获取模块40,各模块具体功能如实施例2所述,在此不一一赘述。Illustratively, computer readable instructions 93 may be partitioned into one or more modules/units, one or more modules/units being stored in memory 92 and executed by processor 91 to complete the application. The one or more modules/units may be an instruction segment of a series of computer readable instructions 93 capable of performing a particular function, which is used to describe the execution of computer readable instructions 93 in the terminal device 90. For example, the computer readable instructions 93 may be divided into a target test script acquisition module 10, a test result acquisition module 20, a test result uploading module 30, and an analysis result obtaining module 40. The specific functions of each module are as described in Embodiment 2. One by one.
终端设备90可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。终端设备可包括,但不仅限于,处理器91、存储器92。本领域技术人员可以理解,图9仅仅是终端设备90的示例,并不构成对终端设备90的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如终端设备还可以包括输入输出设备、网络接入设备、总线等。The terminal device 90 can be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server. The terminal device may include, but is not limited to, a processor 91, a memory 92. It will be understood by those skilled in the art that FIG. 9 is merely an example of the terminal device 90, does not constitute a limitation of the terminal device 90, may include more or less components than those illustrated, or may combine certain components, or different components. For example, the terminal device may further include an input/output device, a network access device, a bus, and the like.
所称处理器91可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路 (Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 91 may be a central processing unit (CPU), or may be another general-purpose processor, a digital signal processor (DSP), or an application specific integrated circuit (ASIC). Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
存储器92可以是终端设备90的内部存储单元,例如终端设备90的硬盘或内存。存储器92也可以是终端设备90的外部存储设备,例如终端设备90上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,存储器92还可以既包括终端设备90的内部存储单元也包括外部存储设备。存储器92用于存储计算机可读指令93以及终端设备所需的其他程序和数据。存储器92还可以用于暂时地存储已经输出或者将要输出的数据。The memory 92 may be an internal storage unit of the terminal device 90, such as a hard disk or a memory of the terminal device 90. The memory 92 may also be an external storage device of the terminal device 90, such as a plug-in hard disk equipped with the terminal device 90, a smart memory card (SMC), a Secure Digital (SD) card, and a flash memory card (Flash). Card) and so on. Further, the memory 92 may also include both an internal storage unit of the terminal device 90 and an external storage device. The memory 92 is used to store computer readable instructions 93 and other programs and data required by the terminal device. The memory 92 can also be used to temporarily store data that has been output or is about to be output.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。It will be apparent to those skilled in the art that, for convenience and brevity of description, only the division of each functional unit and module described above is exemplified. In practical applications, the above functions may be assigned to different functional units as needed. The module is completed by dividing the internal structure of the device into different functional units or modules to perform all or part of the functions described above.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一计算机可读存储介质中,该计算机可读指令在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机可读指令包括计算机可读指令代码,所述计算机可读指令代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机可读指令代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括是电载波信号和电信信号。The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the present application implements all or part of the processes in the foregoing embodiments, and may also be implemented by computer readable instructions, which may be stored in a computer readable storage medium. The computer readable instructions, when executed by a processor, may implement the steps of the various method embodiments described above. Wherein, the computer readable instructions comprise computer readable instruction code, which may be in the form of source code, an object code form, an executable file or some intermediate form or the like. The computer readable medium can include any entity or device capable of carrying the computer readable instruction code, a recording medium, a USB flash drive, a removable hard drive, a magnetic disk, an optical disk, a computer memory, a read only memory (ROM, Read-Only) Memory), random access memory (RAM), electrical carrier signals, telecommunications signals, and software distribution media. It should be noted that the content contained in the computer readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in a jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, computer readable media It does not include electrical carrier signals and telecommunication signals.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例 对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to explain the technical solutions of the present application, and are not limited thereto; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still implement the foregoing embodiments. The technical solutions described in the examples are modified or equivalently replaced with some of the technical features; and the modifications or substitutions do not deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in Within the scope of protection of this application.

Claims (20)

  1. 一种自动化测试管理方法,其特征在于,包括:An automated test management method, comprising:
    在用例编辑管理平台中获取目标测试脚本,并将所述目标测试脚本发送给用例测试管理平台;Obtaining a target test script in the use case editing management platform, and sending the target test script to the use case test management platform;
    在所述用例测试管理平台中基于所述目标测试脚本进行测试,获取测试结果,所述测试结果包括通过标识或未通过标识;Performing a test based on the target test script in the use case test management platform, and obtaining a test result, where the test result includes an identifier or a failed identifier;
    所述用例测试管理平台将携带未通过标识的所述测试结果上传到用例缺陷管理平台;The use case test management platform uploads the test result carrying the failed identifier to the use case defect management platform;
    所述用例缺陷管理平台获取基于所述测试结果分析形成的分析结果;The use case defect management platform obtains an analysis result formed based on the analysis of the test result;
    其中,所述用例编辑管理平台、所述用例测试管理平台和所述用例缺陷管理平台通过B/S架构相连。The use case editing management platform, the use case test management platform, and the use case defect management platform are connected by a B/S architecture.
  2. 根据权利要求1所述的自动化测试管理方法,其特征在于,所述在用例编辑管理平台中获取目标测试脚本,包括:The automated test management method according to claim 1, wherein the obtaining the target test script in the use case editing management platform comprises:
    在所述用例编辑管理平台的配置界面上依序显示至少两个用例执行编号;Displaying at least two use case execution numbers sequentially on the configuration interface of the use case editing management platform;
    在所述用例编辑管理平台上,将每一所述用例执行编号与一基础动作关联,形成原始测试用例,并将所述原始测试用例发送给所述用例审核平台;On the use case editing management platform, each of the use case execution numbers is associated with a basic action to form an original test case, and the original test case is sent to the use case review platform;
    在所述用例审核平台中基于所述原始测试用例,获取目标测试用例,并将所述目标测试用例发送给所述用例编辑管理平台;Obtaining a target test case based on the original test case in the use case review platform, and sending the target test case to the use case edit management platform;
    在所述用例编辑管理平台中基于所述目标测试用例,获取目标测试脚本。The target test script is obtained based on the target test case in the use case editing management platform.
  3. 根据权利要求2所述的自动化测试管理方法,其特征在于,所述将每一所述用例执行编号与一基础动作关联,包括:The automated test management method according to claim 2, wherein the associating each of the use case execution numbers with a basic action comprises:
    在每一所述用例执行编号对应的输入框中,获取用户输入的动作选择指令,所述动作选择指令包括动作ID和/或动作名称;Obtaining, in an input box corresponding to each of the use case execution numbers, an action selection instruction input by a user, where the action selection instruction includes an action ID and/or an action name;
    基于所述动作ID和/或动作名称,以使所述用例执行编号与所述基础动作关联。Based on the action ID and/or the action name, the use case execution number is associated with the base action.
  4. 根据权利要求2所述的自动化测试管理方法,其特征在于,所述将每一所述用例执行编号与一基础动作关联,包括:The automated test management method according to claim 2, wherein the associating each of the use case execution numbers with a basic action comprises:
    在所述用例编辑管理平台的配置界面上显示基础动作列表,所述基础动作列表包括至少一个基础动作;Displaying a basic action list on the configuration interface of the use case editing management platform, where the basic action list includes at least one basic action;
    采用拖拽方式将一所述基础动作拖拽到与一所述用例执行编号对应的输入框中,以使所述用例执行编号与所述基础动作关联。Dragging a base action to an input box corresponding to a use case execution number in a drag and drop manner to associate the use case execution number with the base action.
  5. 根据权利要求2所述自动化测试管理方法,其特征在于,所述目标测试用例包括至少两个所述用例执行编号和对应的基础动作;The automated test management method according to claim 2, wherein said target test case comprises at least two said use case execution numbers and corresponding basic actions;
    所述在所述用例编辑管理平台中基于所述目标测试用例,获取目标测试脚本,包括:And obtaining the target test script based on the target test case in the use case editing management platform, including:
    在所述用例编辑管理平台中基于所述目标测试用例,依序调用与至少两个所述用例执行编号对应的基础动作,形成原始测试脚本;And in the use case editing management platform, based on the target test case, sequentially calling the basic actions corresponding to the at least two use case execution numbers to form an original test script;
    获取用户输入的脚本修改指令,所述脚本修改指令包括动作ID和调节参数;Obtaining a script modification instruction input by a user, where the script modification instruction includes an action ID and an adjustment parameter;
    基于所述调节参数,对所述原始测试脚本进行修改,以形成所述目标测试脚本。The original test script is modified based on the adjustment parameters to form the target test script.
  6. 根据权利要求2所述的自动化测试管理方法,其特征在于,所述在对所述原始测试用例进行审核,获取目标测试用例的步骤之前,所述自动化测试管理方法还包括:对所述原始测试用例进行审核权限配置;The automated test management method according to claim 2, wherein said automated test management method further comprises: said original test before said step of reviewing said original test case to obtain a target test case Use case for audit permission configuration;
    所述对所述原始测试用例进行审核权限配置,包括:Performing audit authority configuration on the original test case, including:
    在用例编辑管理平台中获取用户输入的审核权限配置请求,所述审核权限配置请求包括审核人员ID;Obtaining an audit authority configuration request input by the user in the use case editing management platform, where the audit authority configuration request includes an auditor ID;
    基于所述审核权限配置请求,将所述原始测试用例发送给所述用例审核平台,以使所述审核人员ID对应的审核界面显示所述原始测试用例;Sending, according to the auditing authority configuration request, the original test case to the use case auditing platform, so that the auditing interface corresponding to the auditor ID displays the original test case;
    所述在所述用例审核平台中基于所述原始测试用例,获取目标测试用例,包括:The acquiring the target test case based on the original test case in the use case review platform, including:
    在所述审核人员ID对应的审核界面上获取审核指令,审核指令包括审核标识;Obtaining an audit instruction on the audit interface corresponding to the auditor ID, and the audit instruction includes an audit identifier;
    若所述审核标识为审核通过标识,则将所述原始测试用例作为所述目标测试用例。If the audit identifier is an audit pass identifier, the original test case is used as the target test case.
  7. 根据权利要求1所述的自动化测试管理方法,其特征在于,在所述用例缺陷管理平台获取基于所述测试结果分析形成的分析结果的步骤之前,所述自动化测试管理方法还包括:在所述用例缺陷管理平台预先创建测试缺陷列表,所述测试缺陷列表包括至少一个测试缺陷信息,每一所述测试缺陷信息包括测试缺陷名称和缺陷处理方法;The automated test management method according to claim 1, wherein before the step of the use case defect management platform obtaining the analysis result formed based on the analysis of the test result, the automated test management method further comprises: The use defect management platform pre-creates a test defect list, the test defect list including at least one test defect information, each of the test defect information including a test defect name and a defect processing method;
    所述在所述用例缺陷管理平台对所述测试结果进行分析,获取分析结果,包括:The analyzing the test result by the use case defect management platform, and obtaining the analysis result, including:
    在所述用例缺陷管理平台对所述测试结果进行分析,获取当前缺陷名称;The test result is analyzed by the use case defect management platform to obtain a current defect name;
    采用余弦相似度计算所述当前缺陷名称和每一所述测试缺陷名称的相似度,选取最大相似度对应的测试缺陷名称和基于所选取的所述测试缺陷名称选取缺陷处理方法,形成所述分析结果;Calculating a similarity between the current defect name and each of the test defect names by using a cosine similarity, selecting a test defect name corresponding to the maximum similarity, and selecting a defect processing method based on the selected test defect name to form the analysis result;
    所述在所述用例缺陷管理平台预先创建测试缺陷列表,包括:The pre-creating a defect list of the defect in the use case defect management platform includes:
    在所述用例缺陷管理平台获取至少两个缺陷编辑请求,所述缺陷编辑请求包括测试缺陷名称和缺陷处理方法;Obtaining at least two defect editing requests in the use case defect management platform, the defect editing request including a test defect name and a defect processing method;
    采用聚类算法对至少两个所述测试缺陷名称进行聚类处理,以使所述用例缺陷管理平台对所述测试缺陷名称进行分类管理,形成分级显示的测试缺陷列表。The clustering algorithm is used to perform clustering processing on the at least two test defect names, so that the use case defect management platform classifies and manages the test defect names to form a hierarchically displayed test defect list.
  8. 一种自动化测试管理装置,其特征在于,包括:An automated test management device, comprising:
    目标测试脚本获取模块,用于在用例编辑管理平台中获取目标测试脚本,并将所述目标测试脚本发送给用例测试管理平台;a target test script obtaining module, configured to obtain a target test script in the use case editing management platform, and send the target test script to the use case test management platform;
    测试结果获取模块,用于在所述用例测试管理平台中基于所述目标测试脚本进行测试,获取测试结果,所述测试结果包括通过标识或未通过标识;a test result obtaining module, configured to perform a test based on the target test script in the use case test management platform, and obtain a test result, where the test result includes an identifier or a failure identifier;
    测试结果上传模块,用于所述用例测试管理平台将携带未通过标识的所述测试结果上传到用例缺陷管理平台;a test result uploading module, configured to upload, by the use case test management platform, the test result carrying the unsigned identifier to the use case defect management platform;
    分析结果获取模块,用于在所述用例缺陷管理平台对所述测试结果进行分析,获取分析结果。The analysis result obtaining module is configured to analyze the test result on the use case defect management platform to obtain an analysis result.
  9. 一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,其特征在于,所述处理器执行所述计算机可读指令时实现如下步骤:A terminal device comprising a memory, a processor, and computer readable instructions stored in the memory and operable on the processor, wherein the processor executes the computer readable instructions as follows step:
    在用例编辑管理平台中获取目标测试脚本,并将所述目标测试脚本发送给用例测试管理平台;Obtaining a target test script in the use case editing management platform, and sending the target test script to the use case test management platform;
    在所述用例测试管理平台中基于所述目标测试脚本进行测试,获取测试结果,所述测试结果包括通过标识或未通过标识;Performing a test based on the target test script in the use case test management platform, and obtaining a test result, where the test result includes an identifier or a failed identifier;
    所述用例测试管理平台将携带未通过标识的所述测试结果上传到用例缺陷管理平台;The use case test management platform uploads the test result carrying the failed identifier to the use case defect management platform;
    所述用例缺陷管理平台获取基于所述测试结果分析形成的分析结果;The use case defect management platform obtains an analysis result formed based on the analysis of the test result;
    其中,所述用例编辑管理平台、所述用例测试管理平台和所述用例缺陷管理平台通过B/S架构相连。The use case editing management platform, the use case test management platform, and the use case defect management platform are connected by a B/S architecture.
  10. 如权利要求9所述的终端设备,其特征在于,所述在用例编辑管理平台中获取目标测试脚本,包括:The terminal device according to claim 9, wherein the obtaining the target test script in the use case editing management platform comprises:
    在所述用例编辑管理平台的配置界面上依序显示至少两个用例执行编号;Displaying at least two use case execution numbers sequentially on the configuration interface of the use case editing management platform;
    在所述用例编辑管理平台上,将每一所述用例执行编号与一基础动作关联,形成原始测试用例,并将所述原始测试用例发送给所述用例审核平台;On the use case editing management platform, each of the use case execution numbers is associated with a basic action to form an original test case, and the original test case is sent to the use case review platform;
    在所述用例审核平台中基于所述原始测试用例,获取目标测试用例,并将所述目标测试用例发送给所述用例编辑管理平台;Obtaining a target test case based on the original test case in the use case review platform, and sending the target test case to the use case edit management platform;
    在所述用例编辑管理平台中基于所述目标测试用例,获取目标测试脚本。The target test script is obtained based on the target test case in the use case editing management platform.
  11. 如权利要求10所述的终端设备,其特征在于,所述将每一所述用例执行编号与一基础动作关联,包括:The terminal device according to claim 10, wherein the associating each of the use case execution numbers with a basic action comprises:
    在所述用例编辑管理平台的配置界面上显示基础动作列表,所述基础动作列表包括至少一个基础动作;Displaying a basic action list on the configuration interface of the use case editing management platform, where the basic action list includes at least one basic action;
    采用拖拽方式将一所述基础动作拖拽到与一所述用例执行编号对应的输入框中,以使所述用例执行编号与所述基础动作关联。Dragging a base action to an input box corresponding to a use case execution number in a drag and drop manner to associate the use case execution number with the base action.
  12. 如权利要求10所述的终端设备,其特征在于,所述目标测试用例包括至少两个所述用例执行编号和对应的基础动作;The terminal device according to claim 10, wherein said target test case comprises at least two said use case execution numbers and corresponding basic actions;
    所述在所述用例编辑管理平台中基于所述目标测试用例,获取目标测试脚本,包括:And obtaining the target test script based on the target test case in the use case editing management platform, including:
    在所述用例编辑管理平台中基于所述目标测试用例,依序调用与至少两个所述用例执行编号对应的基础动作,形成原始测试脚本;And in the use case editing management platform, based on the target test case, sequentially calling the basic actions corresponding to the at least two use case execution numbers to form an original test script;
    获取用户输入的脚本修改指令,所述脚本修改指令包括动作ID和调节参数;Obtaining a script modification instruction input by a user, where the script modification instruction includes an action ID and an adjustment parameter;
    基于所述调节参数,对所述原始测试脚本进行修改,以形成所述目标测试脚本。The original test script is modified based on the adjustment parameters to form the target test script.
  13. 如权利要求10所述的终端设备,其特征在于,所述在对所述原始测试用例进行审核,获取目标测试用例的步骤之前,所述处理器执行所述计算机可读指令时还实现如下步骤:对所述原始测试用例进行审核权限配置;The terminal device according to claim 10, wherein said processor further implements the following steps when said processor executes said computer readable instructions before said step of reviewing said original test case to obtain a target test case : Performing audit authority configuration on the original test case;
    所述对所述原始测试用例进行审核权限配置,包括:Performing audit authority configuration on the original test case, including:
    在用例编辑管理平台中获取用户输入的审核权限配置请求,所述审核权限配置请求包括审核人员ID;Obtaining an audit authority configuration request input by the user in the use case editing management platform, where the audit authority configuration request includes an auditor ID;
    基于所述审核权限配置请求,将所述原始测试用例发送给所述用例审核平台,以使所述审核人员ID对应的审核界面显示所述原始测试用例;Sending, according to the auditing authority configuration request, the original test case to the use case auditing platform, so that the auditing interface corresponding to the auditor ID displays the original test case;
    所述在所述用例审核平台中基于所述原始测试用例,获取目标测试用例,包括:The acquiring the target test case based on the original test case in the use case review platform, including:
    在所述审核人员ID对应的审核界面上获取审核指令,审核指令包括审核标识;Obtaining an audit instruction on the audit interface corresponding to the auditor ID, and the audit instruction includes an audit identifier;
    若所述审核标识为审核通过标识,则将所述原始测试用例作为所述目标测试用例。If the audit identifier is an audit pass identifier, the original test case is used as the target test case.
  14. 如权利要求9所述的终端设备,其特征在于,在所述用例缺陷管理平台获取基于所述测试结果分析形成的分析结果的步骤之前,所述处理器执行所述计算机可读指令时还实现如下步骤:在所述用例缺陷管理平台预先创建测试缺陷列表,所述测试缺陷列表包括至少一个测试缺陷信息,每一所述测试缺陷信息包括测试缺陷名称和缺陷处理方法;The terminal device according to claim 9, wherein said processor executes said computer readable instructions when said use case defect management platform acquires an analysis result formed based on said test result analysis The following steps: pre-creating a test defect list in the use case defect management platform, the test defect list including at least one test defect information, each of the test defect information including a test defect name and a defect processing method;
    所述在所述用例缺陷管理平台对所述测试结果进行分析,获取分析结果,包括:The analyzing the test result by the use case defect management platform, and obtaining the analysis result, including:
    在所述用例缺陷管理平台对所述测试结果进行分析,获取当前缺陷名称;The test result is analyzed by the use case defect management platform to obtain a current defect name;
    采用余弦相似度计算所述当前缺陷名称和每一所述测试缺陷名称的相似度,选取最大相似度对应的测试缺陷名称和基于所选取的所述测试缺陷名称选取缺陷处理方法,形成所述分析结果。Calculating a similarity between the current defect name and each of the test defect names by using a cosine similarity, selecting a test defect name corresponding to the maximum similarity, and selecting a defect processing method based on the selected test defect name to form the analysis result.
    在所述用例缺陷管理平台预先创建测试缺陷列表,包括:Pre-creating a list of test defects in the use case defect management platform, including:
    在所述用例缺陷管理平台获取至少两个缺陷编辑请求,所述缺陷编辑请求包括测试缺陷名称和缺陷处理方法;Obtaining at least two defect editing requests in the use case defect management platform, the defect editing request including a test defect name and a defect processing method;
    采用聚类算法对至少两个所述测试缺陷名称进行聚类处理,以使所述用例缺陷管理平台对所述测试缺陷名称进行分类管理,形成分级显示的测试缺陷列表。The clustering algorithm is used to perform clustering processing on the at least two test defect names, so that the use case defect management platform classifies and manages the test defect names to form a hierarchically displayed test defect list.
  15. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,其特征在于,所述计算机可读指令被处理器执行时实现如下步骤:A computer readable storage medium storing computer readable instructions, wherein the computer readable instructions, when executed by a processor, implement the following steps:
    在用例编辑管理平台中获取目标测试脚本,并将所述目标测试脚本发送给用例测试管理平台;Obtaining a target test script in the use case editing management platform, and sending the target test script to the use case test management platform;
    在所述用例测试管理平台中基于所述目标测试脚本进行测试,获取测试结果,所述测试结果包括通过标识或未通过标识;Performing a test based on the target test script in the use case test management platform, and obtaining a test result, where the test result includes an identifier or a failed identifier;
    所述用例测试管理平台将携带未通过标识的所述测试结果上传到用例缺陷管理平台;The use case test management platform uploads the test result carrying the failed identifier to the use case defect management platform;
    所述用例缺陷管理平台获取基于所述测试结果分析形成的分析结果;The use case defect management platform obtains an analysis result formed based on the analysis of the test result;
    其中,所述用例编辑管理平台、所述用例测试管理平台和所述用例缺陷管理平台通过B/S架构相连。The use case editing management platform, the use case test management platform, and the use case defect management platform are connected by a B/S architecture.
  16. 如权利要求15所述的计算机可读存储介质,其特征在于,所述在用例编辑管理平台中获取目标测试脚本,包括:The computer readable storage medium of claim 15, wherein the obtaining the target test script in the use case editing management platform comprises:
    在所述用例编辑管理平台的配置界面上依序显示至少两个用例执行编号;Displaying at least two use case execution numbers sequentially on the configuration interface of the use case editing management platform;
    在所述用例编辑管理平台上,将每一所述用例执行编号与一基础动作关联,形成原始测试用例,并将所述原始测试用例发送给所述用例审核平台;On the use case editing management platform, each of the use case execution numbers is associated with a basic action to form an original test case, and the original test case is sent to the use case review platform;
    在所述用例审核平台中基于所述原始测试用例,获取目标测试用例,并将所述目标测试用例发送给所述用例编辑管理平台;Obtaining a target test case based on the original test case in the use case review platform, and sending the target test case to the use case edit management platform;
    在所述用例编辑管理平台中基于所述目标测试用例,获取目标测试脚本。The target test script is obtained based on the target test case in the use case editing management platform.
  17. 如权利要求16所述的计算机可读存储介质,其特征在于,所述将每一所述用例执行编号与一基础动作关联,包括:The computer readable storage medium of claim 16, wherein the associating each of the use case execution numbers with a base action comprises:
    在所述用例编辑管理平台的配置界面上显示基础动作列表,所述基础动作列表包括至少一个基础动作;Displaying a basic action list on the configuration interface of the use case editing management platform, where the basic action list includes at least one basic action;
    采用拖拽方式将一所述基础动作拖拽到与一所述用例执行编号对应的输入框中,以使所述用例执行编号与所述基础动作关联。Dragging a base action to an input box corresponding to a use case execution number in a drag and drop manner to associate the use case execution number with the base action.
  18. 如权利要求16所述的计算机可读存储介质,其特征在于,所述目标测试用例包括至少两个所述用例执行编号和对应的基础动作;The computer readable storage medium of claim 16 wherein said target test case comprises at least two of said use case execution numbers and corresponding base actions;
    所述在所述用例编辑管理平台中基于所述目标测试用例,获取目标测试脚本,包括:And obtaining the target test script based on the target test case in the use case editing management platform, including:
    在所述用例编辑管理平台中基于所述目标测试用例,依序调用与至少两个所述用例执行编号对应的基础动作,形成原始测试脚本;And in the use case editing management platform, based on the target test case, sequentially calling the basic actions corresponding to the at least two use case execution numbers to form an original test script;
    获取用户输入的脚本修改指令,所述脚本修改指令包括动作ID和调节参数;Obtaining a script modification instruction input by a user, where the script modification instruction includes an action ID and an adjustment parameter;
    基于所述调节参数,对所述原始测试脚本进行修改,以形成所述目标测试脚本。The original test script is modified based on the adjustment parameters to form the target test script.
  19. 如权利要求16所述的计算机可读存储介质,其特征在于,所述在对所述原始测试用例进行审核,获取目标测试用例的步骤之前,所述计算机可读指令被处理器执行时还实现如下步骤:对所述原始测试用例进行审核权限配置;A computer readable storage medium as recited in claim 16, wherein said computer readable instructions are further implemented by said processor prior to said step of reviewing said original test case for obtaining a target test case The following steps: configuring the audit permission for the original test case;
    所述对所述原始测试用例进行审核权限配置,包括:Performing audit authority configuration on the original test case, including:
    在用例编辑管理平台中获取用户输入的审核权限配置请求,所述审核权限配置请求包括审核人员ID;Obtaining an audit authority configuration request input by the user in the use case editing management platform, where the audit authority configuration request includes an auditor ID;
    基于所述审核权限配置请求,将所述原始测试用例发送给所述用例审核平台,以使所述审核人员ID对应的审核界面显示所述原始测试用例;Sending, according to the auditing authority configuration request, the original test case to the use case auditing platform, so that the auditing interface corresponding to the auditor ID displays the original test case;
    所述在所述用例审核平台中基于所述原始测试用例,获取目标测试用例,包括:The acquiring the target test case based on the original test case in the use case review platform, including:
    在所述审核人员ID对应的审核界面上获取审核指令,审核指令包括审核标识;Obtaining an audit instruction on the audit interface corresponding to the auditor ID, and the audit instruction includes an audit identifier;
    若所述审核标识为审核通过标识,则将所述原始测试用例作为所述目标测试用例。If the audit identifier is an audit pass identifier, the original test case is used as the target test case.
  20. 如权利要求15所述的计算机可读存储介质,其特征在于,在所述用例缺陷管理平台获取基于所述测试结果分析形成的分析结果的步骤之前,所述计算机可读指令被处理器执行时还实现如下步骤:在所述用例缺陷管理平台预先创建测试缺陷列表,所述测试缺陷列表包括至少一个测试缺陷信息,每一所述测试缺陷信息包括测试缺陷名称和缺陷处理方法;A computer readable storage medium according to claim 15 wherein said computer readable instructions are executed by said processor prior to said step of obtaining, by said use case defect management platform, analysis results formed based on said test result analysis And implementing the following steps: pre-creating a test defect list in the use case defect management platform, the test defect list including at least one test defect information, each of the test defect information including a test defect name and a defect processing method;
    所述在所述用例缺陷管理平台对所述测试结果进行分析,获取分析结果,包括:The analyzing the test result by the use case defect management platform, and obtaining the analysis result, including:
    在所述用例缺陷管理平台对所述测试结果进行分析,获取当前缺陷名称;The test result is analyzed by the use case defect management platform to obtain a current defect name;
    采用余弦相似度计算所述当前缺陷名称和每一所述测试缺陷名称的相似度,选取最大相似度对应的测试缺陷名称和基于所选取的所述测试缺陷名称选取缺陷处理方法,形成所述分析结果;Calculating a similarity between the current defect name and each of the test defect names by using a cosine similarity, selecting a test defect name corresponding to the maximum similarity, and selecting a defect processing method based on the selected test defect name to form the analysis result;
    所述在所述用例缺陷管理平台预先创建测试缺陷列表,包括:The pre-creating a defect list of the defect in the use case defect management platform includes:
    在所述用例缺陷管理平台获取至少两个缺陷编辑请求,所述缺陷编辑请求包括测试缺陷名称和缺陷处理方法;Obtaining at least two defect editing requests in the use case defect management platform, the defect editing request including a test defect name and a defect processing method;
    采用聚类算法对至少两个所述测试缺陷名称进行聚类处理,以使所述用例缺陷管理平台对所述测试缺陷名称进行分类管理,形成分级显示的测试缺陷列表。The clustering algorithm is used to perform clustering processing on the at least two test defect names, so that the use case defect management platform classifies and manages the test defect names to form a hierarchically displayed test defect list.
PCT/CN2018/073389 2017-11-27 2018-01-19 Automated test management method and apparatus, terminal device, and storage medium WO2019100577A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711204948.9A CN108038052A (en) 2017-11-27 2017-11-27 Automatic test management method, device, terminal device and storage medium
CN201711204948.9 2017-11-27

Publications (1)

Publication Number Publication Date
WO2019100577A1 true WO2019100577A1 (en) 2019-05-31

Family

ID=62092949

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/073389 WO2019100577A1 (en) 2017-11-27 2018-01-19 Automated test management method and apparatus, terminal device, and storage medium

Country Status (2)

Country Link
CN (1) CN108038052A (en)
WO (1) WO2019100577A1 (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874672B (en) * 2018-06-19 2022-04-22 腾讯科技(深圳)有限公司 Application program exception positioning method, device, equipment and storage medium
CN110750435A (en) * 2018-07-23 2020-02-04 北京奇虎科技有限公司 Test case management method and device
CN109062817B (en) * 2018-10-15 2022-06-03 网宿科技股份有限公司 Automatic testing method and system
CN109857657A (en) * 2019-01-18 2019-06-07 深圳壹账通智能科技有限公司 Code detection method, device, computer equipment and storage medium
CN110209576A (en) * 2019-05-21 2019-09-06 深圳壹账通智能科技有限公司 The calculation method and relevant device of test case coverage rate
CN113448830A (en) * 2020-03-27 2021-09-28 北京沃东天骏信息技术有限公司 Method and device for managing software information
CN111767205A (en) * 2020-04-03 2020-10-13 中国电力科学研究院有限公司 Online detection method and system supporting task splitting
CN111949533A (en) * 2020-08-12 2020-11-17 安徽继远检验检测技术有限公司 Embedded software automatic test platform of electric power intelligent terminal
CN112069073A (en) * 2020-09-07 2020-12-11 深圳创维-Rgb电子有限公司 Test case management method, terminal and storage medium
CN112905476B (en) * 2021-03-12 2023-08-11 网易(杭州)网络有限公司 Test execution method and device, electronic equipment and storage medium
CN113282496B (en) * 2021-05-31 2024-04-02 深圳赛安特技术服务有限公司 Automatic interface testing method, device, equipment and storage medium
CN114860575B (en) * 2022-03-31 2023-10-03 中国电信股份有限公司 Test data generation method and device, storage medium and electronic equipment
CN116932413B (en) * 2023-09-14 2023-12-19 深圳市智慧城市科技发展集团有限公司 Defect processing method, defect processing device and storage medium for test task

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102402484A (en) * 2011-11-30 2012-04-04 北京航空航天大学 Automatic experimental device and method for reliability growth test of embedded software
CN104461898A (en) * 2014-12-19 2015-03-25 北京奇虎科技有限公司 Application testing method, center control server, test terminal and system
CN106155889A (en) * 2015-04-02 2016-11-23 工业和信息化部计算机与微电子发展研究中心(中国软件评测中心) A kind of assessment method of explosive production monitoring system
CN106326127A (en) * 2016-08-29 2017-01-11 浪潮电子信息产业股份有限公司 Automatic test method
CN106991054A (en) * 2017-05-03 2017-07-28 郑州云海信息技术有限公司 Keyword-driven automation test frame and implementation method based on selenium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101246448A (en) * 2008-03-17 2008-08-20 中兴通讯股份有限公司 Automatized script implementing method
CN103631590B (en) * 2013-11-29 2017-04-05 广东明创软件科技有限公司 The edit methods of automatic test script
CN105354141A (en) * 2015-11-16 2016-02-24 北京用友政务软件有限公司 EMT test case management system and method
CN106708729B (en) * 2016-11-15 2019-10-11 东软集团股份有限公司 The prediction technique and device of aacode defect

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102402484A (en) * 2011-11-30 2012-04-04 北京航空航天大学 Automatic experimental device and method for reliability growth test of embedded software
CN104461898A (en) * 2014-12-19 2015-03-25 北京奇虎科技有限公司 Application testing method, center control server, test terminal and system
CN106155889A (en) * 2015-04-02 2016-11-23 工业和信息化部计算机与微电子发展研究中心(中国软件评测中心) A kind of assessment method of explosive production monitoring system
CN106326127A (en) * 2016-08-29 2017-01-11 浪潮电子信息产业股份有限公司 Automatic test method
CN106991054A (en) * 2017-05-03 2017-07-28 郑州云海信息技术有限公司 Keyword-driven automation test frame and implementation method based on selenium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
LIU, XIAOMING: "Research of Software Testing and Automatic Model", ELECTRONIC TECHNOLOGY & INFORMATION SCIENCE , CHINA MASTER'S THESES FULL-TEXT DATABASE, 15 May 2010 (2010-05-15), ISSN: 1674-0246 *

Also Published As

Publication number Publication date
CN108038052A (en) 2018-05-15

Similar Documents

Publication Publication Date Title
WO2019100577A1 (en) Automated test management method and apparatus, terminal device, and storage medium
WO2019100576A1 (en) Automated test management method and apparatus, terminal device, and storage medium
US10318412B1 (en) Systems, methods, and apparatus for dynamic software generation and testing
CN109359028B (en) Code quality monitoring method, device, computer equipment and storage medium
CN109165856B (en) Dynamic configuration method, device and storage medium of approval chain
US9594797B2 (en) Data quality assessment
US10417644B2 (en) Identifying clusters for service management operations
US10289409B2 (en) Systems, methods, and apparatus for migrating code to a target environment
US20190104156A1 (en) Systems and methods for automated governance, risk, and compliance
US10838941B2 (en) Automated image-based record creation and related database systems
US10354257B2 (en) Identifying clusters for service management operations
US9495282B2 (en) Method and systems for a dashboard testing framework in an online demand service environment
WO2019100635A1 (en) Editing method and apparatus for automated test script, terminal device and storage medium
US10437717B2 (en) Defect reporting in application testing
CN109272215B (en) Project development quality monitoring method and device, computer equipment and storage medium
CN110674360B (en) Tracing method and system for data
WO2021154722A1 (en) Methods and systems for dynamically generating a plurality of machine learning systems during processing of a user data set
CN113742227B (en) Control method, device, equipment and medium for software testing process
US10459942B1 (en) Sampling for preprocessing big data based on features of transformation results
CN104933096B (en) Abnormal key recognition methods, device and the data system of database
CN112364145A (en) Work order processing method and device, electronic equipment and storage medium
WO2017167015A1 (en) Method and device for server device security management and computer storage medium
CN112000862A (en) Data processing method and device
CN113901476A (en) Vulnerability verification method, system, equipment and medium based on virtualization environment
CN113420080A (en) Toxicology experiment data management system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18880846

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 28.08.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18880846

Country of ref document: EP

Kind code of ref document: A1