CN112069073A - Test case management method, terminal and storage medium - Google Patents

Test case management method, terminal and storage medium Download PDF

Info

Publication number
CN112069073A
CN112069073A CN202010933235.1A CN202010933235A CN112069073A CN 112069073 A CN112069073 A CN 112069073A CN 202010933235 A CN202010933235 A CN 202010933235A CN 112069073 A CN112069073 A CN 112069073A
Authority
CN
China
Prior art keywords
test
test case
updated
tested
case
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010933235.1A
Other languages
Chinese (zh)
Other versions
CN112069073B (en
Inventor
董飞洋
程志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics Co Ltd
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 Shenzhen Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN202010933235.1A priority Critical patent/CN112069073B/en
Publication of CN112069073A publication Critical patent/CN112069073A/en
Application granted granted Critical
Publication of CN112069073B publication Critical patent/CN112069073B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

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

Abstract

The application discloses a management method, a terminal and a storage medium of a test case, wherein the method comprises the following steps: acquiring an updating instruction of a test case; determining a test case to be updated and content to be updated corresponding to the test case to be updated according to the updating instruction, and executing an updating operation on the test case to be updated based on the content to be updated; and acquiring the updated test case obtained by the updating operation, executing the auditing operation of the updated test case, and storing the updated test case passing the auditing operation into a database. The problems that the existing test cases are not managed completely, so that the test cases are not covered completely, a plurality of different test case versions exist simultaneously, and information is disordered are solved, and the updated and audited test cases are stored in the database in time, so that the management efficiency of the test cases is improved, and the time and cost of testers are saved.

Description

测试用例的管理方法、终端和存储介质Test case management method, terminal and storage medium

技术领域technical field

本申请涉及测试技术领域,尤其涉及一种测试用例的管理方法、终端和存储介质。The present application relates to the technical field of testing, and in particular, to a test case management method, terminal and storage medium.

背景技术Background technique

随着科技的进步,各个领域也迅速发展,无论任何行业,新功能越来越多,而对于测试人员而言,不仅是功能项的增多,测试用例也随之增多,甚至多达上千条用例。但是,目前对于测试用例的管理还停留在人工操作excel表格、手动备份等,当测试用例进行新增、删除、修改等变更后,不能及时将更新的信息同步到所有相关人员,从而导致测试用例覆盖不完全、多个不同测试用例版本同时存在、信息混乱的问题。With the advancement of science and technology, various fields have also developed rapidly. Regardless of any industry, there are more and more new functions. For testers, not only the increase of function items, but also the increase of test cases, even as many as thousands. Example. However, at present, the management of test cases still remains in manual operation of excel tables, manual backup, etc. When test cases are added, deleted, modified, etc., the updated information cannot be synchronized to all relevant personnel in time, resulting in test cases. Incomplete coverage, multiple different test case versions coexist, and information confusion.

发明内容SUMMARY OF THE INVENTION

本申请实施例通过提供一种测试用例的管理方法、终端和存储介质,旨在解决现有的测试用例管理不完善,导致出现测试用例覆盖不完全、多个不同测试用例版本同时存在以及信息混乱的问题。By providing a test case management method, a terminal, and a storage medium, the embodiments of the present application aim to solve the problem of imperfect management of existing test cases, resulting in incomplete test case coverage, simultaneous existence of multiple different test case versions, and information confusion The problem.

为实现上述目的,本申请一方面提供一种测试用例的管理方法,所述测试用例的管理方法包括以下步骤:In order to achieve the above object, on the one hand, the present application provides a test case management method, the test case management method includes the following steps:

获取测试用例的更新指令;Get the update instruction of the test case;

根据所述更新指令确定待更新的测试用例以及所述待更新的测试用例对应的待更新的内容,基于所述待更新的内容对所述待更新的测试用例执行更新操作;Determine the test case to be updated and the content to be updated corresponding to the test case to be updated according to the update instruction, and perform an update operation on the test case to be updated based on the content to be updated;

获取所述更新操作得到的已更新的测试用例,执行所述已更新的测试用例的审核操作,并将通过所述审核操作的所述已更新的测试用例存储至数据库中。The updated test case obtained by the update operation is acquired, the audit operation of the updated test case is performed, and the updated test case that has passed the audit operation is stored in a database.

可选地,所述获取所述更新操作得到的已更新的测试用例,执行所述已更新的测试用例的审核操作的步骤包括:Optionally, the step of obtaining the updated test case obtained by the update operation, and performing the review operation of the updated test case includes:

在获取到所述已更新的测试用例时,开启所述已更新的测试用例的审核流程;When the updated test case is obtained, start the review process of the updated test case;

基于所述审核流程向审核人员发送审核指令,以使所述审核人员根据所述审核指令对所述已更新的测试用例进行审核。An audit instruction is sent to an auditor based on the audit process, so that the auditor can audit the updated test case according to the audit instruction.

可选地,所述基于所述审核流程向审核人员发送审核指令,以使所述审核人员根据所述审核指令对所述已更新的测试用例进行审核的步骤之后,包括:Optionally, after the step of sending an audit instruction to an auditor based on the audit process, so that the auditor can audit the updated test case according to the audit instruction, it includes:

获取未通过审核的所述已更新的测试用例以及审核的结果信息;Obtain the updated test cases that have not passed the review and the result information of the review;

将所述未通过审核的所述已更新的测试用例以及所述审核的结果信息发送至对应的测试人员,以使所述测试人员根据所述审核的结果信息对所述未通过审核的所述已更新的测试用例进行修改。Send the updated test case that fails the review and the result information of the review to the corresponding tester, so that the tester can check the test case that fails the review according to the result information of the review. The updated test case is modified.

可选地,所述获取所述更新操作得到的已更新的测试用例,执行所述已更新的测试用例的审核操作,并将通过所述审核操作的所述已更新的测试用例存储至数据库中的步骤之后,包括:Optionally, obtaining the updated test case obtained by the update operation, performing an audit operation of the updated test case, and storing the updated test case that has passed the audit operation in a database after the steps, including:

获取待测试项目信息,在所述数据库中获取与所述待测试项目信息匹配的目标测试用例,所述目标测试用例为预先存储至所述数据库中的已更新且通过审核的测试用例;Obtain the item information to be tested, and obtain the target test case matching the item information to be tested in the database, and the target test case is an updated and approved test case stored in the database in advance;

基于所述目标测试用例执行待测试项目的测试操作以生成测试报告。Execute the test operation of the item to be tested based on the target test case to generate a test report.

可选地,所述获取待测试项目信息,在所述数据库中获取与所述待测试项目信息匹配的目标测试用例的步骤包括:Optionally, in the described acquisition of the item information to be tested, the step of acquiring the target test case matching the item information to be tested in the database includes:

获取所述待测试项目信息中的项目需求,根据所述项目需求生成对应的测试需求;Obtain the project requirements in the project information to be tested, and generate corresponding test requirements according to the project requirements;

基于所述测试需求在所述数据库中获取与所述待测试项目信息匹配的目标测试用例。A target test case matching the information of the item to be tested is acquired from the database based on the test requirement.

可选地,所述基于所述测试需求在所述数据库中获取与所述待测试项目信息匹配的目标测试用例的步骤之后,包括:Optionally, after the step of obtaining the target test case matching the information of the item to be tested in the database based on the test requirement, the step includes:

若基于所述测试需求在所述数据库中未获取到与所述待测试项目信息匹配的目标测试用例,则发送所述目标测试用例的获取请求;If a target test case matching the information of the item to be tested is not obtained in the database based on the test requirement, sending a request for obtaining the target test case;

基于所述获取请求获取所述目标测试用例,并存储至所述数据库中。The target test case is acquired based on the acquisition request, and stored in the database.

可选地,所述基于所述目标测试用例执行待测试项目的测试操作以生成测试报告的步骤包括:Optionally, the step of performing a test operation of the item to be tested based on the target test case to generate a test report includes:

基于所述目标测试用例生成待测试列表,获取所述待测试列表中每一项的测试数据;Generate a to-be-tested list based on the target test case, and obtain test data for each item in the to-be-tested list;

基于所述每一项的测试数据执行所述待测试项目的测试操作以生成测试报告。A test operation of the item to be tested is performed based on the test data of each item to generate a test report.

可选地,所述基于所述目标测试用例执行待测试项目的测试操作以生成测试报告的步骤之后,包括:Optionally, after the step of performing the test operation of the item to be tested based on the target test case to generate a test report, the step includes:

获取所述测试报告中的测试结果,判断所述测试结果与预设的结果是否一致;Obtain the test results in the test report, and determine whether the test results are consistent with the preset results;

若所述测试结果与所述预设的结果一致,则将所述测试结果对应的数据存储至所述数据库中的测试用例表;If the test result is consistent with the preset result, the data corresponding to the test result is stored in the test case table in the database;

若所述测试结果与所述预设的结果不一致,则记录与所述预设的结果不一致的数据。If the test result is inconsistent with the preset result, record data inconsistent with the preset result.

此外,为实现上述目的,本申请另一方面还提供一种终端,所述终端包括存储器、处理器及存储在存储器上并在处理器上运行的测试用例的管理程序,所述处理器执行所述测试用例的管理程序时实现如上所述测试用例的管理方法的步骤。In addition, in order to achieve the above object, another aspect of the present application further provides a terminal, the terminal includes a memory, a processor, and a test case management program stored in the memory and running on the processor, and the processor executes all the test cases. When describing the test case management program, the steps to implement the above test case management method are described.

此外,为实现上述目的,本申请另一方面还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述测试用例的管理方法的步骤。In addition, in order to achieve the above purpose, another aspect of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the above test case is implemented steps of the management method.

本实施例通过获取测试用例的更新指令,根据更新指令对待更新的测试用例执行更新操作,进一步将已更新的测试用例进行审核操作,并对已更新且通过审核的测试用例存储至数据库中。通过及时将已更新且通过审核的测试用例及时存储至数据库中,使得用户在数据库中获取的测试用例是最新的版本。因此,解决了现有的测试用例管理不完善,导致出现测试用例覆盖不完全、多个不同测试用例版本同时存在以及信息混乱的问题,提高了测试用例的管理效率以及节约了测试人员的时间与成本。In this embodiment, the update instruction of the test case is obtained, the update operation is performed on the test case to be updated according to the update instruction, the updated test case is further reviewed, and the updated and reviewed test case is stored in the database. By timely storing the updated and approved test cases in the database, the test cases obtained by users in the database are the latest version. Therefore, it solves the problems of incomplete test case management, incomplete test case coverage, simultaneous existence of multiple different test case versions, and confusion of information, which improves the management efficiency of test cases and saves the time and cost of testers. cost.

附图说明Description of drawings

图1为本申请实施例方案涉及的硬件运行环境的终端结构示意图;FIG. 1 is a schematic structural diagram of a terminal of a hardware operating environment involved in a solution according to an embodiment of the present application;

图2为本申请测试用例的管理方法第一实施例的流程示意图;FIG. 2 is a schematic flowchart of the first embodiment of the management method of the test case of the application;

图3为本申请测试用例的管理方法第二实施例的流程示意图;FIG. 3 is a schematic flowchart of the second embodiment of the management method of the test case of the application;

图4为本申请测试用例的管理方法第三实施例的流程示意图;FIG. 4 is a schematic flowchart of the third embodiment of the management method of the test case of the present application;

图5为本申请测试用例的管理方法第四实施例的流程示意图;FIG. 5 is a schematic flowchart of a fourth embodiment of a management method for a test case of the present application;

图6为本申请测试用例的管理方法第五实施例的流程示意图;FIG. 6 is a schematic flowchart of the fifth embodiment of the management method of the test case of the present application;

图7为本申请测试用例的管理方法中获取所述更新操作得到的已更新的测试用例,执行所述已更新的测试用例的审核操作的流程示意图;FIG. 7 is a schematic flowchart of obtaining the updated test case obtained by the update operation in the test case management method of the application, and performing the review operation of the updated test case;

图8为本申请测试用例的管理方法中获取待测试项目信息,在所述数据库中获取与所述待测试项目信息匹配的目标测试用例的流程示意图;8 is a schematic flow chart of obtaining the information of the item to be tested in the management method of the test case of the application, and obtaining the target test case matching the information of the item to be tested in the database;

图9为本申请测试用例的管理方法中基于所述目标测试用例执行待测试项目的测试操作以生成测试报告的流程示意图。FIG. 9 is a schematic flowchart of performing a test operation of an item to be tested based on the target test case to generate a test report in the test case management method of the present application.

本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics and advantages of the purpose of the present application will be further described with reference to the accompanying drawings in conjunction with the embodiments.

具体实施方式Detailed ways

应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.

本申请实施例的主要解决方案是:获取测试用例的更新指令;根据所述更新指令确定待更新的测试用例以及所述待更新的测试用例对应的待更新的内容,基于所述待更新的内容对所述待更新的测试用例执行更新操作;获取所述更新操作得到的已更新的测试用例,执行所述已更新的测试用例的审核操作,并将通过所述审核操作的所述已更新的测试用例存储至数据库中。The main solutions of the embodiments of the present application are: obtaining an update instruction of the test case; determining the test case to be updated and the content to be updated corresponding to the test case to be updated according to the update instruction, and based on the content to be updated Perform an update operation on the test case to be updated; obtain the updated test case obtained by the update operation, perform an audit operation on the updated test case, and review the updated test case that has passed the audit operation. Test cases are stored in the database.

目前对于测试用例的管理还停留在人工操作excel表格、手动备份等,当测试用例进行新增、删除、修改等变更后,不能及时将更新的信息同步到所有相关人员,从而导致测试用例覆盖不完全、多个不同测试用例版本同时存在、信息混乱的问题。而本申请通过获取测试用例的更新指令,根据更新指令对待更新的测试用例执行更新操作,进一步将已更新的测试用例进行审核操作,并对已更新且通过审核的测试用例存储至数据库中。通过及时将已更新且通过审核的测试用例及时存储至数据库中,使得用户在数据库中获取的测试用例是最新版本的。因此,解决了现有的测试用例管理不完善,导致出现测试用例覆盖不完全、多个不同测试用例版本同时存在以及信息混乱的问题,提高了测试用例的管理效率以及节约了测试人员的时间与成本。At present, the management of test cases is still in manual operation of excel sheets, manual backup, etc. When test cases are added, deleted, modified, etc., the updated information cannot be synchronized to all relevant personnel in time, resulting in insufficient test case coverage. Complete, multiple different test case versions exist at the same time, and the information is confusing. The present application obtains the update instruction of the test case, performs the update operation on the test case to be updated according to the update instruction, further conducts the review operation on the updated test case, and stores the updated and approved test case in the database. By storing the updated and approved test cases in the database in time, the test cases obtained by the user in the database are the latest version. Therefore, it solves the problems of incomplete test case management, incomplete test case coverage, simultaneous existence of multiple different test case versions, and confusion of information, which improves the management efficiency of test cases and saves the time and cost of testers. cost.

如图1所示,图1为本申请实施例方案涉及的硬件运行环境的终端结构示意图。As shown in FIG. 1 , FIG. 1 is a schematic structural diagram of a terminal of a hardware operating environment involved in the solution of an embodiment of the present application.

如图1所示,该终端可以包括:处理器1001,例如CPU,网络接口1004,用户接口1003,存储器1005,通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG. 1 , the terminal may include: a processor 1001 , such as a CPU, a network interface 1004 , a user interface 1003 , a memory 1005 , and a communication bus 1002 . Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. Optionally, the network interface 1004 may include a standard wired interface and a wireless interface (eg, a WI-FI interface). The memory 1005 may be high-speed RAM memory, or may be non-volatile memory, such as disk memory. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001 .

可选地,终端还可以包括摄像头、RF(Radio Frequency,射频)电路,传感器、遥控器、音频电路、WiFi模块、检测器等等。当然,所述终端还可配置陀螺仪、气压计、湿度计、温度传感器等其他传感器,在此不再赘述。Optionally, the terminal may further include a camera, an RF (Radio Frequency, radio frequency) circuit, a sensor, a remote control, an audio circuit, a WiFi module, a detector, and the like. Of course, the terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a temperature sensor, etc., which will not be repeated here.

本领域技术人员可以理解,图1中示出的终端结构并不构成对终端设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the terminal structure shown in FIG. 1 does not constitute a limitation on the terminal device, and may include more or less components than the one shown, or combine some components, or arrange different components.

如图1所示,作为一种计算机可读存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及测试用例的管理程序。As shown in FIG. 1 , the memory 1005 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a test case management program.

在图1所示的终端中,网络接口1004主要用于连接后台服务器,与后台服务器进行数据通信;用户接口1003主要用于连接客户端(用户端),与客户端进行数据通信;而处理器1001可以用于调用存储器1005中存储的测试用例的管理程序,并执行以下操作:In the terminal shown in FIG. 1 , the network interface 1004 is mainly used to connect to the background server and perform data communication with the background server; the user interface 1003 is mainly used to connect to the client (client) and perform data communication with the client; and the processor 1001 can be used to invoke the test case management program stored in memory 1005 and perform the following operations:

获取测试用例的更新指令;Get the update instruction of the test case;

根据所述更新指令确定待更新的测试用例以及所述待更新的测试用例对应的待更新的内容,基于所述待更新的内容对所述待更新的测试用例执行更新操作;Determine the test case to be updated and the content to be updated corresponding to the test case to be updated according to the update instruction, and perform an update operation on the test case to be updated based on the content to be updated;

获取所述更新操作得到的已更新的测试用例,执行所述已更新的测试用例的审核操作,并将通过所述审核操作的所述已更新的测试用例存储至数据库中。The updated test case obtained by the update operation is acquired, the audit operation of the updated test case is performed, and the updated test case that has passed the audit operation is stored in a database.

参考图2,图2为本申请测试用例的管理方法第一实施例的流程示意图。Referring to FIG. 2 , FIG. 2 is a schematic flowchart of the first embodiment of the test case management method of the present application.

本申请实施例提供了测试用例的管理方法的实施例,需要说明的是,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。This embodiment of the present application provides an embodiment of a method for managing test cases. It should be noted that although the logical sequence is shown in the flowchart, in some cases, the shown sequence may be executed in a sequence different from that shown here. or the described steps.

测试用例的管理方法包括:Test case management methods include:

步骤S10,获取测试用例的更新指令;Step S10, obtaining the update instruction of the test case;

在软件产品的生命周期内,从产品的第一次新建到最终的下线,在这期间测试用例的数据库中将产生数量众多的测试用例,且由于测试需求或测试管理等原因,需要对数据库中的测试用例进行更新,在执行更新操作前,需要获取测试用例的更新指令。例如:基于测试项目需求的改变,数据库中的测试用例也需要做相应的修改、删除、增加或重新导入新的测试用例等,即需要对应获取测试用例的修改指令、删除指令、增加指令以及导入指令等。进一步,由于数据库中的测试用例对应不同的测试项目,且每个测试项目包括多个测试用例,例如以一个APP测试为例,在APP的开发过程中,需要用到回归测试用例、UI测试用例、接口测试用例、关键路径测试用例等测试用例。但是APP所用到的这些测试用例可能在其他测试项目上也需要用到,如支付平台的开发测试项目等;由于数据库中的测试用例多且类型不同,因此需要获取测试用例的分类管理指令,基于分类管理指令对数据库中的测试用例进行分类管理。其中,所述测试用例是在测试过程中很重要的一类文档,它是测试工作的核心、是一组在测试时输入输出的标准、是软件需求的具体对照,通过运行测试用例可以发现程序中的错误。During the life cycle of a software product, from the first creation of the product to the final offline, a large number of test cases will be generated in the test case database during this period. To update the test case in , before executing the update operation, you need to obtain the update instruction of the test case. For example, based on the change of the test project requirements, the test cases in the database also need to be modified, deleted, added or re-imported into new test cases, that is, the modification instructions, deletion instructions, addition instructions and import of the test cases need to be obtained correspondingly. instructions etc. Further, since the test cases in the database correspond to different test items, and each test item includes multiple test cases, for example, taking an APP test as an example, in the development process of the APP, regression test cases and UI test cases need to be used , interface test cases, critical path test cases and other test cases. However, these test cases used by the APP may also need to be used in other test projects, such as the development and test projects of the payment platform, etc. Since there are many test cases in the database and different types, it is necessary to obtain the classification management instructions of the test cases. The classification management instruction classifies and manages the test cases in the database. Among them, the test case is a very important type of document in the testing process, it is the core of the test work, a set of input and output standards during testing, and a specific comparison of software requirements. By running the test case, the program can be found errors in .

步骤S20,根据所述更新指令确定待更新的测试用例以及所述待更新的测试用例对应的待更新的内容,基于所述待更新的内容对所述待更新的测试用例执行更新操作;Step S20: Determine the test case to be updated and the content to be updated corresponding to the test case to be updated according to the update instruction, and perform an update operation on the test case to be updated based on the content to be updated;

由于数据库中的测试用例类型与数量多,因此,在获取到测试用例的更新指令时,需要对更新指令进行解析以确定待更新的测试用例以及待更新测试用例对应的待更新内容,进一步基于待更新的内容对待更新的测试用例执行更新操作。例如:当前获取到的是对支付平台页面中的UI测试用例的修改指令,则需要基于修改指令确定是对哪一个支付平台的UI测试用例进行修改,且修改的是那些内容。若基于修改指令获取到是对微信支付平台的显示界面增加余额显示字段,则需要在数据库中查找微信支付平台测试项目对应的UI测试用例,在UI测试用例中增加余额显示字段的代码,以完成UI测试用例的修改操作。Due to the large number and types of test cases in the database, when the update instruction of the test case is obtained, the update instruction needs to be parsed to determine the test case to be updated and the content to be updated corresponding to the test case to be updated. The updated content performs the update operation on the test case to be updated. For example, if the currently obtained modification instruction is for the UI test case in the payment platform page, it is necessary to determine which payment platform UI test case is to be modified based on the modification instruction, and what content is to be modified. If it is obtained based on the modification instruction that the balance display field is added to the display interface of the WeChat payment platform, you need to find the UI test case corresponding to the WeChat payment platform test project in the database, and add the code of the balance display field in the UI test case to complete the process. Modification of UI test cases.

步骤S30,获取所述更新操作得到的已更新的测试用例,执行所述已更新的测试用例的审核操作,并将通过所述审核操作的所述已更新的测试用例存储至数据库中。In step S30, the updated test case obtained by the update operation is acquired, the review operation of the updated test case is performed, and the updated test case that has passed the review operation is stored in a database.

测试用例管理系统获取更新操作得到的已更新的测试用例,执行已更新的测试用例的审核操作,并将通过审核操作的已更新的测试用例存储至数据库中;其中,所述已更新的测试用例是指已完成新增用例编写、测试用例修改、测试用例删除、测试用例导入、测试用例导出等常规的更新操作后得到的测试用例。为了确保已更新的测试用例的准确性与有效性,需要对已更新的测试用例执行审核操作,所述审核操作指审核人员对已更新的测试用例进行实际测试检验。具体的,采用已更新的测试用例对至少一个待测对象进行多次测试,根据多次测试的测试结果统计已更新的测试用例的测试正确率,如果测试正确率达到设定阈值,则将当前已更新的测试用例记为有效测试用例。例如:若已更新的测试用例用于测试移动终端闪屏的问题,则可采用已更新的测试用例对移动终端的闪屏用例事件进行多次测试,如果用户开机运行之后,移动终端的未出现闪屏现象,则记此次测试结果为通过审核或者为正确;如果移动终端的出现闪屏现象,则记此次测试结果为未通过审核或者为错误。进一步获取测试结果为通过审核或者为正确的已更新的测试用例,将已更新的测试用例存储至数据库中。需要说明的是,如果已更新的测试用例经过多次测试的测试正确率为98%,设定阈值为95%,测试正确率高于设定阈值,则说明已更新的测试用例为有效的测试用例。The test case management system obtains the updated test case obtained by the update operation, performs the audit operation of the updated test case, and stores the updated test case that has passed the audit operation in the database; wherein, the updated test case Refers to the test cases obtained after completing routine update operations such as adding new use cases, modifying test cases, deleting test cases, importing test cases, and exporting test cases. In order to ensure the accuracy and validity of the updated test case, an audit operation needs to be performed on the updated test case, and the audit operation refers to the actual test inspection performed by the auditor on the updated test case. Specifically, the updated test case is used to test at least one object to be tested multiple times, and the test accuracy rate of the updated test case is counted according to the test results of the multiple tests. If the test accuracy rate reaches the set threshold, the current The updated test case is recorded as a valid test case. For example: if the updated test case is used to test the problem of the mobile terminal splash screen, the updated test case can be used to test the splash screen use case event of the mobile terminal multiple times. If the screen flickering phenomenon occurs, the test result is recorded as passing the review or correct; if the mobile terminal has the screen flickering phenomenon, the test result is recorded as failing the review or error. Further acquisition of the test results is to pass the review or to be the correct updated test case, and store the updated test case in the database. It should be noted that if the test accuracy rate of the updated test case is 98% after multiple tests, the set threshold is 95%, and the test accuracy rate is higher than the set threshold, it means that the updated test case is a valid test. Example.

进一步地,参考图7,所述获取所述更新操作得到的已更新的测试用例,执行所述已更新的测试用例的审核操作的步骤包括:Further, referring to FIG. 7 , the step of obtaining the updated test case obtained by the update operation, and performing the review operation of the updated test case includes:

步骤S31,在获取到所述已更新的测试用例时,开启所述已更新的测试用例的审核流程;Step S31, when the updated test case is obtained, start the review process of the updated test case;

步骤S32,基于所述审核流程向审核人员发送审核指令,以使所述审核人员根据所述审核指令对所述已更新的测试用例进行审核。Step S32, sending an audit instruction to an auditor based on the audit process, so that the auditor can audit the updated test case according to the audit instruction.

测试用例管理系统在获取到已更新的测试用例时,发起已更新的测试用例的审核流程,进一步根据审核流程向各个审核人员发送审核指令,使得审核人员根据接收到的审核指令对已更新的测试用例进行审核。其中,所述审核人员包括测试组长、产品经理、开发设计师等相关的审核人员,同时还可以进行同行审核、小组审核、部门审核和第三方审核等。具体地,测试管理系统在检测到已更新的测试用例时,发起测试用例的审核流程,自动向各个审核人员发送审核指令,其中,所述审核指令可以是以邮件的方式发送或者是短信的方式发送,且需要附带有测试用例的相关文档。审核人员在接收到审核指令后,对已更新的测试用例进行验证操作,例如判断测试用例设计的结构安排是否清晰、合理,是否利于高效对需求进行覆盖、优先级安排是否合理、是否覆盖测试需求上的所有功能点以及测试用例是否具有很好的可执行性等。在审核完成后,生成对应的审核报告,并将所述审核报告上传至测试管理系统中,其中,所述审核报告包括审核依据、审核结果、审核人的相关信息、测试用例修改信息等。When the test case management system obtains the updated test case, it initiates the review process of the updated test case, and further sends the review instruction to each reviewer according to the review process, so that the reviewer can perform the updated test according to the received review instruction. Use cases are reviewed. Among them, the reviewers include test team leaders, product managers, development designers and other related reviewers, and can also conduct peer review, group review, department review, and third-party review. Specifically, when the test management system detects an updated test case, it initiates the review process of the test case, and automatically sends the review instruction to each reviewer, wherein the review instruction may be sent by email or by short message Send, and need to be accompanied by the relevant documentation of the test case. After receiving the audit instruction, the auditor will verify the updated test case, such as judging whether the structural arrangement of the test case design is clear and reasonable, whether it is conducive to efficiently covering the requirements, whether the priority arrangement is reasonable, and whether the test requirements are covered. All function points on the test case and whether the test case has good executable, etc. After the audit is completed, a corresponding audit report is generated, and the audit report is uploaded to the test management system, wherein the audit report includes the audit basis, the audit result, the relevant information of the auditor, the modification information of the test case, and the like.

本实施例通过获取测试用例的更新指令,根据更新指令对待更新的测试用例执行更新操作,进一步将已更新的测试用例进行审核操作,并对已更新且通过审核的测试用例存储至数据库中。通过及时将已更新且通过审核的测试用例及时存储至数据库中,使得用户在数据库中获取的测试用例是最新的版本。因此,解决了现有的测试用例管理不完善,导致出现测试用例覆盖不完全、多个不同测试用例版本同时存在以及信息混乱的问题,提高了测试用例的管理效率以及节约了测试人员的时间与成本。In this embodiment, the update instruction of the test case is obtained, the update operation is performed on the test case to be updated according to the update instruction, the updated test case is further reviewed, and the updated and reviewed test case is stored in the database. By timely storing the updated and approved test cases in the database, the test cases obtained by users in the database are the latest version. Therefore, it solves the problems of incomplete test case management, incomplete test case coverage, simultaneous existence of multiple different test case versions, and confusion of information, which improves the management efficiency of test cases and saves the time and cost of testers. cost.

进一步地,参考图3,提出本申请测试用例的管理方法第二实施例。Further, referring to FIG. 3 , a second embodiment of the method for managing test cases of the present application is proposed.

所述测试用例的管理方法第二实施例与所述测试用例的管理方法第一实施例的区别在于,所述基于所述审核流程向审核人员发送审核指令,以使所述审核人员根据所述审核指令对所述已更新的测试用例进行审核的步骤之后,包括:The difference between the second embodiment of the test case management method and the first embodiment of the test case management method is that the review instruction is sent to the reviewer based on the review process, so that the reviewer can After the steps of the review instruction to review the updated test case, include:

步骤S320,获取未通过审核的所述已更新的测试用例以及审核的结果信息;Step S320, obtaining the updated test case that has not passed the review and the result information of the review;

步骤S321,将所述未通过审核的所述已更新的测试用例以及所述审核的结果信息发送至对应的测试人员,以使所述测试人员根据所述审核的结果信息对所述未通过审核的所述已更新的测试用例进行修改。Step S321, sending the updated test case that has not passed the review and the result information of the review to the corresponding tester, so that the tester can check the failed review according to the result information of the review. The updated test case is modified.

当测试用例管理系统获取到未通过审核的已更新的测试用例时,进一步获取对应的审核的结果信息,向测试人员发送测试用例的修改指令,并将未通过审核的已更新的测试用例以及审核的结果信息发送至对应的测试人员;其中,所述测试人员为在测试管理系统中进行更新测试用例的用户。测试人员在接收到修改指令后,根据审核的结果信息对未通过审核的已更新的测试用例重新进行修改。例如,当前获取到通信连接测试用例未通过审核时,则进一步获取通信连接测试用例对应更新的测试人员,向测试人员发送修改指令以及审核的结果信息;若测试人员在审核的结果信息中获取到通信连接测试用例未能成功测试手机的通信连接是否成功,则需要对通信连接测试用例进行修改。When the test case management system obtains the updated test case that has not passed the review, it further obtains the corresponding review result information, sends the test case modification instruction to the tester, and sends the updated test case that has not passed the review to the review. The result information is sent to the corresponding tester; wherein, the tester is the user who updates the test case in the test management system. After receiving the modification instruction, the tester re-modifies the updated test case that has not passed the review according to the review result information. For example, when it is currently obtained that the communication connection test case fails the review, it will further obtain the updated tester corresponding to the communication connection test case, and send the modification instruction and review result information to the tester; if the tester obtains the result information in the review result If the communication connection test case fails to test whether the communication connection of the mobile phone is successful, the communication connection test case needs to be modified.

本实施例通过对未通过审核的测试用例重新发送至测试人员进行修改,保证了测试用例的有效性和准确性。This embodiment ensures the validity and accuracy of the test cases by resending the test cases that have not passed the review to the testers for modification.

进一步地,参考图4,提出本申请测试用例的管理方法第三实施例。Further, referring to FIG. 4 , a third embodiment of the method for managing test cases of the present application is proposed.

所述测试用例的管理方法第三实施例与所述测试用例的管理方法第一实施例和第二实施例的区别在于,所述获取所述更新操作得到的已更新的测试用例,执行所述已更新的测试用例的审核操作,并将通过所述审核操作的所述已更新的测试用例存储至数据库中的步骤之后,包括:The difference between the third embodiment of the test case management method and the first embodiment and the second embodiment of the test case management method is that the acquisition of the updated test case obtained by the update operation, the execution of the The review operation of the updated test case, and after the step of storing the updated test case that has passed the review operation in the database, includes:

步骤S40,获取待测试项目信息,在所述数据库中获取与所述待测试项目信息匹配的目标测试用例,所述目标测试用例为预先存储至所述数据库中的已更新且通过审核的测试用例;Step S40, obtain the information of the item to be tested, obtain the target test case matching the information of the item to be tested in the database, and the target test case is the updated and approved test case stored in the database in advance ;

测试项目中的软件产品需要进行测试以及验证软件产品的性能之后,才能将软件产品投入使用,针对不同的测试需求,需要选择满足测试需求的测试用例。因此,在获取到待测试项目信息时,需要在数据库中获取与待测试项目信息匹配的目标测试用例;其中,所述待测试项目信息包括项目名称、项目标识、软件版本、存放路径等;所述目标测试用例为预先存储至数据库中的已更新且通过审核的测试用例。具体地,在测试管理系统中设置有测试项目信息的填写模板,用户在填写模板中填写待测试项目的相关信息,如项目名称、项目标志、项目需求、项目属性、项目标签等;进一步从填写模板中获取待测试项目信息,并将待测试项目信息与数据库中的存储的测试用例信息进行匹配,所述测试用例信息包括:用例标识、用例名称、测试目的、测试级别、参考信息、测试环境、前提条件、测试步骤、预期结果、设计人员等。例如,可以根据待测试项目信息中的项目名称和项目标志分别与测试用例信息中的用例名称和用例标志本进行匹配,从而得到与待测试项目信息匹配的测试用例,即目标测试用例。可选地,若基于匹配操作匹配到多个相似的测试用例时,则向用户发送测试用例的选择信息,或者在多个测试用例中选择测试级别最高的或更新时间最新的测试用例。The software product in the test project needs to be tested and the performance of the software product is verified before the software product can be put into use. According to different test requirements, it is necessary to select test cases that meet the test requirements. Therefore, when acquiring the information of the item to be tested, it is necessary to obtain the target test case matching the information of the item to be tested in the database; wherein, the information of the item to be tested includes the item name, the item identifier, the software version, the storage path, etc.; The target test case mentioned above is the updated and approved test case stored in the database in advance. Specifically, the test management system is provided with a test project information filling template, and the user fills in the relevant information of the project to be tested in the filling template, such as project name, project logo, project requirements, project attributes, project labels, etc.; Obtain the item information to be tested in the template, and match the item information to be tested with the test case information stored in the database, where the test case information includes: use case identification, use case name, test purpose, test level, reference information, test environment , Preconditions, Test Steps, Expected Results, Designers, etc. For example, the item name and item identifier in the item information to be tested can be matched with the case name and case tag in the test case information respectively, so as to obtain the test case matching the item information to be tested, that is, the target test case. Optionally, if multiple similar test cases are matched based on the matching operation, the selection information of the test case is sent to the user, or the test case with the highest test level or the test case with the latest update time is selected from the multiple test cases.

进一步地,参考图8,所述获取待测试项目信息,在所述数据库中获取与所述待测试项目信息匹配的目标测试用例的步骤包括:Further, with reference to Figure 8, the described acquisition of the item information to be tested, the step of acquiring the target test case matching the item to be tested information in the database includes:

步骤S41,获取所述待测试项目信息中的项目需求,根据所述项目需求生成对应的测试需求;Step S41, obtaining the project requirements in the project information to be tested, and generating corresponding test requirements according to the project requirements;

步骤S42,基于所述测试需求在所述数据库中获取与所述待测试项目信息匹配的目标测试用例。In step S42, a target test case matching the information of the item to be tested is acquired from the database based on the test requirement.

获取所述项目信息中的项目需求,根据所述项目需求生成对应的测试需求;其中,所述项目需求包括用户提交的软件测试需求信息、软件功能需求文档以及预期输出的结果信息。具体地,用户需要在测试用例管理系统中的填写模板按照系统提示提供上述必要信息,其他详细需求信息都包含在软件测试需求信息文档里。其中,每个文档里包括多个测试任务,例如:待测试项目为手机APP的测试,其测试任务是:在无网络情况可以浏览本地数据;当客户端有新版本时,有更新提示;有用到定位服务、照相机服务的地方,需要进行前后台的切换测试,检查应用是否正常;检查push消息是否按照指定的业务规则发送等。进一步根据待测试项目的项目需求生成对应的测试需求,所述测试需求与项目需求一一对应,以便于测试用例管理系统进行识别。基于测试需求在数据库中获取与待测试项目信息匹配的目标测试用例,如根据项目名称获取数据库中匹配的测试用例。The project requirements in the project information are acquired, and corresponding test requirements are generated according to the project requirements; wherein, the project requirements include software test requirement information submitted by users, software function requirement documents, and expected output result information. Specifically, the user needs to provide the above necessary information according to the system prompts in the filling template in the test case management system, and other detailed requirement information is included in the software testing requirement information document. Among them, each document includes multiple test tasks, for example: the test item to be tested is the test of the mobile phone APP, and the test task is: when there is no network, you can browse the local data; when the client has a new version, there is an update prompt; useful When it comes to location services and camera services, it is necessary to perform a front-end and back-end switching test to check whether the application is normal; check whether the push message is sent according to the specified business rules, etc. Further, corresponding test requirements are generated according to the project requirements of the project to be tested, and the test requirements and the project requirements are in one-to-one correspondence, so as to facilitate identification by the test case management system. Based on the test requirements, the target test cases matching the information of the project to be tested are obtained in the database, for example, the matching test cases in the database are obtained according to the project name.

步骤S50,基于所述目标测试用例执行待测试项目的测试操作以生成测试报告。Step S50: Execute a test operation of the item to be tested based on the target test case to generate a test report.

获取目标测试用例,基于目标测试用例对待测试项目执行测试操作,基于测试操作生成测试报告;具体地,若当前获取到待测试项目对应匹配的测试用例有10条,则需要将这10条测试用例分别运行一次,因此,待测试项目需要运行10次的测试操作。例如在这10条测试用例中包括3条的连接测试、2条的界面测试以及5条的防火墙的测试,在执行测试时,按照内设的测试顺序依次执行每条测试用例的测试操作。进一步,获取执行每一次测试操作后得到的测试报告,将同一测试内容生成的测试报告存储至相同的位置,如预先针对不同的测试内容建立不同的文件夹,所述文件夹用于存储测试操作得到的测试报告;其中,所述测试报告以表格或者其他形式文档记载测试内容。可选地,所述测试报告可以生成超链接的形式,当点击超链接时,可以进入到以表格或者其他形式文档记载测试内容,其中,测试报告中记载的测试内容包括测试的每个步骤以及每个测试步骤的耗时时间以及总耗时时间、单个步骤执行情况、测试方法、测试人员名称、测试次数等。Obtain the target test case, perform the test operation on the item to be tested based on the target test case, and generate a test report based on the test operation; specifically, if there are currently 10 matching test cases corresponding to the item to be tested, you need to convert these 10 test cases Each is run once, so the project to be tested needs to run 10 test operations. For example, the 10 test cases include 3 connection tests, 2 interface tests, and 5 firewall tests. When executing the tests, the test operations of each test case are executed in sequence according to the built-in test sequence. Further, obtain the test report obtained after each test operation is performed, and store the test report generated by the same test content in the same location, such as establishing different folders for different test contents in advance, and the folder is used to store the test operation. The obtained test report; wherein, the test report records the test content in a table or other forms of documents. Optionally, the test report can be in the form of a hyperlink, and when clicking on the hyperlink, you can enter and document the test content in a table or other forms, wherein the test content recorded in the test report includes each step of the test and The time-consuming and total time-consuming of each test step, the execution of a single step, the test method, the name of the tester, the number of tests, etc.

进一步地,参考图9,所述基于所述目标测试用例执行待测试项目的测试操作以生成测试报告的步骤包括:Further, with reference to FIG. 9 , the step of executing the test operation of the item to be tested based on the target test case to generate a test report includes:

步骤S51,基于所述目标测试用例生成待测试列表,获取所述待测试列表中每一项的测试数据;Step S51, generating a list to be tested based on the target test case, and acquiring the test data of each item in the list to be tested;

步骤S52,基于所述每一项的测试数据执行所述待测试项目的测试操作以生成测试报告。Step S52: Execute a test operation of the item to be tested based on the test data of each item to generate a test report.

测试用例管理系统在确定待测试项目对应的目标测试用例时,根据目标测试用例生成待测试列表,进一步获取待测试列表中每一项的测试数据,基于每一项的测试数据执行待测试项目的测试操作,并生成对应的测试报告。其中,由于待测试项目需要测试的内容包括很多,因此,对应匹配的目标测试用例可包括多个。具体地,以测试一个手机APP为例,测试手机APP时,需要测试的内容包括:安装卸载测试、功能用例测试、用户体验测试、更新升级测试以及数据库设计测试等,而每个测试内容的包括不同的测试需求,需要将不同的测试需求以表格的形式记载以生成待测试列表;在待测试列表中可以读取待测试项目中所有的测试需求,且每一个测试需求已匹配有对应的测试用例。例如在数据库设计测试中包括一般的增、删、改、查测试;在业务需要从服务端取回数据保存到客户端的时候,客户端能否将数据保存到本地;当业务对数据进行了修改、删除后,客户端和服务端是否会有相应的更新等测试需求。在执行测试操作时,从头到尾遍历待测试列表,获取每一项的测试数据,进一步根据每一项的测试数据执行待测试项目的测试操作,如获取测试数据中的测试步骤,根据测试步骤执行每一步的测试操作,其中,每一项的测试数据可进行多次测试。记录每一项测试数据对应的测试结果,生成对应的测试报告。When determining the target test case corresponding to the item to be tested, the test case management system generates a list to be tested according to the target test case, further obtains the test data of each item in the list to be tested, and executes the test data of the item to be tested based on the test data of each item. Test operations and generate corresponding test reports. Wherein, since the items to be tested include many contents to be tested, the corresponding matching target test cases may include multiple ones. Specifically, taking the test of a mobile APP as an example, when testing a mobile APP, the content to be tested includes: installation and uninstallation test, functional use case test, user experience test, update and upgrade test, and database design test, etc., and each test content includes Different test requirements need to be recorded in the form of a table to generate a to-be-tested list; in the to-be-tested list, all the test requirements in the project to be tested can be read, and each test requirement has been matched with a corresponding test Example. For example, the database design test includes general addition, deletion, modification, and query tests; when the business needs to retrieve data from the server and save it to the client, whether the client can save the data locally; when the business modifies the data , After deletion, will the client and server have corresponding update and other test requirements. When performing the test operation, traverse the list to be tested from beginning to end, obtain the test data of each item, and further perform the test operation of the item to be tested according to the test data of each item, such as obtaining the test steps in the test data, according to the test steps Execute the test operation of each step, wherein the test data of each item can be tested multiple times. Record the test results corresponding to each test data, and generate the corresponding test report.

本实施例通过获取待测试项目中的项目需求,根据项目需求生成对应的测试需求以及获取与测试需求匹配的目标测试用例,进一步根据目标测试用例生成的待测试列表执行测试操作生成测试报告。基于项目需求为不同项目配置不同测试用例,无需测试人员盲目翻找文件,实现自动匹配项目测试用例,并能同步管理测试结论,提高了工作效率,节省人力成本。In this embodiment, the project requirements in the project to be tested are acquired, corresponding test requirements are generated according to the project requirements, and target test cases matching the test requirements are acquired, and a test operation is further performed according to the to-be-tested list generated by the target test cases to generate a test report. Configure different test cases for different projects based on project requirements, without the need for testers to blindly rummage through files, automatically match project test cases, and manage test conclusions synchronously, improving work efficiency and saving labor costs.

进一步地,参考图5,提出本申请测试用例的管理方法第四实施例。Further, referring to FIG. 5 , a fourth embodiment of the method for managing test cases of the present application is proposed.

所述测试用例的管理方法第四实施例与所述测试用例的管理方法第一实施例、第二实施例和第三实施例的区别在于,所述基于所述测试需求在所述数据库中获取与所述待测试项目信息匹配的目标测试用例的步骤之后,包括:The difference between the fourth embodiment of the test case management method and the first embodiment, the second embodiment and the third embodiment of the test case management method is that the acquisition based on the test requirement in the database After the steps of the target test case matching the information of the item to be tested, include:

步骤S420,若基于所述测试需求在所述数据库中未获取到与所述待测试项目信息匹配的目标测试用例,则发送所述目标测试用例的获取请求;Step S420, if a target test case matching the information of the item to be tested is not obtained in the database based on the test requirement, send an acquisition request for the target test case;

步骤S421,基于所述获取请求获取所述目标测试用例,并存储至所述数据库中。Step S421: Obtain the target test case based on the obtaining request, and store it in the database.

若测试用例管理系统基于测试需求在数据库中未获取到与待测试项目信息匹配的目标测试用例,则向测试人员发送目标测试用例的获取请求,其中,所述获取请求包括待测试项目的测试需求以及期望实现的效果等。测试人员在接收到目标测试用例的获取请求时,根据获取请求中的请求信息编写测试用例,并将编写完成的测试用例上传至测试管理系统,当该测试用例审核通过且达到预期的测试结果,则将该测试用例存储至数据库。可选地,测试人员可以在测试管理系统中检索与目标测试用例近似的测试用例,在对近似的测试用例进行修改,形成需要的目标测试用例,避免了测试人员重新编写测试用例,节约了测试人员的时间。If the test case management system does not obtain a target test case matching the information of the item to be tested in the database based on the test requirements, it sends an acquisition request of the target test case to the tester, wherein the acquisition request includes the test requirements of the item to be tested and desired effects. When the tester receives the acquisition request of the target test case, he writes the test case according to the request information in the acquisition request, and uploads the completed test case to the test management system. When the test case is approved and the expected test result is achieved, Then store the test case to the database. Optionally, testers can retrieve test cases that are similar to the target test cases in the test management system, and modify the similar test cases to form the required target test cases, which avoids the tester from rewriting test cases and saves testing. staff time.

本实施例在未获取到完全匹配的目标测试用例时,则获取向测试人员发送目标测试用例的获取指令,以使测试人员基于获取指令及时反馈对应的目标测试用例,保证了待测试项目的测试需求。In this embodiment, when a completely matching target test case is not obtained, an acquisition instruction for sending the target test case to the tester is acquired, so that the tester can timely feedback the corresponding target test case based on the acquisition instruction, so as to ensure the test of the item to be tested. need.

进一步地,参考图6,提出本申请测试用例的管理方法第五实施例。Further, referring to FIG. 6 , a fifth embodiment of the method for managing test cases of the present application is proposed.

所述测试用例的管理方法第五实施例与其他所述测试用例的管理方法的实施例的区别在于,所述基于所述目标测试用例执行待测试项目的测试操作以生成测试报告的步骤之后,包括:The difference between the fifth embodiment of the test case management method and other embodiments of the test case management method is that after the step of performing the test operation of the item to be tested based on the target test case to generate a test report, include:

步骤S53,获取所述测试报告中的测试结果,判断所述测试结果与预设的结果是否一致;Step S53, obtaining the test result in the test report, and judging whether the test result is consistent with the preset result;

步骤S54,若所述测试结果与所述预设的结果一致,则将所述测试结果对应的数据存储至所述数据库中的测试用例表;Step S54, if the test result is consistent with the preset result, then store the data corresponding to the test result in the test case table in the database;

步骤S55,若所述测试结果与所述预设的结果不一致,则记录与所述预设的结果不一致的数据。Step S55, if the test result is inconsistent with the preset result, record the data inconsistent with the preset result.

测试管理系统在完成测试操作时,会自动获取测试报告中的测试结果,判断所述测试结果与预设的结果是否一致。其中,每一个测试用例对应生成一个测试结果,即分别判断获取到的每一个测试用例的测试结果与其对应的预设的的结果是否一致。例如,待测试项目中的测试用例A对应的预期的结果为“abc”实际获取到的测试结果为“abc”,则说明当前的测试结果与预设的结果一致;这时,测试管理系统会自动测试成功的数据保存至数据库中的测试用例表。若当前获取到的测试结果为“abcd”,则说明当前的测试结果与预设的结果不一致,测试管理系统在测试用例失败时会发出测试失败的通知并标记测试失败的测试用例,并记录测试失败用例中与预设的结果不一致的数据,方便测试人员做修改。When the test management system completes the test operation, it will automatically acquire the test results in the test report, and determine whether the test results are consistent with the preset results. Wherein, each test case generates a corresponding test result, that is, it is determined whether the obtained test result of each test case is consistent with the corresponding preset result. For example, if the expected result corresponding to test case A in the project to be tested is "abc" and the actual obtained test result is "abc", it means that the current test result is consistent with the preset result; at this time, the test management system will The successful data of the automatic test is saved to the test case table in the database. If the currently obtained test result is "abcd", it means that the current test result is inconsistent with the preset result. When the test case fails, the test management system will issue a test failure notification, mark the failed test case, and record the test. The data in the failed use case that is inconsistent with the preset result is convenient for testers to modify.

本实施例判断测试结果与预设的结果是否一致,若一致,则将测试成功用例对应的数据存储在测试用例表;若不一致,则记录与预设的结果不一致的数据。通过判断测试结果与预设的结果是否一致,使得可以及时发现失败的测试用例,提高管理的效率。This embodiment judges whether the test result is consistent with the preset result, and if so, stores the data corresponding to the successful test case in the test case table; if not, records the data inconsistent with the preset result. By judging whether the test results are consistent with the preset results, the failed test cases can be found in time, and the management efficiency can be improved.

此外,本申请还提供一种终端,所述终端包括存储器、处理器及存储在存储器上并在处理器上运行的测试用例的管理程序,通过在终端上操作新增测试用例、修改测试用例、批量导入测试用例、测试用例评审、测试用例入库备份、测试用例分类匹配管理等,使得无需测试人员通过excel表格编写测试用例,实现了测试用例实时同步更新至所有相关人员,保证所有人员拿到的测试用例都是最新的同一版本;进一步,终端根据项目需求,为不同项目配置不同的测试用例,无需测试人员盲目翻找文件,当测试人员测试具体某一项目时,只需选择该项目名称、项目标识等信息即可自动匹配项目测试用例,并能同步管理测试结论,提高了工作效率,节省人力成本。In addition, the present application also provides a terminal. The terminal includes a memory, a processor, and a management program for test cases stored in the memory and running on the processor. By operating on the terminal, new test cases are added, test cases are modified, and test cases are modified. Batch import of test cases, test case review, test case storage backup, test case classification and matching management, etc., make it unnecessary for testers to write test cases through excel sheets, and realize real-time synchronization and update of test cases to all relevant personnel, ensuring that all personnel get All test cases are the latest and the same version; further, the terminal configures different test cases for different projects according to the project requirements, without the need for testers to blindly look for files, when testers test a specific project, just select the project name , project identification and other information can automatically match project test cases, and can manage test conclusions synchronously, improve work efficiency and save labor costs.

此外,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述测试用例的管理方法的步骤。In addition, the present application also provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned test case management method are implemented.

本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by those skilled in the art, the embodiments of the present application may be provided as a method, a system, or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.

应当注意的是,在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的部件或步骤。位于部件之前的单词“一”或“一个”不排除存在多个这样的部件。本申请可以借助于包括有若干不同部件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that, in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not preclude the presence of a plurality of such elements. The present application may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. do not denote any order. These words can be interpreted as names.

尽管已描述了本申请的可选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括可选实施例以及落入本申请范围的所有变更和修改。While alternative embodiments of the present application have been described, additional changes and modifications to these embodiments may occur to those skilled in the art once the basic inventive concepts are known. Therefore, the appended claims are intended to be construed to include alternative embodiments and all changes and modifications that fall within the scope of the present application.

显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims (10)

1. A management method for test cases is characterized in that the method comprises the following steps:
acquiring an updating instruction of a test case;
determining a test case to be updated and content to be updated corresponding to the test case to be updated according to the updating instruction, and executing an updating operation on the test case to be updated based on the content to be updated;
and acquiring the updated test case obtained by the updating operation, executing the auditing operation of the updated test case, and storing the updated test case passing the auditing operation into a database.
2. The method according to claim 1, wherein the step of obtaining the updated test case obtained by the update operation and executing the audit operation of the updated test case includes:
when the updated test case is obtained, starting an auditing process of the updated test case;
and sending an auditing instruction to an auditor based on the auditing process so that the auditor can audit the updated test case according to the auditing instruction.
3. The method for managing the test cases according to claim 2, wherein the step of sending an audit instruction to an auditor based on the audit flow so that the auditor performs the audit on the updated test cases according to the audit instruction includes:
acquiring the updated test cases which do not pass the examination and the examination result information;
and sending the updated test case which does not pass the audit and the result information of the audit to corresponding testers so that the testers can modify the updated test case which does not pass the audit according to the result information of the audit.
4. The method according to claim 1, wherein after the steps of obtaining the updated test case obtained by the update operation, performing an audit operation on the updated test case, and storing the updated test case that passes the audit operation in a database, the method comprises:
acquiring information of items to be tested, and acquiring a target test case matched with the information of the items to be tested in the database, wherein the target test case is an updated and approved test case which is stored in the database in advance;
and executing the test operation of the item to be tested based on the target test case to generate a test report.
5. The method for managing test cases according to claim 4, wherein the step of obtaining the information of the items to be tested and obtaining the target test case matched with the information of the items to be tested in the database comprises:
acquiring a project requirement in the to-be-tested project information, and generating a corresponding test requirement according to the project requirement;
and acquiring a target test case matched with the to-be-tested project information in the database based on the test requirement.
6. The method for managing test cases according to claim 5, wherein the step of obtaining the target test case matching the information of the item to be tested in the database based on the test requirement includes:
if a target test case matched with the to-be-tested item information is not obtained in the database based on the test requirement, sending an obtaining request of the target test case;
and acquiring the target test case based on the acquisition request, and storing the target test case in the database.
7. The method for managing test cases according to claim 3, wherein the step of executing a test operation of a to-be-tested item based on the target test case to generate a test report includes:
generating a to-be-tested list based on the target test case, and acquiring test data of each item in the to-be-tested list;
and executing the test operation of the item to be tested based on the test data of each item to generate a test report.
8. The method for managing test cases according to claim 3, wherein after the step of executing the test operation of the item to be tested based on the target test case to generate the test report, the method comprises:
obtaining a test result in the test report, and judging whether the test result is consistent with a preset result;
if the test result is consistent with the preset result, storing the data corresponding to the test result into a test case table in the database;
and if the test result is inconsistent with the preset result, recording data inconsistent with the preset result.
9. A terminal comprising a memory, a processor and a hypervisor of test cases stored on the memory and running on the processor, the processor implementing the steps of the method of any of claims 1 to 8 when executing the hypervisor of test cases.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 8.
CN202010933235.1A 2020-09-07 2020-09-07 Test case management method, terminal and storage medium Active CN112069073B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010933235.1A CN112069073B (en) 2020-09-07 2020-09-07 Test case management method, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010933235.1A CN112069073B (en) 2020-09-07 2020-09-07 Test case management method, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN112069073A true CN112069073A (en) 2020-12-11
CN112069073B CN112069073B (en) 2024-12-03

Family

ID=73664189

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010933235.1A Active CN112069073B (en) 2020-09-07 2020-09-07 Test case management method, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN112069073B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112783760A (en) * 2020-12-22 2021-05-11 深圳前海微众银行股份有限公司 Test case processing method and device and storage medium
CN113806362A (en) * 2021-08-23 2021-12-17 网易(杭州)网络有限公司 Test record information generation method and device, computer equipment and storage medium
CN114356746A (en) * 2021-10-29 2022-04-15 上海航天计算机技术研究所 Document information maintenance method
CN114374534A (en) * 2021-12-08 2022-04-19 山石网科通信技术股份有限公司 Test sample set updating method and device and electronic equipment
CN114756466A (en) * 2022-04-21 2022-07-15 中国信息通信研究院 A test case acquisition method, device and storage medium
CN115017040A (en) * 2022-05-31 2022-09-06 苏州浪潮智能科技有限公司 Test case screening method and system, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661580A (en) * 2009-07-22 2010-03-03 中国农业银行股份有限公司 Method and system for testing software
CN103313289A (en) * 2012-03-09 2013-09-18 腾讯科技(深圳)有限公司 Wap system automatic test system and method
CN107908566A (en) * 2017-11-27 2018-04-13 平安科技(深圳)有限公司 Automatic test management method, device, terminal device and storage medium
CN108038052A (en) * 2017-11-27 2018-05-15 平安科技(深圳)有限公司 Automatic test management method, device, terminal device and storage medium
CN109359039A (en) * 2018-09-30 2019-02-19 福建星瑞格软件有限公司 A method of promoting Sahi automatic test efficiency
WO2019218444A1 (en) * 2018-05-14 2019-11-21 平安科技(深圳)有限公司 Test report generating method, apparatus and device, and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661580A (en) * 2009-07-22 2010-03-03 中国农业银行股份有限公司 Method and system for testing software
CN103313289A (en) * 2012-03-09 2013-09-18 腾讯科技(深圳)有限公司 Wap system automatic test system and method
CN107908566A (en) * 2017-11-27 2018-04-13 平安科技(深圳)有限公司 Automatic test management method, device, terminal device and storage medium
CN108038052A (en) * 2017-11-27 2018-05-15 平安科技(深圳)有限公司 Automatic test management method, device, terminal device and storage medium
WO2019218444A1 (en) * 2018-05-14 2019-11-21 平安科技(深圳)有限公司 Test report generating method, apparatus and device, and storage medium
CN109359039A (en) * 2018-09-30 2019-02-19 福建星瑞格软件有限公司 A method of promoting Sahi automatic test efficiency

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李黎明: "软件测试管理体系的建设", 物流技术与应用, no. 12, 10 December 2015 (2015-12-10), pages 159 - 164 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112783760A (en) * 2020-12-22 2021-05-11 深圳前海微众银行股份有限公司 Test case processing method and device and storage medium
CN112783760B (en) * 2020-12-22 2024-05-28 深圳前海微众银行股份有限公司 Processing method and device for test cases and storage medium
CN113806362A (en) * 2021-08-23 2021-12-17 网易(杭州)网络有限公司 Test record information generation method and device, computer equipment and storage medium
CN114356746A (en) * 2021-10-29 2022-04-15 上海航天计算机技术研究所 Document information maintenance method
CN114374534A (en) * 2021-12-08 2022-04-19 山石网科通信技术股份有限公司 Test sample set updating method and device and electronic equipment
CN114374534B (en) * 2021-12-08 2024-04-02 山石网科通信技术股份有限公司 Test sample set updating method and device and electronic equipment
CN114756466A (en) * 2022-04-21 2022-07-15 中国信息通信研究院 A test case acquisition method, device and storage medium
CN115017040A (en) * 2022-05-31 2022-09-06 苏州浪潮智能科技有限公司 Test case screening method and system, electronic equipment and storage medium
CN115017040B (en) * 2022-05-31 2024-10-22 苏州浪潮智能科技有限公司 Test case screening method, system, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112069073B (en) 2024-12-03

Similar Documents

Publication Publication Date Title
CN112069073A (en) Test case management method, terminal and storage medium
US12130732B2 (en) System and method for performing automated API tests
US20180239692A1 (en) Electronic technology resource evaluation system
CN107896244B (en) Version file distribution method, client and server
US20080120601A1 (en) Information processing apparatus, method and program for deciding priority of test case to be carried out in regression test background of the invention
CN110737584A (en) Service data testing method and device based on block chain and computer equipment
CN107729227A (en) Application testing range determining method, system, server and storage medium
CN112650670A (en) Application testing method, device, system, electronic equipment and storage medium
CN110795332B (en) Automated testing method and device
CN106951369A (en) The management method and device of a kind of joint debugging test
CN110188036A (en) A software testing method and device
CN111679851B (en) Requirement code management method, device, system and computer-readable storage medium
US11055078B2 (en) Systems and methods for deploying software products to environments
CN115658452B (en) Buried point verification method, buried point verification device, readable storage medium, and electronic device
US10678864B2 (en) Analysis model preparing system, programming apparatus, and analysis model preparing method
CN115237422A (en) Code compiling method, device, computer equipment and storage medium
CN112148587A (en) Software test management system and method
CN111966590A (en) Service testing method, device and system
CN116016270A (en) A switch test management method, device, electronic equipment and storage medium
CN115617780A (en) Data import method, device, equipment and storage medium
CN112749087A (en) Test service platform, electronic equipment and test service method
CN104166541B (en) Method and apparatus for updating tested widget library
CN117370202A (en) Method, device, equipment and storage medium for testing full link of multiple bins
CN113220592B (en) Processing method and device for automatic test resources, server and storage medium
CN112256365B (en) Method and terminal for automatically managing multi-language versions

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant