CN112256555A - Automatic test case management system and test case execution state conversion method - Google Patents
Automatic test case management system and test case execution state conversion method Download PDFInfo
- Publication number
- CN112256555A CN112256555A CN202010954046.2A CN202010954046A CN112256555A CN 112256555 A CN112256555 A CN 112256555A CN 202010954046 A CN202010954046 A CN 202010954046A CN 112256555 A CN112256555 A CN 112256555A
- Authority
- CN
- China
- Prior art keywords
- test case
- matching
- matched
- automatic
- test
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 211
- 238000000034 method Methods 0.000 title claims abstract description 21
- 238000006243 chemical reaction Methods 0.000 title abstract description 5
- 238000013507 mapping Methods 0.000 claims abstract description 35
- 230000007704 transition Effects 0.000 claims description 6
- 238000012986 modification Methods 0.000 claims description 5
- 230000004048 modification Effects 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 1
- 238000013522 software testing Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses an automatic test case management system and a test case execution state conversion method, wherein the method comprises the following steps: automatically matching the test cases in the product use case library with the automatic test cases; establishing a mapping relation between the matched automatic test cases; after the mapping relation is established and the automatic test case is executed, the execution state of the test case corresponding to the automatic test case is automatically modified according to the mapping relation.
Description
Technical Field
The invention relates to the technical field of software testing, in particular to an automatic test case management system and a method for automatically executing state conversion on a test case.
Background
At present, a product use case library and an automation use case library are separately managed, and generally, batch manual operation is performed on execution state conversion of test cases in the product use case library.
The product use case library is a collection of test cases, the test cases refer to the description of testing tasks performed on a specific software product, and the test cases in the product use case library can be executed manually or automatically. The automated test case library is a collection of automated test cases, and the automated test cases are generally a script collection for automatically executing test verification. One automation case may correspond to one or more test cases, and one test case may also correspond to one or more automation test cases. When a tester performs a test, a test case in the product case library needs to be added to a test plan. At present, different methodologies are used for managing product test cases and managing automatic tests. For the test cases which can be automatically executed in the product case library, the execution state of the corresponding test plan is generally changed manually in batches.
Disclosure of Invention
In view of the above problems in the related art, the present invention provides an automated test case management system and a method for automatically performing state transition on a test case, which can save operation cost.
The technical scheme of the invention is realized as follows:
according to one aspect of the present invention, there is provided an automated test case management system for automatically performing state transition on test cases, comprising:
the matching module is used for automatically matching the test cases in the product case library with the automatic test cases, wherein the matching module comprises:
the precise matching sub-module is used for matching through the test case names, and if the test case names are the same, the corresponding automatic test case is regarded as a matched test case;
the fuzzy matching submodule is used for matching in a fuzzy matching mode to obtain a matched automatic test case if no test case with the same test case name exists;
the mapping module is used for establishing a mapping relation between the matched automatic test cases and the test cases;
and the modification module is used for automatically modifying the execution state of the test case corresponding to the automatic test case according to the mapping relation after the mapping relation is established and the automatic test case is executed.
According to an embodiment of the invention, the fuzzy matching sub-module is configured to: and matching through the keywords, and if the keywords are matched, taking the corresponding test case as the matched test case.
According to an embodiment of the present invention, the fuzzy matching sub-module is further configured to: and obtaining a plurality of matched test cases through the keywords, and selecting one with highest similarity from the plurality of matched test cases as the matched test case.
According to an embodiment of the present invention, the automated test case management system further includes a manual selection module, configured to: and if the matched automatic test case is not obtained through automatic matching, manually selecting through a manual selection module to obtain the matched automatic test case.
According to an embodiment of the invention, the manual selection is made in the Web form.
According to another aspect of the present invention, there is provided a method for automatically performing state transition on a test case, comprising:
automatically matching the test cases in the product case library with the automatic test cases, wherein the step of automatically matching comprises the following steps:
matching is carried out through the test case names, and if the test case names are the same, the corresponding automatic test case is regarded as a matched test case;
if no test case with the same test case name exists, matching in a fuzzy matching mode to obtain a matched automatic test case;
establishing a mapping relation between the matched automatic test cases;
after the mapping relation is established and the automatic test case is executed, the execution state of the test case corresponding to the automatic test case is automatically modified according to the mapping relation.
According to the embodiment of the invention, the matching in a fuzzy matching mode comprises the following steps: and matching through the keywords, and if the keywords are matched, taking the corresponding test case as the matched test case.
According to the embodiment of the invention, the matching in a fuzzy matching mode comprises the following steps: and obtaining a plurality of matched test cases through the keywords, and selecting one with highest similarity from the plurality of matched test cases as the matched test case.
According to the embodiment of the invention, if the matched automatic test case is not obtained through automatic matching, manual selection is carried out to obtain the matched automatic test case.
According to an embodiment of the invention, the manual selection is made in the Web form.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a schematic diagram of an automated test case management system and a production test case management system according to an embodiment of the invention;
fig. 2 is a flow chart of a method according to an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and 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 that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present invention.
The invention provides a correlation method of a manual case and an automatic case, and modifies the execution state of the product case library test cases in batches after the automatic test cases are executed through correlation.
The invention provides a method for correlating a Web-form manual case with an automatic case, which automatically modifies the execution state of a test case corresponding to a product case library test plan in batches after the automatic test case is executed through correlation.
The invention relates to two systems, as shown in fig. 1, one is a product test case management system, the other is an automatic test case management system, and the first system can manage product cases, test plans and test execution. The automatic test case management system can acquire the information and the execution state of the automatic test case, and the system can be a self-built automatic platform and can also be jenkins for executing the automatic test case.
According to an embodiment of the invention, an automated test case management system may include a matching module, a mapping module, and a modification module. And the matching module automatically matches the test cases in the product case library with the automatic test cases. And the mapping module establishes a mapping relation between the matched automatic test cases. After the mapping relation is established and the automatic test case is executed, the modification module automatically modifies the execution state of the test case corresponding to the automatic test case according to the mapping relation.
The matching module may include a fine matching sub-module and a fuzzy matching sub-module. And the precise matching submodule is used for matching through the test case name. And if the test case names are the same, the corresponding automatic test case is regarded as a matched test case. And if no test case with the same test case name exists, the fuzzy matching sub-module performs matching in a fuzzy matching mode to obtain a matched automatic test case.
The fuzzy matching submodule can perform matching through keywords. And if the keywords are matched, the corresponding test case is regarded as the matched test case. And if a plurality of matched test cases are obtained through the keywords, selecting one with highest similarity from the plurality of matched test cases as the matched test case. And if the matched automatic test case is not obtained through automatic matching, manually selecting through a manual selection module to obtain the matched automatic test case. In some embodiments, the manual selection is made in the Web form.
With the modules, the automatic test case management system maintains the mapping relationship between the product case library and the automatic test case in a Web form to generate the mapping relationship. The work flow of the automatic test case management system is as follows:
(1) firstly, carrying out accurate matching through the names of the test cases, automatically establishing a mapping relation if the names are the same, comparing whether the names of the test cases in the automatic case library are similar to the names of the test cases in the product case library or not in a fuzzy matching mode if the names cannot be matched, if keywords are matched, such as keyword inclusion and simple matching (test login), regarding the keywords as matching, establishing the mapping relation, and if a plurality of matching items exist, selecting the most approximate value (such as the similarity of 80% and 90%, and selecting the similarity of 90%) to establish the mapping relation. And if the matching is not performed, performing matching in a manual mode, wherein the matching mode is that the unmatched automatic test case is pulled, and the Web form is used for manual selection to establish the mapping relation of the case.
(2) After the mapping relation is established and the automatic test case is executed, the execution state of the test case corresponding to the test plan is automatically modified by calling an interface provided by the product test management system. The interface scheme is as follows: and reading the test case mapping table, searching the test case to be executed in the product test management system, and modifying the test case execution state.
(3) The management of the use cases in the product use case library is divided into two attributes, namely automation and manual management, and the execution state is divided into two attributes, namely automation and manual management. When the mapping relation is established, the system can automatically modify the state of the test case in the product case library, and the state is changed from manual operation to automatic operation. When the execution state of the test case is modified, the execution mode is marked to be an automatic mode.
As described above, the invention provides a correlation method of manual use cases and automatic use cases, which uses the forms of precise matching, fuzzy matching and Web manual selection to establish correlation; and finding the corresponding relation between different test cases by using a mode of combining precise matching and fuzzy matching. In the process of establishing the case association mapping relation, the attribute of the product test case is automatically modified (automatically/manually), and after the automatic test case is executed, the execution mode and the execution state of the product case library test case are automatically modified. The technical scheme of the invention can be automatically executed, saves the operation cost and can count the automation efficiency (the proportion of the automatic test cases: the number of the automatic test cases/the total number of the product cases; the proportion of the automatic test execution: the number of the automatic test cases/the total number of the product cases).
According to an embodiment of the invention, a method for automatically performing state transition on test cases is also provided. Fig. 2 is a flow chart of a method according to an embodiment of the invention. As shown in fig. 2, the method may comprise the steps of:
and S21, automatically matching the test cases in the product case library with the automatic test cases.
S22, establishing a mapping relation between the matched automatic test cases and the test cases;
and S23, after the mapping relation is established and the automatic test case is executed, automatically modifying the execution state of the test case corresponding to the automatic test case according to the mapping relation.
Wherein, at step S21, the step of automatically matching may match by test case name. And if the test case names are the same, the corresponding automatic test case is regarded as a matched test case. And if no test case with the same test case name exists, matching in a fuzzy matching mode to obtain a matched automatic test case.
In some embodiments, matching in a fuzzy matching manner comprises: and matching through the keywords, and if the keywords are matched, taking the corresponding test case as the matched test case. And if a plurality of matched test cases are obtained through the keywords, selecting one with highest similarity from the plurality of matched test cases as the matched test case.
In some embodiments, if no matching automated test case is obtained by automatic matching, a manual selection is made to obtain a matching automated test case. The manual selection may be made in the Web form.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (10)
1. An automated test case management system for automating state transitions performed on test cases, comprising:
the matching module is used for automatically matching the test cases in the product case library with the automatic test cases, wherein the matching module comprises:
the precise matching sub-module is used for matching through the test case names, and if the test case names are the same, the corresponding automatic test case is regarded as a matched test case;
the fuzzy matching submodule is used for matching in a fuzzy matching mode to obtain a matched automatic test case if no test case with the same test case name exists;
the mapping module is used for establishing a mapping relation between the matched automatic test cases and the test cases;
and the modification module is used for automatically modifying the execution state of the test case corresponding to the automatic test case according to the mapping relation after the mapping relation is established and the automatic test case is executed.
2. The automated test case management system of claim 1, wherein the fuzzy matching sub-module is configured to:
and matching through keywords, and if the keywords are matched, taking the corresponding test case as a matched test case.
3. The automated test case management system of claim 2, wherein the fuzzy matching sub-module is further configured to:
and obtaining a plurality of matched test cases through the keywords, and selecting one with highest similarity from the plurality of matched test cases as a matched test case.
4. The automated test case management system of claim 1, further comprising a manual selection module to:
and if the matched automatic test case is not obtained through the automatic matching, manually selecting through the manual selection module to obtain the matched automatic test case.
5. The automated test case management system of claim 4, wherein the manual selection is made in Web form.
6. A method for automating state transitions performed on test cases, comprising:
automatically matching the test cases in the product case library with the automatic test cases, wherein the step of automatically matching comprises the following steps:
matching through the test case names, and if the test case names are the same, taking the corresponding automatic test case as a matched test case;
if no test case with the same test case name exists, matching in a fuzzy matching mode to obtain a matched automatic test case;
establishing a mapping relation between the matched automatic test cases;
and after the mapping relation is established and the automatic test case is executed, automatically modifying the execution state of the test case corresponding to the automatic test case according to the mapping relation.
7. The method of claim 6, wherein matching in a fuzzy matching manner comprises:
and matching through keywords, and if the keywords are matched, taking the corresponding test case as a matched test case.
8. The method of claim 7, wherein matching in a fuzzy matching manner comprises:
and obtaining a plurality of matched test cases through the keywords, and selecting one with highest similarity from the plurality of matched test cases as a matched test case.
9. The method of claim 6,
and if the matched automatic test case is not obtained through the automatic matching, manually selecting to obtain the matched automatic test case.
10. The method of claim 9, wherein the manual selection is made in Web form.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010954046.2A CN112256555A (en) | 2020-09-11 | 2020-09-11 | Automatic test case management system and test case execution state conversion method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010954046.2A CN112256555A (en) | 2020-09-11 | 2020-09-11 | Automatic test case management system and test case execution state conversion method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112256555A true CN112256555A (en) | 2021-01-22 |
Family
ID=74232047
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010954046.2A Pending CN112256555A (en) | 2020-09-11 | 2020-09-11 | Automatic test case management system and test case execution state conversion method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112256555A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113687826A (en) * | 2021-08-10 | 2021-11-23 | 中国人民解放军陆军工程大学 | Test case multiplexing system and method based on requirement item extraction |
CN114706790A (en) * | 2022-05-12 | 2022-07-05 | 中国科学院自动化研究所 | Automatic software testing method, device and equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105302718A (en) * | 2015-10-26 | 2016-02-03 | 浪潮电子信息产业股份有限公司 | Design method of multiplexing software-oriented test model |
CN107678951A (en) * | 2017-09-21 | 2018-02-09 | 平安科技(深圳)有限公司 | Test exemple automation management method, device, equipment and storage medium |
CN108268373A (en) * | 2017-09-21 | 2018-07-10 | 平安科技(深圳)有限公司 | Automatic test cases management method, device, equipment and storage medium |
CN110245088A (en) * | 2019-06-21 | 2019-09-17 | 四川长虹电器股份有限公司 | A kind of defect automated verification system and verification method based on Jenkins |
CN110309051A (en) * | 2019-05-22 | 2019-10-08 | 深圳壹账通智能科技有限公司 | Method, system, equipment and the storage medium of management of test cases |
CN111581090A (en) * | 2020-04-30 | 2020-08-25 | 重庆富民银行股份有限公司 | Automatic test case generation method and system based on NLP and RF framework |
-
2020
- 2020-09-11 CN CN202010954046.2A patent/CN112256555A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105302718A (en) * | 2015-10-26 | 2016-02-03 | 浪潮电子信息产业股份有限公司 | Design method of multiplexing software-oriented test model |
CN107678951A (en) * | 2017-09-21 | 2018-02-09 | 平安科技(深圳)有限公司 | Test exemple automation management method, device, equipment and storage medium |
CN108268373A (en) * | 2017-09-21 | 2018-07-10 | 平安科技(深圳)有限公司 | Automatic test cases management method, device, equipment and storage medium |
CN110309051A (en) * | 2019-05-22 | 2019-10-08 | 深圳壹账通智能科技有限公司 | Method, system, equipment and the storage medium of management of test cases |
CN110245088A (en) * | 2019-06-21 | 2019-09-17 | 四川长虹电器股份有限公司 | A kind of defect automated verification system and verification method based on Jenkins |
CN111581090A (en) * | 2020-04-30 | 2020-08-25 | 重庆富民银行股份有限公司 | Automatic test case generation method and system based on NLP and RF framework |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113687826A (en) * | 2021-08-10 | 2021-11-23 | 中国人民解放军陆军工程大学 | Test case multiplexing system and method based on requirement item extraction |
CN113687826B (en) * | 2021-08-10 | 2024-02-02 | 中国人民解放军陆军工程大学 | Test case multiplexing system and method based on demand item extraction |
CN114706790A (en) * | 2022-05-12 | 2022-07-05 | 中国科学院自动化研究所 | Automatic software testing method, device and equipment |
CN114706790B (en) * | 2022-05-12 | 2022-09-13 | 中国科学院自动化研究所 | Automatic software testing method, device and equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108647883B (en) | Business approval method, device, equipment and medium | |
CN109684053B (en) | Task scheduling method and system for big data | |
CN111061733B (en) | Data processing method, device, electronic equipment and computer readable storage medium | |
CN112884413A (en) | Method, system, equipment and storage medium for generating bill of material | |
CN112256555A (en) | Automatic test case management system and test case execution state conversion method | |
CN111309868B (en) | Knowledge graph construction and retrieval method and device | |
CN111399828B (en) | Model-driven logic device modeling method and terminal | |
CN112651218A (en) | Automatic generation method and management method of bidding document, medium and computer | |
CN113537943A (en) | Universal workflow engine and construction method thereof | |
CN103488712B (en) | A kind of automated testing method and system | |
CN110177006B (en) | Node testing method and device based on interface prediction model | |
CN114004446B (en) | Method for measuring and calculating working hours of multi-variety small-batch hybrid integrated circuit products | |
CN113238901B (en) | Multi-device automatic testing method and device, storage medium and computer device | |
CN112241369B (en) | Automatic interface testing method based on python | |
KR101748378B1 (en) | Performance management system and method for application program in its development process | |
Johannsen et al. | Supporting knowledge elicitation and analysis for business process improvement through a modeling tool | |
CN114168121A (en) | Software system, terminal and storage medium based on code factory mode development | |
CN110262973B (en) | Data maintenance method, device, equipment and computer storage medium | |
CN112669131A (en) | Intelligent account checking method, device, equipment and storage medium | |
CN112989029A (en) | Method, system, device and medium for realizing visual quick retrieval of knowledge map | |
CN117421234B (en) | Multi-platform multi-concurrency automatic threading testing system | |
CN111324706B (en) | Labeling method and device and electronic equipment | |
CN111882220B (en) | Data detection method and device | |
CN112988555B (en) | Interface testing method, device, equipment and storage medium | |
CN116226168A (en) | Method and system for verifying wide-table data |
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 |