[go: up one dir, main page]

CN116662210B - An interface regression testing method, device and application - Google Patents

An interface regression testing method, device and application Download PDF

Info

Publication number
CN116662210B
CN116662210B CN202310934835.3A CN202310934835A CN116662210B CN 116662210 B CN116662210 B CN 116662210B CN 202310934835 A CN202310934835 A CN 202310934835A CN 116662210 B CN116662210 B CN 116662210B
Authority
CN
China
Prior art keywords
test
test cases
interface
failed
cases
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.)
Active
Application number
CN202310934835.3A
Other languages
Chinese (zh)
Other versions
CN116662210A (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.)
Hangzhou Roledith Technology Co ltd
Original Assignee
Hangzhou Roledith Technology 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 Hangzhou Roledith Technology Co ltd filed Critical Hangzhou Roledith Technology Co ltd
Priority to CN202310934835.3A priority Critical patent/CN116662210B/en
Publication of CN116662210A publication Critical patent/CN116662210A/en
Application granted granted Critical
Publication of CN116662210B publication Critical patent/CN116662210B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/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/3684Test management for test design, e.g. generating new test cases
    • 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
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

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)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The application provides an interface regression testing method, device and application, which comprises the following steps: acquiring a tested interface and assigning a unique interface number, determining a test point, dividing a test scene and assigning a unique scene number; writing at least one test case, and naming each test case; and carrying out primary regression testing by using all the test cases, repairing failed test cases, and carrying out secondary regression testing by using the repaired failed test cases and the test cases associated with the failed test cases until all the tests are passed, wherein the associated test cases are obtained by naming each test case. According to the scheme, the test cases needing secondary regression are screened through the naming of each test case to carry out secondary test, so that basis is provided for interface regression, and screening time is shortened to save interface regression test time.

Description

一种接口回归测试方法、装置及应用An interface regression testing method, device and application

技术领域Technical field

本申请涉及接口测试领域,特别是涉及一种接口回归测试方法、装置及应用。This application relates to the field of interface testing, and in particular to an interface regression testing method, device and application.

背景技术Background technique

接口的测试用例是专门用于测试软件系统的接口功能的测试用例,在软件开发中,接口是不同模块、组件或系统之间进行数据交换和通信的关键点,接口的测试用例旨在验证接口的正确性、可靠性和稳定性,以确保各个组件能够正确地进行数据传输和交互。Interface test cases are test cases specifically used to test the interface functions of software systems. In software development, interfaces are the key points for data exchange and communication between different modules, components or systems. Interface test cases are designed to verify the interface. Correctness, reliability and stability to ensure that each component can correctly transmit and interact with data.

接口回归测试是一种软件测试方法,用于验证已经修改或更新的软件接口是否仍然按照预期工作,并且没有破坏现有的功能,执行接口回归测试,可以确保软件在接口层面的稳定性和兼容性,减少在修改或更新接口后引入新问题的风险。Interface regression testing is a software testing method used to verify whether the modified or updated software interface still works as expected and does not destroy existing functions. Performing interface regression testing can ensure the stability and compatibility of the software at the interface level. stability and reduce the risk of introducing new problems after modifying or updating the interface.

在现有的接口回归测试时存在较多的主观因素,缺少能够统一的方法,很容易造成缺陷的逃逸,能在缺陷回归时使用已测试用例来达到限制显得格外重要,目前大多数接口回归测试采用的方法是将发现该缺陷时的测试用例重新执行一遍,然后进行人为的自行主观的验证筛选认为可能存在由于对缺陷测试用例进行修改导致其他问题的地方,这种方法就造成了回归的不确定性和很大的主观性,因测试人员的经验水平而异,存在较大的准确性上的差异。There are many subjective factors in existing interface regression testing, and there is a lack of unified methods, which can easily cause defects to escape. It is particularly important to use tested cases to achieve limits when defect regression is performed. Currently, most interface regression tests The method adopted is to re-execute the test cases when the defect was discovered, and then conduct artificial and subjective verification and screening to believe that there may be other problems caused by modifying the defective test cases. This method causes inconsistencies in regression. Certainty and great subjectivity, there are large differences in accuracy depending on the experience level of the tester.

所以,亟需一种可以提升接口回归测试的准确度并消耗时间少的接口回归测试方法。Therefore, there is an urgent need for an interface regression testing method that can improve the accuracy of interface regression testing and consume less time.

发明内容Contents of the invention

本申请实施例提供了一种接口回归测试方法、装置及应用,通过每一测试用例的命名来筛选需要二次回归的测试用例进行二次测试来为接口回归提供依据,并且在测试过程中舍弃低优先级的测试用例来节省接口回归测试的时间。The embodiments of this application provide an interface regression testing method, device and application. The test cases that require secondary regression are screened by naming each test case for secondary testing to provide a basis for interface regression, and discarded during the test process. Low priority test cases to save time in interface regression testing.

第一方面,本申请实施例提供了一种接口回归测试方法,所述方法包括:In a first aspect, embodiments of this application provide an interface regression testing method, which method includes:

获取至少一被测接口,并为每一被测接口设置不同的接口编号,获取所有被测接口的测试点,根据所述测试点划分不同的测试场景,并为每一测试场景设置不同的场景编号,编写至少一测试用例,根据每一测试用例所属被测接口的接口编号、所属场景的场景编号、自身类别来为每一测试用例命名;Obtain at least one tested interface, set a different interface number for each tested interface, obtain test points of all tested interfaces, divide different test scenarios according to the test points, and set different scenarios for each test scenario Number, write at least one test case, and name each test case according to the interface number of the tested interface to which each test case belongs, the scene number of the scene to which it belongs, and its own category;

在一次回归测试时获取未通过测试用例,根据所述未通过测试用例命名中的接口编号、场景编号以及自身类别选取与更改未通过测试用例后会受影响的参考测试用例;Obtain failed test cases during a regression test, select and change the reference test cases that will be affected by the failed test cases based on the interface number, scenario number and own category in the failed test case naming;

使用修复后的未通过测试用例以及与参考测试用例进行二次回归测试直至所有测试用例通过。Use the repaired failed test cases and conduct secondary regression testing with the reference test cases until all test cases pass.

第二方面,本申请实施例提供了一种接口回归测试装置,包括:In the second aspect, embodiments of the present application provide an interface regression testing device, including:

设置模块:获取至少一被测接口,并为每一被测接口设置不同的接口编号,获取所有被测接口的测试点,根据所述测试点划分不同的测试场景,并为每一测试场景设置不同的场景编号,编写至少一测试用例,根据每一测试用例所属被测接口的接口编号、所属场景的场景编号、自身类别来为每一测试用例命名;Setting module: obtain at least one tested interface, and set different interface numbers for each tested interface, obtain test points of all tested interfaces, divide different test scenarios according to the test points, and set different test scenarios for each test scenario. Write at least one test case for different scenario numbers, and name each test case according to the interface number of the tested interface to which each test case belongs, the scenario number of the scenario to which it belongs, and its own category;

获取模块:在一次回归测试时获取未通过测试用例,根据所述未通过测试用例命名中的接口编号、场景编号以及自身类别选取与更改未通过测试用例后会受影响的参考测试用例;Acquisition module: Obtain failed test cases during a regression test, and select and change the reference test cases that will be affected by the failed test cases based on the interface number, scenario number and own category in the naming of the failed test cases;

回归测试模块:使用修复后的未通过测试用例以及与参考测试用例进行二次回归测试直至所有测试用例通过。Regression testing module: Use the repaired failed test cases and perform secondary regression testing with the reference test cases until all test cases pass.

第三方面,本申请实施例提供了一种电子装置,包括存储器和处理器,其所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行一种接口回归测试方法。In a third aspect, embodiments of the present application provide an electronic device, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to perform an interface regression test. method.

第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质中存储有计算机程序,所述计算机程序包括用于控制过程以执行过程的程序代码,所述过程包括一种接口回归测试方法。In a fourth aspect, embodiments of the present application provide a readable storage medium. A computer program is stored in the readable storage medium. The computer program includes program code for controlling a process to execute the process. The process includes a An interface regression testing method.

本发明的主要贡献和创新点如下:The main contributions and innovations of the present invention are as follows:

本申请实施例通过接口编号、场景编号来对测试用例进行命名,并在二次回归时根据测试用例的命名来筛选需要进行二次回归的测试用例可以为接口回归提供依据,并保证回归测试的准确度;本方案通过为每一测试用例设置不同的优先级,来进一步对未通过测试用例以及与未通过测试用例相关联的测试用例进行筛选从而节省接口测试的时间;本方案在进行二次回归时,不仅测试未通过测试用例,还会对与未通过测试用例存在关联的其他测试用例进行二次回归,提高了接口测试的稳定性。The embodiment of this application names the test cases through the interface number and scene number, and during the secondary regression, the test cases that need to be subjected to the secondary regression are screened according to the naming of the test cases, which can provide a basis for the interface regression and ensure the accuracy of the regression test. Accuracy; this solution sets different priorities for each test case to further screen failed test cases and test cases associated with failed test cases to save time in interface testing; this solution is used for secondary testing During regression, not only the failed test cases are tested, but also other test cases related to the failed test cases are regressed twice, which improves the stability of the interface test.

本申请的一个或多个实施例的细节在以下附图和描述中提出,以使本申请的其他特征、目的和优点更加简明易懂。The details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more concise and understandable.

附图说明Description of the drawings

此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described here are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation of the present application. In the attached picture:

图1是根据本申请实施例的一种接口回归测试方法的流程图;Figure 1 is a flow chart of an interface regression testing method according to an embodiment of the present application;

图2是根据本申请实施例的生成测试用例的流程图;Figure 2 is a flow chart for generating test cases according to an embodiment of the present application;

图3是根据本申请实施例的生成路径类测试用例的示意图;Figure 3 is a schematic diagram of generating a path class test case according to an embodiment of the present application;

图4是根据本申请实施例的进行接口回归测试的流程图;Figure 4 is a flow chart for interface regression testing according to an embodiment of the present application;

图5是根据本申请实施例的一种接口回归测试装置的结构框图;Figure 5 is a structural block diagram of an interface regression testing device according to an embodiment of the present application;

图6是根据本申请实施例的电子装置的硬件结构示意图。FIG. 6 is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本说明书一个或多个实施例相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本说明书一个或多个实施例的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with one or more embodiments of this specification. Rather, they are merely examples of apparatus and methods consistent with some aspects of one or more embodiments of this specification as detailed in the appended claims.

需要说明的是:在其他实施例中并不一定按照本说明书示出和描述的顺序来执行相应方法的步骤。在一些其他实施例中,其方法所包括的步骤可以比本说明书所描述的更多或更少。此外,本说明书中所描述的单个步骤,在其他实施例中可能被分解为多个步骤进行描述;而本说明书中所描述的多个步骤,在其他实施例中也可能被合并为单个步骤进行描述。It should be noted that in other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described in this specification. In some other embodiments, methods may include more or fewer steps than described in this specification. In addition, a single step described in this specification may be broken down into multiple steps for description in other embodiments; and multiple steps described in this specification may also be combined into a single step in other embodiments. describe.

实施例一Embodiment 1

本申请实施例提供了一种接口回归测试方法,具体地,参考图1,所述方法包括:The embodiment of the present application provides an interface regression testing method. Specifically, referring to Figure 1, the method includes:

获取至少一被测接口,并为每一被测接口设置不同的接口编号,获取所有被测接口的测试点,根据所述测试点划分不同的测试场景,并为每一测试场景设置不同的场景编号,编写至少一测试用例,根据每一测试用例所属被测接口的接口编号、所属场景的场景编号、自身类别来为每一测试用例命名;Obtain at least one tested interface, set a different interface number for each tested interface, obtain test points of all tested interfaces, divide different test scenarios according to the test points, and set different scenarios for each test scenario Number, write at least one test case, and name each test case according to the interface number of the tested interface to which each test case belongs, the scene number of the scene to which it belongs, and its own category;

在一次回归测试时获取未通过测试用例,根据所述未通过测试用例命名中的接口编号、场景编号以及自身类别选取与更改未通过测试用例后会受影响的参考测试用例;Obtain failed test cases during a regression test, select and change the reference test cases that will be affected by the failed test cases based on the interface number, scenario number and own category in the failed test case naming;

使用修复后的未通过测试用例以及与参考测试用例进行二次回归测试直至所有测试用例通过。Use the repaired failed test cases and conduct secondary regression testing with the reference test cases until all test cases pass.

在一些实施例中,在“获取所有被测接口的测试点,根据所述测试点划分不同的测试场景”步骤中,每一接口存在多个不同的测试点,每一测试点可以同时被划分到不同的测试场景中。In some embodiments, in the step of "obtaining the test points of all tested interfaces and dividing different test scenarios according to the test points", each interface has multiple different test points, and each test point can be divided simultaneously into different test scenarios.

具体的,列出每一被测接口的所有测试点,所述测试点是指所述被测接口的特定功能、行为或情况,他们是测试的目标,用于检查接口是否按照预期进行工作。Specifically, list all test points of each interface under test. The test points refer to the specific functions, behaviors or conditions of the interface under test. They are the targets of testing and are used to check whether the interface works as expected.

示例性的,测试点可以包括输入数据、边界条件、异常情况、交互逻辑等。For example, test points may include input data, boundary conditions, exceptions, interaction logic, etc.

在一些实施例中,按照每一测试用例按照影响核心业务的业务功能的程度由高至低为每一测试用例分配不同优先级,所述优先级分为高优先级、中优先级以及低优先级,所述高优先级的测试用例为影响核心业务的测试用例,所述中优先级的测试用例为影响功能正确性的测试用例,所述低优先级的测试用例为对业务功能不构成实质性影响或者影响轻微但不影响业务开展的测试用例。In some embodiments, each test case is assigned a different priority from high to low according to the extent to which it affects the business functions of the core business. The priority is divided into high priority, medium priority and low priority. level, the high-priority test cases are test cases that affect core business, the medium-priority test cases are test cases that affect functional correctness, and the low-priority test cases are test cases that do not constitute a substantial contribution to business functions. Test cases that have a negative impact or have a slight impact but do not affect business operations.

具体的,为每一测试用例设置优先级可以在后续的回归测试中根据优先级进行问题修复,并减少回归测试所需要的时间。Specifically, setting the priority for each test case can fix problems according to the priority in subsequent regression testing and reduce the time required for regression testing.

在一些实施例中,所述测试用例的自身类别分为逻辑类、容错类以及路径类,逻辑类测试用例是指针对软件或系统的逻辑功能进行测试的测试用例,容错类测试用例是用于测试系统或软件在出现故障或错误情况下的行为和反应的测试用例,路径类测试用例是基于软件或系统的不同路径和执行逻辑进行设计的测试用例。In some embodiments, the categories of the test cases are divided into logical categories, fault-tolerant categories, and path categories. Logical test cases refer to test cases for testing the logical functions of the software or system, and fault-tolerant test cases are used to test the logical functions of the software or system. Test cases are used to test the behavior and reaction of a system or software in the event of a fault or error. Path test cases are test cases designed based on different paths and execution logic of the software or system.

在本方案中,以编号a表示逻辑类测试用例,以编号b表示容错类测试用例,以编号c表示路径类测试用例,所以本方案每一测试用例的命名格式为成xx-场景编号-接口编号-a/b/c-xx,xx表示其他的编码元素,生成测试用例的流程图如图2所示。In this solution, the number a represents the logical test case, the number b represents the fault-tolerant test case, and the number c represents the path test case. Therefore, the naming format of each test case in this program is xx-scenario number-interface Number-a/b/c-xx, xx represents other coding elements. The flow chart of generating test cases is shown in Figure 2.

示例性的,本方案中的逻辑类接口用例通常表示一个接口按照既定的传参要求传各种合法的参数后接口能返回期待的正确的信息。For example, the logical interface use case in this solution usually indicates that an interface can return the expected correct information after passing various legal parameters according to the established parameter transmission requirements.

本方案中的容错类接口用例通常表示一个接口按照非正常逻辑(空值、不是规定的参数类型等)传参时的各种可能情况,要求接口也能正确处理并给出提示不能出现异常。The fault-tolerant interface use cases in this solution usually represent various possible situations when an interface passes parameters according to abnormal logic (null values, non-specified parameter types, etc.), and the interface is required to handle them correctly and give prompts without exceptions.

本方案中的路径类的接口用例通常表示一个接口传参并得到返回的值后,该值被下游接口传参时所用,或是生成的值存到数据库中被下游接口所处理返回,下游接口使用该参数值后业务正确,同样的也可能该接口的参数值也是上游接口来的,这种情况都属于路径类,例如图3所示,同一场景下存在互相连接的n段路径a、b、c、d、e,则可以生成不同路径的测试用例如start>a+b+c>end1、start>a+b+d>end2、start>a+e>end2等。The interface use case of the path class in this solution usually means that after an interface passes parameters and gets the returned value, the value is used by the downstream interface when passing parameters, or the generated value is stored in the database and is processed and returned by the downstream interface. The downstream interface After using this parameter value, the service is correct. It is also possible that the parameter value of this interface also comes from the upstream interface. This situation belongs to the path class. For example, as shown in Figure 3, there are n segments of paths a and b connected to each other in the same scenario. , c, d, e, you can generate tests with different paths, such as start>a+b+c>end1, start>a+b+d>end2, start>a+e>end2, etc.

具体的,通过对每一测试用例进行命名的方式来为后续的接口回归测试提供依据。Specifically, each test case is named to provide a basis for subsequent interface regression testing.

在一些具体实施例中,一次回归测试时排除低优先级的未通过测试用例。In some embodiments, low-priority failed test cases are excluded from a regression test.

具体的,在进行回归测试的过程中,对一个问题进行修复很有可能导致另一个更大问题的出现,由于低优先级的测试用例对业务功能不构成实质性影响,所以在一次回归测试时排除低优先级的未通过测试用例来节省接口测试的时间。Specifically, during the regression testing process, fixing a problem is likely to lead to the emergence of another bigger problem. Since low-priority test cases do not have a substantial impact on business functions, during a regression test Save time in interface testing by excluding low-priority failing test cases.

在一些实施例中,在“使用修复后的未通过测试用例以及与参考测试用例进行二次回归测试直至所有测试用例通过”步骤中,若未通过测试用例为逻辑类测试用例,则根据未通过测试用例命名抽取与未通过测试用例同一场景编号的所有路径类测试用例以及同一场景编号同一接口编号的所有逻辑类测试用例作为参考测试用例。In some embodiments, in the step of "using the repaired failed test cases and performing secondary regression testing with the reference test cases until all test cases pass", if the failed test cases are logical test cases, then based on the failure The test case naming extracts all path class test cases with the same scenario number as the failed test case and all logic class test cases with the same scenario number and the same interface number as reference test cases.

具体的,由于修改逻辑类测试用例可能会影响接口上下游的取数所以需要对同一场景下的所有路径类测试用例进行二次回归测试以防出现更多的问题。Specifically, since modifying logical test cases may affect the upstream and downstream access to the interface, it is necessary to conduct secondary regression testing on all path test cases in the same scenario to prevent more problems.

在一些实施例中,在“使用修复后的未通过测试用例以及与参考测试用例进行二次回归测试直至所有测试用例通过”步骤中,若未通过测试用例为容错类测试用例,则根据未通过测试用例命名抽取与未通过测试用例同一场景编号的所有路径类测试用例以及同一场景编号同一接口编号的所有容错类测试用例作为参考测试用例。In some embodiments, in the step of "using the repaired failed test cases and performing a secondary regression test with the reference test cases until all test cases pass", if the failed test cases are fault-tolerant test cases, then based on the failure The test case naming extracts all path-type test cases with the same scenario number as the failed test case and all fault-tolerance type test cases with the same scenario number and the same interface number as reference test cases.

具体的,由于修改容错类测试用例会影响到接口上下游的取数,所以需要对同一场景下的所有路径类测试用例进行二次回归测试以防出现更多的问题。Specifically, since modifying the fault-tolerant test cases will affect the upstream and downstream access to the interface, it is necessary to conduct a second regression test on all path test cases in the same scenario to prevent more problems.

在一些实施例中,在“使用修复后的未通过测试用例以及与参考测试用例进行二次回归测试直至所有测试用例通过”步骤中,若未通过测试用例为路径类测试用例,则根据未通过测试用例命名抽取与未通过测试用例同一场景编号下的所有逻辑类测试用例以及所有路径类测试用例作为参考测试用例。In some embodiments, in the step of "using the repaired failed test cases and performing secondary regression testing with the reference test cases until all test cases pass", if the failed test case is a path class test case, based on the failure The test case naming extracts all logical class test cases and all path class test cases under the same scenario number as the failed test case as reference test cases.

在一些实施例中,与未通过测试用例存在关联的测试用例仅为优先级高的测试用例。In some embodiments, test cases associated with failed test cases are only high-priority test cases.

具体的,本方案进行接口回归测试的流程图如图4所示,为了提高二次回归测试的效率问题并为接口回归测试提供回归依据,所以在二次回归时通过测试用例的命名来查找与未通过测试用例存在关联的测试用例,且只需执行高优先级的测试用例。Specifically, the flow chart of interface regression testing in this solution is shown in Figure 4. In order to improve the efficiency of secondary regression testing and provide regression basis for interface regression testing, the naming of test cases is used to find and There are associated test cases for failed test cases, and only high-priority test cases need to be executed.

示例性的,在一个设备导入场景中的导入接口存在缺陷,导入接口的接口编号为import,该导入接口的缺陷大概描述为:该接口支持导入的设备类型有3中,分别为A、B、C,其中在导入B种设备时出错。For example, there is a defect in the import interface in a device import scenario. The interface number of the import interface is import. The defect of the import interface is roughly described as follows: This interface supports import of three device types, namely A, B, C, where an error occurred while importing type B equipment.

获取测试未通过的测试用例,该测试用例大概描述为:传递设备参数为B种类时,填写好其他参数并查看返回接口是否正确。可知该测试用例为逻辑类测试用例且属于设备导入场景,则抽取测试用例命名中包含接口编号import、类型a(逻辑类)、场景编号sbdr(设备导入场景)的测试用例得到以下测试用例:sbxx3-Import-a-sbdr-0014 该用例验证导入设备类型为A的、sbxx-Import-a-sbdr-002该用例验证导入设备类型为B的、sbxx-Import-a-sbdr-003该用例验证导入设备类型为C的等(以上抽取的用例仅为例子并非全部),同时也要抽取路径类测试用例,及测试用例命名包含路径类以及设备导入场景的用例如:sbxx-null-c-sbdr-155,该测试用例是用来验证查询页面设备列表数据的接口返回数据保持正确(该用例也属于设备导入sbdr这个大场景下的,从页面操作上来理解即导入设备后查看列表是否对应正确更新显示,主要用来验证B设备类型导入后的数据下游接口的显示,也可以作为设备类型A/C再次确认用)。Obtain the test case that failed the test. The test case is roughly described as follows: when the device parameter passed is type B, fill in the other parameters and check whether the return interface is correct. It can be seen that the test case is a logical test case and belongs to the device import scenario. Then the test case name containing the interface number import, type a (logical class), and scenario number sbdr (device import scenario) is extracted and the following test case is obtained: sbxx3 -Import-a-sbdr-0014 This use case verifies the imported device type is A, sbxx-Import-a-sbdr-002 This use case verifies the imported device type is B, sbxx-Import-a-sbdr-003 This use case verifies the import The device type is C, etc. (the test cases extracted above are only examples and not exhaustive). At the same time, path class test cases must also be extracted, and the test case names include path classes and device import scenarios. For example: sbxx-null-c-sbdr- 155. This test case is used to verify that the data returned by the interface for querying the device list data on the page remains correct (this use case also belongs to the large scenario of device import sbdr. It can be understood from the page operation that after importing the device, check whether the list corresponds to the correct update display. , mainly used to verify the display of the data downstream interface after importing device type B, and can also be used to reconfirm device type A/C).

实施例二Embodiment 2

基于相同的构思,参考图5,本申请还提出了一种接口回归测试装置,包括:Based on the same concept, with reference to Figure 5, this application also proposes an interface regression testing device, including:

设置模块:获取至少一被测接口,并为每一被测接口设置不同的接口编号,获取所有被测接口的测试点,根据所述测试点划分不同的测试场景,并为每一测试场景设置不同的场景编号,编写至少一测试用例,根据每一测试用例所属被测接口的接口编号、所属场景的场景编号、自身类别来为每一测试用例命名;Setting module: obtain at least one tested interface, and set different interface numbers for each tested interface, obtain test points of all tested interfaces, divide different test scenarios according to the test points, and set different test scenarios for each test scenario. Write at least one test case for different scenario numbers, and name each test case according to the interface number of the tested interface to which each test case belongs, the scenario number of the scenario to which it belongs, and its own category;

获取模块:在一次回归测试时获取未通过测试用例,根据所述未通过测试用例命名中的接口编号、场景编号以及自身类别选取与更改未通过测试用例后会受影响的参考测试用例;Acquisition module: Obtain failed test cases during a regression test, and select and change the reference test cases that will be affected by the failed test cases based on the interface number, scenario number and own category in the naming of the failed test cases;

回归测试模块:使用修复后的未通过测试用例以及与参考测试用例进行二次回归测试直至所有测试用例通过。Regression testing module: Use the repaired failed test cases and perform secondary regression testing with the reference test cases until all test cases pass.

实施例三Embodiment 3

本实施例还提供了一种电子装置,参考图6,包括存储器404和处理器402,该存储器404中存储有计算机程序,该处理器402被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。This embodiment also provides an electronic device. Referring to Figure 6, it includes a memory 404 and a processor 402. The memory 404 stores a computer program. The processor 402 is configured to run the computer program to perform any of the above methods. The steps in the example.

具体地,上述处理器402可以包括中央处理器(CPU),或者特定集成电路(ApplicationSpecificIntegratedCircuit,简称为ASIC),或者可以被配置成实施本申请实施例的一个或多个集成电路。Specifically, the above-mentioned processor 402 may include a central processing unit (CPU), or an Application Specific Integrated Circuit (ASIC for short), or may be configured to implement one or more integrated circuits according to the embodiments of the present application.

其中,存储器404可以包括用于数据或指令的大容量存储器404。举例来说而非限制,存储器404可包括硬盘驱动器(HardDiskDrive,简称为HDD)、软盘驱动器、固态驱动器(SolidStateDrive,简称为SSD)、闪存、光盘、磁光盘、磁带或通用串行总线(UniversalSerialBus,简称为USB)驱动器或者两个或更多个以上这些的组合。在合适的情况下,存储器404可包括可移除或不可移除(或固定)的介质。在合适的情况下,存储器404可在数据处理装置的内部或外部。在特定实施例中,存储器404是非易失性(Non-Volatile)存储器。在特定实施例中,存储器404包括只读存储器(Read-OnlyMemory,简称为ROM)和随机存取存储器(RandomAccessMemory,简称为RAM)。在合适的情况下,该ROM可以是掩模编程的ROM、可编程ROM(ProgrammableRead-OnlyMemory,简称为PROM)、可擦除PROM(ErasableProgrammableRead-OnlyMemory,简称为EPROM)、电可擦除PROM(ElectricallyErasableProgrammableRead-OnlyMemory,简称为EEPROM)、电可改写ROM(ElectricallyAlterableRead-OnlyMemory,简称为EAROM)或闪存(FLASH)或者两个或更多个以上这些的组合。在合适的情况下,该RAM可以是静态随机存取存储器(StaticRandom-AccessMemory,简称为SRAM)或动态随机存取存储器(DynamicRandomAccessMemory,简称为DRAM),其中,DRAM可以是快速页模式动态随机存取存储器404(FastPageModeDynamicRandomAccessMemory,简称为FPMDRAM)、扩展数据输出动态随机存取存储器(ExtendedDateOutDynamicRandomAccessMemory,简称为EDODRAM)、同步动态随机存取内存(SynchronousDynamicRandom-AccessMemory,简称SDRAM)等。Among others, memory 404 may include mass storage 404 for data or instructions. By way of example and not limitation, the memory 404 may include a hard disk drive (Hard Disk Drive, HDD for short), a floppy disk drive, a Solid State Drive (SSD for short), flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (Universal Serial Bus, Referred to as USB) drive or a combination of two or more of these. Memory 404 may include removable or non-removable (or fixed) media, where appropriate. Memory 404 may be internal or external to the data processing device, where appropriate. In certain embodiments, memory 404 is Non-Volatile memory. In a specific embodiment, the memory 404 includes read-only memory (Read-OnlyMemory, ROM for short) and random access memory (RandomAccessMemory, RAM for short). Under appropriate circumstances, the ROM can be a mask-programmed ROM, programmable ROM (ProgrammableRead-OnlyMemory, referred to as PROM), erasable PROM (ErasableProgrammableRead-OnlyMemory, referred to as EPROM), electrically erasable PROM (Electrically ErasableProgrammableRead) -OnlyMemory (EEPROM for short), Electrically Alterable Read-OnlyMemory (EAROM for short) or flash memory (FLASH) or a combination of two or more of these. Under appropriate circumstances, the RAM can be static random access memory (StaticRandom-AccessMemory, referred to as SRAM) or dynamic random access memory (DynamicRandomAccessMemory, referred to as DRAM), where DRAM can be fast page mode dynamic random access Memory 404 (FastPageModeDynamicRandomAccessMemory, referred to as FPMDRAM), extended data output dynamic random access memory (ExtendedDateOutDynamicRandomAccessMemory, referred to as EDODRAM), synchronous dynamic random access memory (SynchronousDynamicRandom-AccessMemory, referred to as SDRAM), etc.

存储器404可以用来存储或者缓存需要处理和/或通信使用的各种数据文件,以及处理器402所执行的可能的计算机程序指令。Memory 404 may be used to store or cache various data files required for processing and/or communication, as well as possibly computer program instructions executed by processor 402.

处理器402通过读取并执行存储器404中存储的计算机程序指令,以实现上述实施例中的任意一种接口回归测试方法。The processor 402 reads and executes the computer program instructions stored in the memory 404 to implement any of the interface regression testing methods in the above embodiments.

可选地,上述电子装置还可以包括传输设备406以及输入输出设备408,其中,该传输设备406和上述处理器402连接,该输入输出设备408和上述处理器402连接。Optionally, the above-mentioned electronic device may also include a transmission device 406 and an input-output device 408, wherein the transmission device 406 is connected to the above-mentioned processor 402, and the input-output device 408 is connected to the above-mentioned processor 402.

传输设备406可以用来经由一个网络接收或者发送数据。上述的网络具体实例可包括电子装置的通信供应商提供的有线或无线网络。在一个实例中,传输设备包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输设备406可以为射频(Radio Frequency,简称为RF)模块,其用于通过无线方式与互联网进行通讯。Transmission device 406 may be used to receive or send data over a network. Specific examples of the above-mentioned network may include a wired or wireless network provided by a communication provider of the electronic device. In one example, the transmission device includes a network adapter (Network Interface Controller, NIC for short), which can be connected to other network devices through a base station to communicate with the Internet. In one example, the transmission device 406 may be a radio frequency (Radio Frequency, RF for short) module, which is used to communicate with the Internet wirelessly.

输入输出设备408用于输入或输出信息。在本实施例中,输入的信息可以是测试用例、二次回归的测试用例等,输出的信息可以测试结果等。Input and output devices 408 are used to input or output information. In this embodiment, the input information may be test cases, quadratic regression test cases, etc., and the output information may be test results, etc.

可选地,在本实施例中,上述处理器402可以被设置为通过计算机程序执行以下步骤:Optionally, in this embodiment, the above-mentioned processor 402 can be configured to perform the following steps through a computer program:

S101、获取至少一被测接口,并为每一被测接口设置不同的接口编号,获取所有被测接口的测试点,根据所述测试点划分不同的测试场景,并为每一测试场景设置不同的场景编号,编写至少一测试用例,根据每一测试用例所属被测接口的接口编号、所属场景的场景编号、自身类别来为每一测试用例命名;S101. Obtain at least one tested interface, set a different interface number for each tested interface, obtain test points of all tested interfaces, divide different test scenarios according to the test points, and set different test scenarios for each test scenario. Scenario number, write at least one test case, and name each test case according to the interface number of the tested interface to which each test case belongs, the scenario number of the scenario to which it belongs, and its own category;

S102、在一次回归测试时获取未通过测试用例,根据所述未通过测试用例命名中的接口编号、场景编号以及自身类别选取与更改未通过测试用例后会受影响的参考测试用例;S102. Obtain failed test cases during a regression test, and select and change the reference test cases that will be affected by the failed test cases according to the interface number, scenario number and own category in the naming of the failed test cases;

S103、使用修复后的未通过测试用例以及与参考测试用例进行二次回归测试直至所有测试用例通过。S103. Use the repaired failed test cases and conduct a second regression test with the reference test cases until all test cases pass.

需要说明的是,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。It should be noted that for specific examples in this embodiment, reference may be made to the examples described in the above-mentioned embodiments and optional implementations, and the details of this embodiment will not be repeated here.

通常,各种实施例可以以硬件或专用电路、软件、逻辑或其任何组合来实现。本发明的一些方面可以以硬件来实现,而其他方面可以以可以由控制器、微处理器或其他计算设备执行的固件或软件来实现,但是本发明不限于此。尽管本发明的各个方面可以被示出和描述为框图、流程图或使用一些其他图形表示,但是应当理解,作为非限制性示例,本文中描述的这些框、装置、系统、技术或方法可以以硬件、软件、固件、专用电路或逻辑、通用硬件或控制器或其他计算设备或其某种组合来实现。Generally, various embodiments may be implemented in hardware or special purpose circuitry, software, logic, or any combination thereof. Some aspects of the invention may be implemented in hardware, while other aspects may be implemented in firmware or software that may be executed by a controller, microprocessor or other computing device, although the invention is not limited thereto. Although various aspects of the invention may be shown and described as block diagrams, flow diagrams, or using some other graphical representation, it is to be understood that, by way of non-limiting example, the blocks, devices, systems, techniques, or methods described herein may be Hardware, software, firmware, special purpose circuits or logic, general purpose hardware or controllers or other computing devices, or some combination thereof.

本发明的实施例可以由计算机软件来实现,该计算机软件由移动设备的数据处理器诸如在处理器实体中可执行,或者由硬件来实现,或者由软件和硬件的组合来实现。包括软件例程、小程序和/或宏的计算机软件或程序(也称为程序产品)可以存储在任何装置可读数据存储介质中,并且它们包括用于执行特定任务的程序指令。计算机程序产品可以包括当程序运行时被配置为执行实施例的一个或多个计算机可执行组件。一个或多个计算机可执行组件可以是至少一个软件代码或其一部分。另外,在这一点上,应当注意,如图6中的逻辑流程的任何框可以表示程序步骤、或者互连的逻辑电路、框和功能、或者程序步骤和逻辑电路、框和功能的组合。软件可以存储在诸如存储器芯片或在处理器内实现的存储块等物理介质、诸如硬盘或软盘等磁性介质、以及诸如例如DVD及其数据变体、CD等光学介质上。物理介质是非瞬态介质。Embodiments of the invention may be implemented by computer software executable by a data processor of the mobile device, such as in a processor entity, or by hardware, or by a combination of software and hardware. Computer software or programs (also referred to as program products), including software routines, applets, and/or macros, may be stored on any device-readable data storage medium, and they include program instructions for performing specific tasks. A computer program product may include one or more computer-executable components that are configured to perform embodiments when the program is executed. One or more computer-executable components may be at least one software code or a portion thereof. Additionally, at this point, it should be noted that any block of the logic flow in Figure 6 may represent program steps, or interconnected logic circuits, blocks, and functions, or a combination of program steps and logic circuits, blocks, and functions. Software may be stored on physical media such as memory chips or memory blocks implemented within a processor, magnetic media such as hard or floppy disks, and optical media such as, for example, DVD and its data variants, CDs. Physical media are non-transient media.

本领域的技术人员应该明白,以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。Those skilled in the art should understand that the technical features of the above embodiments can be combined in any way. To simplify the description, not all possible combinations of the technical features in the above embodiments are described. However, as long as these technical features There is no contradiction in the combinations, and they should be considered to be within the scope of this manual.

以上实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请的保护范围应以所附权利要求为准。The above embodiments only express several implementation modes of the present application, and their descriptions are relatively specific and detailed, but should not be construed as limiting the scope of the present application. It should be noted that, for those of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all fall within the protection scope of the present application. Therefore, the scope of protection of this application should be determined by the appended claims.

Claims (8)

1.一种接口回归测试方法,其特征在于,包括以下步骤:1. An interface regression testing method, characterized by including the following steps: 获取至少一被测接口,并为每一被测接口设置不同的接口编号,获取所有被测接口的测试点,根据所述测试点划分不同的测试场景,并为每一测试场景设置不同的场景编号,编写至少一测试用例,根据每一测试用例所属被测接口的接口编号、所属场景的场景编号、自身类别来为每一测试用例命名;Obtain at least one tested interface, set a different interface number for each tested interface, obtain test points of all tested interfaces, divide different test scenarios according to the test points, and set different scenarios for each test scenario Number, write at least one test case, and name each test case according to the interface number of the tested interface to which each test case belongs, the scene number of the scene to which it belongs, and its own category; 在一次回归测试时获取未通过测试用例,根据所述未通过测试用例命名中的接口编号、场景编号以及自身类别选取与更改未通过测试用例后会受影响的参考测试用例,根据测试用例的自身类别将测试用例区分为逻辑类测试用例、容错类测试用例以及路径类测试用例,若未通过测试用例为逻辑类测试用例,则根据未通过测试用例命名抽取与未通过测试用例同一场景编号的所有路径类测试用例以及同一场景编号同一接口编号的所有逻辑类测试用例作为参考测试用例;若未通过测试用例为容错类测试用例,则根据未通过测试用例命名抽取与未通过测试用例同一场景编号的所有路径类测试用例以及同一场景编号同一接口编号的所有容错类测试用例作为参考测试用例;若未通过测试用例为路径类测试用例,则根据未通过测试用例命名抽取与未通过测试用例同一场景编号下的所有逻辑类测试用例以及所有路径类测试用例作为参考测试用例,按照每一测试用例按照影响核心业务的业务功能的程度由高至低为每一测试用例分配不同优先级,所述优先级分为高优先级、中优先级以及低优先级;Obtain failed test cases during a regression test, select and change the reference test cases that will be affected by the failed test cases according to the interface number, scenario number and own category in the failed test case naming, and select and change the reference test cases that will be affected according to the test case itself. Categories divide test cases into logical test cases, fault-tolerant test cases and path test cases. If the failed test case is a logical test case, all test cases with the same scenario number as the failed test case will be extracted based on the failed test case name. Path class test cases and all logic class test cases with the same scene number and the same interface number are used as reference test cases; if the failed test case is a fault-tolerant test case, the test case with the same scene number as the failed test case will be extracted based on the name of the failed test case. All path test cases and all fault-tolerance test cases with the same scenario number and the same interface number are used as reference test cases; if the failed test case is a path class test case, the same scenario number as the failed test case will be extracted based on the failed test case naming All logical test cases and all path test cases under are used as reference test cases. Each test case is assigned a different priority from high to low according to the degree of impact on the business functions of the core business. The priority is Divided into high priority, medium priority and low priority; 使用修复后的未通过测试用例以及与参考测试用例进行二次回归测试直至所有测试用例通过。Use the repaired failed test cases and conduct secondary regression testing with the reference test cases until all test cases pass. 2.根据权利要求1所述的一种接口回归测试方法,其特征在于,所述高优先级的测试用例为影响核心业务的测试用例,所述中优先级的测试用例为影响功能正确性的测试用例,所述低优先级的测试用例为对业务功能不构成实质性影响或者影响轻微但不影响业务开展的测试用例。2. An interface regression testing method according to claim 1, characterized in that the high-priority test cases are test cases that affect core business, and the medium-priority test cases are those that affect functional correctness. Test cases, the low-priority test cases are test cases that do not have a substantial impact on business functions or have a slight impact but do not affect business development. 3.根据权利要求1所述的一种接口回归测试方法,其特征在于,二次回归时筛选高优先级的测试用例,此时的测试用例包括修复后的未通过测试用例以及选取的参考测试用例。3. An interface regression testing method according to claim 1, characterized in that high-priority test cases are screened during secondary regression, and the test cases at this time include repaired failed test cases and selected reference tests. Example. 4.根据权利要求1所述的接口回归测试方法,其特征在于,一次回归测试时排除低优先级的未通过测试用例。4. The interface regression testing method according to claim 1, characterized in that, during a regression test, low-priority failed test cases are excluded. 5.根据权利要求1所述的接口回归测试方法,其特征在于,获取存在缺陷的被测接口,根据被测接口的缺陷获取对应的未通过测试用例。5. The interface regression testing method according to claim 1, characterized in that, a defective tested interface is obtained, and corresponding failed test cases are obtained according to the defects of the tested interface. 6.一种接口回归测试装置,其特征在于,包括:6. An interface regression testing device, characterized by including: 设置模块:获取至少一被测接口,并为每一被测接口设置不同的接口编号,获取所有被测接口的测试点,根据所述测试点划分不同的测试场景,并为每一测试场景设置不同的场景编号,编写至少一测试用例,根据每一测试用例所属被测接口的接口编号、所属场景的场景编号、自身类别来为每一测试用例命名;Setting module: obtain at least one tested interface, and set different interface numbers for each tested interface, obtain test points of all tested interfaces, divide different test scenarios according to the test points, and set different test scenarios for each test scenario. Write at least one test case for different scenario numbers, and name each test case according to the interface number of the tested interface to which each test case belongs, the scenario number of the scenario to which it belongs, and its own category; 获取模块:在一次回归测试时获取未通过测试用例,根据所述未通过测试用例命名中的接口编号、场景编号以及自身类别选取与更改未通过测试用例后会受影响的参考测试用例,根据测试用例的自身类别将测试用例区分为逻辑类测试用例、容错类测试用例以及路径类测试用例,若未通过测试用例为逻辑类测试用例,则根据未通过测试用例命名抽取与未通过测试用例同一场景编号的所有路径类测试用例以及同一场景编号同一接口编号的所有逻辑类测试用例作为参考测试用例;若未通过测试用例为容错类测试用例,则根据未通过测试用例命名抽取与未通过测试用例同一场景编号的所有路径类测试用例以及同一场景编号同一接口编号的所有容错类测试用例作为参考测试用例;若未通过测试用例为路径类测试用例,则根据未通过测试用例命名抽取与未通过测试用例同一场景编号下的所有逻辑类测试用例以及所有路径类测试用例作为参考测试用例,按照每一测试用例按照影响核心业务的业务功能的程度由高至低为每一测试用例分配不同优先级,所述优先级分为高优先级、中优先级以及低优先级;Acquisition module: Obtain failed test cases during a regression test. Select and change the reference test cases that will be affected by the failed test cases according to the interface number, scenario number and own category in the failed test case naming. According to the test The test case's own category divides the test cases into logical test cases, fault-tolerant test cases and path test cases. If the failed test case is a logical test case, the same scenario as the failed test case will be extracted based on the failed test case name. All path test cases with the same number and all logical test cases with the same scene number and the same interface number are used as reference test cases; if the failed test case is a fault-tolerant test case, it will be extracted based on the failed test case naming and is the same as the failed test case. All path test cases with scenario numbers and all fault-tolerance test cases with the same scene number and interface number are used as reference test cases; if the failed test case is a path class test case, the failed test cases will be extracted based on the failed test case naming. All logical test cases and all path test cases under the same scenario number are used as reference test cases. Each test case is assigned a different priority from high to low according to the degree of impact on the business functions of the core business. Therefore, The above priorities are divided into high priority, medium priority and low priority; 回归测试模块:使用修复后的未通过测试用例以及与参考测试用例进行二次回归测试直至所有测试用例通过。Regression testing module: Use the repaired failed test cases and perform secondary regression testing with the reference test cases until all test cases pass. 7.一种电子装置,包括存储器和处理器,其特征在于,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行权利要求1-5任一所述的一种接口回归测试方法。7. An electronic device, comprising a memory and a processor, characterized in that a computer program is stored in the memory, and the processor is configured to run the computer program to execute any one of claims 1-5. An interface regression testing method. 8.一种可读存储介质,其特征在于,所述可读存储介质中存储有计算机程序,所述计算机程序包括用于控制过程以执行过程的程序代码,所述过程包括权利要求1-5任一所述的一种接口回归测试方法。8. A readable storage medium, characterized in that a computer program is stored in the readable storage medium, and the computer program includes program code for controlling a process to execute a process, the process including claims 1-5 Any one of the interface regression testing methods described above.
CN202310934835.3A 2023-07-28 2023-07-28 An interface regression testing method, device and application Active CN116662210B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310934835.3A CN116662210B (en) 2023-07-28 2023-07-28 An interface regression testing method, device and application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310934835.3A CN116662210B (en) 2023-07-28 2023-07-28 An interface regression testing method, device and application

Publications (2)

Publication Number Publication Date
CN116662210A CN116662210A (en) 2023-08-29
CN116662210B true CN116662210B (en) 2023-09-29

Family

ID=87715643

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310934835.3A Active CN116662210B (en) 2023-07-28 2023-07-28 An interface regression testing method, device and application

Country Status (1)

Country Link
CN (1) CN116662210B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109344048A (en) * 2018-08-17 2019-02-15 中国平安人寿保险股份有限公司 A kind of test method, storage medium and server
CN110633222A (en) * 2019-11-01 2019-12-31 中国银行股份有限公司 Method and device for determining regression test case
CN115017040A (en) * 2022-05-31 2022-09-06 苏州浪潮智能科技有限公司 Test case screening method and system, electronic equipment and storage medium
CN115454851A (en) * 2022-09-14 2022-12-09 海尔优家智能科技(北京)有限公司 Interface regression testing method, device, storage medium and electronic device
CN115809203A (en) * 2023-02-07 2023-03-17 杭州罗莱迪思科技股份有限公司 Dynamic nesting method, device and application of software test cases

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9720813B2 (en) * 2015-08-13 2017-08-01 Ca, Inc. Method and apparatus for recommending regression tests
US10303587B2 (en) * 2017-07-27 2019-05-28 Hcl Technologies Limited System and method for generating regression test suite

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109344048A (en) * 2018-08-17 2019-02-15 中国平安人寿保险股份有限公司 A kind of test method, storage medium and server
CN110633222A (en) * 2019-11-01 2019-12-31 中国银行股份有限公司 Method and device for determining regression test case
CN115017040A (en) * 2022-05-31 2022-09-06 苏州浪潮智能科技有限公司 Test case screening method and system, electronic equipment and storage medium
CN115454851A (en) * 2022-09-14 2022-12-09 海尔优家智能科技(北京)有限公司 Interface regression testing method, device, storage medium and electronic device
CN115809203A (en) * 2023-02-07 2023-03-17 杭州罗莱迪思科技股份有限公司 Dynamic nesting method, device and application of software test cases

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Backtracking search optimization algorithm with dual scatter search strategy for automated test case generation;Jingru Ren等;《Journal of King Saud University - Computer and Information Sciences》;全文 *
基于函数调用路径的回归测试用例选择排序方法研究;郑锦勤;牟永敏;;计算机应用研究(第07期);全文 *
基于场景模型的DDS架构一体化舰船任务系统测试;钱巨等;《软件学报》;第33卷(第5期);全文 *

Also Published As

Publication number Publication date
CN116662210A (en) 2023-08-29

Similar Documents

Publication Publication Date Title
CN107766236B (en) Test task automatic management method, device, equipment and storage medium
CN111552632B (en) Interface testing method and device
CN111767210A (en) Strategy testing method, apparatus, computer equipment and storage medium
CN110134598B (en) Batch processing method, device and system
CN113836001A (en) Code detection method, device and storage medium
US11573780B2 (en) Automated generation of status chains for software updates
CN115809203B (en) Dynamic nesting method, device and application of software test cases
JP7611927B2 (en) Executing tests in a deterministic order
CN116662210B (en) An interface regression testing method, device and application
CN117033251B (en) A regression testing method and device for multi-version systems of mobile electronic equipment
CN111338869A (en) Configuration parameter management method, device, device and storage medium
CN115310403A (en) Defect analysis method, related device and readable storage medium
CN114638085A (en) Computing device and method for developing system model using simulation evaluation module
CN108595323A (en) A kind of system detection method and relevant apparatus
CN107992420A (en) Put forward the management method and system of survey project
TW201721434A (en) Computer program product applicable to automatic generation of software testing data and method thereof capable of making sure each functional module can access accurate testing data for testing
CN113986742A (en) Automatic testing method, device, equipment and storage medium
CN120409376A (en) Regression testing method, system, computer device and readable storage medium
CN114443358B (en) A rollback method and device based on hierarchical release
US20240418775A1 (en) Method and system for tracking and managing activities of testbench components in a test environment
CN118567920A (en) Fault simulation method, device, apparatus, storage medium and program product
CN116627740A (en) Equipment testing method and device, storage medium and electronic device
CN118246886A (en) Method, device, equipment and storage medium for managing semiconductor chip test information
CN119300069A (en) Business information processing method, device, computer equipment, readable storage medium and program product
CN120448253A (en) Service testing method and device for policy, electronic equipment and storage medium

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
EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20230829

Assignee: HANGZHOU ROLEDS CONTROL SYSTEM CO.,LTD.

Assignor: Hangzhou roledith Technology Co.,Ltd.

Contract record no.: X2024980044932

Denomination of invention: A method, device, and application for interface regression testing

Granted publication date: 20230929

License type: Common License

Record date: 20241231

EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20230829

Assignee: Hangzhou Luolaidisi Intelligent Technology Co.,Ltd.

Assignor: Hangzhou roledith Technology Co.,Ltd.

Contract record no.: X2024980043761

Denomination of invention: A method, device, and application for interface regression testing

Granted publication date: 20230929

License type: Common License

Record date: 20250103

EC01 Cancellation of recordation of patent licensing contract
EC01 Cancellation of recordation of patent licensing contract

Assignee: HANGZHOU ROLEDS CONTROL SYSTEM CO.,LTD.

Assignor: Hangzhou roledith Technology Co.,Ltd.

Contract record no.: X2024980044932

Date of cancellation: 20250327

Assignee: Hangzhou Luolaidisi Intelligent Technology Co.,Ltd.

Assignor: Hangzhou roledith Technology Co.,Ltd.

Contract record no.: X2024980043761

Date of cancellation: 20250327