CN110008108B - Regression range determining method, device, equipment and computer readable storage medium - Google Patents

Regression range determining method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN110008108B
CN110008108B CN201811341793.8A CN201811341793A CN110008108B CN 110008108 B CN110008108 B CN 110008108B CN 201811341793 A CN201811341793 A CN 201811341793A CN 110008108 B CN110008108 B CN 110008108B
Authority
CN
China
Prior art keywords
information
code
new
old
regression
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811341793.8A
Other languages
Chinese (zh)
Other versions
CN110008108A (en
Inventor
陈诚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced Nova Technology Singapore Holdings Ltd
Original Assignee
Advanced New Technologies 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 Advanced New Technologies Co Ltd filed Critical Advanced New Technologies Co Ltd
Priority to CN201811341793.8A priority Critical patent/CN110008108B/en
Publication of CN110008108A publication Critical patent/CN110008108A/en
Application granted granted Critical
Publication of CN110008108B publication Critical patent/CN110008108B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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

Abstract

The embodiment of the disclosure provides a regression range determining method, a regression range determining device, regression range determining equipment and a computer readable storage medium. The regression range determination method comprises the following steps: deploying an old code to a server, carrying out service test, and recording first information related to the old code; deploying new codes to the server, carrying out service test, and recording second information related to the new codes; comparing the first information with the second information; based on the comparison result of the inconsistency between the first information and the second information, the business related to the second information is searched to serve as a regression range, key data can be collected before code modification, influence points can be analyzed immediately according to new key data after code modification, the regression range of regression testing is determined quickly, accurately and automatically, and the burden of testing personnel is relieved.

Description

Regression range determining method, device, equipment and computer readable storage medium
Technical Field
The disclosed embodiments relate to the field of computer technologies, and in particular, to a regression range determining method, device, and apparatus, and a computer-readable storage medium.
Background
Regression testing refers to re-testing after old code has been modified to see if the modification introduces new errors or causes other code errors. The regression test is used as a component of the software life cycle, and occupies a great workload proportion in the whole software test process, and multiple regression tests can be carried out at each stage of software development. In progressive and fast iterative development, the continuous release of new versions makes regression testing more frequent, whereas in extreme programming methods it is even more required to perform regression testing several times per day. Although regression testing is a very important process in software testing, it is expensive.
In the related art, the schemes for determining the regression range of the regression test all adopt a manual determination mode, and have the problems of low accuracy, long time consumption and the like. Therefore, the research on how to reduce the regression testing cost and improve the regression testing efficiency is of great significance.
Disclosure of Invention
In view of this, a first aspect of the present disclosure provides a regression range determining method, including:
deploying an old code to a server, carrying out service test, and recording first information related to the old code;
deploying new codes to the server, carrying out service test, and recording second information related to the new codes;
comparing the first information with the second information;
and searching the service related to the second information as a regression range based on the inconsistent comparison result of the first information and the second information.
A second aspect of the present disclosure provides a regression range determination apparatus, including:
the system comprises a first deployment module, a second deployment module and a third deployment module, wherein the first deployment module is configured to deploy an old code to a server, perform service test and record first information related to the old code;
the second deployment module is configured to deploy new codes to the server, perform service test and record second information related to the new codes;
a comparison module configured to compare the first information with the second information;
the searching module is configured to search the business related to the second information as a regression range based on the comparison result that the first information is inconsistent with the second information.
A third aspect of the present disclosure provides an electronic device comprising a memory and a processor; wherein the memory is to store one or more computer instructions, wherein the one or more computer instructions are to be executed by the processor to implement the steps of:
deploying an old code to a server, carrying out service test, and recording first information related to the old code;
deploying new codes to the server, carrying out service test, and recording second information related to the new codes;
comparing the first information with the second information;
and searching the service related to the second information as a regression range based on the inconsistent comparison result of the first information and the second information.
A fourth aspect of the disclosure provides a computer readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the method according to the first aspect.
In the embodiment of the disclosure, an old code is deployed to a server, a service test is carried out, and first information related to the old code is recorded; deploying new codes to the server, carrying out service test, and recording second information related to the new codes; comparing the first information with the second information; based on the comparison result of the inconsistency between the first information and the second information, the business related to the second information is searched to serve as a regression range, key data can be collected before code modification, influence points can be analyzed immediately according to new key data after code modification, the regression range of regression testing is determined quickly, accurately and automatically, and the burden of testing personnel is relieved.
These and other aspects of the disclosure will be more readily apparent from the following description of the embodiments.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or technical solutions in the related art, the drawings needed to be used in the description of the exemplary embodiments or the related art will be briefly described below, and it is obvious that the drawings in the following description are some exemplary embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without inventive labor.
FIG. 1 illustrates a flow diagram of a regression range determination method according to an embodiment of the present disclosure;
fig. 2 shows a flowchart of one example of step S104 in the regression range determination method according to an embodiment of the present disclosure;
fig. 3 is a block diagram showing a configuration of a regression range determination apparatus according to another embodiment of the present disclosure;
FIG. 4 shows a block diagram of an electronic device according to an embodiment of the present disclosure;
FIG. 5 is a schematic block diagram of a computer system suitable for implementing a regression range determination method according to an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those skilled in the art, the technical solutions of the exemplary embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the exemplary embodiments of the present disclosure.
In some of the flows described in the specification and claims of this disclosure and in the above-described figures, a number of operations are included that occur in a particular order, but it should be clearly understood that these operations may be performed out of order or in parallel as they occur herein, the order of the operations being 101, 102, etc. merely to distinguish between various operations, and the order of the operations by themselves does not represent any order of performance. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.
Technical solutions in exemplary embodiments of the present disclosure will be described clearly and completely with reference to the accompanying drawings in the exemplary embodiments of the present disclosure, and it is apparent that the described exemplary embodiments are only a part of the embodiments of the present disclosure, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without inventive step, are intended to be within the scope of the present disclosure. .
Fig. 1 shows a flowchart of a regression range determination method according to an embodiment of the present disclosure. The method may comprise steps S101, S102, S103 and S104.
In step S101, the old code is deployed to the server and a service test is performed, and first information related to the old code is recorded.
In step S102, new code is deployed to the server and a service test is performed, and second information related to the new code is recorded.
In step S103, the first information and the second information are compared.
In step S104, based on the comparison result that the first information is inconsistent with the second information, the service related to the second information is searched as the regression range.
In one embodiment of the present disclosure, the first information is authentication information for authenticating an old code, and the second information is authentication information for authenticating a new code. That is, the authentication information of the old code or the authentication information of the new code is information that can be used to authenticate the code itself. Therefore, the authentication information of the same code should be the same. In an embodiment of the present disclosure, if the verification information of the old code is inconsistent with the verification information of the new code, a regression test needs to be performed on the new code. In this case, a service related to the verification information of the new code may be searched as a regression range according to the verification information of the new code. Unlike the manner in which the regression range is manually determined in the related art, embodiments of the present disclosure may determine the regression range from the second information of the new code related to the function.
In one embodiment of the present disclosure, the first information includes a unique identification of the test case, a description of the test case, a unique name of a business corresponding to the test case, a unique name of an application corresponding to the old code, an IP address of a machine of the application corresponding to the old code, and a collection time of data related to the old code. This information may be used to generate the verification information for the old code or directly form part of the verification information for the old code. This information may also be included in the first code line information and the first keypoint parameter information of the old code. Moreover, this information can be used to determine the regression range of the old code.
In one embodiment of the present disclosure, the second information includes a unique identification of the test case, a description of the test case, a unique name of a service corresponding to the test case, a unique name of an application corresponding to the new code, an IP address of a machine of the application corresponding to the new code, and a collection time of data related to the new code. This information may be used to generate verification information for the new code or may directly form part of the verification information for the new code. This information may also be included in the second code line information and the second keypoint parameter information of the new code. Moreover, this information can be used to determine the regression range of the new code.
As is apparent from the above, there is a correspondence relationship between the first information and the second information. However, it is to be understood that there may not necessarily be a full correspondence between the first information and the second information, i.e. there may be no corresponding portion of some content in the first information in the second information, or there may be no corresponding portion of some content in the second information in the first information.
In one embodiment of the present disclosure, the verification information of the old code includes change record information of a class file of the old code, and the verification information of the new code includes change record information of a class file of the new code, wherein the step S104 includes: and searching the service of the class file passing through the new code as a regression range based on a comparison result that the change record information of the class file of the old code is inconsistent with the change record information of the class file of the new code.
In one embodiment of the present disclosure, the change recording information of a class file indicates information in which a change of such a file is recorded. And when the change record information of the class file of the old code is inconsistent with the change record information of the class file of the new code, searching the business passing through the class file of the new code as a regression range.
In one embodiment of the present disclosure, the change recording information of the class file of the old code includes encrypted identification information of the class file of the old code, and the change recording information of the class file of the new code includes encrypted identification information of the class file of the new code. In one embodiment of the present disclosure, a class file is a file obtained after compiling a source file, and can be recognized by a machine.
In one embodiment of the present disclosure, the encrypted identification information of the class file of the old code includes MD5 information of the class file of the old code, and the encrypted identification information of the class file of the new code includes MD5 information of the class file of the new code. The MD5Message Digest Algorithm (MD 5Message-Digest Algorithm) is a widely used cryptographic hash function that generates a 128-bit (16-byte) hash value to ensure the integrity of the Message transmission. A typical application of the MD5 algorithm is to generate a message digest for a piece of text information to prevent tampering. And performing MD5 verification on the class file of the old code and the class file of the new code to determine whether the two files are the same file.
Those skilled in the art will appreciate that the encrypted identification information of the class file may be generated in various ways, as desired, and is not limited to the MD5 information.
In one embodiment of the present disclosure, the first information includes first code line information and first keypoint parameter information of the old code, wherein the first code line information contains a unique signature and a function parameter type of each function in the old code, and the first keypoint parameter information contains parameter names and parameter values of all parameters in the old code; the second information includes second code line information and second keypoint parameter information of the new code, wherein the second code line information contains a unique signature and a function parameter type of each function in the new code, and the second keypoint parameter information contains parameter names and parameter values of all parameters in the new code.
In one embodiment of the present disclosure, step S104 includes: and searching the service passing through each function and function parameter in the new code as a regression range based on the comparison result of the inconsistency of the first information and the second information.
In the above embodiments of the present disclosure, the verification information of the code may be obtained by performing a specific calculation on the code itself, and the code line information and the key point parameter information of the code are obtained by analyzing the code. Whether the verification information of the old code is compared with the verification information of the new code or the first code line information and the first key point parameter information of the old code are compared with the second code line information and the second key point parameter information of the new code, whether different points exist between the old code and the new code or not is determined, and then services passing through the different points are used as a regression range. In order to ensure that the regression range covers all the different points, all the services related to the second information may be taken as the regression range.
In one embodiment of the present disclosure, all services related to the second information may be searched, and the scope of the regression test includes test cases (e.g., automation cases) related to the services and services corresponding to the test cases. Those skilled in the art will appreciate that in some cases, the range of traffic corresponding to the test case may be greater than all traffic associated with the second information. Thus, the regression range (or regression test range) of the new code can be comprehensively determined.
In one embodiment of the disclosure, the regression range includes the test case to be executed and the service corresponding to the test case, which are related to the second information. In one embodiment of the present disclosure, all the businesses passing through the function in the old code and the test cases and the businesses corresponding to the test cases that need to be executed related to all the businesses passing through the function in the old code, that is, the regression range of the old code may be determined based on the first information. On this basis, the regression range of the new code obtained on the basis of the regression range of the old code can be determined. It will be appreciated that the regression range of the new code may be greater than the regression range of the old code, which may allow for more sophisticated regression testing.
In the embodiment of the disclosure, an old code is deployed to a server, a service test is carried out, and first information related to the old code is recorded; deploying a new code to the server, carrying out service test, and recording second information related to the new code; comparing the first information with the second information; based on the comparison result of the inconsistency between the first information and the second information, the business related to the second information is searched to serve as the regression range, the key data can be collected before the code is modified, the influence points can be immediately analyzed according to the new key data after the code is modified, the regression range of the regression test can be determined quickly, accurately and automatically, and the burden of testing personnel is reduced.
Fig. 2 shows a flowchart of one example of step S104 in the regression range determination method according to an embodiment of the present disclosure. As shown in fig. 2, step S104 includes step S201, step S202, and step S203.
In step S201, the second information is stored in the modification list based on the comparison result that the first information is inconsistent with the second information.
In step S202, the second information in the change list is acquired.
In step S203, the business related to the second information is searched as the regression range.
In one embodiment of the present disclosure, the focus for a new code is on changes in the code, e.g., changes in the function and function parameter information, which are reflected in the second information of the new code, which is the basis for determining the regression range. Therefore, when the first information is inconsistent with the second information, the second information related to the new code needs to be stored to the alteration list. Whenever the regression range of the new code needs to be determined, the second information of the new code can be directly obtained from the change list, and the business related to the second information is searched as the regression range.
Therefore, when the regression range of the new code needs to be determined, the influence points can be immediately analyzed according to the new key data after the code is modified, the regression range of the regression test can be rapidly, accurately and automatically determined, and the burden of a tester is reduced.
Fig. 3 shows a block diagram of a regression range determination apparatus according to an embodiment of the present disclosure. The apparatus may include a first deployment module 301, a second deployment module 302, a comparison module 303, and a search module 304.
The first deployment module 301 is configured to deploy old code to a server and perform a business test, and record first information related to the old code.
The second deployment module 302 is configured to deploy the new code to the server and perform the service test, and to record second information related to the new code.
The comparison module 303 is configured to compare the first information with the second information.
The search module 304 is configured to search, as a regression range, a service related to the second information based on a result of the comparison that the first information is inconsistent with the second information.
Having described the internal functions and structure of the regression range determination means, in one possible design, the structure of the regression range determination means may be implemented as a regression range determination device, as shown in fig. 4, the processing device 400 may comprise a processor 401 and a memory 402.
The memory 402 is used for storing a program for supporting a regression range determination device to execute the regression range determination method in any of the above embodiments, and the processor 401 is configured to execute the program stored in the memory 402.
The memory 402 is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor 401 to implement the steps of:
deploying an old code to a server, carrying out service test, and recording first information related to the old code;
deploying new codes to the server, carrying out service test, and recording second information related to the new codes;
comparing the first information with the second information;
and searching the service related to the second information as a regression range based on the comparison result of the inconsistency of the first information and the second information.
In one embodiment of the present disclosure, the first information is authentication information of the old code, and the second information is authentication information of the new code.
In an embodiment of the present disclosure, the verification information of the old code includes change record information of a class file of the old code, and the verification information of the new code includes change record information of a class file of the new code, wherein the searching, as a regression range, for a service related to the second information based on a comparison result that the first information is inconsistent with the second information includes:
and searching the service of the class file passing through the new code as a regression range based on the comparison result that the change record information of the class file of the old code is inconsistent with the change record information of the class file of the new code.
In one embodiment of the present disclosure, the first information includes first code line information and first keypoint parameter information of the old code, wherein the first code line information contains a unique signature and a function parameter type of each function in the old code, and the first keypoint parameter information contains parameter names and parameter values of all parameters in the old code; the second information includes second code line information and second keypoint parameter information of the new code, wherein the second code line information contains a unique signature and a function parameter type of each function in the new code, and the second keypoint parameter information contains parameter names and parameter values of all parameters in the new code.
In an embodiment of the disclosure, the searching, based on a comparison result that the first information is inconsistent with the second information, for a service related to the second information as a regression range includes:
and searching the service passing through each function and function parameter in the new code as a regression range based on the comparison result of the inconsistency between the first information and the second information.
In an embodiment of the disclosure, the regression range includes a test case that needs to be executed and a service corresponding to the test case, which are related to the second information.
In one embodiment of the present disclosure, the first information includes a unique identifier of a test case, a description of the test case, a unique name of a service corresponding to the test case, a unique name of an application corresponding to the old code, an IP address of a machine of the application corresponding to the old code, and a collection time of data related to the old code; the second information comprises a unique identification of the test case, a description of the test case, a unique name of a service corresponding to the test case, a unique name of an application corresponding to the new code, an IP address of a machine of the application corresponding to the new code, and a collection time of data related to the new code.
In an embodiment of the disclosure, the searching, based on a comparison result that the first information is inconsistent with the second information, for a service related to the second information as a regression range includes:
storing the second information into a change list based on a comparison result of the inconsistency between the first information and the second information;
acquiring second information in the change list;
searching for a business related to the second information as a regression range.
The processor 401 is configured to perform all or some of the method steps described above.
The regression range determination device may further include a communication interface configured to communicate with another device or a communication network.
The exemplary embodiments of the present disclosure also provide a computer storage medium for storing computer software instructions for the regression range determination apparatus, which includes a program for executing the regression range determination method in any one of the above embodiments.
FIG. 5 is a schematic block diagram of a computer system suitable for implementing a regression range determination method according to an embodiment of the present disclosure.
As shown in fig. 5, the computer system 500 includes a Central Processing Unit (CPU) 501 that can execute various processes in the embodiment shown in fig. 1 described above according to a program stored in a Read Only Memory (ROM) 502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM503, various programs and data necessary for the operation of the system 500 are also stored. The CPU501, ROM502, and RAM503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output portion 507 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. A drive 510 is also connected to the I/O interface 505 as needed. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted on the storage section 508 as necessary.
In particular, according to embodiments of the present disclosure, the method described above with reference to fig. 1 may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a medium readable thereby, the computer program comprising program code for performing the data processing method of fig. 1. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowcharts or block diagrams may represent a module, a program segment, or a portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, and/or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present disclosure may be implemented by software or hardware. The units or modules described may also be provided in a processor, and the names of the units or modules do not in some cases constitute a limitation of the units or modules themselves.
As another aspect, the present disclosure also provides a computer-readable storage medium, which may be the computer-readable storage medium included in the apparatus in the above embodiment; or it may be a separate computer readable storage medium not incorporated into the device. The computer readable storage medium stores one or more programs for use by one or more processors in performing the methods described in the present disclosure.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is possible without departing from the inventive concept. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
The storage medium stores one or more programs for use by one or more processors in performing the methods described in the present disclosure.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is possible without departing from the inventive concept. For example, the above features and the technical features disclosed in the present disclosure (but not limited to) having similar functions are replaced with each other to form the technical solution.

Claims (16)

1. A regression range determination method, comprising:
deploying an old code to a server, carrying out service test, and recording first information related to the old code;
deploying new codes to the server, carrying out service test, and recording second information related to the new codes;
comparing the first information with the second information;
searching the service related to the second information as a regression range based on the comparison result that the first information is inconsistent with the second information,
wherein:
the first information is verification information used for verifying the old code, and the second information is verification information used for verifying the new code; alternatively, the first and second liquid crystal display panels may be,
the first information comprises first code line information and first keypoint parameter information of the old code and the second information comprises second code line information and second keypoint parameter information of the new code.
2. The method according to claim 1, wherein the verification information of the old code includes change record information of a class file of the old code, and the verification information of the new code includes change record information of a class file of the new code, wherein the searching for the service related to the second information as a regression range based on the comparison result that the first information is inconsistent with the second information includes:
and searching the service of the class file passing through the new code as a regression range based on a comparison result of inconsistency between the change record information of the class file of the old code and the change record information of the class file of the new code.
3. The method of claim 1, wherein the first code line information comprises a unique signature and function parameter type for each function in the old code, and the first keypoint parameter information comprises parameter names and parameter values for all parameters in the old code; the second code line information includes a unique signature and function parameter types for each function in the new code, and the second keypoint parameter information includes parameter names and parameter values for all parameters in the new code.
4. The method according to claim 3, wherein the searching for the service related to the second information as a regression range based on the comparison result that the first information is inconsistent with the second information comprises:
and searching the service passing through each function and function parameter in the new code as a regression range based on the comparison result of the inconsistency of the first information and the second information.
5. The method of claim 1, wherein the regression range includes a test case to be executed and a service corresponding to the test case, which are related to the second information.
6. The method of claim 1, wherein the first information comprises a unique identification of a test case, a description of a test case, a unique name of a business corresponding to a test case, a unique name of an application corresponding to the old code, an IP address of a machine of an application corresponding to the old code, and a collection time of data related to the old code; the second information comprises a unique identification of the test case, a description of the test case, a unique name of a service corresponding to the test case, a unique name of an application corresponding to the new code, an IP address of a machine of the application corresponding to the new code, and a collection time of data related to the new code.
7. The method according to claim 1, wherein the searching for the service related to the second information as a regression range based on the inconsistent comparison result between the first information and the second information comprises:
storing the second information to an alteration list based on a comparison result that the first information is inconsistent with the second information;
acquiring second information in the change list;
searching for a business related to the second information as a regression range.
8. A regression range determination apparatus, comprising:
the system comprises a first deployment module, a second deployment module and a third deployment module, wherein the first deployment module is configured to deploy an old code to a server, perform service test and record first information related to the old code;
the second deployment module is configured to deploy new codes to the server, perform service test and record second information related to the new codes;
a comparison module configured to compare the first information with the second information;
a search module configured to search, based on a comparison result that the first information is inconsistent with the second information, for a service related to the second information as a regression range,
wherein:
the first information is verification information used for verifying the old code, and the second information is verification information used for verifying the new code; alternatively, the first and second electrodes may be,
the first information includes first code line information and first key point parameter information of the old code, and the second information includes second code line information and second key point parameter information of the new code.
9. An electronic device comprising a memory and a processor; wherein the memory is to store one or more computer instructions, wherein the one or more computer instructions are to be executed by the processor to implement the steps of:
deploying an old code to a server, carrying out service test, and recording first information related to the old code;
deploying new codes to the server, carrying out service test, and recording second information related to the new codes;
comparing the first information with the second information;
searching the service related to the second information as a regression range based on the comparison result that the first information is inconsistent with the second information,
wherein:
the first information is verification information used for verifying the old code, and the second information is verification information used for verifying the new code; alternatively, the first and second liquid crystal display panels may be,
the first information includes first code line information and first key point parameter information of the old code, and the second information includes second code line information and second key point parameter information of the new code.
10. The electronic device according to claim 9, wherein the verification information of the old code includes change record information of a class file of the old code, and the verification information of the new code includes change record information of a class file of the new code, wherein the searching for the service related to the second information as the regression range based on the comparison result that the first information is inconsistent with the second information includes:
and searching the service of the class file passing through the new code as a regression range based on the comparison result that the change record information of the class file of the old code is inconsistent with the change record information of the class file of the new code.
11. The electronic device of claim 9, wherein the first code line information includes a unique signature and a function parameter type for each function in the old code, and the first keypoint parameter information includes parameter names and parameter values for all parameters in the old code; the second code line information includes a unique signature and function parameter types for each function in the new code, and the second keypoint parameter information includes parameter names and parameter values for all parameters in the new code.
12. The electronic device according to claim 11, wherein the searching for the service related to the second information as a regression range based on the comparison result that the first information is inconsistent with the second information includes:
and searching the service passing through each function and function parameter in the new code as a regression range based on the comparison result of the inconsistency of the first information and the second information.
13. The electronic device according to claim 9, wherein the regression range includes a test case that needs to be executed and a service corresponding to the test case, which are related to the second information.
14. The electronic device of claim 9, wherein the first information comprises a unique identification of a test case, a description of a test case, a unique name of a service corresponding to a test case, a unique name of an application corresponding to the old code, an IP address of a machine of an application corresponding to the old code, and a collection time of data related to the old code; the second information comprises the unique identification of the test case, the description of the test case, the unique name of the business corresponding to the test case, the unique name of the application corresponding to the new code, the IP address of the machine of the application corresponding to the new code and the collection time of the data related to the new code.
15. The electronic device according to claim 9, wherein the searching for the service related to the second information as a regression range based on the comparison result that the first information is inconsistent with the second information includes:
storing the second information into a change list based on a comparison result of the inconsistency between the first information and the second information;
acquiring second information in the change list;
searching for a business related to the second information as a regression range.
16. A computer-readable storage medium having stored thereon computer instructions, which when executed by a processor, implement the method of any one of claims 1-7.
CN201811341793.8A 2018-11-12 2018-11-12 Regression range determining method, device, equipment and computer readable storage medium Active CN110008108B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811341793.8A CN110008108B (en) 2018-11-12 2018-11-12 Regression range determining method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811341793.8A CN110008108B (en) 2018-11-12 2018-11-12 Regression range determining method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110008108A CN110008108A (en) 2019-07-12
CN110008108B true CN110008108B (en) 2022-10-18

Family

ID=67164897

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811341793.8A Active CN110008108B (en) 2018-11-12 2018-11-12 Regression range determining method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110008108B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112799955B (en) * 2021-02-08 2023-09-26 腾讯科技(深圳)有限公司 Method and device for detecting model change, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186463A (en) * 2011-12-30 2013-07-03 阿里巴巴集团控股有限公司 Method and system for determining testing range of software
CN103699488A (en) * 2013-12-30 2014-04-02 优视科技有限公司 Call relation dependence graph based regression testing method and system
CN105302710A (en) * 2014-07-03 2016-02-03 腾讯科技(深圳)有限公司 Method and apparatus for determining test case in need of regression testing
CN106155893A (en) * 2015-04-03 2016-11-23 腾讯科技(深圳)有限公司 Judge method and the program test equipment of Application testing coverage

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2719782A1 (en) * 2010-10-29 2011-01-19 Ibm Canada Limited - Ibm Canada Limitee Improving code breakage detection using source code history background

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186463A (en) * 2011-12-30 2013-07-03 阿里巴巴集团控股有限公司 Method and system for determining testing range of software
CN103699488A (en) * 2013-12-30 2014-04-02 优视科技有限公司 Call relation dependence graph based regression testing method and system
CN105302710A (en) * 2014-07-03 2016-02-03 腾讯科技(深圳)有限公司 Method and apparatus for determining test case in need of regression testing
CN106155893A (en) * 2015-04-03 2016-11-23 腾讯科技(深圳)有限公司 Judge method and the program test equipment of Application testing coverage

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
软件测试改进模型研究进展;余久久 等;《计算机应用与软件》;20121231;第201-207页 *

Also Published As

Publication number Publication date
CN110008108A (en) 2019-07-12

Similar Documents

Publication Publication Date Title
AU2014334840B2 (en) Method and system for dynamic and comprehensive vulnerability management
CN107798047B (en) Repeated work order detection method, device, server and medium
US9558230B2 (en) Data quality assessment
US9489232B2 (en) Techniques for attesting data processing systems
US20150347212A1 (en) Error classification in a computing system
US20140033176A1 (en) Methods for predicting one or more defects in a computer program and devices thereof
Syer et al. Continuous validation of performance test workloads
US20160378993A1 (en) Systems for diagnosing and tracking product vulnerabilities
US9703690B2 (en) Determining test case efficiency
WO2015176431A1 (en) Method and device for generating test data
CN113366478A (en) Auditing of instrument measurement data maintained in a blockchain using independently stored verification keys
CN110674360B (en) Tracing method and system for data
CN108399151B (en) Data comparison system and method
US20100218049A1 (en) Method of Creating Signatures for Classifying Program Failures
CN109376534B (en) Method and apparatus for detecting applications
CN111897846A (en) Cache data verification method, device, equipment and storage medium
JP2022100301A (en) Method for determining potential impact on computing device by software upgrade, computer program, and update recommendation computer server (recommendation of stability of software upgrade)
CN110008108B (en) Regression range determining method, device, equipment and computer readable storage medium
CN112988607B (en) Application program component detection method and device and storage medium
US11604724B2 (en) Software application component testing
US11762650B1 (en) Method and apparatus for secure offline software update
CN113297583B (en) Vulnerability risk analysis method, device, equipment and storage medium
US11748246B2 (en) Crowd-sourced QA with trusted compute model
US11347533B2 (en) Enhanced virtual machine image management system
Akram et al. DroidSD: An Efficient Indexed Based Android Applications Similarity Detection Tool.

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200918

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

Effective date of registration: 20200918

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240229

Address after: Guohao Times City # 20-01, 128 Meizhi Road, Singapore

Patentee after: Advanced Nova Technology (Singapore) Holdings Ltd.

Country or region after: Singapore

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee before: Innovative advanced technology Co.,Ltd.

Country or region before: Cayman Islands