[go: up one dir, main page]

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

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

Info

Publication number
CN114968818A
CN114968818A CN202210731311.XA CN202210731311A CN114968818A CN 114968818 A CN114968818 A CN 114968818A CN 202210731311 A CN202210731311 A CN 202210731311A CN 114968818 A CN114968818 A CN 114968818A
Authority
CN
China
Prior art keywords
test
jira
case
result
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210731311.XA
Other languages
Chinese (zh)
Inventor
彭红燕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Wondershare Software Co Ltd
Original Assignee
Shenzhen Wondershare Software 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 Wondershare Software Co Ltd filed Critical Shenzhen Wondershare Software Co Ltd
Priority to CN202210731311.XA priority Critical patent/CN114968818A/en
Publication of CN114968818A publication Critical patent/CN114968818A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

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 embodiment of the invention discloses an automatic test management method, an automatic test management device, terminal equipment and a storage medium, and relates to the technical field of automatic tests. The method comprises the following steps: extracting and deleting a JIRA test case library through a test script according to the test engineering to obtain a target test case; acquiring a trigger signal to execute a test project and obtain a test result file of a target test case; updating the test result to a corresponding target test case through the test script according to the test result file; calculating the test execution passing rate of the target test case according to the test result and comparing the test execution passing rate with the preset quality red line to obtain a comparison result; and displaying the test result and the comparison result by means of JIRA visualization. According to the method, the target test cases of different test platforms can be obtained through the test scripts, the test results of the test engineering are analyzed and then submitted to the JIRA for processing and displaying, so that the automatic tests of different platforms are managed, and convenience is brought to testers.

Description

自动化测试管理方法、装置、终端设备及存储介质Automated test management method, device, terminal device and storage medium

技术领域technical field

本发明涉及自动化测试技术领域,尤其涉及一种自动化测试管理方法、装置、终端设备及存储介质。The present invention relates to the technical field of automated testing, and in particular, to an automated testing management method, device, terminal device and storage medium.

背景技术Background technique

因不同业务、平台的自动化测试方法和测试脚本语言均不一样,故没有统一的自动化测试管理方法对不同平台的自动化测试进行管理。例如现有商业化DevOps平台、阿里云效以及蓝鲸并不支持对所有自动化测试进行统一管理,它们提供的自动化支持c++、java等单元测试、接口测试和UI测试仅支持WEB端,对桌面端和手机端的自动化测试并不支持,即现有的自动化测试管理方法仅支持WEB端对自动化测试的管理,不能对不同平台的自动化测试进行管理。Because the automated test methods and test script languages of different businesses and platforms are different, there is no unified automated test management method to manage automated tests on different platforms. For example, the existing commercial DevOps platform, Alibaba Cloud Effect and Blue Whale do not support unified management of all automated tests. The automation they provide supports c++, java and other unit tests, interface tests and UI tests only support the WEB side, and the desktop side. It is not supported by the automated test on the mobile terminal, that is, the existing automated test management method only supports the management of automated tests on the WEB side, and cannot manage automated tests on different platforms.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供了一种自动化测试管理方法、装置、终端设备及存储介质,旨在解决使用现有的测试管理方法不能对不同平台的自动化测试进行管理的问题。The embodiments of the present invention provide an automated test management method, device, terminal device and storage medium, aiming to solve the problem that automated tests of different platforms cannot be managed by using the existing test management method.

第一方面,本发明实施例提供了一种自动化测试管理方法,所述自动化测试管理方法包括:根据测试工程通过测试脚本对JIRA测试用例库进行提取以及删除以获取目标测试用例;获取触发信号以执行所述测试工程并得到所述目标测试用例的测试结果文件;根据所述测试结果文件通过测试脚本将测试结果更新至相应的所述目标测试用例中;根据所述测试结果计算所述目标测试用例的测试执行通过率并与预设质量红线进行比较以得到比较结果;借助JIRA可视化展示所述测试结果以及所述比较结果。In a first aspect, an embodiment of the present invention provides an automated test management method. The automated test management method includes: extracting and deleting a JIRA test case library through a test script according to a test project to obtain a target test case; obtaining a trigger signal to Execute the test project and obtain the test result file of the target test case; update the test result to the corresponding target test case through the test script according to the test result file; calculate the target test according to the test result The test execution pass rate of the use case is compared with the preset quality red line to obtain the comparison result; the test result and the comparison result are displayed visually with the help of JIRA.

第二方面,本发明实施例还提供了一种自动化测试管理装置,该装置包括:第一提取删除单元,用于根据测试工程通过测试脚本对JIRA测试用例库进行提取以及删除以获取目标测试用例;获取执行单元,用于获取触发信号以执行所述测试工程并得到所述目标测试用例的测试结果文件;第一更新单元,用于根据所述测试结果文件通过测试脚本将测试结果更新至相应的所述目标测试用例中;计算比较单元,用于根据所述测试结果计算所述目标测试用例的测试执行通过率并与预设质量红线进行比较以得到比较结果;展示单元,用于借助JIRA可视化展示所述测试结果以及所述比较结果。In a second aspect, an embodiment of the present invention further provides an automated test management device, the device includes: a first extraction and deletion unit, configured to extract and delete the JIRA test case library through a test script according to a test project to obtain a target test case The acquisition execution unit is used to acquire the trigger signal to execute the test project and obtain the test result file of the target test case; the first update unit is used to update the test result to the corresponding test result file through the test script according to the test result file. In the target test case of The test results and the comparison results are displayed visually.

第三方面,本发明实施例还提供了一种终端设备,所述终端设备包括存储器及处理器,所述存储器上存储有计算机程序,所述处理器执行上述计算机程序时实现上述方法。In a third aspect, an embodiment of the present invention further provides a terminal device, the terminal device includes a memory and a processor, the memory stores a computer program, and the processor implements the above method when executing the above computer program.

第四方面,本发明实施例还提供了一种存储介质,所述存储介质存储有计算机程序,所述计算机程序当被处理器执行时实现上述方法。In a fourth aspect, an embodiment of the present invention further provides a storage medium, where the storage medium stores a computer program, and the computer program implements the foregoing method when executed by a processor.

本发明实施例提供了一种自动化测试管理方法、装置、终端设备及存储介质,其包括:根据测试工程通过测试脚本对JIRA测试用例库进行提取以及删除以获取目标测试用例;获取触发信号以执行所述测试工程并得到所述目标测试用例的测试结果文件;根据所述测试结果文件通过测试脚本将测试结果更新至相应的所述目标测试用例中;根据所述测试结果计算所述目标测试用例的测试执行通过率并与预设质量红线进行比较以得到比较结果;借助JIRA可视化展示所述测试结果以及所述比较结果。该方法可通过测试脚本获取不同测试平台的目标测试用例并对测试工程的测试结果进行分析后提交至JIRA进行处理并展示,实现了对不同平台的自动化测试进行管理,为测试人员提供便利。The embodiments of the present invention provide an automated test management method, device, terminal device and storage medium, which include: extracting and deleting a JIRA test case library through a test script according to a test project to obtain a target test case; obtaining a trigger signal to execute The test project and the test result file of the target test case are obtained; the test result is updated to the corresponding target test case through the test script according to the test result file; the target test case is calculated according to the test result The pass rate of the test execution is compared with the preset quality red line to obtain the comparison result; the test result and the comparison result are displayed visually with the help of JIRA. The method can obtain the target test cases of different test platforms through test scripts, analyze the test results of the test project, and then submit them to JIRA for processing and display, which realizes the management of automated tests on different platforms and provides convenience for testers.

附图说明Description of drawings

为了更清楚地说明本发明实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present invention, which are of great significance to the art For those of ordinary skill, other drawings can also be obtained from these drawings without any creative effort.

图1为本发明实施例提供的一种自动化测试管理方法流程示意图;1 is a schematic flowchart of an automated test management method provided by an embodiment of the present invention;

图2为本发明实施例提供的一种自动化测试管理装置的示意性框图;2 is a schematic block diagram of an automated test management apparatus provided by an embodiment of the present invention;

图3为本发明实施例提供的一种终端设备的示意性框图;FIG. 3 is a schematic block diagram of a terminal device according to an embodiment of the present invention;

图4为通过本发明实施例提供的一种自动化测试管理方法获得的一展示结果;4 is a display result obtained by an automated test management method provided by an embodiment of the present invention;

图5为通过本发明实施例提供的一种自动化测试管理方法获得的另一展示结果。FIG. 5 is another display result obtained by an automated test management method provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”和“包还应当理解,在此本发明说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本发明。如在本发明说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It is to be understood that the terms "comprising" and "package" when used in this specification and the appended claims are also to be understood that the terms used in this specification of the invention are for the purpose of describing particular embodiments only and not It is not intended to limit the invention. As used in this specification and the appended claims, the singular forms "a", "an" and "the" are intended to include the plural unless the context clearly dictates otherwise. form.

还应当进一步理解,在本发明说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should further be understood that, as used in this specification and the appended claims, the term "and/or" refers to and including any and all possible combinations of one or more of the associated listed items .

如在本说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in this specification and the appended claims, the term "if" may be contextually interpreted as "when" or "once" or "in response to determining" or "in response to detecting" . Similarly, the phrases "if it is determined" or "if the [described condition or event] is detected" may be interpreted, depending on the context, to mean "once it is determined" or "in response to the determination" or "once the [described condition or event] is detected. ]" or "in response to detection of the [described condition or event]".

JENKINS是一个开源软件项目,是基于Java开发的一种持续集成工具,用于监控持续重复的工作,旨在提供一个开放易用的软件平台,使软件项目可以进行持续集成。JENKINS is an open source software project. It is a continuous integration tool developed based on Java. It is used to monitor continuous and repetitive work. It aims to provide an open and easy-to-use software platform that enables continuous integration of software projects.

JIRA是Atlassian公司出品的项目与事务跟踪工具,被广泛应用于缺陷跟踪、客户服务、需求收集、流程审批、任务跟踪、项目跟踪和敏捷管理等工作领域。JIRA is a project and transaction tracking tool produced by Atlassian, which is widely used in defect tracking, customer service, requirements collection, process approval, task tracking, project tracking and agile management.

本发明实施例的自动化测试管理方法可应用于终端设备,例如手机、平板电脑、笔记本电脑、台式电脑等智能设备。通过安装于所述终端设备上的应用软件来实现自动化测试管理的功能。The automated test management method in the embodiment of the present invention can be applied to terminal devices, such as smart devices such as mobile phones, tablet computers, notebook computers, and desktop computers. The function of automatic test management is realized by the application software installed on the terminal device.

请参阅图1,图1是本发明实施例提供的自动化测试管理方法的流程示意图。如图1所示,该方法包括以下步骤S1-S5。Please refer to FIG. 1. FIG. 1 is a schematic flowchart of an automated test management method provided by an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps S1-S5.

S1,根据测试工程通过测试脚本对JIRA测试用例库进行提取以及删除以获取目标测试用例。S1, extract and delete the JIRA test case library through the test script according to the test project to obtain the target test case.

具体实施中,根据测试工程通过测试脚本对JIRA测试用例库进行提取以及删除以获取目标测试用例。在一实施例中,解析所述测试工程的测试用例与JIRA的测试用例库进行对比。体地,通过PYTHON测试脚本解析测试工程的所有测试用例,并通过JIRA的API(ApplicationProgramming Interface,应用编程接口)获取测试工程的JIRA测试用例库。通过该步骤目的是通过测试工程的所有测试用例来更新JIRA测试用例库,以保障测试平台中目标测试用例的正确性。In the specific implementation, the JIRA test case library is extracted and deleted through the test script according to the test project to obtain the target test case. In one embodiment, the test cases of the test project are parsed and compared with the test case library of JIRA. Specifically, all the test cases of the test project are parsed through the PYTHON test script, and the JIRA test case library of the test project is obtained through the JIRA API (Application Programming Interface). The purpose of this step is to update the JIRA test case library through all the test cases of the test project to ensure the correctness of the target test cases in the test platform.

进一步地,若所述测试工程的测试用例不在JIRA的所述测试用例库中,则将所述测试用例提取至JIRA的所述测试用例库中,并删除JIRA的所述测试用例库中非所述测试工程的测试用例以获取所述目标测试用例。Further, if the test case of the test project is not in the test case library of JIRA, extract the test case to the test case library of JIRA, and delete all the non-existent test cases in the test case library of JIRA. The test case of the test project is obtained to obtain the target test case.

在一实施例中,JIRA测试用例库中的测试用例设置有自动化引用字段,此引用字段与测试工程中的测试用例名称一致则说明为同一测试用例,通过PYTHON测试脚本获取测试工程中的测试用例的名称并与JIRA测试用例库中测试用例的自动化引用字段对比,当二者一致时说明测试用例存在,此时保留JIRA测试用例库中的该测试用例不做处理;当二者不一致时,删除JIRA测试用例库中的该测试用例并把测试工程中的该测试用例添加到JIRA测试用例库中;对比结束后,JIRA的测试用例库中便为该测试工程的目标测试用例,从而实现了自动化维护测试工程的测试用例。In one embodiment, the test cases in the JIRA test case library are provided with an automated reference field. If the reference field is consistent with the test case name in the test project, it indicates the same test case, and the test case in the test project is obtained through the PYTHON test script. The name of the test case is compared with the automatic reference field of the test case in the JIRA test case library. When the two are consistent, it means that the test case exists. At this time, the test case in the JIRA test case library is kept and not processed; when the two are inconsistent, delete it. Add the test case in the JIRA test case library and add the test case in the test project to the JIRA test case library; after the comparison, the test case library of JIRA will be the target test case of the test project, thus realizing automation Maintain test cases for the test project.

在一实施例中,在步骤S1之后还包括以下步骤:In one embodiment, the following steps are further included after step S1:

查询所述测试工程中是否存在所述JIRA测试计划。具体地,采用PYTHON测试脚本调用JIRA的API查询测试工程中是否存在JIRA测试计划。Query whether the JIRA test plan exists in the test project. Specifically, use the PYTHON test script to call the API of JIRA to query whether there is a JIRA test plan in the test project.

进一步地,若所述测试工程中不存在所述JIRA测试计划,则新建所述JIRA测试计划。具体地,若测试工程中存在JIRA测试计划就不做处理,若测试工程中不存在JIRA测试计划,则通过JIRA的API新建JIRA测试计划。其中,JIRA测试计划用于展示测试结果。Further, if the JIRA test plan does not exist in the test project, the JIRA test plan is newly created. Specifically, if there is a JIRA test plan in the test project, it will not be processed. If there is no JIRA test plan in the test project, a new JIRA test plan will be created through the JIRA API. Among them, the JIRA test plan is used to display the test results.

进一步地,在所述JIRA测试计划下新建测试周期并将所述目标测试用例导入所述测试周期内。具体地,在一实施例中,采用PYTHON测试脚本调用JIRA的API在JIRA测试计划(或新建的JIRA测试计划)下新建测试周期(测试周期名称一般采用月-日-小时-分钟,以避免重名),以便清楚展示每一测试周期的测试结果。采用PYTHON测试脚本调用JIRA的API将测试计划下的目标测试用例导入到新建的测试周期内,以将新建的测试周期与测试工程的目标测试用例进行关联,便于后续对测试结果的分析与展示。Further, create a new test cycle under the JIRA test plan and import the target test case into the test cycle. Specifically, in one embodiment, a PYTHON test script is used to call the API of JIRA to create a new test cycle under the JIRA test plan (or a newly created JIRA test plan) (the name of the test cycle is generally month-day-hour-minute to avoid repeated name) in order to clearly display the test results for each test cycle. Use the PYTHON test script to call JIRA's API to import the target test cases under the test plan into the new test cycle, so as to associate the new test cycle with the target test cases of the test project, which is convenient for subsequent analysis and display of test results.

S2,获取触发信号以执行所述测试工程并得到所述目标测试用例的测试结果文件。S2: Acquire a trigger signal to execute the test project and obtain a test result file of the target test case.

具体实施中,获取触发信号以执行所述测试工程并得到所述目标测试用例的测试结果文件。具体地,获取到目标测试用例并将目标测试用例导入新建的测试周期内之后,便可执行测试工程。在一实施例中,该触发信号可设定为定时触发JENKINS的信号,也可根据实际情况来设置JENKINS的触发信号,在此不作具体地限定。In a specific implementation, a trigger signal is acquired to execute the test project and obtain a test result file of the target test case. Specifically, after obtaining the target test case and importing the target test case into the new test cycle, the test project can be executed. In one embodiment, the trigger signal may be set as a signal for timing triggering of JENKINS, or the trigger signal of JENKINS may be set according to actual conditions, which is not specifically limited herein.

S3,根据所述测试结果文件通过测试脚本将测试结果更新至相应的所述目标测试用例中。S3, update the test result to the corresponding target test case through the test script according to the test result file.

具体实施中,根据所述测试结果文件通过测试脚本将测试结果更新至相应的所述目标测试用例中。在一实施例中,步骤S3具体包括以下步骤。In a specific implementation, the test result is updated to the corresponding target test case through a test script according to the test result file. In one embodiment, step S3 specifically includes the following steps.

解析所述测试结果文件以获取所述目标测试用例的测试结果,其中所述测试结果包括测试失败。具体地,通过PYTHON测试脚本实现对测试结果文件(XML文件)的解析,以获取目标测试用例的测试结果。每条测试用例的测试结果包括测试失败、通过、忽略、通过用例数、测试用例总数、总代码行以及覆盖代码行以为后续的测试结果的展示做准备。Parse the test result file to obtain a test result of the target test case, wherein the test result includes a test failure. Specifically, the test result file (XML file) is parsed through the PYTHON test script to obtain the test result of the target test case. The test results for each test case include test failure, pass, ignore, number of passed cases, total number of test cases, total lines of code, and lines of coverage to prepare for the presentation of subsequent test results.

进一步地,通过测试脚本将所述测试结果更新至相应的所述目标测试用例中。具体地,在一实施例中,通过PYTHON测试脚本解析测试结果后获取每条测试用例的测试结果,然后通过JIRA的API将测试结果更新至相应的目标测试用例中,实现了目标测试用例与测试结果的自动关联,此时在新建的测试周期下边可看到测试工程的整体执行记录。Further, the test result is updated to the corresponding target test case through a test script. Specifically, in one embodiment, the test results of each test case are obtained after parsing the test results through the PYTHON test script, and then the test results are updated to the corresponding target test cases through the API of JIRA, thereby realizing the target test case and the test The results are automatically associated. At this time, the overall execution record of the test project can be seen under the newly created test cycle.

进一步地,若所述测试结果为测试失败,通过测试脚本将测试失败缺陷提交到JIRA并将所述测试失败缺陷与对应的所述目标测试用例关联。Further, if the test result is a test failure, submit the test failure defect to JIRA through a test script and associate the test failure defect with the corresponding target test case.

具体地,在一实施例中,当目标测试用例的测试结果为测试失败时,通过JIRA的API同步将测试失败缺陷提交至JIRA,实现了测试失败缺陷的自动提交。Specifically, in one embodiment, when the test result of the target test case is a test failure, the test failure defect is synchronously submitted to JIRA through the API of JIRA, thereby realizing the automatic submission of the test failure defect.

S4,根据所述测试结果计算所述目标测试用例的测试执行通过率并与预设质量红线进行比较以得到比较结果。S4: Calculate the test execution pass rate of the target test case according to the test result and compare it with a preset quality red line to obtain a comparison result.

具体实施中,根据所述测试结果计算所述目标测试用例的测试执行通过率并与预设质量红线进行比较以得到比较结果。在一实施例中,步骤S4包括步骤:根据所述测试结果计算测试执行通过率、代码覆盖率、测试执行次数、测试执行用例数并写入所述JIRA测试计划里。In a specific implementation, the test execution pass rate of the target test case is calculated according to the test result and compared with a preset quality red line to obtain a comparison result. In one embodiment, step S4 includes the step of: calculating a test execution pass rate, code coverage rate, test execution times, and test execution case numbers according to the test results and writing them into the JIRA test plan.

具体实施中,根据所述测试结果计算测试执行通过率、代码覆盖率、测试执行次数、测试执行用例数并写入所述JIRA测试计划里。具体地,在一实施例中,通过PYTHON测试脚本实现测试结果的计算,其中,测试执行通过率=通过用例数/测试用例总数,代码覆盖率=覆盖代码行/总代码行;并将测试执行通过率、代码覆盖率、测试执行次数、测试执行用例数通过JIRA的API写入测试计划中相应的字段里,以用于测试结果的展示。In a specific implementation, the test execution pass rate, code coverage rate, test execution times, and test execution use cases are calculated according to the test results and written into the JIRA test plan. Specifically, in one embodiment, the calculation of the test result is realized by the PYTHON test script, wherein, the test execution pass rate=the number of passed use cases/the total number of test cases, the code coverage rate=covered code lines/total code lines; and the test execution The pass rate, code coverage rate, number of test executions, and the number of test execution cases are written into the corresponding fields in the test plan through the JIRA API to display the test results.

在一实施例中,步骤S4还包括以下步骤:In one embodiment, step S4 further includes the following steps:

将测试执行通过率写入TXT文件;具体地,在一实施例中,为了方便JENKINS获取数据,通过PYTHON测试脚本将步骤S3计算获得的测试执行通过率写入TXT文件。The test execution pass rate is written into the TXT file; specifically, in one embodiment, in order to facilitate JENKINS to obtain data, the test execution pass rate calculated in step S3 is written into the TXT file through the PYTHON test script.

进一步地,获取TXT文件里面的所述测试执行通过率并与预设质量红线进行比较以得到比较结果。Further, the test execution pass rate in the TXT file is obtained and compared with the preset quality red line to obtain a comparison result.

具体实施中,获取TXT文件里面的所述测试执行通过率并与预设质量红线进行比较以得到比较结果。具体地,在一实施例中,JENKINS获取TXT文件里的测试执行通过率数值并与JENKINS设置的预设质量红线进行对比,当达到预设质量红线时JENKINS测试工程就通过,反之测试工程就测试失败或中断,说明测试工程不通过。In a specific implementation, the test execution pass rate in the TXT file is obtained and compared with a preset quality red line to obtain a comparison result. Specifically, in one embodiment, JENKINS obtains the test execution pass rate value in the TXT file and compares it with the preset quality red line set by JENKINS. When the preset quality red line is reached, the JENKINS test project passes, otherwise the test project is tested If it fails or is interrupted, it means that the test project fails.

S5,借助JIRA可视化展示所述测试结果以及所述比较结果。S5, the test results and the comparison results are displayed visually by means of JIRA.

具体实施中,借助JIRA可视化展示所述测试结果以及所述比较结果。具体地,在一实施例中,请参见图4至图5,由图5可清楚得到该测试工程的测试结果以及比较结果,其中包括自动提交缺陷、缺陷状态分布,不同测试周期下的测试执行通过率以及自动化更新测试用例的数量;由图5可清楚得到不同测试工程下的测试用例总数、自动提交缺陷数以及代码覆盖率。In a specific implementation, the test results and the comparison results are displayed visually by means of JIRA. Specifically, in an embodiment, please refer to FIG. 4 to FIG. 5 . From FIG. 5 , the test results and comparison results of the test project can be clearly obtained, including automatic submission of defects, defect status distribution, and test execution under different test cycles. The pass rate and the number of automatic update test cases; from Figure 5, the total number of test cases, the number of automatically submitted defects and the code coverage rate under different test projects can be clearly obtained.

需要说明的是,通过JENKINS获取触发信号以触发测试工程通过测试脚本来执行测试,从而实现了对不同测试平台的目标测试用例的自动化管理、自动执行测试工程、自动提交缺陷到JIRA、更新测试结果到目标测试用例、将目标测试用例与测试失败缺陷关联,实现测试工程的全自动化闭环管理,为测试人员提供了极大的便利,提高了测试的效率。It should be noted that the trigger signal is obtained through JENKINS to trigger the test project to execute the test through the test script, thereby realizing the automatic management of target test cases of different test platforms, automatic execution of test projects, automatic submission of defects to JIRA, and update of test results. To target test cases, associate target test cases with test failure defects, and realize fully automated closed-loop management of test engineering, which provides great convenience for testers and improves test efficiency.

本发明实施例提供了一种自动化测试管理方法,其包括:根据测试工程通过测试脚本对JIRA测试用例库进行提取以及删除以获取目标测试用例;获取触发信号以执行所述测试工程并得到所述目标测试用例的测试结果文件;根据所述测试结果文件通过测试脚本将测试结果更新至相应的所述目标测试用例中;根据所述测试结果计算所述目标测试用例的测试执行通过率并与预设质量红线进行比较以得到比较结果;借助JIRA可视化展示所述测试结果以及所述比较结果。该方法可通过测试脚本获取不同测试平台的目标测试用例并对测试工程的测试结果进行分析后提交至JIRA进行处理并展示,实现了对不同平台的自动化测试进行管理,为测试人员提供便利。An embodiment of the present invention provides an automated test management method, which includes: extracting and deleting a JIRA test case library through a test script according to a test project to obtain a target test case; obtaining a trigger signal to execute the test project and obtain the The test result file of the target test case; update the test result to the corresponding target test case through the test script according to the test result file; calculate the test execution pass rate of the target test case according to the test result and compare it with the prediction. A quality red line is set for comparison to obtain comparison results; the test results and the comparison results are visualized by means of JIRA. The method can obtain the target test cases of different test platforms through test scripts, analyze the test results of the test project, and then submit them to JIRA for processing and display, which realizes the management of automated tests on different platforms and provides convenience for testers.

图2是本发明实施例提供的一种自动化测试管理装置的示意性框图。如图2所示,对应于以上自动化测试管理方法,本发明还提供一种自动化测试管理装置100。该自动化测试管理装置100包括用于执行上述自动化测试管理方法的单元,该装置可以被配置于台式电脑、平板电脑、手提电脑、等终端设备中。具体地,请参阅图2,该自动化测试管理装置100包括第一提取删除单元101、获取执行单元102、第一更新单元103、计算比较单元104以及展示单元105。FIG. 2 is a schematic block diagram of an automated test management apparatus provided by an embodiment of the present invention. As shown in FIG. 2 , corresponding to the above automated test management method, the present invention further provides an automated test management apparatus 100 . The automated test management apparatus 100 includes a unit for executing the above-mentioned automated test management method, and the apparatus can be configured in a desktop computer, a tablet computer, a laptop computer, and other terminal devices. Specifically, referring to FIG. 2 , the automated test management apparatus 100 includes a first extraction and deletion unit 101 , an acquisition and execution unit 102 , a first update unit 103 , a calculation and comparison unit 104 , and a display unit 105 .

所述第一提取删除单元101用于根据测试工程通过测试脚本对JIRA测试用例库进行提取以及删除以获取目标测试用例;所述获取执行单元102用于获取触发信号以执行所述测试工程并得到所述目标测试用例的测试结果文件;所述第一更新单元103用于根据所述测试结果文件通过测试脚本将测试结果更新至相应的所述目标测试用例中;所述计算比较单元104用于根据所述测试结果计算所述目标测试用例的测试执行通过率并与预设质量红线进行比较以得到比较结果;所述展示单元105用于借助JIRA可视化展示所述测试结果以及所述比较结果。The first extracting and deleting unit 101 is used for extracting and deleting the JIRA test case library through the test script according to the test project to obtain the target test case; the obtaining and executing unit 102 is used for obtaining the trigger signal to execute the test project and obtain. The test result file of the target test case; the first update unit 103 is used to update the test result to the corresponding target test case through the test script according to the test result file; the calculation and comparison unit 104 is used for The test execution pass rate of the target test case is calculated according to the test result and compared with a preset quality red line to obtain a comparison result; the display unit 105 is configured to visually display the test result and the comparison result by means of JIRA.

在一实施例中,所述第一提取删除单元101包括:解析对比单元以及第二提取删除单元。In one embodiment, the first extraction and deletion unit 101 includes: an analysis and comparison unit and a second extraction and deletion unit.

所述解析对比单元用于解析所述测试工程的测试用例与JIRA的测试用例库进行对比;所述第二提取删除单元用于若所述测试工程的测试用例不在JIRA的所述测试用例库中,则将所述测试用例提取至JIRA的所述测试用例库中,并删除JIRA的所述测试用例库中非所述测试工程的测试用例以获取所述目标测试用例。The parsing and comparison unit is used for parsing the test case of the test project and comparing it with the test case library of JIRA; the second extracting and deleting unit is used if the test case of the test project is not in the test case library of JIRA , the test case is extracted to the test case library of JIRA, and the test cases that are not of the test project in the test case library of JIRA are deleted to obtain the target test case.

在一实施例中,所述第一提取删除单元101还包括:查询单元、新建单元以及导入单元。In an embodiment, the first extracting and deleting unit 101 further includes: a query unit, a new unit, and an import unit.

所述查询单元用于查询所述测试工程中是否存在所述JIRA测试计划,所述新建单元用于若所述测试工程中不存在所述JIRA测试计划,则新建所述JIRA测试计划;所述导入单元用于在所述JIRA测试计划下新建测试周期并将所述目标测试用例导入所述测试周期内。The query unit is used to query whether the JIRA test plan exists in the test project, and the new unit is used to create the JIRA test plan if the JIRA test plan does not exist in the test project; the The import unit is used to create a new test cycle under the JIRA test plan and import the target test case into the test cycle.

在一实施例中,所述第一更新单元103包括:解析单元以及第二更新单元。In an embodiment, the first updating unit 103 includes: a parsing unit and a second updating unit.

所述解析单元用于解析所述测试结果文件以获取所述目标测试用例的测试结果,其中所述测试结果包括测试失败;所述第二更新单元用于通过测试脚本将所述测试结果更新至相应的所述目标测试用例中。The parsing unit is configured to parse the test result file to obtain the test result of the target test case, wherein the test result includes a test failure; the second update unit is configured to update the test result to corresponding to the target test case.

在一实施例中,所述第一更新单元103还包括:提交单元。In an embodiment, the first updating unit 103 further includes: a submitting unit.

所述提交单元用于若所述测试结果为测试失败,通过测试脚本将测试失败缺陷提交到JIRA并将所述测试失败缺陷与对应的所述目标测试用例关联。The submitting unit is configured to submit the test failure defect to JIRA through a test script and associate the test failure defect with the corresponding target test case if the test result is a test failure.

在一实施例中,所述计算比较单元104,包括:计算写入单元。In one embodiment, the calculating and comparing unit 104 includes: a calculating and writing unit.

所述计算写入单元用于根据所述测试结果计算测试执行通过率、代码覆盖率、测试执行次数、测试执行用例数并写入所述JIRA测试计划里。The calculation and writing unit is configured to calculate the test execution pass rate, code coverage rate, test execution times, and test execution case numbers according to the test results, and write them into the JIRA test plan.

在一实施例中,所述计算比较单元104,还包括:写入单元以及获取比较单元。In an embodiment, the calculating and comparing unit 104 further includes: a writing unit and an obtaining and comparing unit.

所述写入单元用于将测试执行通过率写入TXT文件;所述获取比较单元用于获取TXT文件里面的所述测试执行通过率并与预设质量红线进行比较以得到比较结果。The writing unit is configured to write the test execution pass rate into the TXT file; the acquisition and comparison unit is configured to acquire the test execution pass rate in the TXT file and compare it with a preset quality red line to obtain a comparison result.

上述自动化测试管理装置可以实现为一种计算机程序的形式,该计算机程序可以在如图3所示的终端设备上运行。The above-mentioned automated test management apparatus can be implemented in the form of a computer program, and the computer program can run on the terminal device as shown in FIG. 3 .

请参阅图3,该终端设备300包括通过系统总线301连接的处理器302、存储器和网络接口305,其中,存储器可以包括非易失性存储介质303和内存储器304。Referring to FIG. 3 , the terminal device 300 includes a processor 302 , a memory and a network interface 305 connected through a system bus 301 , wherein the memory may include a non-volatile storage medium 303 and an internal memory 304 .

该非易失性存储介质303可存储操作系统3031和计算机程序3032。该计算机程序3032被执行时,可使得处理器302执行一种自动化测试管理方法。The nonvolatile storage medium 303 can store an operating system 3031 and a computer program 3032 . The computer program 3032, when executed, can cause the processor 302 to perform an automated test management method.

该处理器302用于提供计算和控制能力,以支撑整个终端设备300的运行。The processor 302 is used to provide computing and control capabilities to support the operation of the entire terminal device 300 .

该内存储器304为非易失性存储介质303中的计算机程序3032的运行提供环境,该计算机程序3032被处理器302执行时,可使得处理器302执行一种自动化测试管理方法。The internal memory 304 provides an environment for running the computer program 3032 in the non-volatile storage medium 303. When the computer program 3032 is executed by the processor 302, the processor 302 can execute an automated test management method.

该网络接口305用于与其它设备进行网络通信。本领域技术人员可以理解,图3中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的终端设备300的限定,具体的终端设备300可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。The network interface 305 is used for network communication with other devices. Those skilled in the art can understand that the structure shown in FIG. 3 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the terminal device 300 to which the solution of the present application is applied. The specific terminal device 300 may include more or fewer components than shown, or combine certain components, or have a different arrangement of components.

其中,所述处理器302用于运行存储在存储器中的计算机程序3032,以实现如下步骤:Wherein, the processor 302 is used to run the computer program 3032 stored in the memory to realize the following steps:

根据测试工程通过测试脚本对JIRA测试用例库进行提取以及删除以获取目标测试用例;获取触发信号以执行所述测试工程并得到所述目标测试用例的测试结果文件;根据所述测试结果文件通过测试脚本将测试结果更新至相应的所述目标测试用例中;根据所述测试结果计算所述目标测试用例的测试执行通过率并与预设质量红线进行比较以得到比较结果;借助JIRA可视化展示所述测试结果以及所述比较结果。Extract and delete the JIRA test case library through the test script according to the test project to obtain the target test case; obtain the trigger signal to execute the test project and obtain the test result file of the target test case; pass the test according to the test result file The script updates the test results to the corresponding target test cases; calculates the test execution pass rate of the target test cases according to the test results and compares them with the preset quality red line to obtain the comparison results; visualizes the test results with the help of JIRA Test results and said comparison results.

在一实施例中,所述根据测试工程通过测试脚本对JIRA测试用例库进行提取以及删除以获取目标测试用例,包括:解析所述测试工程的测试用例与JIRA的测试用例库进行对比;若所述测试工程的测试用例不在JIRA的所述测试用例库中,则将所述测试用例提取至JIRA的所述测试用例库中,并删除JIRA的所述测试用例库中非所述测试工程的测试用例以获取所述目标测试用例。In one embodiment, extracting and deleting the JIRA test case library through the test script according to the test project to obtain the target test case includes: parsing the test case of the test project and comparing the test case library of JIRA; If the test case of the test project is not in the test case library of JIRA, then extract the test case to the test case library of JIRA, and delete the tests in the test case library of JIRA that are not of the test project use case to get the target test case.

在一实施例中,所述根据测试工程通过测试脚本对JIRA测试用例库进行提取以及删除以获取目标测试用例之后,还包括:查询所述测试工程中是否存在所述JIRA测试计划,若所述测试工程中不存在所述JIRA测试计划,则新建所述JIRA测试计划;在所述JIRA测试计划下新建测试周期并将所述目标测试用例导入所述测试周期内。In one embodiment, after extracting and deleting the JIRA test case library through the test script according to the test project to obtain the target test case, the method further includes: querying whether the JIRA test plan exists in the test project, if the If the JIRA test plan does not exist in the test project, create the JIRA test plan; create a new test cycle under the JIRA test plan and import the target test case into the test cycle.

在一实施例中,所述根据所述测试结果文件通过测试脚本将测试结果更新至相应的所述目标测试用例中,包括:解析所述测试结果文件以获取所述目标测试用例的测试结果,其中所述测试结果包括测试失败;通过测试脚本将所述测试结果更新至相应的所述目标测试用例中。In one embodiment, the updating of the test results to the corresponding target test cases through a test script according to the test result files includes: parsing the test result files to obtain the test results of the target test cases, The test result includes test failure; the test result is updated to the corresponding target test case through a test script.

在一实施例中,所述根据所述测试结果文件通过测试脚本将测试结果更新至相应的所述目标测试用例中之后,还包括:若所述测试结果为测试失败,通过测试脚本将测试失败缺陷提交到JIRA并将所述测试失败缺陷与对应的所述目标测试用例关联。In one embodiment, after updating the test result to the corresponding target test case through the test script according to the test result file, the method further includes: if the test result is a test failure, the test is failed by the test script. The defect is submitted to JIRA and the test failure defect is associated with the corresponding target test case.

在一实施例中,所述根据所述测试结果计算所述目标测试用例的测试执行通过率并与预设质量红线进行比较以得到比较结果,包括:根据所述测试结果计算测试执行通过率、代码覆盖率、测试执行次数、测试执行用例数并写入所述JIRA测试计划里。In one embodiment, calculating the test execution pass rate of the target test case according to the test result and comparing it with a preset quality red line to obtain the comparison result includes: calculating the test execution pass rate according to the test result, Code coverage, number of test executions, and number of test execution cases are written into the JIRA test plan.

在一实施例中,所述根据所述测试结果计算所述目标测试用例的测试执行通过率并与预设质量红线进行比较以得到比较结果,还包括:将测试执行通过率写入TXT文件;获取TXT文件里面的所述测试执行通过率并与预设质量红线进行比较以得到比较结果。In one embodiment, the calculating the test execution pass rate of the target test case according to the test result and comparing it with a preset quality red line to obtain the comparison result further includes: writing the test execution pass rate into a TXT file; The test execution pass rate in the TXT file is obtained and compared with the preset quality red line to obtain the comparison result.

应当理解,在本申请实施例中,处理器302可以是中央处理单元(CentralProcessing Unit,CPU),该处理器302还可以是其他通用处理器、数字信号处理器(DigitalSignal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable GateArray,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。其中,通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in this embodiment of the present application, the processor 302 may be a central processing unit (Central Processing Unit, CPU), and the processor 302 may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), dedicated integrated Circuit (Application Specific Integrated Circuit, ASIC), off-the-shelf Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. Wherein, the general-purpose processor can be a microprocessor or the processor can also be any conventional processor or the like.

本领域普通技术人员可以理解的是实现上述实施例的方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成。该计算机程序可存储于一存储介质中,该存储介质为存储介质。该计算机程序被该计算机系统中的至少一个处理器执行,以实现上述方法的实施例的流程步骤。It can be understood by those skilled in the art that all or part of the processes in the methods for implementing the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a storage medium, which is a storage medium. The computer program is executed by at least one processor in the computer system to implement the flow steps of the above-described method embodiments.

因此,本发明还提供一种存储介质。该存储介质可以为存储介质。该存储介质存储有计算机程序。该计算机程序被处理器执行时使处理器执行本发明自动化测试管理方法的上述任意实施例。Therefore, the present invention also provides a storage medium. The storage medium may be a storage medium. The storage medium stores a computer program. When executed by the processor, the computer program causes the processor to execute any of the above-mentioned embodiments of the automated test management method of the present invention.

所述存储介质为实体的、非瞬时性的存储介质,例如可以是U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、磁碟或者光盘等各种可以存储程序代码的实体存储介质。The storage medium is a physical, non-transitory storage medium, such as a U disk, a removable hard disk, a read-only memory (Read-Only Memory, ROM), a magnetic disk or an optical disk and other physical storage that can store program codes. medium.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. Interchangeability, the above description has generally described the components and steps of each example in terms of function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention.

在本发明所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的。例如,各个单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative. For example, the division of each unit is only a logical function division, and other division methods may be used in actual implementation. For example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.

本发明实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。本发明实施例装置中的单元可以根据实际需要进行合并、划分和删减。另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以是两个或两个以上单元集成在一个单元中。The steps in the method of the embodiment of the present invention may be adjusted, combined and deleted in sequence according to actual needs. Units in the apparatus of the embodiment of the present invention may be combined, divided, and deleted according to actual needs. In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.

该集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台终端设备(可以是个人计算机,终端,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially or a part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to cause a terminal device (which may be a personal computer, a terminal, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详细描述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.

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

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited to this. Any person skilled in the art can easily think of various equivalents within the technical scope disclosed by the present invention. Modifications or substitutions should be included within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims (10)

1. An automated test management method, comprising:
extracting and deleting a JIRA test case library through a test script according to the test engineering to obtain a target test case;
acquiring a trigger signal to execute the test project and obtain a test result file of the target test case;
updating the test result to the corresponding target test case through the test script according to the test result file;
calculating the test execution passing rate of the target test case according to the test result and comparing the test execution passing rate with a preset quality red line to obtain a comparison result;
the test results and the comparison results are presented by means of JIRA visualization.
2. The automated test management method according to claim 1, wherein the extracting and deleting the jita test case library by the test script according to the test engineering to obtain the target test case comprises:
analyzing the test case of the test engineering and comparing the test case with a JIRA test case library;
if the test case of the test engineering is not in the JIRA test case library, extracting the test case into the JIRA test case library, and deleting the JIRA test case which is not in the test engineering in the JIRA test case library to obtain the target test case.
3. The automated test management method according to claim 2, wherein after the extracting and deleting the jita test case library by the test script according to the test engineering to obtain the target test case, the method further comprises:
querying whether the JIRA test plan exists in the test project;
if the JIRA test plan does not exist in the test project, newly establishing the JIRA test plan;
and newly building a test period under the JIRA test plan and introducing the target test case into the test period.
4. The automated test management method according to claim 3, wherein the updating of the test result to the corresponding target test case through the test script according to the test result file comprises:
analyzing the test result file to obtain a test result of the target test case, wherein the test result comprises a test failure;
and updating the test result to the corresponding target test case through the test script.
5. The automated test management method according to claim 4, wherein after the test result is updated to the corresponding target test case by the test script according to the test result file, the method further comprises:
if the test result is test failure, submitting the test failure defect to JIRA through the test script and associating the test failure defect with the corresponding target test case.
6. The method according to claim 5, wherein the calculating a test execution passing rate of the target test case according to the test result and comparing the test execution passing rate with a preset quality red line to obtain a comparison result includes:
and calculating the test execution passing rate, the code coverage rate, the test execution times and the test execution case number according to the test result, and writing the test execution passing rate, the code coverage rate, the test execution times and the test execution case number into the JIRA test plan.
7. The automated test management method according to claim 6, wherein the calculating a test execution passing rate of the target test case according to the test result and comparing the test execution passing rate with a preset quality red line to obtain a comparison result further comprises:
writing the test execution passing rate into a TXT file;
and acquiring the test execution passing rate in the TXT file and comparing the test execution passing rate with a preset quality red line to obtain a comparison result.
8. An automated test management apparatus, comprising:
the first extraction and deletion unit is used for extracting and deleting the JIRA test case library through the test script according to the test engineering so as to obtain a target test case;
the acquisition execution unit is used for acquiring a trigger signal to execute the test project and obtain a test result file of the target test case;
the first updating unit is used for updating the test result to the corresponding target test case through the test script according to the test result file;
the calculation comparison unit is used for calculating the test execution passing rate of the target test case according to the test result and comparing the test execution passing rate with a preset quality red line to obtain a comparison result;
a presentation unit for visually presenting the test result and the comparison result by means of JIRA.
9. A terminal device, characterized in that the terminal device comprises a memory having stored thereon a computer program and a processor implementing the method according to any of claims 1-7 when executing the computer program.
10. A storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method according to any one of claims 1-7.
CN202210731311.XA 2022-06-24 2022-06-24 Automated test management method, device, terminal device and storage medium Pending CN114968818A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210731311.XA CN114968818A (en) 2022-06-24 2022-06-24 Automated test management method, device, terminal device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210731311.XA CN114968818A (en) 2022-06-24 2022-06-24 Automated test management method, device, terminal device and storage medium

Publications (1)

Publication Number Publication Date
CN114968818A true CN114968818A (en) 2022-08-30

Family

ID=82965698

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210731311.XA Pending CN114968818A (en) 2022-06-24 2022-06-24 Automated test management method, device, terminal device and storage medium

Country Status (1)

Country Link
CN (1) CN114968818A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116016270A (en) * 2022-12-19 2023-04-25 苏州浪潮智能科技有限公司 A switch test management method, device, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105718371A (en) * 2016-01-21 2016-06-29 深圳市同创国芯电子有限公司 Regression test method, device and system
CN107783894A (en) * 2016-08-26 2018-03-09 上海计算机软件技术开发中心 A kind of multitask multiple terminals Mobile solution method of testing and its system
CN108038052A (en) * 2017-11-27 2018-05-15 平安科技(深圳)有限公司 Automatic test management method, device, terminal device and storage medium
CN108874680A (en) * 2018-07-09 2018-11-23 上海瀚银信息技术有限公司 A kind of method for testing software and system of automation
CN111209185A (en) * 2019-12-23 2020-05-29 厦门市美亚柏科信息股份有限公司 Keyword-based automated testing method and computer-readable storage medium
CN112052169A (en) * 2020-09-01 2020-12-08 深圳创维-Rgb电子有限公司 Test management method, system, device, and computer-readable storage medium
CN113138930A (en) * 2021-05-12 2021-07-20 上海云从企业发展有限公司 Software testing method and device and computer storage medium
CN113535567A (en) * 2021-07-21 2021-10-22 工银科技有限公司 Software testing methods, apparatus, equipment and media

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105718371A (en) * 2016-01-21 2016-06-29 深圳市同创国芯电子有限公司 Regression test method, device and system
CN107783894A (en) * 2016-08-26 2018-03-09 上海计算机软件技术开发中心 A kind of multitask multiple terminals Mobile solution method of testing and its system
CN108038052A (en) * 2017-11-27 2018-05-15 平安科技(深圳)有限公司 Automatic test management method, device, terminal device and storage medium
CN108874680A (en) * 2018-07-09 2018-11-23 上海瀚银信息技术有限公司 A kind of method for testing software and system of automation
CN111209185A (en) * 2019-12-23 2020-05-29 厦门市美亚柏科信息股份有限公司 Keyword-based automated testing method and computer-readable storage medium
CN112052169A (en) * 2020-09-01 2020-12-08 深圳创维-Rgb电子有限公司 Test management method, system, device, and computer-readable storage medium
CN113138930A (en) * 2021-05-12 2021-07-20 上海云从企业发展有限公司 Software testing method and device and computer storage medium
CN113535567A (en) * 2021-07-21 2021-10-22 工银科技有限公司 Software testing methods, apparatus, equipment and media

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116016270A (en) * 2022-12-19 2023-04-25 苏州浪潮智能科技有限公司 A switch test management method, device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111274154A (en) Automatic testing method, device, equipment and storage medium
US9940227B2 (en) Identifying severity of test execution failures by analyzing test execution logs
US11327742B2 (en) Affinity recommendation in software lifecycle management
CN107967209B (en) A method, detection device and server for detecting errors in front-end webpage code
WO2020237877A1 (en) Log monitoring method and apparatus, terminal, and storage medium
CN111611172A (en) Project test defect analysis method, device, equipment and storage medium
CN111897723B (en) A method and device for testing application
CN112799940A (en) Regression testing method, device, computer system and computer readable storage medium
CN109933509A (en) A kind of method and apparatus for realizing automatic test defect management
CN114647572B (en) Method and system for software application component testing
CN115292163A (en) Application program detection method and device and computer readable storage medium
CN111290961A (en) Interface test management method, device and terminal equipment
CN114968818A (en) Automated test management method, device, terminal device and storage medium
CN119597293B (en) Automatic code repairing method and device and electronic equipment
CN107102938B (en) Test script updating method and device
CN119668676A (en) Configuration import method, configuration export method, server and readable storage medium
CN114003497A (en) Method, device and equipment for testing service system and storage medium
CN112597041A (en) Cross-branch merging method, system, equipment and storage medium for code coverage rate
CN110795338A (en) An automated testing method, device and electronic device based on front-end and back-end interaction
CN118820115B (en) Regression testing system and regression testing method for replication state machine
CN112000581A (en) Testing method and tool for Cocos2D framework software
US12321248B2 (en) Method and system for generating activity report of testbench components in a test environment
CN115543807B (en) An automated regression testing method, apparatus, computer equipment, and storage medium
CN112685283A (en) Test verification method and device, electronic equipment and computer readable storage medium
US20240418775A1 (en) Method and system for tracking and managing activities of testbench components in a test environment

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