CN112346994B - Test information association method, device, computer equipment and storage medium - Google Patents

Test information association method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN112346994B
CN112346994B CN202011391738.7A CN202011391738A CN112346994B CN 112346994 B CN112346994 B CN 112346994B CN 202011391738 A CN202011391738 A CN 202011391738A CN 112346994 B CN112346994 B CN 112346994B
Authority
CN
China
Prior art keywords
information
information table
application program
requirement
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.)
Active
Application number
CN202011391738.7A
Other languages
Chinese (zh)
Other versions
CN112346994A (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.)
Guangzhou Pinwei Software Co Ltd
Original Assignee
Guangzhou Pinwei Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Pinwei Software Co Ltd filed Critical Guangzhou Pinwei Software Co Ltd
Priority to CN202011391738.7A priority Critical patent/CN112346994B/en
Publication of CN112346994A publication Critical patent/CN112346994A/en
Application granted granted Critical
Publication of CN112346994B publication Critical patent/CN112346994B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/3676Test management for coverage analysis

Landscapes

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

Abstract

The invention discloses a test information association method, a device, computer equipment and a storage medium, wherein the method comprises the following steps: acquiring branch information of a current version of an application program to be tested, generating a first information table according to the branch information, acquiring demand information of the application program to be tested, generating a second information table according to the demand information, associating the second information table with the first information table according to a preset field, adding a target field into the first information table to generate a new first information table, and synchronously updating coverage rate data generated by testing to the new first information table and the new second information table after demand testing is carried out on the branches. According to the invention, the second information table is associated with the first information table according to the preset field, so that the automatic association of the test information (comprising the demand information and the coverage rate data) is realized, the information association efficiency is improved, the problems of errors and the like in the association process are reduced, and meanwhile, the data of different ends are summarized together, so that the check is convenient.

Description

Test information association method, device, computer equipment and storage medium
Technical Field
The present invention relates to the field of software testing technologies, and in particular, to a method and apparatus for associating test information with a computer device and a storage medium.
Background
On the one hand, in the software development process, related tests need to be performed on the developed application programs. In software testing, however, statistics of code coverage are often required for the software testing process. Code coverage characterizes how much code can be covered in a test. Typically, a software tester decides whether or not to repeatedly perform a software test by the level of code coverage.
On the other hand, in the actual testing process, each version of the application program to be tested has a plurality of service lines, each service line has a plurality of items, each item has a plurality of ends (front end, back end, middleware, etc.), and the ends are further divided into a plurality of terminal platforms, such as android, apples, etc.
In the software development process, in order to facilitate maintenance of relevant information, coverage information and demand information are generally required to be associated for maintenance. However, in the current coverage platform, coverage information and demand information are usually separated, that is, there is no demand information in the coverage information, and there is no coverage information in the demand information, so that the information can only be manually copied and related to each other at present. Because the coverage platform usually takes branches as dimensions, each branch corresponds to one end (android or apple) of one requirement, the data volume involved is large and miscellaneous, and the association work is large in workload, long in time consumption and easy to make mistakes.
Therefore, a new test information association method is needed to solve the above-mentioned problems.
Disclosure of Invention
In order to solve the problems in the prior art, the embodiment of the invention provides a test information association method, a device, computer equipment and a storage medium, which are used for solving the problems that the test information in the prior art is long in time consumption, easy to make mistakes and the like in the association process.
In order to solve one or more of the technical problems, the invention adopts the following technical scheme:
In a first aspect, a method for associating test information is provided, the method comprising the steps of:
acquiring branch information of a current version of an application program to be tested, and generating a first information table according to the branch information, wherein the first information table is used for recording coverage rate data;
Acquiring the requirement information of the application program to be tested, and generating a second information table according to the requirement information;
associating the second information table with the first information table according to a preset field, adding a target field into the first information table, and generating a new first information table;
and after the demand test is carried out on the branches, synchronously updating the coverage rate data generated by the test to the new first information table and the second information table.
Further, the obtaining the requirement information of the application program to be tested, and generating the second information table according to the requirement information includes:
Acquiring project engineering data of each service line of the application program to be tested of the current version from a project management platform;
Acquiring the requirement information of the application program to be tested corresponding to each terminal platform from the project engineering data, wherein the terminal comprises an android and/or an iphone;
and generating a second information table according to the requirement information of each terminal platform.
Further, the obtaining, from the project engineering data, the requirement information of the application program to be tested corresponding to each terminal platform includes:
acquiring a requirement list of the application program to be tested corresponding to each terminal platform from the project engineering data;
and filtering the requirement list of each terminal to obtain the requirement information of the front-end application program of each terminal platform.
Further, the preset field includes a branch name, and the associating the second information table with the first information table according to the preset field includes:
and extracting a branch name contained in the second information table, and associating the second information table with the first information table according to the branch name.
Further, after the demand test is performed on the branch, synchronously updating the coverage rate data generated by the test to the new first information table and the second information table includes:
And after the demand test is carried out on the branches, updating coverage rate data generated by the test to the new first information table, and updating the coverage rate data to the second information table based on the association relation between the new first information table and the second information table.
Further, the method further comprises:
Acquiring latest project engineering data of each service line of the application program to be tested from the project management platform at regular time;
Acquiring the latest demand information of the application program to be tested corresponding to each terminal platform from the latest project engineering data;
and updating the second information table according to the latest demand information.
Further, the method target field includes a related field extracted from the requirement information.
In a second aspect, there is provided an apparatus comprising:
The first generation module is used for acquiring the branch information of the current version of the application program to be tested, and generating a first information table according to the branch information, wherein the first information table is used for recording coverage rate data;
The second generation module is used for acquiring the requirement information of the application program to be tested and generating a second information table according to the requirement information;
The information association module is used for associating the second information table with the first information table according to a preset field, adding a target field into the first information table and generating a new first information table;
and the data updating module is used for synchronously updating the coverage rate data generated by the test to the new first information table and the second information table after the demand test is carried out on the branches.
In a third aspect, there is provided a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of:
acquiring branch information of a current version of an application program to be tested, and generating a first information table according to the branch information, wherein the first information table is used for recording coverage rate data;
Acquiring the requirement information of the application program to be tested, and generating a second information table according to the requirement information;
associating the second information table with the first information table according to a preset field, adding a target field into the first information table, and generating a new first information table;
and after the demand test is carried out on the branches, synchronously updating the coverage rate data generated by the test to the new first information table and the second information table.
In a fourth aspect, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
acquiring branch information of a current version of an application program to be tested, and generating a first information table according to the branch information, wherein the first information table is used for recording coverage rate data;
Acquiring the requirement information of the application program to be tested, and generating a second information table according to the requirement information;
associating the second information table with the first information table according to a preset field, adding a target field into the first information table, and generating a new first information table;
and after the demand test is carried out on the branches, synchronously updating the coverage rate data generated by the test to the new first information table and the second information table.
The technical scheme provided by the embodiment of the invention has the beneficial effects that:
According to the test information association method, the device, the computer equipment and the storage medium, the first information table is generated according to the branch information of the application program to be tested of the current version, the first information table is used for recording coverage rate data, the requirement information of the application program to be tested is obtained, the second information table is generated according to the requirement information, the second information table is associated with the first information table according to the preset field, the target field is added in the first information table, a new first information table is generated, after the requirement test is carried out on the branch, the coverage rate data generated by the test are synchronously updated to the new first information table and the second information table, on one hand, the second information table is associated with the first information table according to the preset field, automatic association of test information (comprising the requirement information and the coverage rate data) is achieved, the information association efficiency is improved, the error problem in the association process is reduced, and the like is solved, on the other hand, the data of different ends are summarized together, and convenience is realized.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is an architecture diagram of a system for applying the test information association method, according to an exemplary embodiment;
FIG. 2 is a flow chart illustrating a test information association method according to an exemplary embodiment;
FIG. 3 is a schematic diagram of a test information association device, according to an example embodiment;
fig. 4 is a schematic diagram showing an internal structure of a computer device according to an exemplary embodiment.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that, in the implementation of the present invention, coverage is a measure of test integrity and is a measure of test effectiveness. Represented by executed code, for evaluation of reliability, stability and performance. Test coverage is an evaluation of the completeness of a test. The test coverage is represented by the coverage of test requirements and test cases or the coverage of executed code. Based on the evaluation of the test results and the analysis of the change requests (defects) determined during the test. Branches (branches) are separated from the development main line, and further development is performed without affecting the original main line.
As described in the background art, the coverage rate information and the demand information are usually separated, that is, there is no demand information in the coverage rate information, there is no coverage rate information in the demand information, the information is stored separately, so that the information is inconvenient to view, and if the coverage rate information and the demand information need to be associated, the information can only be manually copied to each other to be associated at present. However, because of the coverage platform, branching is typically a dimension. Each branch corresponds to one end (android or apple) of a requirement, so that the data volume is large and miscellaneous, and the information association work is large in workload, long in time consumption and easy to make mistakes.
In order to solve the above-mentioned problems, an embodiment of the present invention provides a test information association method, which associates a first information table for recording coverage rate data with a second information table recording requirement information through a preset field (such as a branch name, etc.), and further updates coverage rate data generated by a test to the first information table after completing a requirement test on a branch, and automatically and synchronously updates the coverage rate data to the second information table based on an association relationship between the first information table and the second information table. Because the process is automatically completed and manual operation is not needed, the efficiency of information association can be greatly improved, the error rate is reduced, and the information is collected together, so that the subsequent check is convenient.
Fig. 1 is a block diagram of a system for applying the test information association method according to an exemplary embodiment, and referring to fig. 1, in the system, a current version of an application program to be tested is tested by taking a branch as a dimension, which may include multiple branches, such as branch 1, branch 2 … … and branch N. Each branch corresponds to one end of a demand (e.g., android or apple), and the branch information of the current version of the application to be tested is maintained through the branch list (i.e., the first information table). The current version of the application to be tested has a plurality of service lines, such as service line a, service line B, and the like, and each service line may further include a plurality of items, such as service line a may include item a, item B, and the like, and each item may have a plurality of terminal platforms, such as apples, android, and the like, and each terminal platform may be further divided into a front end, a back end, a middleware, and the like, which are not listed herein. The requirement information of the current version of the application program to be tested is maintained through a service information table (namely a second information table), and the requirement information can be pulled from the project management platform through a preset interface. In the embodiment of the invention, the service information table is associated with the branch list through the preset fields such as the branch name and the like, so that the coverage rate data generated by the test is synchronously updated to the service information table when the coverage rate data generated by the test is updated to the branch list.
Fig. 2 is a flowchart illustrating a test information association method according to an exemplary embodiment, and referring to fig. 2, the method includes the steps of:
S1: and acquiring the branch information of the current version of the application program to be tested, and generating a first information table according to the branch information, wherein the first information table is used for recording coverage rate data.
Specifically, the application program may relate to multiple versions, and the method in the embodiment of the invention adopts the current version to be tested of the application program, so that the coverage rate data generated by subsequent testing is conveniently related to information such as demand data. The current version of the application to be tested includes several branches, each corresponding to a test requirement. The branch information includes, but is not limited to, information such as a branch name. In the embodiment of the invention, the branch information of the application program to be tested of the current version is obtained, and when the implementation is carried out, the relevant branch information can be reported to the server when the installation package of the application program to be tested is packaged, a first information table is generated according to the received branch information, the information recorded in the first information table comprises but is not limited to a branch name and the like, and the first information table is also used for recording information such as coverage rate data generated by testing.
S2: and acquiring the requirement information of the application program to be tested, and generating a second information table according to the requirement information.
Specifically, in the embodiment of the invention, in order to facilitate subsequent viewing, unified presentation, decision making, and the like, the requirement data proposed by the service party and the coverage rate data generated by subsequent testing need to be stored in a correlated manner. Therefore, after the first information table is generated according to the branch information, the requirement data of the front-end service party for the application program to be tested is required to be acquired, so that the second information table is generated according to the requirement data.
S3: and associating the second information table with the first information table according to a preset field, adding a target field into the first information table, and generating a new first information table.
Specifically, in the embodiment of the present invention, in order to automatically and synchronously update coverage rate data generated by a test to a second information table in which information such as requirement data is recorded when updating the coverage rate data to the first information in which branch information is recorded, a preset field is adopted to associate the second information table with the first information table, where a user may set the preset field according to actual requirements by himself, and as a preferred implementation, the preset field may use a branch name. Meanwhile, a target field is added in the first information table to form a new first information table, wherein the target field comprises fields related to the requirement data, including but not limited to fields such as a requirement name and the like.
S4: and after the demand test is carried out on the branches, synchronously updating the coverage rate data generated by the test to the new first information table and the second information table.
Specifically, after the subsequent requirement test is performed on the branch, the generation of test result data such as coverage rate data is triggered, and the coverage rate data is synchronously updated to a new first information table and a second information table, so that unified display of the coverage rate data and the requirement data is realized, and the coverage rate data is convenient to check.
In an embodiment of the present invention, the obtaining the requirement information of the application to be tested, and generating the second information table according to the requirement information includes:
Acquiring project engineering data of each service line of the application program to be tested of the current version from a project management platform;
Acquiring the requirement information of the application program to be tested corresponding to each terminal platform from the project engineering data, wherein the terminal comprises an android and/or an iphone;
and generating a second information table according to the requirement information of each terminal platform.
Specifically, in the embodiment of the present invention, the requirement data proposed by the pre-service for the current version of the application program to be tested may be obtained from the project management platform (plcs). Since an application may include multiple business lines, each business line may include multiple items, each item may include multiple end platforms, and each branch corresponds to a desired end platform. Therefore, in the implementation, project engineering data of each service line of the application program to be tested in the current version can be obtained from the project management platform through a preset interface and other modes, then the requirement information (also called a requirement list) of the application program to be tested corresponding to each terminal platform is obtained from the project engineering data, wherein the terminal comprises android, iphone and the like, each requirement information comprises but is not limited to developer information, tester information and the like, and finally a second information table is generated according to the obtained requirement information of each terminal platform.
In an embodiment of the present invention, the obtaining, from the project engineering data, the requirement information of the application program to be tested corresponding to each terminal platform includes:
acquiring a requirement list of the application program to be tested corresponding to each terminal platform from the project engineering data;
and filtering the requirement list of each terminal to obtain the requirement information of the front-end application program of each terminal platform.
Specifically, each project may include multiple terminal platforms, where the terminal platforms include front ends, back ends, middleware, and so on. In an embodiment of the present invention, a requirement list of the application program to be tested corresponding to each terminal platform is obtained from the project engineering data, and then the requirement list of each terminal is filtered to obtain requirement information of front-end application programs of each terminal platform, that is, only the requirement of front-end APP is reserved. It should be noted here that, filtering the requirement information of the front-end application is only an example, and the present invention is not limited to the specific information, and the user may set the information according to the actual requirement.
As a preferred implementation manner, in the embodiment of the present invention, the preset field includes a branch name, and the associating the second information table with the first information table according to the preset field includes:
and extracting a branch name contained in the second information table, and associating the second information table with the first information table according to the branch name.
Specifically, as a preferred example, the branch name may be used as a preset field, and the second information table and the first information table may be associated. In the implementation, the branch name (usually, the branch name needs to be mentioned) contained in the requirement information recorded in the second information table can be extracted, and then the second information table is associated with the first information table for recording the branch information through the branch name.
In an embodiment of the present invention, after the performing the demand test on the branch, synchronously updating the coverage rate data generated by the test to the new first information table and the second information table includes:
And after the demand test is carried out on the branches, updating coverage rate data generated by the test to the new first information table, and updating the coverage rate data to the second information table based on the association relation between the new first information table and the second information table.
Specifically, after the demand test is performed on the branches, the generation of test result data such as coverage rate data is triggered, and the coverage rate data is recorded in the first information table according to the corresponding branch information. And because the second information table and the first information table are subjected to association processing through the preset field, based on the association relation, after the coverage rate data generated by the test is updated to a new first information table, the coverage rate data can be automatically and synchronously updated to the second information table, so that unified display of the coverage rate data and the demand information is realized, and the viewing is convenient.
As a preferred implementation manner, in an embodiment of the present invention, the method further includes:
Acquiring latest project engineering data of each service line of the application program to be tested from the project management platform at regular time;
Acquiring the latest demand information of the application program to be tested corresponding to each terminal platform from the latest project engineering data;
and updating the second information table according to the latest demand information.
Specifically, in the embodiment of the present invention, a timing task may also be set, and the second information table may be updated at regular time. In the implementation, the latest project engineering data of each business line of the application program to be tested can be regularly pulled from the project management platform. And acquiring the latest demand information of the application program to be tested corresponding to each terminal platform from the latest project engineering data, and finally updating the related data in the second information table according to the latest demand information.
As a preferred implementation manner, in the embodiment of the present invention, the method target field includes a relevant field extracted from the requirement information.
Specifically, the object field added in the first information table may be a related field extracted from the requirement information, including but not limited to a requirement name, tester information, developer information, version number, etc., so that the non-current version is not displayed. By the arrangement, the requirement list can be acquired through the version, and the requirements of the non-current version are not processed, so that the processing pressure of the system is reduced.
In a preferred embodiment of the present invention, when the second information table is generated, the personnel information of the front-end app may be obtained from the employee information table, and may be recorded in the second information table. It should be noted that, in the embodiment of the present invention, specific information recorded in the second information table may be set according to specific requirements of a user, which is not limited herein.
Fig. 3 is a schematic structural view of a test information associating apparatus according to an exemplary embodiment, and referring to fig. 3, the apparatus includes:
The first generation module is used for acquiring the branch information of the current version of the application program to be tested, and generating a first information table according to the branch information, wherein the first information table is used for recording coverage rate data;
The second generation module is used for acquiring the requirement information of the application program to be tested and generating a second information table according to the requirement information;
The information association module is used for associating the second information table with the first information table according to a preset field, adding a target field into the first information table and generating a new first information table;
and the data updating module is used for synchronously updating the coverage rate data generated by the test to the new first information table and the second information table after the demand test is carried out on the branches.
In a preferred embodiment of the present invention, the second generating module is specifically configured to:
Acquiring project engineering data of each service line of the application program to be tested of the current version from a project management platform;
Acquiring the requirement information of the application program to be tested corresponding to each terminal platform from the project engineering data, wherein the terminal comprises an android and/or an iphone;
and generating a second information table according to the requirement information of each terminal platform.
As a preferred implementation manner, in the embodiment of the present invention, the second generating module is further configured to:
acquiring a requirement list of the application program to be tested corresponding to each terminal platform from the project engineering data;
and filtering the requirement list of each terminal to obtain the requirement information of the front-end application program of each terminal platform.
As a preferred implementation manner, in the embodiment of the present invention, the information association module is specifically configured to:
and extracting a branch name contained in the second information table, and associating the second information table with the first information table according to the branch name.
As a preferred implementation manner, in the embodiment of the present invention, the data update module is specifically configured to:
And after the demand test is carried out on the branches, updating coverage rate data generated by the test to the new first information table, and updating the coverage rate data to the second information table based on the association relation between the new first information table and the second information table.
As a preferred implementation manner, in an embodiment of the present invention, the apparatus further includes:
The timing updating module is used for acquiring the latest project engineering data of each service line of the application program to be tested from the project management platform at fixed time; acquiring the latest demand information of the application program to be tested corresponding to each terminal platform from the latest project engineering data; and updating the second information table according to the latest demand information.
As a preferred implementation manner, in the embodiment of the present invention, the method target field includes a relevant field extracted from the requirement information.
Fig. 4 is a schematic diagram showing an internal structure of a computer device including a processor, a memory, and a network interface connected through a system bus, as shown with reference to fig. 4, according to an exemplary embodiment. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of optimizing an execution plan.
It will be appreciated by persons skilled in the art that the architecture shown in fig. 4 is merely a block diagram of some of the architecture relevant to the present inventive arrangements and is not limiting as to the computer device to which the present inventive arrangements are applicable, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
As a preferred implementation manner, in an embodiment of the present invention, a computer device includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the following steps:
acquiring branch information of a current version of an application program to be tested, and generating a first information table according to the branch information, wherein the first information table is used for recording coverage rate data;
Acquiring the requirement information of the application program to be tested, and generating a second information table according to the requirement information;
associating the second information table with the first information table according to a preset field, adding a target field into the first information table, and generating a new first information table;
and after the demand test is carried out on the branches, synchronously updating the coverage rate data generated by the test to the new first information table and the second information table.
In a preferred embodiment of the present invention, the processor executes the computer program to further implement the following steps:
Acquiring project engineering data of each service line of the application program to be tested of the current version from a project management platform;
Acquiring the requirement information of the application program to be tested corresponding to each terminal platform from the project engineering data, wherein the terminal comprises an android and/or an iphone;
and generating a second information table according to the requirement information of each terminal platform.
In a preferred embodiment of the present invention, the processor executes the computer program to further implement the following steps:
acquiring a requirement list of the application program to be tested corresponding to each terminal platform from the project engineering data;
and filtering the requirement list of each terminal to obtain the requirement information of the front-end application program of each terminal platform.
In a preferred embodiment of the present invention, the processor executes the computer program to further implement the following steps:
and extracting a branch name contained in the second information table, and associating the second information table with the first information table according to the branch name.
In a preferred embodiment of the present invention, the processor executes the computer program to further implement the following steps:
And after the demand test is carried out on the branches, updating coverage rate data generated by the test to the new first information table, and updating the coverage rate data to the second information table based on the association relation between the new first information table and the second information table.
In a preferred embodiment of the present invention, the processor executes the computer program to further implement the following steps:
Acquiring latest project engineering data of each service line of the application program to be tested from the project management platform at regular time;
Acquiring the latest demand information of the application program to be tested corresponding to each terminal platform from the latest project engineering data;
and updating the second information table according to the latest demand information.
In an embodiment of the present invention, there is also provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
acquiring branch information of a current version of an application program to be tested, and generating a first information table according to the branch information, wherein the first information table is used for recording coverage rate data;
Acquiring the requirement information of the application program to be tested, and generating a second information table according to the requirement information;
associating the second information table with the first information table according to a preset field, adding a target field into the first information table, and generating a new first information table;
and after the demand test is carried out on the branches, synchronously updating the coverage rate data generated by the test to the new first information table and the second information table.
As a preferred implementation manner, in the embodiment of the present invention, when the computer program is executed by the processor, the following steps are further implemented:
Acquiring project engineering data of each service line of the application program to be tested of the current version from a project management platform;
Acquiring the requirement information of the application program to be tested corresponding to each terminal platform from the project engineering data, wherein the terminal comprises an android and/or an iphone;
and generating a second information table according to the requirement information of each terminal platform.
As a preferred implementation manner, in the embodiment of the present invention, when the computer program is executed by the processor, the following steps are further implemented:
acquiring a requirement list of the application program to be tested corresponding to each terminal platform from the project engineering data;
and filtering the requirement list of each terminal to obtain the requirement information of the front-end application program of each terminal platform.
As a preferred implementation manner, in the embodiment of the present invention, when the computer program is executed by the processor, the following steps are further implemented:
and extracting a branch name contained in the second information table, and associating the second information table with the first information table according to the branch name.
As a preferred implementation manner, in the embodiment of the present invention, when the computer program is executed by the processor, the following steps are further implemented:
And after the demand test is carried out on the branches, updating coverage rate data generated by the test to the new first information table, and updating the coverage rate data to the second information table based on the association relation between the new first information table and the second information table.
As a preferred implementation manner, in the embodiment of the present invention, when the computer program is executed by the processor, the following steps are further implemented:
Acquiring latest project engineering data of each service line of the application program to be tested from the project management platform at regular time;
Acquiring the latest demand information of the application program to be tested corresponding to each terminal platform from the latest project engineering data;
and updating the second information table according to the latest demand information.
In summary, the technical solution provided by the embodiment of the present invention has the following beneficial effects:
According to the test information association method, the device, the computer equipment and the storage medium, the first information table is generated according to the branch information of the application program to be tested of the current version, the first information table is used for recording coverage rate data, the requirement information of the application program to be tested is obtained, the second information table is generated according to the requirement information, the second information table is associated with the first information table according to the preset field, the target field is added in the first information table, a new first information table is generated, after the requirement test is carried out on the branch, the coverage rate data generated by the test are synchronously updated to the new first information table and the second information table, on one hand, the second information table is associated with the first information table according to the preset field, automatic association of test information (comprising the requirement information and the coverage rate data) is achieved, the information association efficiency is improved, the error problem in the association process is reduced, and the like is solved, on the other hand, the data of different ends are summarized together, and convenience is realized.
It should be noted that: the test information association device provided in the above embodiment only uses the division of the above functional modules to illustrate when the association service is triggered, and in practical application, the above functional allocation may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the test information association device and the test information association method provided in the foregoing embodiments belong to the same concept, that is, the device is based on the test information association method, and the specific implementation process of the device is detailed in the method embodiment, which is not repeated herein.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing description of the preferred embodiments of the invention is not intended to limit the invention to the precise form disclosed, and any such modifications, equivalents, and alternatives falling within the spirit and scope of the invention are intended to be included within the scope of the invention.

Claims (6)

1. A method of correlating test information, the method comprising the steps of:
acquiring branch information of a current version of an application program to be tested, and generating a first information table according to the branch information, wherein the first information table is used for recording coverage rate data;
Acquiring the requirement information of the application program to be tested, and generating a second information table according to the requirement information;
associating the second information table with the first information table according to a preset field, adding a target field into the first information table, and generating a new first information table;
After the demand test is carried out on the branches, the coverage rate data generated by the test are synchronously updated to the new first information table, and the coverage rate data are updated to the second information table based on the association relation between the new first information table and the second information table;
Wherein the preset field includes a branch name, and associating the second information table with the first information table according to the preset field includes:
Extracting a branch name contained in the second information table, and associating the second information table with the first information table according to the branch name;
the obtaining the requirement information of the application program to be tested, and generating a second information table according to the requirement information includes:
Acquiring project engineering data of each service line of the application program to be tested of the current version from a project management platform;
Acquiring the requirement information of the application program to be tested corresponding to each terminal platform from the project engineering data, wherein the terminal comprises an android and/or an iphone;
Generating a second information table according to the requirement information of each terminal platform;
The method further comprises the steps of:
Acquiring latest project engineering data of each service line of the application program to be tested from the project management platform at regular time;
Acquiring the latest demand information of the application program to be tested corresponding to each terminal platform from the latest project engineering data;
and updating the second information table according to the latest demand information.
2. The method for associating test information according to claim 1, wherein the obtaining, from the project engineering data, the requirement information of the application program to be tested corresponding to each terminal platform includes:
acquiring a requirement list of the application program to be tested corresponding to each terminal platform from the project engineering data;
and filtering the requirement list of each terminal to obtain the requirement information of the front-end application program of each terminal platform.
3. The test information association method according to claim 1 or 2, wherein the target field includes a related field extracted from the requirement information.
4. A test information correlating device applied to the test information correlating method as defined in any one of claims 1 to 3, characterized in that the device comprises:
The first generation module is used for acquiring the branch information of the current version of the application program to be tested, and generating a first information table according to the branch information, wherein the first information table is used for recording coverage rate data;
The second generation module is used for acquiring the requirement information of the application program to be tested and generating a second information table according to the requirement information;
The information association module is used for associating the second information table with the first information table according to a preset field, adding a target field into the first information table and generating a new first information table;
and the data updating module is used for synchronously updating the coverage rate data generated by the test to the new first information table and the second information table after the demand test is carried out on the branches.
5. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 3 when the computer program is executed by the processor.
6. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 3.
CN202011391738.7A 2020-12-01 2020-12-01 Test information association method, device, computer equipment and storage medium Active CN112346994B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011391738.7A CN112346994B (en) 2020-12-01 2020-12-01 Test information association method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011391738.7A CN112346994B (en) 2020-12-01 2020-12-01 Test information association method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112346994A CN112346994A (en) 2021-02-09
CN112346994B true CN112346994B (en) 2024-06-04

Family

ID=74428051

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011391738.7A Active CN112346994B (en) 2020-12-01 2020-12-01 Test information association method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112346994B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113138933A (en) * 2021-05-13 2021-07-20 网易(杭州)网络有限公司 Data table testing method, electronic device and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095518A (en) * 2011-11-08 2013-05-08 阿里巴巴集团控股有限公司 Coverage rate test processing method and device and coverage rate test server and system
CN106021094A (en) * 2016-04-29 2016-10-12 南京慕测信息科技有限公司 Program static analysis based Java unit test teaching feedback method
FR3047824A1 (en) * 2016-02-12 2017-08-18 Alstom Transp Tech METHOD FOR ASSISTING THE VALIDATION OF A SYSTEM AND ASSOCIATED ASSISTING DEVICE
CN108920374A (en) * 2018-07-11 2018-11-30 郑州云海信息技术有限公司 A kind of method and system of express statistic demand test coverage
CN109446065A (en) * 2018-09-18 2019-03-08 深圳壹账通智能科技有限公司 User tag test method, device, computer equipment and storage medium
CN109542761A (en) * 2018-10-11 2019-03-29 平安科技(深圳)有限公司 Evaluation of Software Quality, device and storage medium
CN110795332A (en) * 2018-08-03 2020-02-14 北京京东尚科信息技术有限公司 Automatic testing method and device
CN110908915A (en) * 2019-11-27 2020-03-24 广州品唯软件有限公司 Test coverage rate display method and device and computer system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8527695B2 (en) * 2011-07-29 2013-09-03 The Boeing Company System for updating an associative memory
US10248545B2 (en) * 2016-02-17 2019-04-02 Parasoft Corporation Method for tracking high-level source attribution of generated assembly language code
CN110457207A (en) * 2019-07-12 2019-11-15 平安普惠企业管理有限公司 Test method and relevant device based on machine learning model
CN110647452B (en) * 2019-08-30 2023-02-07 深圳壹账通智能科技有限公司 Test method, test device, computer equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095518A (en) * 2011-11-08 2013-05-08 阿里巴巴集团控股有限公司 Coverage rate test processing method and device and coverage rate test server and system
FR3047824A1 (en) * 2016-02-12 2017-08-18 Alstom Transp Tech METHOD FOR ASSISTING THE VALIDATION OF A SYSTEM AND ASSOCIATED ASSISTING DEVICE
CN106021094A (en) * 2016-04-29 2016-10-12 南京慕测信息科技有限公司 Program static analysis based Java unit test teaching feedback method
CN108920374A (en) * 2018-07-11 2018-11-30 郑州云海信息技术有限公司 A kind of method and system of express statistic demand test coverage
CN110795332A (en) * 2018-08-03 2020-02-14 北京京东尚科信息技术有限公司 Automatic testing method and device
CN109446065A (en) * 2018-09-18 2019-03-08 深圳壹账通智能科技有限公司 User tag test method, device, computer equipment and storage medium
CN109542761A (en) * 2018-10-11 2019-03-29 平安科技(深圳)有限公司 Evaluation of Software Quality, device and storage medium
CN110908915A (en) * 2019-11-27 2020-03-24 广州品唯软件有限公司 Test coverage rate display method and device and computer system

Also Published As

Publication number Publication date
CN112346994A (en) 2021-02-09

Similar Documents

Publication Publication Date Title
CN109302522B (en) Test method, test device, computer system, and computer medium
US9824002B2 (en) Tracking of code base and defect diagnostic coupling with automated triage
EP2572294B1 (en) System and method for sql performance assurance services
US7937622B2 (en) Method and system for autonomic target testing
EP2778929B1 (en) Test script generation system
CN104252481A (en) Dynamic check method and device for consistency of main and salve databases
CN110196809B (en) Interface testing method and device
CN112286806A (en) Automatic testing method and device, storage medium and electronic equipment
CN111694748B (en) Pressure testing method and device
US10846212B2 (en) Evidence gathering system and method
CN112685312A (en) Test case recommendation method and device for uncovered codes
CN112346994B (en) Test information association method, device, computer equipment and storage medium
JP2017016507A (en) Test management system and program
CN114185791A (en) Method, device and equipment for testing data mapping file and storage medium
CN116010244A (en) Automatic test method, device, electronic equipment and storage medium
CN111414194B (en) Interface information generation method, system, electronic equipment and storage medium
US11392371B2 (en) Identification of a partial code to be refactored within a source code
CN109840213B (en) Test data creating method, device, terminal and storage medium for GUI test
CN110908918A (en) Unit testing method and device for multiple interdependent node
CN111143221B (en) Test method and device
CN110008114B (en) Configuration information maintenance method, device, equipment and readable storage medium
CN115587048A (en) Regression testing method, terminal device and computer readable storage medium
CN114116468A (en) Application testing method and device, electronic equipment and storage medium
CN112394979A (en) Multi-environment synchronization method, device, equipment and storage medium of software system
CN115687109A (en) Interface test method and device, 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