CN115080390A - Method, device and equipment for software patch package regression test - Google Patents

Method, device and equipment for software patch package regression test Download PDF

Info

Publication number
CN115080390A
CN115080390A CN202210654750.5A CN202210654750A CN115080390A CN 115080390 A CN115080390 A CN 115080390A CN 202210654750 A CN202210654750 A CN 202210654750A CN 115080390 A CN115080390 A CN 115080390A
Authority
CN
China
Prior art keywords
branch
function
regression test
software patch
patch package
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
CN202210654750.5A
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.)
Shanghai Yunzhou Information Technology Co ltd
Original Assignee
Shanghai Yunzhou Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Yunzhou Information Technology Co ltd filed Critical Shanghai Yunzhou Information Technology Co ltd
Priority to CN202210654750.5A priority Critical patent/CN115080390A/en
Publication of CN115080390A publication Critical patent/CN115080390A/en
Pending legal-status Critical Current

Links

Images

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

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 application provides a technical scheme for software patch package regression testing. The method comprises the following steps: determining each branch of each function in the software patch package based on the acquired software patch package, and calculating a hash value of each branch of each function; determining a regression test case set corresponding to the software patch package based on the hash value of each branch of each function; and triggering the automatic regression test of the software patch package based on the regression test case set. According to the method, the minimum regression test case set corresponding to the software patch package is determined by obtaining the function branch information included by the software patch package, and the automatic regression test aiming at the software patch package is triggered by adopting the minimum regression test case set, so that the regression test time can be maximally reduced, and the regression test efficiency is improved.

Description

Method, device and equipment for software patch package regression test
Technical Field
The application relates to the technical field of computer software testing, in particular to a technology for software patch package regression testing.
Background
In the current digital age, more and more digital and intelligent devices enter our daily life. Various kinds of software are run on the devices, and when problems and bugs existing in the software need to be solved or new functions need to be added, the software is generally updated and upgraded by developing a software patch package so as to meet the requirements of users and improve the experience of the users in using the software.
In order to ensure that the original functional performance of the software is not affected, after a new software patch package is developed each time, a regression test needs to be performed on the software patch package before updating and upgrading the software patch package formally for a user. For software which is frequently updated and upgraded, software automation testing is usually adopted to meet the requirement of fast iteration of software versions.
However, the conventional software automation test system only completes the software automation test framework, and in order to realize the regression test of a certain software patch package, the software automation test system often runs all the regression test cases in a traversing manner. An extreme example, if the software patch package is compared with the original software version, only 1 line of codes is changed, and tens of thousands of return test cases need to be run in a traversing manner by adopting the automatic test, so that the time of a plurality of test servers for 1 day is occupied. Therefore, the regression testing method has low efficiency and greatly wastes resources.
Disclosure of Invention
The application aims to provide a technical scheme for software patch package regression testing, which is used for at least partially solving the technical problem that the existing software patch package regression testing is low in efficiency.
According to one aspect of the present application, there is provided a method for regression testing of a software patch package, wherein the method comprises:
determining each branch of each function in the software patch package based on the acquired software patch package, and calculating a hash value of each branch of each function;
determining a regression test case set corresponding to the software patch package based on the hash value of each branch of each function;
and triggering the automatic regression test of the software patch package based on the regression test case set.
Optionally, the determining, based on the hash value of each branch of each function, a regression test case set corresponding to the software patch package includes:
querying a preset knowledge base based on the hash value of each branch of each function to determine a regression test case of each branch of each function, wherein,
when the hash value of the branch of the function is matched with the hash value of the branch of the function in the preset knowledge base, acquiring a regression test case corresponding to the hash value from the preset knowledge base as the regression test case of the branch of the function;
when the hash value of the branch of the function is not matched with the hash value of any branch of any function in the preset knowledge base, acquiring a regression test case designed for the branch based on the branch of the function;
and determining a regression test case set corresponding to the software patch package based on a set formed by regression test cases of each branch of each function.
Optionally, the determining, based on the set of regression test cases of each branch of each function, the regression test case set corresponding to the software patch package includes:
carrying out regression test case duplication removal on a set consisting of regression test cases of each branch of each function to obtain a minimum regression test case set;
and determining the minimum regression test case set as the regression test case set corresponding to the software patch package.
Optionally, the constructing of the preset knowledge base includes:
designing a regression test case for each branch of each function in each historical software patch package based on the obtained plurality of historical software patch packages;
calculating a hash value of each branch of each function;
and establishing a mapping relation between the hash value of each branch of each function and the regression test case of the branch to complete the construction of the preset knowledge base.
Optionally, the constructing of the preset knowledge base includes:
designing a regression test case for each branch of each function in the software product package based on the software product package corresponding to the acquired software patch package;
calculating the hash value of each branch of each function;
and establishing a mapping relation between the hash value of each branch of each function and the regression test case of the branch to complete the construction of the preset knowledge base.
Optionally, when the hash value of the branch of the function fails to match the hash value of any branch of any function in the preset knowledge base, the method further includes:
establishing a mapping relation between the hash value of the branch and the regression test case of the branch;
and supplementing the mapping relation into the preset knowledge base so as to update the preset knowledge base.
Optionally, the method for regression testing of software patch packs further includes:
and obtaining a test result of the autoregressive test of the software patch package.
According to another aspect of the present application, there is provided an apparatus for regression testing of a software patch package, wherein the apparatus comprises:
a first module, configured to determine, based on an acquired software patch package, each branch of each function in the software patch package, and calculate a hash value of each branch of each function;
a second module, configured to determine, based on a hash value of each branch of each function, a regression test case set corresponding to the software patch package;
and the third module is used for triggering the automatic regression test of the software patch package based on the regression test case set.
Compared with the prior art, the technical scheme for the regression test of the software patch package is provided. The method comprises the following steps: determining each branch of each function in the software patch package based on the acquired software patch package, and calculating a hash value of each branch of each function; determining a regression test case set corresponding to the software patch package based on the hash value of each branch of each function; and triggering the automatic regression test of the software patch package based on the regression test case set.
The technical scheme for the regression testing of the software patch package provided by the application can bring the following technical effects:
the method comprises the steps of obtaining function branch information included by a software patch package, determining a minimum regression test case set corresponding to the software patch package, and triggering automatic regression testing aiming at the software patch package by adopting the minimum regression test case set, so that regression testing time can be maximally reduced, and regression testing efficiency is improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 illustrates a flow diagram of a method for regression testing of a software patch package, according to an aspect of the subject application;
FIG. 2 illustrates a schematic diagram of an apparatus for regression testing of a software patch package, according to another aspect of the subject application;
the same or similar reference numbers in the drawings identify the same or similar elements.
Detailed Description
The present application is described in further detail below with reference to the attached figures.
In a typical configuration of the embodiments of the present application, the execution main body of the method, each trusted party of the system, and/or each module of the apparatus may include one or more processors (CPUs), input/output interfaces, network interfaces, and memories.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both permanent and non-permanent, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
In order to further explain the technical means and effects adopted by the present application, the following description clearly and completely describes the technical solutions of the present application with reference to the accompanying drawings and various embodiments.
FIG. 1 illustrates a flow diagram of a method for regression testing of a software patch package according to an aspect of the subject application, wherein the method of an embodiment comprises:
s101, based on the acquired software patch package, determining each branch of each function in the software patch package, and calculating a hash value of each branch of each function;
s102, determining a regression test case set corresponding to the software patch package based on the hash value of each branch of each function;
s103, triggering the automatic regression test of the software patch package based on the regression test case set.
The method embodiment of the present application is executed by a device 100, where the device 100 is a computer device and/or a cloud having a relevant software and hardware environment to execute a software auto-regression test, or a virtual machine in a computer device and/or a cloud, and the computer device includes, but is not limited to, a personal computer, a notebook computer, an industrial computer, a network host, a single network server, and multiple network server sets; the Cloud is made up of a large number of computers or web servers based on Cloud Computing (Cloud Computing), which is a type of distributed Computing, a virtual supercomputer consisting of a collection of loosely coupled computers.
The computer device and/or cloud are merely examples, and other existing or future devices and/or resource sharing platforms, as applicable to the present application, are also intended to be included within the scope of the present application and are hereby incorporated by reference.
In this embodiment, in step S101, the device 100 acquires a software patch package to be subjected to a regression test, performs precise analysis on the code of the software patch package to determine a basic code block corresponding to each branch of each function included in the software patch package, and calculates a hash value of each branch of each function.
The device 100 may actively obtain the to-be-tested software patch package submitted by the research and development personnel from the to-be-tested software library, or may receive the to-be-tested software patch package provided by the to-be-tested software library. The manner in which the device 100 obtains the software patch package is not limited, and any obtaining manner of the software patch package, such as applying the present application, should be included in the scope of protection of the present application.
The hash value of each branch of each function contained in the software patch package can be obtained by disassembling the software patch package. The probability that the hash value of each branch of each function contained in the software patch package is the same is extremely low, and the hash value can be used for identifying the branches of different functions; moreover, the binary lengths of the code quantities of each branch of each function may be different, but the binary lengths of the corresponding hash values are the same and are usually smaller than the binary lengths of the code quantities that each branch of each function may contain, so that the use of the hash values can save storage space and improve operation efficiency.
In order to meet the requirement of automatic testing, a regression test case should be designed and written correspondingly for each branch of each function contained in the software patch package.
Continuing in this embodiment, in step S102, the apparatus 100 determines a regression test set corresponding to the software patch package based on the hash value of each branch of each function included in the software patch package.
In an alternative embodiment, the step S102 includes:
querying a preset knowledge base based on the hash value of each branch of each function to determine a regression test case of each branch of each function, wherein,
when the hash value of the branch of the function is matched with the hash value of the branch of the function in the preset knowledge base, acquiring a regression test case corresponding to the hash value from the preset knowledge base as the regression test case of the branch of the function;
when the hash value of the branch of the function is not matched with the hash value of any branch of any function in the preset knowledge base, acquiring a regression test case designed for the branch based on the branch of the function;
and determining a regression test case set corresponding to the software patch package based on a set formed by regression test cases of each branch of each function.
The device 100 queries a preset knowledge base according to a hash value of each branch of each function included in the software patch package, and when the hash value of the branch of the function matches the hash value of the branch of the function in the preset knowledge base, obtains a regression test case corresponding to the hash value from the preset knowledge base, and uses the regression test case as a regression test case corresponding to the branch of the function; when the hash value of the branch of the function fails to match the hash value of any branch of any function in the preset knowledge base, it indicates that a corresponding regression test case has not been written for the branch design of the function before, and it is necessary to obtain information for writing the corresponding regression test case for the branch design of the function, for example, the device 100 outputs information of the branch of the unmatched function, and a relevant person designs the regression test case for writing the branch of the unmatched function to the device 100. The device 100 further combines the regression test cases corresponding to each branch of each function included in the software patch package to form a set, and determines the set as the regression test case set corresponding to the software patch package.
In an optional embodiment, the determining, based on the set of regression test cases of each branch of each function, the regression test case set corresponding to the software patch package includes:
carrying out regression test case duplication elimination on a set consisting of regression test cases of each branch of each function to obtain a minimum regression test case set;
and determining the minimum regression test case set as the regression test case set corresponding to the software patch package.
The software patch package may include branches of the same function, and the regression test cases corresponding to the branches of the same function should be the same. In order to remove redundancy, the regression test cases in the regression test case set corresponding to the software patch package can be subjected to duplication removal operation to obtain a minimum regression test case set, and then the minimum regression test case set is determined to be the regression test case set corresponding to the software patch package.
In an optional embodiment, the constructing of the preset knowledge base includes:
designing a regression test case for each branch of each function in each historical software patch package based on the obtained plurality of historical software patch packages;
calculating a hash value of each branch of each function;
and establishing a mapping relation between the hash value of each branch of each function and the regression test case of the branch to complete the construction of the preset knowledge base.
The device 100 may obtain a plurality of historical software patch packages from a certain software patch package, program a corresponding regression test case for each branch design of each function included in each historical software patch package, perform a disassembling operation on each historical software patch package to obtain a hash value of each branch of each function included in each historical software patch package, then establish a mapping relationship between the hash value of each branch of each function and the regression test case of the branch, store the mapping relationship in a preset knowledge base manner, and complete construction of the preset knowledge base. The number of branches of the function corresponding to the initial construction of the preset knowledge base is relatively small, the constructed preset knowledge base is relatively small, the mapping relation between the hash value of the branch of the function which is not included and the corresponding regression test case is supplemented to the preset knowledge base with the updating and upgrading of the new software patch package every time, and the supplementing amount is relatively large every time.
In another optional embodiment, the constructing of the preset knowledge base includes:
designing a regression test case for each branch of each function in the software product package based on the software product package corresponding to the acquired software patch package;
calculating a hash value of each branch of each function;
and establishing a mapping relation between the hash value of each branch of each function and the regression test case of the branch to complete the construction of the preset knowledge base.
If the software package corresponding to the software patch package is designed and written with a corresponding regression test case for all or most of the branches of the functions contained in the software package based on the preset regression test code coverage rate before the software package is released for the first time, and an automatic regression test is performed, the device 100 may perform a disassembling operation on the software package to obtain a hash value of each branch of each function contained in the software package, then establish a mapping relationship between the hash value of each branch of each function and the regression test case of the branch, store the mapping relationship in a preset knowledge base manner, and complete the construction of the preset knowledge base. The number of branches of the function corresponding to the initial construction of the preset knowledge base is large, the constructed preset knowledge base is relatively large, the mapping relation of the corresponding regression test case is only needed to be supplemented according to the hash value of the branch of the function which is not included with the updating and upgrading of the new software patch package every time, and the supplementing quantity is small every time.
In an optional embodiment, when the hash value of the branch of the function fails to match the hash value of any branch of any function in the predetermined knowledge base, the method further includes:
establishing a mapping relation between the hash value of the branch and the regression test case of the branch;
and supplementing the mapping relation into the preset knowledge base so as to update the preset knowledge base.
If the device 100 finds that the hash value of the branch of a certain function included in the software patch package is not matched with the hash value of any branch of any function in the preset knowledge base when querying the preset knowledge base, it indicates that the preset knowledge base does not include the regression test case corresponding to the branch of the function, the device 100 further records the hash value of the branch of the function in the process of obtaining the regression test case corresponding to the branch of the function and performing regression test, establishes a mapping relationship between the hash value of the branch of the function and the regression test case corresponding to the branch of the given function, and supplements the mapping relationship to the preset knowledge base to perfect the preset knowledge base.
Continuing in this embodiment, in step S103, the device 100 triggers an auto-regression test of the software patch package based on the regression test case set.
The device 100 may use the regression test case in the regression test case set as a trigger command parameter corresponding to the auto regression test to trigger the auto regression test for the software patch package.
In an optional embodiment, the method for regression testing of a software patch package further includes:
s104 (not shown) obtains a test result of the autoregressive test of the software patch package.
The device 100 uses a regression test case set to trigger the auto regression test of the software patch package, and obtains a test result of the auto regression test. The relevant personnel can evaluate the software patch package according to the test result of the automatic regression test to determine whether the software patch package can be officially released or further modified to perform the regression test.
FIG. 2 illustrates a schematic diagram of an apparatus for regression testing of a software patch package according to another aspect of the present application, wherein the apparatus of one embodiment comprises:
a first module 201, configured to determine, based on an obtained software patch package, each branch of each function in the software patch package, and calculate a hash value of each branch of each function;
a second module 202, configured to determine, based on a hash value of each branch of each function, a regression test case set corresponding to the software patch package;
a third module 203, configured to trigger an auto regression test of the software patch package based on the regression test case set.
Wherein the apparatus is integrated in the device 100 for implementing the above method embodiment, and the apparatus may be a software apparatus or a software and hardware combination apparatus.
In this embodiment, the first module 201 of the apparatus acquires a software patch package to be subjected to a regression test, performs an accurate analysis on a code of the software patch package to determine a basic code block corresponding to each branch of each function included in the software patch package, and calculates a hash value of each branch of each function.
The first module 201 may actively obtain the to-be-tested software patch package submitted by the research and development personnel from the to-be-tested software library, or may receive the to-be-tested software patch package provided by the to-be-tested software library. The manner in which the device 100 obtains the software patch package is not limited, and any obtaining manner of the software patch package, such as applying the present application, should be included in the scope of protection of the present application.
The first module 201 may include a debugger-like tool, and the software patch package is disassembled by the debugger-like tool to obtain a hash value of each branch of each function included in the software patch package.
The first module 201 of the apparatus may be implemented by a daemon process on the device 100, and provides a service of determining each branch of each function in the software patch package and calculating a hash value of each branch of each function. For example, if the device 100 has a K8s framework installed, the daemon could be supported by a pod.
The second module 202 of the apparatus determines a regression test set corresponding to the software patch package based on the hash value of each branch of each function included in the software patch package.
In an optional embodiment, the second module 202 of the apparatus queries a preset knowledge base according to a hash value of each branch of each function included in the software patch package, and when the hash value of the branch of the function matches the hash value of the branch of the function in the preset knowledge base, obtains a regression test case corresponding to the hash value from the preset knowledge base, and uses the regression test case as a regression test case corresponding to the branch of the function; when the hash value of the branch of the function fails to match the hash value of any branch of any function in the preset knowledge base, it indicates that a corresponding regression test case has not been written for the branch design of the function before, and it is necessary to obtain the regression test case written for the branch design of the function, for example, the information of the branch of the unmatched function is output by the second module 202, and relevant personnel design the regression test case written for the branch of the unmatched function to the second module 202. The second module 202 combines the regression test cases corresponding to each branch of each function included in the software patch package to form a set, and determines the set as the regression test case set corresponding to the software patch package.
The second module 202 of the apparatus may be implemented by a daemon process on the device 100, and provides the service of querying the preset knowledge base. For example, if the device 100 has a K8s framework installed, the daemon could be supported by a pod.
In combination with an actual application scenario, the first module 201 and the second module 202 of the apparatus may also be implemented by the same daemon process on the device 100, and provide services for analyzing a software patch package, calculating a hash value of a branch of a function, and querying a preset knowledge base. For example, if the device 100 has a K8s framework installed, the daemon could be supported by a pod.
The third module 203 of the apparatus may use the regression test case in the regression test case set as a trigger command parameter corresponding to the auto regression test to trigger the auto regression test for the software patch package.
The third module 203 of the apparatus may be implemented by a daemon process on the device 100, and provides a service for triggering an auto-regression test, and the auto-regression test for the software patch package is triggered by receiving a regression test case in a regression test case set and using the regression test case as a corresponding trigger command parameter. For example, if the device 100 has a K8s framework installed, the daemon could be supported by a pod.
In an optional embodiment, the apparatus further comprises:
a fourth module 204 (not shown) for obtaining a test result of the autoregressive test of the software patch package.
The fourth module 204 of the apparatus further obtains a test result of the auto-regression test of the software patch package, and related personnel may evaluate the software patch package according to the test result of the auto-regression test to determine whether the software patch package can be officially released, or further modify the software patch package and then perform the regression test.
In an alternative embodiment of the present application, there is also provided a computer readable medium having stored thereon computer readable instructions executable by a processor to implement the foregoing method embodiments or alternative embodiments.
It is noted that the method embodiments or alternative embodiments in this application may be implemented in software and/or a combination of software and hardware. The software programs referred to in this application may be executed by a processor to implement the steps or functions of the various embodiments described above. Also, the software programs (including associated data structures) of the present application may be stored in a computer-readable recording medium.
In addition, some of the present application may be implemented as a computer program product, such as computer program instructions, which when executed by a computer, may invoke or provide methods and/or techniques in accordance with the present application through the operation of the computer. Program instructions which invoke the methods of the present application may be stored on a fixed or removable recording medium and/or transmitted via a data stream on a broadcast or other signal-bearing medium and/or stored within a working memory of a computer device operating in accordance with the program instructions.
In yet another alternative embodiment of the present application, there is further provided an apparatus for regression testing of a software patch package, the apparatus including: a memory storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger the apparatus to perform the method embodiments and/or the alternative embodiments and/or the technical solutions as described above.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the apparatus claims may also be implemented by one unit or means in software and/or hardware. The terms first, second, etc. are used to denote names, but not any particular order.

Claims (10)

1. A method for regression testing of a software patch package, the method comprising:
determining each branch of each function in the software patch package based on the obtained software patch package, and calculating the hash value of each branch of each function;
determining a regression test case set corresponding to the software patch package based on the hash value of each branch of each function;
and triggering the automatic regression test of the software patch package based on the regression test case set.
2. The method according to claim 1, wherein the determining the regression test case set corresponding to the software patch package based on the hash value of each branch of each function comprises:
querying a preset knowledge base based on the hash value of each branch of each function to determine a regression test case of each branch of each function, wherein,
when the hash value of the branch of the function is matched with the hash value of the branch of the function in the preset knowledge base, acquiring a regression test case corresponding to the hash value from the preset knowledge base as the regression test case of the branch of the function;
when the hash value of the branch of the function is not matched with the hash value of any branch of any function in the preset knowledge base, acquiring a regression test case designed for the branch based on the branch of the function;
and determining a regression test case set corresponding to the software patch package based on a set formed by regression test cases of each branch of each function.
3. The method of claim 2, wherein determining the set of regression test cases corresponding to the software patch package based on the set of regression test cases for each branch of each function comprises:
carrying out regression test case duplication removal on a set consisting of regression test cases of each branch of each function to obtain a minimum regression test case set;
and determining the minimum regression test case set as the regression test case set corresponding to the software patch package.
4. The method of claim 2, wherein the building of the predetermined knowledge base comprises:
designing a regression test case for each branch of each function in each historical software patch package based on the obtained plurality of historical software patch packages;
calculating a hash value of each branch of each function;
and establishing a mapping relation between the hash value of each branch of each function and the regression test case of the branch to complete the construction of the preset knowledge base.
5. The method of claim 2, wherein the building of the predetermined knowledge base comprises:
designing a regression test case for each branch of each function in the software product package based on the software product package corresponding to the acquired software patch package;
calculating a hash value of each branch of each function;
and establishing a mapping relation between the hash value of each branch of each function and the regression test case of the branch to complete the construction of the preset knowledge base.
6. The method of claim 2, wherein when the hash value of the branch of the function fails to match the hash value of any branch of any function in the predetermined knowledge base, the method further comprises:
establishing a mapping relation between the hash value of the branch and the regression test case of the branch;
and supplementing the mapping relation into the preset knowledge base so as to update the preset knowledge base.
7. The method of claim 1, further comprising:
and obtaining a test result of the autoregressive test of the software patch package.
8. An apparatus for regression testing of a software patch package, the apparatus comprising:
a first module, configured to determine, based on an acquired software patch package, each branch of each function in the software patch package, and calculate a hash value of each branch of each function;
a second module, configured to determine, based on a hash value of each branch of each function, a regression test case set corresponding to the software patch package;
and the third module is used for triggering the automatic regression test of the software patch package based on the regression test case set.
9. A computer-readable medium comprising, in combination,
stored thereon computer readable instructions to be executed by a processor to implement the method of any one of claims 1 to 7.
10. An apparatus for regression testing of a software patch package, the apparatus comprising:
one or more processors; and
a memory storing computer readable instructions that, when executed, cause the processor to perform the operations of the method of any of claims 1 to 7.
CN202210654750.5A 2022-06-10 2022-06-10 Method, device and equipment for software patch package regression test Pending CN115080390A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210654750.5A CN115080390A (en) 2022-06-10 2022-06-10 Method, device and equipment for software patch package regression test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210654750.5A CN115080390A (en) 2022-06-10 2022-06-10 Method, device and equipment for software patch package regression test

Publications (1)

Publication Number Publication Date
CN115080390A true CN115080390A (en) 2022-09-20

Family

ID=83250832

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210654750.5A Pending CN115080390A (en) 2022-06-10 2022-06-10 Method, device and equipment for software patch package regression test

Country Status (1)

Country Link
CN (1) CN115080390A (en)

Similar Documents

Publication Publication Date Title
CN110716845B (en) Log information reading method of Android system
CN109032631A (en) Application program service packs acquisition methods, device, computer equipment and storage medium
US20230259358A1 (en) Documentation enforcement during compilation
US9116714B2 (en) Methods and systems for file processing
CN112214221A (en) Method and equipment for constructing Linux system
WO2015003452A1 (en) Methods and systems for file processing
US20210026756A1 (en) Deriving software application dependency trees for white-box testing
US11755458B2 (en) Automatic software behavior identification using execution record
CN105447040B (en) Binary file management and updating method, device and system
US8819494B2 (en) Automatically changing parts in response to tests
WO2023016485A1 (en) Method for acquiring function call information, and apparatus, electronic device and medium
US20060225047A1 (en) Generic software requirements analyzer
CN116578282A (en) Code generation method, device, electronic equipment and medium
CN110928941A (en) Data fragment extraction method and device
CN115827028A (en) System upgrading method and device, storage medium and electronic equipment
CN112486517B (en) Application program installation method and system, electronic equipment and storage medium
CN115080390A (en) Method, device and equipment for software patch package regression test
CN115048082A (en) Micro front-end system construction method and device, server and readable storage medium
CN115080309A (en) Data backup system, method, storage medium, and electronic device
CN112765129A (en) Method and equipment for realizing database data version management
CN111858487A (en) Data updating method and device
CN115454827B (en) Compatibility detection method, system, equipment and medium
CN108959297B (en) Method and device for returning designated identification by file system and electronic equipment
US12013774B2 (en) Verification of core file debugging resources
US11429513B1 (en) Testing and verifying cloud services using a computational graph

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