[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN110554962A - Regression testing process covering method, server and computer readable storage medium - Google Patents

Regression testing process covering method, server and computer readable storage medium Download PDF

Info

Publication number
CN110554962A
CN110554962A CN201910762716.8A CN201910762716A CN110554962A CN 110554962 A CN110554962 A CN 110554962A CN 201910762716 A CN201910762716 A CN 201910762716A CN 110554962 A CN110554962 A CN 110554962A
Authority
CN
China
Prior art keywords
page
test
code
regression
functional
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910762716.8A
Other languages
Chinese (zh)
Inventor
杨小彦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201910762716.8A priority Critical patent/CN110554962A/en
Publication of CN110554962A publication Critical patent/CN110554962A/en
Pending legal-status Critical Current

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
    • 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/3684Test management for test design, e.g. generating new test cases
    • 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

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 relates to a software testing technology, and discloses a flow covering method for regression testing, which comprises the following steps: scanning jump logic corresponding to each page code of the application program according to a preset seed page; sorting all the skipping behaviors according to the scanning result, and displaying all the skipping behaviors in a tree structure; traversing through the tree structure to obtain all possible functional processes; acquiring the corresponding relation between the page code and the test case; associating the test case with the functional flow through the page code; and obtaining a test script corresponding to the functional flow to be covered by the regression test according to the corresponding relation between the test case and the functional flow. The invention also provides a server and a computer readable storage medium. The invention can avoid software defects caused by missing test or waste of manpower and time due to overlarge test range, and improve software quality and test efficiency.

Description

regression testing process covering method, server and computer readable storage medium
Technical Field
The invention relates to the technical field of software testing, in particular to a regression testing process covering method, a server and a computer readable storage medium.
Background
at present, in the process of developing software products, because parameters and performance are optimized or changed for too many times, developers sometimes do not remember the changed parts of the developers, and the influence on which pages cover which processes is achieved. Or, in the case of multi-person changes, multiple developers do not know among themselves what other people changed, resulting in partial impact of the change or partial flow changes.
therefore, when regression testing is performed on a product, it is difficult to ensure that the test covers the entire flow. In general, the test range is small, and the missing test causes software defects; or the test range is too large, too much manpower is wasted, and a new flow is not covered. Each time of regression testing, it is difficult to determine whether modification occurs and the modification cannot be accurately positioned in the testing range, which may affect the software quality.
Disclosure of Invention
In view of the above, the present invention provides a regression testing process coverage method, a server and a computer readable storage medium to solve at least one of the above technical problems.
First, in order to achieve the above object, the present invention provides a flow coverage method of regression testing, which includes the steps of:
Scanning jump logic corresponding to each page code of the application program according to a preset seed page;
Sorting all the skipping behaviors according to the scanning result, wherein the skipping behaviors comprise logical relations existing in the pages before and after skipping, and displaying all the skipping behaviors in a tree structure;
Traversing through the tree structure to obtain all possible functional processes;
Acquiring the corresponding relation between the page code and the test case;
Associating the test case with the functional flow through the page code; and
And obtaining a test script corresponding to the functional flow to be covered by the regression test according to the corresponding relation between the test case and the functional flow.
Optionally, in the step of scanning the jump logic corresponding to each page code of the application program according to the preset seed page:
When no change code is detected, taking a home page of the application program as the seed page;
And when the change code is detected, taking the page where the change code is as the seed page.
Optionally, the all-jump behavior comprises searching all jump logic associated therewith starting from the seed page.
Optionally, in the step of displaying all jump behaviors, the all jump behaviors are displayed in a tree structure through a visual plug-in or Java code.
Optionally, the step of obtaining all possible functional processes by traversing through the tree structure includes:
Traversing the tree structure according to page levels, and acquiring each path in the tree structure through the logical relationship of parent pages and child pages, wherein the function corresponding to each page of one path is connected together to form a functional flow.
Optionally, when the seed page is a top page of the application program, all functional processes of the application program are obtained through traversal;
and when the seed page is the page where the change code is located, the functional flow influenced by the change code is obtained through traversal.
Optionally, the step of obtaining the correspondence between the page code and the test case includes:
and injecting a set statistical code into a position corresponding to the page code, when a test is executed, the code runs to the injection position, the corresponding statistical code is executed, a coverage statistical report is generated, and the coverage starting line and the coverage ending line of the executed test case are recorded, so that the corresponding relation between the test case and the page code is analyzed and obtained.
Optionally, the step of obtaining, according to the correspondence between the test case and the functional flow, a test script corresponding to the functional flow that needs to be covered by the regression test includes:
Obtaining all functional flows which need to be covered by the regression test, obtaining a test case corresponding to the functional flows, obtaining an automatic test script corresponding to the test case, and automatically combining all the obtained test scripts.
In addition, in order to achieve the above object, the present invention further provides a server, including a memory and a processor, where the memory stores a flow overlay system of a regression test that can be run on the processor, and when the flow overlay system of the regression test is executed by the processor, the server implements the steps of the flow overlay method of the regression test as described above.
Further, to achieve the above object, the present invention also provides a computer readable storage medium storing a regression-tested process coverage system executable by at least one processor to cause the at least one processor to perform the steps of the regression-tested process coverage method as described above.
Compared with the prior art, the regression testing flow covering method, the server and the computer readable storage medium provided by the invention can be used for combing the functional flows related to the page codes according to the seed page and the page jump logic, and then obtaining the testing script corresponding to the regression testing full-flow covering according to the corresponding relation among the page codes, the testing cases and the functional flows. The invention can avoid software defects caused by missing test or waste of manpower and time due to overlarge test range, and improve software quality and test efficiency.
Drawings
FIG. 1 is a schematic diagram of an alternative hardware architecture for a server according to the present invention;
FIG. 2 is a block diagram of a preferred embodiment of a regression testing process overlay system;
FIG. 3 is a diagram of a tree structure showing page jump behavior according to the present invention;
FIG. 4 is a schematic diagram of a flow chart of an associated page code, test case and functional flow in the present invention;
FIG. 5 is a schematic flow chart diagram illustrating a preferred embodiment of a regression testing process coverage method of the present invention;
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
it should be noted that the description relating to "first", "second", etc. in the present invention is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
Fig. 1 is a schematic diagram of an alternative hardware architecture of the server 2 according to the present invention.
In this embodiment, the server 2 may include, but is not limited to, a memory 11, a processor 12, and a network interface 13, which may be communicatively connected to each other through a system bus. It is noted that fig. 1 only shows the server 2 with components 11-13, but it is to be understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
the server 2 may be a rack server, a blade server, a tower server, or a rack server, and the server 2 may be an independent server or a server cluster formed by a plurality of servers.
The memory 11 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the storage 11 may be an internal storage unit of the server 2, such as a hard disk or a memory of the server 2. In other embodiments, the memory 11 may also be an external storage device of the server 2, such as a plug-in hard disk, a Smart Memory Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like, provided on the server 2. Of course, the memory 11 may also comprise both an internal storage unit of the server 2 and an external storage device thereof. In this embodiment, the memory 11 is generally used for storing an operating system installed in the server 2 and various types of application software, such as program codes of the flow overlay system 200 for regression testing. Furthermore, the memory 11 may also be used to temporarily store various types of data that have been output or are to be output.
the processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 12 is typically used to control the overall operation of the server 2. In this embodiment, the processor 12 is configured to run the program code stored in the memory 11 or process data, for example, run the flow overlay system 200 of the regression test.
The network interface 13 may comprise a wireless network interface or a wired network interface, and the network interface 13 is generally used for establishing communication connection between the server 2 and other electronic devices.
The hardware structure and functions of the related devices of the present invention have been described in detail so far. Various embodiments of the present invention will be presented based on the above description.
First, the present invention provides a regression testing process coverage system 200.
Referring to FIG. 2, a block diagram of a preferred embodiment of the regression testing process coverage system 200 of the present invention is shown.
In this embodiment, the flow overlay system 200 of regression testing includes a series of computer program instructions stored in the memory 11, and when the computer program instructions are executed by the processor 12, the flow overlay operation of regression testing according to the embodiments of the present invention can be implemented. In some embodiments, the flow overlay system 200 of regression testing may be divided into one or more modules based on the particular operations implemented by the various portions of the computer program instructions. For example, in fig. 2, the regression testing process coverage system 200 may be divided into a scanning module 201, a presentation module 202, a traversal module 203, an acquisition module 204, an association module 205, and a coverage module 206. Wherein:
the scanning module 201 is configured to scan a jump logic corresponding to each page code of the application program according to a preset seed page, and record a current page and a page that can be jumped.
Specifically, in the process of developing software such as an application program, a regression test needs to be performed. Regression testing needs to cover the full flow use case of the application. In addition, the application often needs to be modified or optimized, wherein the changed code affects the functional flow of the application, and the regression test of the affected functional flow needs to be repeated. In this embodiment, the flow coverage during the regression test may be confirmed based on the page jump logic corresponding to the page code.
The change code includes new code, modified code, etc. In the automatic test, taking a GIT (distributed version control system) end as an example, when detecting that a new code modification or a new transfer deployment occurs on the GIT, the content of the code modification can be checked through a command line GIT diff, the occurrence of the new code or the modification code is detected, and the position of the code change can be located.
and triggering script scanning operation, scanning page codes through a pre-compiled script (such as nodejs or Python) according to a preset seed page to obtain a jump logic corresponding to each page code, and recording a current page and a page capable of jumping. For example, the page can jump by a location. In this embodiment, when no change code is detected, the top page of the application is used as the seed page. And when the change code is detected, taking the page where the change code is as a seed page.
The display module 202 is configured to sort all the jump behaviors according to the scanning result, and display the jump behaviors in a tree structure.
Specifically, the jump behavior is a logical relationship that exists between pages before and after the jump, and may include a parent page rotor page. And determining the page logic relationship by a page logic jump method. All jump behavior refers to looking up all jump logic associated with the seed page starting from the seed page.
Each page has a page identifier, and arrow points exist in each page identifier in the jumping process, and the relationship between the jumping nodes can be obtained through the arrow points.
In this embodiment, the page logical relationship is presented in a tree structure by a visualization plug-in or Java code, and the visualization plug-in may be echart or highart, etc. For example, FIG. 3 is a diagram illustrating a tree structure showing page jump behavior.
The traversal module 203 is configured to perform traversal through a tree structure to obtain all possible functional processes.
specifically, taking the above fig. 3 as an example, the process of traversing the tree structure is to traverse according to a page hierarchy, and the traversed path result is, for example: front page H-A-A1, or front page H-A-A2, etc. The functional flow refers to a function corresponding to each page jump logic, each path in the tree structure can be obtained through the logical relations of parent-child pages (such as A and A1 parent-child pages), each page has a main function, the real name authentication page is an identity card information authentication function, and the function of the pages of one path is connected together to form a functional flow.
When the seed page is the first page of the application program, all functional processes of the application program are obtained by traversing. And when the seed page is the page where the change code is located, the functional flow influenced by the change code is obtained through traversal.
The obtaining module 204 is configured to obtain a corresponding relationship between the page code and the test case.
specifically, the page code and the test case are in a one-to-many relationship, and few are in a one-to-one relationship. Generally, the page code may be H5 code, Java code, or the like.
(1) Obtaining the corresponding relation between the H5 code and the test case:
a karma + istanbul framework is adopted in a source code to analyze code coverage rate, a test case triggers and calls a code function when executed at an APP end, a corresponding class library generates a corresponding coverage report, and a case coverage starting line and a case coverage finishing line executed at the APP end are recorded. The technical core is that set statistical codes are injected into corresponding positions of source codes, when test codes are executed, the codes run to the injection positions, corresponding statistical codes are executed, a coverage statistical report is generated, and therefore the corresponding relation between a test case and an application program page code can be obtained through analysis.
(2) Obtaining the corresponding relation between the Java code and the test case:
A jacoco framework is adopted in source code to analyze code coverage rate, different class library files are used, and a technical core is similar to H5 code.
The associating module 205 is configured to associate the test case with the functional process.
specifically, the obtaining module 204 may obtain a corresponding relationship between a page code and a test case, and the scanning module 201, the displaying module 202, and the traversing module 203 may obtain a corresponding relationship between a page code and a functional process, so that the test case and the functional process may be further associated. Particularly, for the change code, which pages are influenced by the change code to cover which processes can be obtained, the influence range of the change code is accurately positioned, and test cases corresponding to the functional processes are found.
for example, the change code occurs in page a, the affected functional flows are a-a1, a-a2 and a-A3, and the corresponding relationship between the change code and the test cases 1 and 2, and the functional flows a-a1, a-a2 and a-A3 can be obtained when the change code corresponds to the test cases 1 and 2.
in this embodiment, a flowchart may be used to associate the page code, the test case, and the functional flow. For example, fig. 4 is a schematic diagram illustrating a flowchart for associating the page code, the test case, and the functional flow.
The coverage module 206 is configured to obtain a test script corresponding to the functional flow that needs to be covered by the regression test according to the correspondence between the test case and the functional flow.
Specifically, all test cases may be split to write different automated test scripts (see fig. 4), and the test cases correspond to the test scripts one to one, for example, the test cases may correspond to the test scripts through titles.
when performing regression testing, UI automation scripts are used, and UI automation case execution requires selection of a path, and a page jump logic such as H-A-A1 or H-A-A2 represents a functional flow. In this embodiment, all the functional flows that need to be covered by the regression test may be obtained according to the correspondence obtained in the above steps, a test case corresponding to the functional flow may be obtained, an automated test script corresponding to the test case may be obtained, all the obtained automated test scripts may be automatically combined according to all the functional flows, and the obtained test script may fully cover all the functional flows of the application program.
When a certain code is modified or newly added (a change code), after the function flow influenced by the change code is positioned according to the change code, only the function flow influenced by the change code needs to be tested during regression testing, and all the function flows influenced by the change code can be covered by the test script. In the testing process, when the codes are associated with the test cases, newly adding the test cases or modifying part of the test cases according to the coverage rate report, further newly adding the automatic test scripts or modifying the automatic test scripts, and performing key test on the functional flow influenced by the changed codes according to the test scripts.
The flow covering system for regression testing provided by this embodiment may comb the functional flows related to the page code according to the seed page and the page jump logic, and then obtain the test script corresponding to the full flow covering of the regression testing according to the correspondence among the page code, the test case, and the functional flow, or accurately locate the partial functional flow affected by the changed code, so as to cover the test script on the partial functional flow during the regression testing. The system can avoid software defects caused by missing test or waste of manpower and time due to overlarge test range, and improve software quality and test efficiency.
In addition, the invention also provides a flow covering method of the regression test.
FIG. 5 is a schematic flow chart diagram illustrating a preferred embodiment of the regression testing flow overlay method of the present invention. In this embodiment, the execution order of the steps in the flowchart shown in fig. 5 may be changed and some steps may be omitted according to different requirements.
The method comprises the following steps:
and S500, scanning the jump logic corresponding to each page code of the application program according to a preset seed page, and recording the current page and the page capable of jumping.
Specifically, in the process of developing software such as an application program, a regression test needs to be performed. Regression testing needs to cover the full flow use case of the application. In addition, the application often needs to be modified or optimized, wherein the changed code affects the functional flow of the application, and the regression test of the affected functional flow needs to be repeated. In this embodiment, the flow coverage during the regression test may be confirmed based on the page jump logic corresponding to the page code.
The change code includes new code, modified code, etc. In the automatic test, taking a GIT end as an example, when detecting that a new code modification or a new transfer deployment occurs on the GIT, the content of the code modification can be checked through a command line GIT diff, the occurrence of the new code or the modified code is detected, and the position of the changed code can be positioned.
And triggering script scanning operation, scanning page codes through a pre-compiled script (such as nodejs or Python) according to a preset seed page to obtain a jump logic corresponding to each page code, and recording a current page and a page capable of jumping. For example, the page can jump by a location. In this embodiment, when no change code is detected, the top page of the application is used as the seed page. And when the change code is detected, taking the page where the change code is as a seed page.
and step S502, sorting all the jump behaviors according to the scanning result, and displaying the jump behaviors in a tree structure.
Specifically, the jump behavior is a logical relationship that exists between pages before and after the jump, and may include a parent page rotor page. And determining the page logic relationship by a page logic jump method. All jump behavior refers to looking up all jump logic associated with the seed page starting from the seed page.
Each page has a page identifier, and arrow points exist in each page identifier in the jumping process, and the relationship between the jumping nodes can be obtained through the arrow points.
In this embodiment, the page logical relationship is presented in a tree structure by a visualization plug-in or Java code, and the visualization plug-in may be echart or highart, etc. For example, FIG. 3 is a diagram illustrating a tree structure showing page jump behavior.
step S504, traversing through the tree structure to obtain all possible functional processes.
Specifically, taking the above fig. 3 as an example, the process of traversing the tree structure is to traverse according to a page hierarchy, and the traversed path result is, for example: front page H-A-A1, or front page H-A-A2, etc. The functional flow refers to a function corresponding to each page jump logic, each path in the tree structure can be obtained through the logical relations of parent-child pages (such as A and A1 parent-child pages), each page has a main function, the real name authentication page is an identity card information authentication function, and the function of the pages of one path is connected together to form a functional flow.
When the seed page is the first page of the application program, all functional processes of the application program are obtained by traversing. And when the seed page is the page where the change code is located, the functional flow influenced by the change code is obtained through traversal.
Step S506, acquiring the corresponding relation between the page code and the test case.
Specifically, the page code and the test case are in a one-to-many relationship, and few are in a one-to-one relationship. Generally, the page code may be H5 code, Java code, or the like.
(1) Obtaining the corresponding relation between the H5 code and the test case:
A karma + istanbul framework is adopted in a source code to analyze code coverage rate, a test case triggers and calls a code function when executed at an APP end, a corresponding class library generates a corresponding coverage report, and a case coverage starting line and a case coverage finishing line executed at the APP end are recorded. The technical core is that set statistical codes are injected into corresponding positions of source codes, when test codes are executed, the codes run to the injection positions, corresponding statistical codes are executed, a coverage statistical report is generated, and therefore the corresponding relation between a test case and an application program page code can be obtained through analysis.
(2) Obtaining the corresponding relation between the Java code and the test case:
A jacoco framework is adopted in source code to analyze code coverage rate, different class library files are used, and a technical core is similar to H5 code.
Step S508, associating the test case with the functional flow.
Specifically, the corresponding relationship between the page code and the test case can be obtained according to step S506, and the corresponding relationship between the page code and the functional flow can be obtained according to steps S500 to S504, so that the test case and the functional flow can be further associated. Particularly, for the change code, which pages are influenced by the change code to cover which processes can be obtained, the influence range of the change code is accurately positioned, and test cases corresponding to the functional processes are found.
for example, the change code occurs in page a, the affected functional flows are a-a1, a-a2 and a-A3, and the corresponding relationship between the change code and the test cases 1 and 2, and the functional flows a-a1, a-a2 and a-A3 can be obtained when the change code corresponds to the test cases 1 and 2.
In this embodiment, a flowchart may be used to associate the page code, the test case, and the functional flow. For example, fig. 4 is a schematic diagram illustrating a flowchart for associating the page code, the test case, and the functional flow.
Step S510, obtaining a test script corresponding to the functional flow that needs to be covered by the regression test according to the corresponding relationship between the test case and the functional flow.
Specifically, all test cases may be split to write different automated test scripts (see fig. 4), and the test cases correspond to the test scripts one to one, for example, the test cases may correspond to the test scripts through titles.
When performing regression testing, UI automation scripts are used, and UI automation case execution requires selection of a path, and a page jump logic such as H-A-A1 or H-A-A2 represents a functional flow. In this embodiment, all the functional flows that need to be covered by the regression test may be obtained according to the correspondence obtained in the above steps, a test case corresponding to the functional flow may be obtained, an automated test script corresponding to the test case may be obtained, all the obtained automated test scripts may be automatically combined according to all the functional flows, and the obtained test script may fully cover all the functional flows of the application program.
When a certain code is modified or newly added (a change code), after the function flow influenced by the change code is positioned according to the change code, only the function flow influenced by the change code needs to be tested during regression testing, and all the function flows influenced by the change code can be covered by the test script. In the testing process, when the codes are associated with the test cases, newly adding the test cases or modifying part of the test cases according to the coverage rate report, further newly adding the automatic test scripts or modifying the automatic test scripts, and performing key test on the functional flow influenced by the changed codes according to the test scripts.
according to the flow covering method for the regression test, the functional flows related to the page codes can be combed according to the seed page and the page jump logic, then the test script corresponding to the whole flow covering of the regression test is obtained according to the corresponding relation among the page codes, the test cases and the functional flows, or the partial functional flows influenced by the changed codes are accurately positioned, so that the test script covers the partial functional flows during the regression test. The method can avoid software defects caused by missing test or waste of manpower and time due to overlarge test range, and improve software quality and test efficiency.
The present invention also provides another embodiment, which is to provide a computer readable storage medium storing a process coverage program for regression testing, the process coverage program being executable by at least one processor to cause the at least one processor to perform the steps of the process coverage method for regression testing as described above.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method of flow overlay for regression testing, the method comprising the steps of:
Scanning jump logic corresponding to each page code of the application program according to a preset seed page;
Sorting all the skipping behaviors according to the scanning result, wherein the skipping behaviors comprise logical relations existing in the pages before and after skipping, and displaying all the skipping behaviors in a tree structure;
Traversing through the tree structure to obtain all possible functional processes;
Acquiring the corresponding relation between the page code and the test case;
Associating the test case with the functional flow through the page code; and
And obtaining a test script corresponding to the functional flow to be covered by the regression test according to the corresponding relation between the test case and the functional flow.
2. The regression testing process coverage method of claim 1, wherein in the step of scanning jump logic corresponding to each page code of the application program according to a preset seed page:
When no change code is detected, taking a home page of the application program as the seed page;
And when the change code is detected, taking the page where the change code is as the seed page.
3. the flow overlay method of regression testing of claim 1 or 2 wherein said all-jump behavior comprises looking up all-jump logic associated with said seed page starting from said seed page.
4. the flow overlay method of regression testing as claimed in claim 1, wherein in the step of exhibiting all jump behaviors, all jump behaviors are exhibited in a tree structure by a visual plug-in or Java code.
5. the regression testing process coverage method of claim 1, wherein said step of traversing through said tree structure to obtain all possible functional processes comprises:
Traversing the tree structure according to page levels, and acquiring each path in the tree structure through the logical relationship of parent pages and child pages, wherein the function corresponding to each page of one path is connected together to form a functional flow.
6. The process coverage method of regression testing of claim 2, wherein:
When the seed page is the home page of the application program, all functional processes of the application program are obtained through traversal;
and when the seed page is the page where the change code is located, the functional flow influenced by the change code is obtained through traversal.
7. the regression test flow covering method according to claim 1, wherein the step of obtaining the correspondence between the page code and the test case comprises:
and injecting a set statistical code into a position corresponding to the page code, when a test is executed, the code runs to the injection position, the corresponding statistical code is executed, a coverage statistical report is generated, and the coverage starting line and the coverage ending line of the executed test case are recorded, so that the corresponding relation between the test case and the page code is analyzed and obtained.
8. The regression test process coverage method according to claim 1, wherein the step of obtaining a test script corresponding to the functional process to be covered by the regression test according to the correspondence between the test case and the functional process includes:
obtaining all functional flows which need to be covered by the regression test, obtaining a test case corresponding to the functional flows, obtaining an automatic test script corresponding to the test case, and automatically combining all the obtained test scripts.
9. A server, characterized in that the server comprises a memory, a processor, the memory having stored thereon a regression tested process coverage system executable on the processor, the regression tested process coverage system when executed by the processor implementing the steps of the regression tested process coverage method according to any of claims 1-8.
10. A computer-readable storage medium storing a regression-tested process coverage system executable by at least one processor to cause the at least one processor to perform the steps of the regression-tested process coverage method of any one of claims 1-8.
CN201910762716.8A 2019-08-14 2019-08-14 Regression testing process covering method, server and computer readable storage medium Pending CN110554962A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910762716.8A CN110554962A (en) 2019-08-14 2019-08-14 Regression testing process covering method, server and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910762716.8A CN110554962A (en) 2019-08-14 2019-08-14 Regression testing process covering method, server and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN110554962A true CN110554962A (en) 2019-12-10

Family

ID=68737682

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910762716.8A Pending CN110554962A (en) 2019-08-14 2019-08-14 Regression testing process covering method, server and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110554962A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111694729A (en) * 2020-04-29 2020-09-22 北京三快在线科技有限公司 Application testing method and device, electronic equipment and computer readable medium
CN111813684A (en) * 2020-07-17 2020-10-23 济南浪潮数据技术有限公司 Test method, test device and test equipment for web front-end component
CN112000443A (en) * 2020-09-14 2020-11-27 支付宝(杭州)信息技术有限公司 Service data processing method and device and electronic equipment
CN112306893A (en) * 2020-11-27 2021-02-02 平安普惠企业管理有限公司 UI page testing method and device, computer equipment and storage medium
CN112817865A (en) * 2021-02-24 2021-05-18 福建天泉教育科技有限公司 Coverage precision test method and system based on componentized distributed system
CN112882930A (en) * 2021-02-04 2021-06-01 网易(杭州)网络有限公司 Automatic testing method and device, storage medium and electronic equipment
CN113641578A (en) * 2021-08-10 2021-11-12 广域铭岛数字科技有限公司 Accurate test method, system, equipment and medium based on service level
CN114201384A (en) * 2021-11-18 2022-03-18 北京三快在线科技有限公司 Test method, test device, electronic equipment and storage medium
CN116701164A (en) * 2022-11-08 2023-09-05 荣耀终端有限公司 Test method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176895A (en) * 2011-12-22 2013-06-26 阿里巴巴集团控股有限公司 Method and system of regression testing
CN109144863A (en) * 2018-08-10 2019-01-04 广东电网有限责任公司信息中心 A kind of automated testing method based on network system
US20190034323A1 (en) * 2017-07-27 2019-01-31 Hcl Technologies Limited System and method for generating regression test suite
CN109710506A (en) * 2017-10-25 2019-05-03 卓望数码技术(深圳)有限公司 A kind of terminal APP spreadability test method and device based on tree traversal
CN109857668A (en) * 2019-02-03 2019-06-07 苏州市龙测智能科技有限公司 UI automated function test method, test device, test equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176895A (en) * 2011-12-22 2013-06-26 阿里巴巴集团控股有限公司 Method and system of regression testing
US20190034323A1 (en) * 2017-07-27 2019-01-31 Hcl Technologies Limited System and method for generating regression test suite
CN109710506A (en) * 2017-10-25 2019-05-03 卓望数码技术(深圳)有限公司 A kind of terminal APP spreadability test method and device based on tree traversal
CN109144863A (en) * 2018-08-10 2019-01-04 广东电网有限责任公司信息中心 A kind of automated testing method based on network system
CN109857668A (en) * 2019-02-03 2019-06-07 苏州市龙测智能科技有限公司 UI automated function test method, test device, test equipment and storage medium

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111694729A (en) * 2020-04-29 2020-09-22 北京三快在线科技有限公司 Application testing method and device, electronic equipment and computer readable medium
CN111813684A (en) * 2020-07-17 2020-10-23 济南浪潮数据技术有限公司 Test method, test device and test equipment for web front-end component
CN112000443A (en) * 2020-09-14 2020-11-27 支付宝(杭州)信息技术有限公司 Service data processing method and device and electronic equipment
CN112306893A (en) * 2020-11-27 2021-02-02 平安普惠企业管理有限公司 UI page testing method and device, computer equipment and storage medium
CN112882930A (en) * 2021-02-04 2021-06-01 网易(杭州)网络有限公司 Automatic testing method and device, storage medium and electronic equipment
CN112882930B (en) * 2021-02-04 2023-09-26 网易(杭州)网络有限公司 Automatic test method and device, storage medium and electronic equipment
CN112817865A (en) * 2021-02-24 2021-05-18 福建天泉教育科技有限公司 Coverage precision test method and system based on componentized distributed system
CN113641578A (en) * 2021-08-10 2021-11-12 广域铭岛数字科技有限公司 Accurate test method, system, equipment and medium based on service level
CN114201384A (en) * 2021-11-18 2022-03-18 北京三快在线科技有限公司 Test method, test device, electronic equipment and storage medium
CN116701164A (en) * 2022-11-08 2023-09-05 荣耀终端有限公司 Test method and electronic equipment
CN116701164B (en) * 2022-11-08 2024-05-03 荣耀终端有限公司 Test method and electronic equipment

Similar Documents

Publication Publication Date Title
CN110554962A (en) Regression testing process covering method, server and computer readable storage medium
CN106844217B (en) Method and device for embedding point of applied control and readable storage medium
US9317400B2 (en) Code coverage rate determination method and system
CN111382070B (en) Compatibility testing method and device, storage medium and computer equipment
CN108491321B (en) Method and device for determining test case range and storage medium
CN110231937B (en) Script defect scanning method, script defect scanning device, computer equipment and storage medium
CN107622008B (en) Traversal method and device for application page
CN106326120B (en) Regression testing method and device for application software and electronic equipment
CN107783766B (en) Method and device for cleaning files of application program
CN112817866A (en) Recording playback method, device, system, computer equipment and storage medium
CN117370203B (en) Automatic test method, system, electronic equipment and storage medium
CN114116496A (en) Automatic testing method, device, equipment and medium
CN112069073A (en) Test case management method, terminal and storage medium
CN112069068A (en) Automatic test data processing method, device, equipment and readable storage medium
CN110928777A (en) Test case processing method, device, equipment and storage medium
CN108399125B (en) Automatic testing method and device, computer equipment and storage medium
CN112882933A (en) Script recording method, device, equipment and storage medium
CN111913878A (en) Program analysis result-based bytecode instrumentation method, device and storage medium
CN115757100A (en) Automated testing framework facing user interface, method, equipment and medium
CN107102938B (en) Test script updating method and device
CN109359042B (en) Automatic testing method based on path search algorithm
CN109144841B (en) Method and device for identifying advertisement application, computer equipment and storage medium
CN115827451A (en) Method and device for detecting test defects, storage medium and electronic device
CN112765041B (en) Game automation testing method and device and electronic equipment
CN115309661A (en) Application testing method and device, electronic equipment and readable 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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20191210