WO2011079685A1 - Method and device for magaging regression test - Google Patents

Method and device for magaging regression test Download PDF

Info

Publication number
WO2011079685A1
WO2011079685A1 PCT/CN2010/079411 CN2010079411W WO2011079685A1 WO 2011079685 A1 WO2011079685 A1 WO 2011079685A1 CN 2010079411 W CN2010079411 W CN 2010079411W WO 2011079685 A1 WO2011079685 A1 WO 2011079685A1
Authority
WO
WIPO (PCT)
Prior art keywords
test case
test
defect
regression
software
Prior art date
Application number
PCT/CN2010/079411
Other languages
French (fr)
Chinese (zh)
Inventor
张德胜
宋三英
刘国磊
Original Assignee
北京世纪高通科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京世纪高通科技有限公司 filed Critical 北京世纪高通科技有限公司
Publication of WO2011079685A1 publication Critical patent/WO2011079685A1/en

Links

Classifications

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

Definitions

  • the present invention relates to the field of software testing technologies, and in particular, to a management method and apparatus for regression testing.
  • Embodiments of the present invention provide a management method and apparatus for regression testing, which can improve testing While ensuring efficiency, the reliability of the test is guaranteed.
  • a management method for regression testing including:
  • the regression test case is tested.
  • a management device for regression testing including:
  • mapping relationship establishing unit configured to establish a mapping relationship between each required function point, each defect, and a test case
  • An information acquisition unit configured to acquire a changed demand function point
  • test case generating unit configured to, according to the mapping relationship, improve a regression test case for the changed demand function point and a defect obtained by a solution version of the software
  • the management method and device for regression testing according to the embodiment of the present invention can establish a mapping relationship between each required function point, each defect, and a test case, and when the user's required function changes or a defect in the software solution version, Finding the result of this mapping improves the regression test case. Therefore, by using the method and apparatus according to the embodiments of the present invention, not only the test efficiency can be improved, but also the reliability of the test can be ensured.
  • 1 is a flowchart of a management method of a regression test according to an embodiment of the present invention
  • 2 is a schematic diagram of a management apparatus for regression testing according to an embodiment of the present invention
  • FIG. 3 is a structural diagram of a management apparatus for regression testing according to an embodiment of the present invention.
  • the embodiment of the present invention provides a management method for the regression test. As shown in FIG. 1, the method of the embodiment of the present invention includes:
  • Step 11 Establish a mapping relationship between each required function point, each defect, and a test case.
  • each demand function point is extracted according to key documents such as the user's needs and detailed design. Then, each demand function point can be refined in the function table. All test cases are generated by this menu. Among them, the function points in the function table are one-to-many relationship with the test cases, that is, one function point may correspond to multiple test cases. Each defect is generated when the test case is executed, and the correspondence between the test case and each defect is a many-to-one relationship, that is, executing a test case may result in multiple defects.
  • the corresponding relationship between each required function point and the test case may be first established, and then the corresponding defect is obtained by executing the test case, thereby establishing the test according to each defect obtained.
  • each defect can correspond to at least one test case, and each test case corresponds to at least one required function point. Therefore, for each defect, the test case can be mapped to the corresponding demand function point. Correspondingly, the performance of the regression test can be checked through each demand function point.
  • Step 12 Obtain the changed demand function points.
  • Step 1 3 According to the mapping relationship, the regression test case is perfected for the changed demand function point and the defect obtained by the software version.
  • step 12 For the required feature points for the changes obtained in step 12, rewrite the test cases for them. Defects obtained by a solved version of the software can be obtained by traversing the respective defects. Then, according to the mapping relationship, the corresponding test case is obtained.
  • test cases written for the changed demand function points and the test cases corresponding to the defects of the solution version of the software can be stored as regression test cases.
  • Step 14 Test the regression test case.
  • the management method of the regression test in the embodiment of the present invention can establish a mapping relationship between each required function point, each defect, and a test case, and when the user's required function changes or a defect in the solution version of the software, The results of the mapping relationship complete the regression test case. Therefore, by using the method and apparatus according to the embodiments of the present invention, not only the test efficiency can be improved, but also the reliability of the test can be ensured.
  • the regression test it can be judged whether the regression test is completed, so that the tester can check the execution of the test.
  • judging whether the regression test is completed it is mainly to judge whether the test of the required function point of the change of the mark is completed and whether all the regression test cases have been fully executed.
  • a regression test will be generated to report the error, otherwise the alarm information will be output.
  • the storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Acces s Memory (RAM).
  • the embodiment of the present invention further provides a management device for regression testing, as shown in FIG. 2, including: a mapping relationship establishing unit 21, configured to establish a mapping relationship between each required function point, each defect, and a test case; an information acquiring unit 22, configured to acquire a changed demand function point; a test case generating unit 23, configured to Mapping the relationship, refining the regression test case for the changed demand function point and the defect obtained by the solution version of the software; the testing unit 24 is configured to test the regression test case.
  • a mapping relationship establishing unit 21, configured to establish a mapping relationship between each required function point, each defect, and a test case
  • an information acquiring unit 22 configured to acquire a changed demand function point
  • a test case generating unit 23 configured to Mapping the relationship, refining the regression test case for the changed demand function point and the defect obtained by the solution version of the software
  • the testing unit 24 is configured to test the regression test case.
  • the mapping relationship establishing unit 21 includes: a first correspondence establishing module, configured to establish a correspondence between the required function points and the test case; and a defect obtaining module, configured to execute the test case, and obtain each a second correspondence relationship establishing module, configured to establish a correspondence between the test case and each defect according to each obtained defect.
  • the test case generation unit 23 includes: a first test case writing module, configured to write a test case for the changed required function point; a first test case obtaining module, configured to traverse the defects, and obtain the software Solving the defect in the version, and obtaining a test case corresponding to the defect in the solution version of the software according to the mapping relationship; a storage module, the test case for writing the required function point of the change, and the software according to the software
  • the test cases corresponding to the defects of the resolved version are stored as regression test cases.
  • the management device of the regression test in the embodiment of the present invention can establish a mapping relationship between each required function point, each defect, and a test case, and when the user's required function changes or a defect in the solution version of the software, The results of the mapping relationship complete the regression test case. Therefore, by using the method and apparatus according to the embodiments of the present invention, not only the test efficiency can be improved, but also the reliability of the test can be ensured.
  • the device further includes: a determining unit 25, configured to determine whether the regression test is completed; and a report generating unit 26, configured to: when the regression test is completed , Generate regression test ⁇ report.
  • the management method and apparatus for regression testing establish a mapping relationship between each required function point, each defect, and a test case, when the user's required function changes or in a solution version of the software. Defects, able to improve back based on the results of finding the mapping relationship Return to the test case. Therefore, by using the method and apparatus according to the embodiments of the present invention, not only the test efficiency can be improved, but also the reliability of the test can be ensured.

Abstract

Disclosed are a method and a device for managing a regression test. The method and the device, which relate to the technical field of software test, can improve the test efficiency and ensure the reliability of the test at the same time. The method comprises the following steps establishing mapping relations among each required function point, each defect and test cases, acquiring required function points which have been changed, according to the mapping relations, completing regression test cases for the required function points which have been changed and the defects acquired by a solution version of software, and testing the regression test cases.

Description

一种回归测试的管理方法及装置 本申请要求于 2009 年 12 月 30 日提交中国专利局、 申请号为 200910244150. 6、 发明名称为 "一种回归测试的管理方法及装置" 的中国专 利申请的优先权, 其全部内容通过引用结合在本申请中。  Management method and device for regression test This application claims to be submitted to the Chinese Patent Office on December 30, 2009, and the application number is 200910244150. 6. The Chinese patent application entitled "A Management Method and Device for Regression Testing" Priority is hereby incorporated by reference in its entirety.
技术领域 Technical field
本发明涉及软件测试技术领域, 尤其涉及一种回归测试的管理方法及装 置。  The present invention relates to the field of software testing technologies, and in particular, to a management method and apparatus for regression testing.
背景技术 Background technique
在软件生命周期中的各个阶段, 无论是由于修改软件自身的缺陷还是由 于用户的需求变更, 都必须对软件进行针对性的回归测试, 以检查各项修改 或变更是否能满足用户的需求。  At each stage of the software lifecycle, whether it is due to a modification of the software's own defects or a change in the user's needs, a targeted regression test of the software is required to check whether the modifications or changes meet the user's needs.
目前回归测试的策略至少有以下两种, 一是执行所有测试用例策略, 二 是有选择地执行部分测试用例策略。 执行所有测试用例策略是一种可信度较 高的方法。 但随着测试进度的推进, 测试用例不断增加, 因此, 利用此种策 略进行测试的话, 在时间、 人力和管理上都是不小的开支。 而有选择地执行 部分测试用例策略在实际应用中较为普遍, 一般需要首先挑选出优先级别较 高和关键的测试用例。 但这种回归测试策略可能会出现挑选测试用例不准确 或许多受关联的功能点有可能并未挑选到的问题, 因此利用这种策略进行测 试的可靠性不是很高。  At present, there are at least two strategies for regression testing. One is to execute all test case strategies, and the other is to selectively execute some test case strategies. Executing all test case strategies is a more credible method. However, as the progress of the test progresses, the number of test cases continues to increase. Therefore, testing with such a strategy is not a small expense in terms of time, manpower, and management. Selective execution of partial test case strategies is common in practical applications. Generally, you need to first select high-priority and critical test cases. However, this regression test strategy may have problems in selecting test cases that are inaccurate or that many associated function points may not be selected, so the reliability of testing using this strategy is not very high.
如何高效的进行回归测试, 已经成为相关研究人员的研究重点。 但是, 目前大多的回归测试主要集中于对测试输入和输出的研究上。 虽然, 有些测 试方法能够提高回归测试的效率, 但是这些方法往往不能兼顾到测试的可靠 性。  How to conduct regression testing efficiently has become the research focus of relevant researchers. However, most of the current regression tests focus on the study of test inputs and outputs. Although some test methods can improve the efficiency of regression testing, these methods often fail to balance the reliability of the test.
发明内容 Summary of the invention
本发明实施例提供了一种回归测试的管理方法及装置, 能够在提高测试 效率的同时, 保证测试的可靠性。 Embodiments of the present invention provide a management method and apparatus for regression testing, which can improve testing While ensuring efficiency, the reliability of the test is guaranteed.
本发明实施例采用如下技术方案:  The embodiment of the invention adopts the following technical solutions:
一种回归测试的管理方法, 包括:  A management method for regression testing, including:
建立各需求功能点、 各缺陷和测试用例之间的映射关系;  Establish a mapping relationship between each required function point, each defect, and a test case;
获取变化的需求功能点;  Obtaining changed demand function points;
根据所述映射关系, 为所述变化的需求功能点以及由软件的解决版本所 获得的缺陷完善回归测试用例;  Determining the regression test case for the changed demand function point and the defect obtained by the solution version of the software according to the mapping relationship;
对所述回归测试用例进行测试。  The regression test case is tested.
一种回归测试的管理装置, 包括:  A management device for regression testing, including:
映射关系建立单元, 用于建立各需求功能点、 各缺陷和测试用例之间的 映射关系;  a mapping relationship establishing unit, configured to establish a mapping relationship between each required function point, each defect, and a test case;
信息获取单元, 用于获取变化的需求功能点;  An information acquisition unit, configured to acquire a changed demand function point;
测试用例生成单元, 用于根据所述映射关系, 为所述变化的需求功能点 以及由软件的解决版本所获得的缺陷完善回归测试用例;  a test case generating unit, configured to, according to the mapping relationship, improve a regression test case for the changed demand function point and a defect obtained by a solution version of the software;
测试单元, 用于对所述回归测试用例进行测试。  a test unit for testing the regression test case.
本发明实施例回归测试的管理方法及装置, 通过建立各需求功能点、 各 缺陷和测试用例之间的映射关系, 当用户的需求功能发生变化时或者对于软 件的解决版本中的缺陷, 能够根据查找该映射关系的结果完善回归测试用例。 因此, 利用本发明实施例所述的方法和装置, 不但能够提高测试效率, 而且 还能够保证测试的可靠性。  The management method and device for regression testing according to the embodiment of the present invention can establish a mapping relationship between each required function point, each defect, and a test case, and when the user's required function changes or a defect in the software solution version, Finding the result of this mapping improves the regression test case. Therefore, by using the method and apparatus according to the embodiments of the present invention, not only the test efficiency can be improved, but also the reliability of the test can be ensured.
附图说明 DRAWINGS
为了更清楚地说明本发明实施例的技术方案, 下面将对实施例描述中所 需要使用的附图作一简单地介绍, 显而易见地, 下面描述中的附图仅仅是本 发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的 前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following drawings will be briefly described, and the drawings in the following description are only some embodiments of the present invention. Other drawings may also be obtained from those of ordinary skill in the art in view of the drawings.
图 1为本发明实施例回归测试的管理方法的流程图; 图 2为本发明实施例回归测试的管理装置的示意图; 1 is a flowchart of a management method of a regression test according to an embodiment of the present invention; 2 is a schematic diagram of a management apparatus for regression testing according to an embodiment of the present invention;
图 3为本发明实施例回归测试的管理装置的结构图。  FIG. 3 is a structural diagram of a management apparatus for regression testing according to an embodiment of the present invention.
具体实施方式 detailed description
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而 不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作 出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
为在提高测试效率的同时, 保证测试的可靠性, 本发明实施例提供了一 种回归测试的管理方法。 如图 1所示, 本发明实施例的方法包括:  In order to improve the reliability of the test while improving the test efficiency, the embodiment of the present invention provides a management method for the regression test. As shown in FIG. 1, the method of the embodiment of the present invention includes:
步骤 11、 建立各需求功能点、 各缺陷和测试用例之间的映射关系。  Step 11. Establish a mapping relationship between each required function point, each defect, and a test case.
在本发明实施例中, 根据用户的需求、 详细设计等关键文档提炼出各需 求功能点。 然后, 可将各需求功能点都细化在功能表中。 所有的测试用例都 是由该功能表产生。 其中, 功能表中的功能点与测试用例是一对多的关系, 也即一个功能点可能对应有多个测试用例。 而各缺陷都是在执行测试用例时 产生的, 并且, 测试用例与各缺陷的对应关系是多对一的关系, 也即执行一 个测试用例可能会产生多个缺陷。  In the embodiment of the present invention, each demand function point is extracted according to key documents such as the user's needs and detailed design. Then, each demand function point can be refined in the function table. All test cases are generated by this menu. Among them, the function points in the function table are one-to-many relationship with the test cases, that is, one function point may correspond to multiple test cases. Each defect is generated when the test case is executed, and the correspondence between the test case and each defect is a many-to-one relationship, that is, executing a test case may result in multiple defects.
因此, 在此步骤中, 可首先建立所需各需求功能点与所述测试用例的对 应关系, 然后再通过执行所述测试用例获得相应的缺陷, 从而根据所获得的 各缺陷, 建立所述测试用例和所述各缺陷之间的对应关系。  Therefore, in this step, the corresponding relationship between each required function point and the test case may be first established, and then the corresponding defect is obtained by executing the test case, thereby establishing the test according to each defect obtained. The correspondence between the use case and each of the defects described.
由此步骤可以看出, 在本发明实施例的方法中, 每个缺陷都可对应至少 一个测试用例, 而每一个测试用例都会对应到至少一个需求功能点。 因此, 对于每个缺陷, 都可以通过测试用例对应到相应的需求功能点。 相应的, 通 过每个需求功能点, 都可以检查回归测试的执行情况。  It can be seen from this step that in the method of the embodiment of the present invention, each defect can correspond to at least one test case, and each test case corresponds to at least one required function point. Therefore, for each defect, the test case can be mapped to the corresponding demand function point. Correspondingly, the performance of the regression test can be checked through each demand function point.
步骤 12、 获取变化的需求功能点。  Step 12. Obtain the changed demand function points.
在此步骤中, 可通过启动功能点触发器, 遍历所有的需求功能点来发现 是否有变化的需求功能点。 当获取到有变化的需求功能点时, 可对其进行标 ¾, 以方便测试。 In this step, you can find out if there are any required feature points by starting the function point trigger and traversing all the required function points. When you get a demanding feature point that changes, you can mark it 3⁄4, to facilitate testing.
步骤 1 3、 根据所述映射关系, 为所述变化的需求功能点以及由软件的解 决版本所获得的缺陷完善回归测试用例。  Step 1 3. According to the mapping relationship, the regression test case is perfected for the changed demand function point and the defect obtained by the software version.
对于在步骤 12中获得的变化的需求功能点, 重新为其编写测试用例。 对于由软件的解决版本所获得的缺陷, 可通过遍历所述各缺陷获得。 之 后, 再根据所述映射关系, 获取对应的测试用例。  For the required feature points for the changes obtained in step 12, rewrite the test cases for them. Defects obtained by a solved version of the software can be obtained by traversing the respective defects. Then, according to the mapping relationship, the corresponding test case is obtained.
最后, 可再将为所述变化的需求功能点编写的测试用例以及根据软件的 解决版本的缺陷所对应的测试用例存储为回归测试用例。  Finally, the test cases written for the changed demand function points and the test cases corresponding to the defects of the solution version of the software can be stored as regression test cases.
步骤 14、 对所述回归测试用例进行测试。  Step 14. Test the regression test case.
在对每个回归测试用例测试完成后, 可为其 标记, 以表示测试完成。 这样, 可方便测试人员判断测试用例的执行情况。  After each regression test case test is completed, it can be marked to indicate that the test is complete. In this way, it is convenient for the tester to judge the execution of the test case.
本发明实施例回归测试的管理方法, 通过建立各需求功能点、 各缺陷和 测试用例之间的映射关系, 当用户的需求功能发生变化时或者对于软件的解 决版本中的缺陷, 能够根据查找该映射关系的结果完善回归测试用例。 因此, 利用本发明实施例所述的方法和装置, 不但能够提高测试效率, 而且还能够 保证测试的可靠性。  The management method of the regression test in the embodiment of the present invention can establish a mapping relationship between each required function point, each defect, and a test case, and when the user's required function changes or a defect in the solution version of the software, The results of the mapping relationship complete the regression test case. Therefore, by using the method and apparatus according to the embodiments of the present invention, not only the test efficiency can be improved, but also the reliability of the test can be ensured.
此外, 在进行回归测试后, 还可判断回归测试是否完成, 以方便测试人 员检查测试的执行情况。 在判断回归测试是否完成时, 主要是判断标记的变 化的需求功能点的测试是否完成以及所有的回归测试用例是否已全部执行。 当回归测试完成时, 则会生成回归测试才艮告, 否则输出告警信息。  In addition, after the regression test, it can be judged whether the regression test is completed, so that the tester can check the execution of the test. When judging whether the regression test is completed, it is mainly to judge whether the test of the required function point of the change of the mark is completed and whether all the regression test cases have been fully executed. When the regression test is completed, a regression test will be generated to report the error, otherwise the alarm information will be output.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流 程, 是可以通过计算机程序来指令相关的硬件来完成, 所述的程序可存储于 一计算机可读取存储介质中, 该程序在执行时, 可包括如上述各方法的实施 例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体( Read-Only Memory , ROM )或随机存储记忆体 ( Random Acces s Memory, RAM )等。  A person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. In execution, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Acces s Memory (RAM).
本发明实施例还提供了一种回归测试的管理装置, 如图 2所示, 包括: 映射关系建立单元 21 , 用于建立各需求功能点、 各缺陷和测试用例之间 的映射关系; 信息获取单元 22 , 用于获取变化的需求功能点; 测试用例生成 单元 23 , 用于根据所述映射关系, 为所述变化的需求功能点以及由软件的解 决版本所获得的缺陷完善回归测试用例; 测试单元 24 , 用于对所述回归测试 用例进行测试。 The embodiment of the present invention further provides a management device for regression testing, as shown in FIG. 2, including: a mapping relationship establishing unit 21, configured to establish a mapping relationship between each required function point, each defect, and a test case; an information acquiring unit 22, configured to acquire a changed demand function point; a test case generating unit 23, configured to Mapping the relationship, refining the regression test case for the changed demand function point and the defect obtained by the solution version of the software; the testing unit 24 is configured to test the regression test case.
其中, 所述映射关系建立单元 21包括: 第一对应关系建立模块, 用于建 立所述各需求功能点与所述测试用例的对应关系; 缺陷获取模块, 用于执行 所述测试用例, 获得各缺陷; 第二对应关系建立模块, 用于根据所获得的各 缺陷, 建立所述测试用例和所述各缺陷之间的对应关系。  The mapping relationship establishing unit 21 includes: a first correspondence establishing module, configured to establish a correspondence between the required function points and the test case; and a defect obtaining module, configured to execute the test case, and obtain each a second correspondence relationship establishing module, configured to establish a correspondence between the test case and each defect according to each obtained defect.
所述测试用例生成单元 23包括: 第一测试用例编写模块, 用于为所述变 化的需求功能点编写测试用例; 第一测试用例获取模块, 用于遍历所述各缺 陷, 获取所述软件的解决版本中的缺陷, 并根据所述映射关系, 获取所述软 件的解决版本中的缺陷所对应的测试用例; 存储模块, 用于将为所述变化的 需求功能点编写的测试用例以及根据软件的解决版本的缺陷所对应的测试用 例存储为回归测试用例。  The test case generation unit 23 includes: a first test case writing module, configured to write a test case for the changed required function point; a first test case obtaining module, configured to traverse the defects, and obtain the software Solving the defect in the version, and obtaining a test case corresponding to the defect in the solution version of the software according to the mapping relationship; a storage module, the test case for writing the required function point of the change, and the software according to the software The test cases corresponding to the defects of the resolved version are stored as regression test cases.
本发明实施例回归测试的管理装置, 通过建立各需求功能点、 各缺陷和 测试用例之间的映射关系, 当用户的需求功能发生变化时或者对于软件的解 决版本中的缺陷, 能够根据查找该映射关系的结果完善回归测试用例。 因此, 利用本发明实施例所述的方法和装置, 不但能够提高测试效率, 而且还能够 保证测试的可靠性。  The management device of the regression test in the embodiment of the present invention can establish a mapping relationship between each required function point, each defect, and a test case, and when the user's required function changes or a defect in the solution version of the software, The results of the mapping relationship complete the regression test case. Therefore, by using the method and apparatus according to the embodiments of the present invention, not only the test efficiency can be improved, but also the reliability of the test can be ensured.
为方便测试人员检查测试的执行情况, 如图 3 所示, 所述装置还包括: 判断单元 25 , 用于判断所述回归测试是否完成; 报告生成单元 26 , 用于当所 述回归测试完成时, 生成回归测试 ^艮告。  In order to facilitate the tester to check the execution of the test, as shown in FIG. 3, the device further includes: a determining unit 25, configured to determine whether the regression test is completed; and a report generating unit 26, configured to: when the regression test is completed , Generate regression test ^ report.
综上所述, 本发明实施例回归测试的管理方法及装置, 通过建立各需求 功能点、 各缺陷和测试用例之间的映射关系, 当用户的需求功能发生变化时 或者对于软件的解决版本中的缺陷, 能够根据查找该映射关系的结果完善回 归测试用例。 因此, 利用本发明实施例所述的方法和装置, 不但能够提高测 试效率, 而且还能够保证测试的可靠性。 In summary, the management method and apparatus for regression testing according to the embodiment of the present invention establish a mapping relationship between each required function point, each defect, and a test case, when the user's required function changes or in a solution version of the software. Defects, able to improve back based on the results of finding the mapping relationship Return to the test case. Therefore, by using the method and apparatus according to the embodiments of the present invention, not only the test efficiency can be improved, but also the reliability of the test can be ensured.
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限 于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护 范围应以所述权利要求的保护范围为准。  The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the appended claims.

Claims

权利 要求 书 Claim
1、 一种回归测试的管理方法, 其特征在于, 所述方法包括:  A management method for regression testing, characterized in that the method comprises:
建立各需求功能点、 各缺陷和测试用例之间的映射关系;  Establish a mapping relationship between each required function point, each defect, and a test case;
获取变化的需求功能点;  Obtaining changed demand function points;
根据所述映射关系, 为所述变化的需求功能点以及由软件的解决版本所获 得的缺陷完善回归测试用例;  Determining the regression test case for the changed demand function point and the defect obtained by the solution version of the software according to the mapping relationship;
对所述回归测试用例进行测试。  The regression test case is tested.
2、 根据权利要求 1所述的方法, 其特征在于, 在对所述测试用例进行测试 后, 所述方法还包括:  2. The method according to claim 1, wherein after testing the test case, the method further comprises:
判断所述回归测试是否完成;  Determining whether the regression test is completed;
当所述回归测试完成时, 生成回归测试 4艮告。  When the regression test is completed, a regression test is generated.
3、根据权利要求 1或 2所述的方法, 其特征在于, 所述建立各需求功能点、 各缺陷和测试用例之间的映射关系包括:  The method according to claim 1 or 2, wherein the establishing a mapping relationship between each required function point, each defect, and a test case includes:
建立所述各需求功能点与所述测试用例的对应关系;  Establishing a correspondence between the required function points and the test case;
执行所述测试用例, 获得各缺陷;  Executing the test case to obtain each defect;
根据所获得的各缺陷, 建立所述测试用例和所述各缺陷之间的对应关系。 Corresponding relationships between the test cases and the respective defects are established based on the obtained defects.
4、 根据权利要求 1所述的方法, 其特征在于, 根据所述映射关系, 为所述 变化的需求功能点以及由软件的解决版本所获得的缺陷完善回归测试用例包 括: 4. The method according to claim 1, wherein the regression test case is improved according to the mapping relationship for the changed demand function point and the defect obtained by the software solution version:
为所述变化的需求功能点编写测试用例;  Writing test cases for the changed demand function points;
遍历所述各缺陷, 获取所述软件的解决版本中的缺陷, 并根据所述映射关 系, 获取所述软件的解决版本中的缺陷所对应的测试用例;  Traversing the defects, obtaining defects in the resolved version of the software, and acquiring test cases corresponding to defects in the resolved version of the software according to the mapping relationship;
将为所述变化的需求功能点编写的测试用例以及根据软件的解决版本的缺 陷所对应的测试用例存储为回归测试用例。  The test cases written for the changed demand function points and the test cases corresponding to the defects of the resolved version of the software are stored as regression test cases.
5、 一种回归测试的管理装置, 其特征在于, 包括:  5. A management device for regression testing, characterized in that it comprises:
映射关系建立单元, 用于建立各需求功能点、 各缺陷和测试用例之间的映 射关系; A mapping relationship establishing unit for establishing a mapping between each required function point, each defect, and a test case Shooting relationship
信息获取单元, 用于获取变化的需求功能点;  An information acquisition unit, configured to acquire a changed demand function point;
测试用例生成单元, 用于根据所述映射关系, 为所述变化的需求功能点以 及由软件的解决版本所获得的缺陷完善回归测试用例;  a test case generating unit, configured to, according to the mapping relationship, improve a regression test case for the changed required function point and a defect obtained by a solution version of the software;
测试单元, 用于对所述回归测试用例进行测试。  a test unit for testing the regression test case.
6、 根据权利要求 5所述的装置, 其特征在于, 所述装置还包括: 判断单元, 用于判断所述回归测试是否完成;  The device according to claim 5, wherein the device further comprises: a determining unit, configured to determine whether the regression test is completed;
告生成单元, 用于当所述回归测试完成时, 生成回归测试 4艮告。  a generating unit, configured to generate a regression test when the regression test is completed.
7、 根据权利要求 5或 6所述的装置, 其特征在于, 所述映射关系建立单元 包括:  The device according to claim 5 or 6, wherein the mapping relationship establishing unit comprises:
第一对应关系建立模块, 用于建立所述各需求功能点与所述测试用例的对 应关系;  a first correspondence establishing module, configured to establish a corresponding relationship between the required function points and the test case;
缺陷获取模块, 用于执行所述测试用例, 获得各缺陷;  a defect obtaining module, configured to execute the test case, and obtain each defect;
第二对应关系建立模块, 用于根据所获得的各缺陷, 建立所述测试用例和 所述各缺陷之间的对应关系。  And a second correspondence establishing module, configured to establish a correspondence between the test case and each defect according to each obtained defect.
8、 根据权利要求 5或 6所述的装置, 其特征在于, 所述测试用例生成单元 包括:  The device according to claim 5 or 6, wherein the test case generation unit comprises:
第一测试用例编写模块, 用于为所述变化的需求功能点编写测试用例; 第一测试用例获取模块, 用于遍历所述各缺陷, 获取所述软件的解决版本 中的缺陷, 并根据所述映射关系, 获取所述软件的解决版本中的缺陷所对应的 测试用例;  a first test case writing module, configured to write a test case for the changed required function point; a first test case obtaining module, configured to traverse the defects, obtain a defect in a solution version of the software, and Deriving a mapping relationship, and obtaining a test case corresponding to a defect in a solution version of the software;
存储模块, 用于将为所述变化的需求功能点编写的测试用例以及根据软件 的解决版本的缺陷所对应的测试用例存储为回归测试用例。  And a storage module, configured to store the test case written for the changed required function point and the test case corresponding to the defect of the solved version of the software as a regression test case.
PCT/CN2010/079411 2009-12-30 2010-12-03 Method and device for magaging regression test WO2011079685A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200910244150A CN101719095A (en) 2009-12-30 2009-12-30 Method and device for managing regression testing
CN200910244150.6 2009-12-30

Publications (1)

Publication Number Publication Date
WO2011079685A1 true WO2011079685A1 (en) 2011-07-07

Family

ID=42433671

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/079411 WO2011079685A1 (en) 2009-12-30 2010-12-03 Method and device for magaging regression test

Country Status (2)

Country Link
CN (1) CN101719095A (en)
WO (1) WO2011079685A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572433A (en) * 2013-10-29 2015-04-29 中国银联股份有限公司 Method and device for testing financial information system
CN104750604A (en) * 2013-12-30 2015-07-01 中国银联股份有限公司 Generating method and device for browser compatibility test case
CN109446104A (en) * 2018-11-16 2019-03-08 郑州云海信息技术有限公司 A kind of testing case management and device based on big data
CN114462339A (en) * 2022-04-12 2022-05-10 北京象帝先计算技术有限公司 Parameter tuning and file establishing method and device for regression test
CN116932413A (en) * 2023-09-14 2023-10-24 深圳市智慧城市科技发展集团有限公司 Defect processing method, defect processing device and storage medium for test task

Families Citing this family (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719095A (en) * 2009-12-30 2010-06-02 北京世纪高通科技有限公司 Method and device for managing regression testing
CN101916222B (en) * 2010-08-09 2012-07-11 哈尔滨工程大学 Software testing method based on combination of control flow graph traversal and slice forward traversal
CN103034582B (en) * 2011-09-28 2016-03-16 腾讯科技(深圳)有限公司 Location returns the method and system of use-case
CN103092748A (en) * 2011-11-07 2013-05-08 阿里巴巴集团控股有限公司 Method and system of test cases surely needing to perform regression testing
CN102521700B (en) * 2011-12-13 2016-05-18 广东电网公司信息中心 Electrical network informatization evaluation rapid test system
CN103186456B (en) * 2011-12-29 2015-11-18 北京新媒传信科技有限公司 A kind of method and apparatus of system testing
CN103186463B (en) * 2011-12-30 2015-09-09 阿里巴巴集团控股有限公司 Determine the method and system of the test specification of software
CN103198010B (en) * 2012-01-06 2017-07-21 腾讯科技(深圳)有限公司 Method for testing software, apparatus and system
CN103257918A (en) * 2012-02-16 2013-08-21 广州博纳信息技术有限公司 Project test procedure management method based on software testing and evaluation platform
CN103257917B (en) * 2012-02-16 2016-08-03 广州博纳信息技术有限公司 Management method for software evaluation system
CN103309801B (en) * 2012-03-15 2016-01-13 百度在线网络技术(北京)有限公司 A kind of method and apparatus determining regression test scope
CN102855187B (en) * 2012-07-31 2015-10-28 许继电气股份有限公司 A kind of protective relaying device bug track management system and method
CN103631705B (en) * 2012-08-24 2018-01-05 百度在线网络技术(北京)有限公司 A kind of regression testing method and device for search engine
CN103186468B (en) * 2013-04-10 2016-03-30 华为技术有限公司 A kind of method and apparatus of verifying software upgrading accuracy
CN104461877B (en) * 2014-11-27 2018-03-02 百度在线网络技术(北京)有限公司 Method for testing software and software testing device
CN104615544B (en) * 2015-03-10 2018-09-28 于秀山 Problem oriented gui software correlation function analysis method and device
CN106201859A (en) * 2015-05-07 2016-12-07 阿里巴巴集团控股有限公司 A kind of regression testing method and system
CN105930257B (en) * 2015-10-12 2018-12-28 中国银联股份有限公司 A kind of method and device of determining target detection use-case
CN105550116A (en) * 2016-01-19 2016-05-04 上海斐讯数据通信技术有限公司 Automated test management system
CN105760297B (en) * 2016-02-02 2018-10-12 四川长虹电器股份有限公司 A kind of method for generating test case based on user feedback
CN107729227B (en) * 2017-07-26 2020-03-06 深圳壹账通智能科技有限公司 Application program test range determining method, system, server and storage medium
CN107729256A (en) * 2017-11-16 2018-02-23 郑州云海信息技术有限公司 The correlating method and system of a kind of project demands and test case
CN108427637B (en) * 2018-01-18 2021-05-25 平安科技(深圳)有限公司 Test case recommendation method, electronic device and readable storage medium
CN108694123B (en) * 2018-05-14 2023-07-21 中国平安人寿保险股份有限公司 Regression testing method, computer readable storage medium and terminal equipment
CN110737577B (en) * 2018-07-20 2022-11-04 北京奇虎科技有限公司 Test defect data storage method and device
CN109376081A (en) * 2018-09-27 2019-02-22 深圳壹账通智能科技有限公司 The generation method and device of Test Strategy
CN109388376B (en) * 2018-09-29 2023-08-11 平安科技(深圳)有限公司 Software development risk assessment method, device, equipment and readable storage medium
CN109446098A (en) * 2018-11-09 2019-03-08 贵州医渡云技术有限公司 A kind of test method of object, device, medium and electronic equipment
CN112147967A (en) * 2019-06-27 2020-12-29 北京新能源汽车股份有限公司 Automatic generation method and device for scene test case of automobile controller
CN110633222B (en) * 2019-11-01 2023-01-20 中国银行股份有限公司 Method and device for determining regression test case
CN111552646B (en) * 2020-04-30 2023-08-29 阿波罗智能技术(北京)有限公司 Method and apparatus for regression testing

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719095A (en) * 2009-12-30 2010-06-02 北京世纪高通科技有限公司 Method and device for managing regression testing

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719095A (en) * 2009-12-30 2010-06-02 北京世纪高通科技有限公司 Method and device for managing regression testing

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
LI, JUNHONG ET AL: "Design and Implementation of a Testing Management System Based on Eclipse RCP", CHINESE MASTER'S THESIS FULL-TEXT DATABASE, INFORMATION SCIENCE AND TECHNOLOGY, no. 6, June 2009 (2009-06-01), pages 26, 32 *
LI, KEWEN ET AL: "Study of Case Collections Optimization Method Based on Regression Test Model", MICROCOMPUTER APPLICATION, vol. 29, no. 10, November 2008 (2008-11-01), pages 7 - 11 *
QU, BO ET AL: "Regression Test Prioritization Algorithm Based on Test Case Design Information", CHINESE JOURNAL OF COMPUTERS, vol. 31, no. 3, March 2008 (2008-03-01), pages 431 - 439 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572433A (en) * 2013-10-29 2015-04-29 中国银联股份有限公司 Method and device for testing financial information system
CN104572433B (en) * 2013-10-29 2017-09-29 中国银联股份有限公司 A kind of financial information system method of testing and device
CN104750604A (en) * 2013-12-30 2015-07-01 中国银联股份有限公司 Generating method and device for browser compatibility test case
CN109446104A (en) * 2018-11-16 2019-03-08 郑州云海信息技术有限公司 A kind of testing case management and device based on big data
CN114462339A (en) * 2022-04-12 2022-05-10 北京象帝先计算技术有限公司 Parameter tuning and file establishing method and device for regression test
CN114462339B (en) * 2022-04-12 2022-06-17 北京象帝先计算技术有限公司 Parameter tuning and file establishing method and device for regression testing
CN116932413A (en) * 2023-09-14 2023-10-24 深圳市智慧城市科技发展集团有限公司 Defect processing method, defect processing device and storage medium for test task
CN116932413B (en) * 2023-09-14 2023-12-19 深圳市智慧城市科技发展集团有限公司 Defect processing method, defect processing device and storage medium for test task

Also Published As

Publication number Publication date
CN101719095A (en) 2010-06-02

Similar Documents

Publication Publication Date Title
WO2011079685A1 (en) Method and device for magaging regression test
WO2020000706A1 (en) Database comparison-based interface testing method and system, device and storage medium
US9026998B2 (en) Selecting relevant tests to quickly assess code stability
TWI627547B (en) System and method for automated functional coverage generation and management for ic design protocols
US10860464B2 (en) Test selection for application commit
US8978009B2 (en) Discovering whether new code is covered by tests
CN105138461A (en) Interface testing method and device for application program
WO2019019647A1 (en) Method and system for determining application program testing range, server and storage medium
US10621066B2 (en) Automatic repair of scripts
CN103455414B (en) Obtain the method and device of the logical place of control
US20090292956A1 (en) Trend based test failure prioritization
CN110515894B (en) Data format conversion method, device, equipment and readable storage medium
US7617484B1 (en) Concern based hole analysis
CN105183641B (en) The data consistency verification method and system of a kind of kernel module
US8898644B2 (en) Efficient unified tracing of kernel and user events with multi-mode stacking
US9842044B2 (en) Commit sensitive tests
US9658939B2 (en) Identifying a defect density
US20120173498A1 (en) Verifying Correctness of a Database System
CN109473121A (en) Speech synthesis quality detecting method and device
US10009216B2 (en) Repeat execution of root cause analysis logic through run-time discovered topology pattern maps
US20130339798A1 (en) Methods for automated software testing and devices thereof
WO2016165461A1 (en) Automated testing method and apparatus for network management system software of telecommunications network
US20150143346A1 (en) Constructing test-centric model of application
CN102546235A (en) Performance diagnosis method and system of web-oriented application under cloud computing environment
US8782090B2 (en) Aiding report construction based on inference of implicit application level relationships

Legal Events

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

Ref document number: 10840474

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10840474

Country of ref document: EP

Kind code of ref document: A1