CN107122289B - Method, device and system for system regression testing - Google Patents

Method, device and system for system regression testing Download PDF

Info

Publication number
CN107122289B
CN107122289B CN201610104369.6A CN201610104369A CN107122289B CN 107122289 B CN107122289 B CN 107122289B CN 201610104369 A CN201610104369 A CN 201610104369A CN 107122289 B CN107122289 B CN 107122289B
Authority
CN
China
Prior art keywords
data
service request
cluster
preset format
database
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
CN201610104369.6A
Other languages
Chinese (zh)
Other versions
CN107122289A (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 New Technologies Co Ltd
Advantageous New Technologies Co 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 CN201610104369.6A priority Critical patent/CN107122289B/en
Publication of CN107122289A publication Critical patent/CN107122289A/en
Application granted granted Critical
Publication of CN107122289B publication Critical patent/CN107122289B/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

Abstract

The embodiment of the application provides a method, a device and a system for system regression testing, wherein the method comprises the following steps: the recording server acquires a service request sent to an application server by a client and response data returned by the application server aiming at the service request according to predefined configuration information, converts the service request into data with a preset format and stores the data in a database; and the playback server reads the preset format data stored in the database, restores the preset format data into original format data, performs playback processing, obtains a regression test result and outputs the regression test result. The embodiment of the application can realize the online system regression test, and has small invasion to the system.

Description

Method, device and system for system regression testing
Technical Field
The present disclosure relates to the field of system regression testing technologies, and in particular, to a method, an apparatus, and a system for system regression testing.
Background
In the regression testing of the system, a recording playback technique is commonly used, and the recording playback technique is that a flow needing testing is completed manually, and communication information between a client and a server during the flow is recorded by a computer, wherein the information is generally some protocols and data, and forms a specific Script program (Script). And then, simultaneously generating a plurality of virtual users under the unified management of the system, running the script, monitoring the performance of hardware and software platforms, and providing analysis reports or related data. Thus, hundreds of users can be simulated to test the load capacity of the application system through a plurality of machines.
In the recording and playback technology, the verification environment can be divided into an online environment and an offline environment, the offline environment generally cannot be completely consistent with the online environment due to the reasons of a database, a cache, a cluster, hardware equipment and the like, and the online environment generally cannot completely simulate all real behaviors of a user due to the diversity of user behaviors; therefore, the problem that the online environment is difficult to verify can occur to the complex service and system. Unlike the offline environment, the online environment does not have these problems.
However, the current online recording playback scheme also has its drawbacks. Taking the relatively common mirror image drainage scheme as an example, the scheme needs to be modified in overall deployment in specific implementation: route configuration at a load balancing position or special load balancing equipment is required to be introduced, and the deployment of a database is modified; in addition, the application system needs to be modified to support special processing of the mirror image traffic, so as to avoid affecting the real service processing. Therefore, the current online recording and playback scheme needs to make a great change to the original system (i.e. the original system is invaded a lot).
Disclosure of Invention
An object of the embodiments of the present application is to provide a method, an apparatus, and a system for system regression testing, so as to reduce intrusion to an original system while implementing online system regression testing.
In order to achieve the above object, in one aspect, an embodiment of the present application provides a method for system regression testing, including the following steps:
the recording server acquires a service request sent to an application server by a client and response data returned by the application server aiming at the service request according to predefined configuration information, converts the service request into data with a preset format and stores the data in a database;
and the playback server reads the preset format data stored in the database, restores the preset format data into original format data, performs playback processing, obtains a regression test result and outputs the regression test result.
On the other hand, the embodiment of the present application provides another method for system regression testing, including the following steps:
acquiring a service request sent to an application server by a client and response data returned by the application server aiming at the service request according to predefined configuration information;
converting the service request and response data returned by the application server aiming at the service request into data with a preset format;
and storing the data with the preset format into a database.
On the other hand, the embodiment of the present application provides another method for system regression testing, including the following steps:
reading data in a preset format stored in a database and restoring the data into original format data;
carrying out playback processing on the original format data to obtain a regression test result;
and outputting the regression test result.
In another aspect, an embodiment of the present application further provides a system for regression testing, including:
the recording server is used for acquiring a service request sent to the application server by the client and response data returned by the application server aiming at the service request according to predefined configuration information, converting the service request into data with a preset format and storing the data into a database;
and the playback server is used for reading the preset format data stored in the database, restoring the preset format data into original format data, then performing playback processing to obtain a regression test result and outputting the regression test result.
In another aspect, an embodiment of the present application further provides a recording server, including:
the data acquisition module is used for acquiring a service request sent to an application server by a client and response data returned by the application server aiming at the service request according to predefined configuration information;
the format conversion module is used for converting the service request and response data returned by the application server aiming at the service request into data with a preset format;
and the data storage module is used for storing the data with the preset format into a database.
In another aspect, an embodiment of the present application further provides a playback server, including:
the format reduction module is used for reading the preset format data stored in the database and reducing the preset format data into original format data;
the playback processing module is used for performing playback processing on the original format data to obtain a regression test result;
and the result output module is used for outputting the regression test result.
In the system regression testing scheme of the embodiment of the application, the recording server intercepts user traffic through predefined configuration information, performs format conversion on the user traffic, stores the user traffic, and performs playback processing on another specified device, so that online system regression testing is realized. Because the application system only needs to be introduced with the recording server and the related configuration, and the whole deployment does not need to be greatly modified, the intrusion of the application system is small.
Drawings
The accompanying drawings, which are included to provide a further understanding of the embodiments of the disclosure, are incorporated in and constitute a part of this disclosure. In the drawings:
FIG. 1 is a flow chart of a method of regression testing of a system according to an embodiment of the present application;
FIG. 2 is a flow chart of a method of regression testing of a system according to another embodiment of the present application;
FIG. 3 is a flow chart of a method of regression testing of a system according to another embodiment of the present application;
FIG. 4 is a block diagram of a system for regression testing of a system according to an embodiment of the present application;
fig. 5 is a block diagram of a recording server according to an embodiment of the present application;
fig. 6 is a block diagram of a playback server according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application more apparent, the embodiments of the present application are described in further detail below with reference to the embodiments and the accompanying drawings. The exemplary embodiments and descriptions of the embodiments are provided to explain the embodiments and should not be construed as limiting the embodiments.
The following describes embodiments of the present application in further detail with reference to the accompanying drawings.
Referring to fig. 1, and referring to fig. 1, the method of the systematic regression test of the present example includes the following steps:
step S101, the recording server obtains a service request sent by the client to the application server and response data returned by the application server aiming at the service request according to predefined configuration information, converts the service request into data with a preset format and stores the data in a database.
In the embodiment of the application, the purpose of converting the intercepted data into the data in the predetermined format is to convert the recorded dynamic data into static information for storage, and the data in the predetermined format is in a format suitable for storage in the database.
In this embodiment of the application, the recording server may be an interceptor configured on the application server, and the predefined configuration information may be a pre-configured configuration file. The configuration content of the configuration file can include the IP identification of the online recording device, the online recording time length, which interfaces need to be recorded online, and the like, and the related configuration file can be pushed to the interceptor through the management system, and the interceptor starts to take effect. When a user sends a service request to an application server through a client, an interceptor intercepts the service request, and similarly, when the application server returns response data according to the service request, the interceptor intercepts the response data.
And S102, the playback server reads the preset format data stored in the database, restores the preset format data into original format data, performs playback processing, obtains a regression test result and outputs the regression test result.
In the embodiment of the application, the purpose of restoring the predetermined format data into the original format data is to restore the stored static information into corresponding dynamic data so as to facilitate playback processing. In particular implementations, the playback processing of the playback server may be triggered based on the playback instructions.
The system regression testing method of the embodiment of the application can be applied to the development stage of the application system and also can be applied to the release stage of the application system so as to verify or check the performance of the system. Wherein the application system publication comprises a blue-green publication.
The specific application of the system regression testing method of the present example is described below by way of example in the blue green publication. The related configuration is generally carried out before the blue green is released, and in the process, the configuration in the aspect of recording can be carried out. The specific blue-green release process is as follows:
step 1, changing the state of the green cluster into standby, and deleting the address of the green cluster from the load balancing server, so that the green cluster cannot receive a service request from a user. That is, the traffic is totally drained to the blue cluster, and the green cluster no longer has user traffic. In this step, the recording server records according to predefined configuration information, converts the recorded data into data with a predetermined format, and stores the data in a database.
And 2, performing system updating on the green cluster, and deploying new codes until the green cluster is successfully started.
And 3, after the green cluster is successfully started, the playback server reads the data in the preset format from the database, restores the data into the data in the original format, and performs playback processing to obtain and output a regression test result, so as to verify whether the performance of the green cluster system is normal.
And 4, interchanging the roles of the green cluster and the blue cluster, repeating the steps 1-3, and finally finishing the blue-green distribution.
In the method for system regression testing according to the embodiment of the application, the recording server intercepts user traffic through predefined configuration information, performs format conversion on the user traffic, stores the user traffic, and performs playback processing on another specified device, thereby realizing online system regression testing. Because the application system only needs to be introduced with the recording server and the related configuration, and the whole deployment does not need to be greatly modified, the intrusion of the application system is small.
Referring to fig. 2, a method for regression testing of a system according to an embodiment of the present application includes the following steps:
step S201, acquiring a service request sent by a client to an application server and response data returned by the application server for the service request according to predefined configuration information.
In this embodiment of the present application, an execution subject of each step may be a recording server, the recording server may be, for example, an interceptor configured on the application server, and the predefined configuration information may be a pre-configured configuration file. The configuration content of the configuration file may include the IP identification of the device that is recorded online, the length of time that the recording is performed online, which interfaces need to be recorded online, and so on. When a user sends a service request to an application server through a client, an interceptor intercepts the service request, and similarly, when the application server returns response data according to the service request, the interceptor intercepts the response data.
Step S202, converting the service request and the response data returned by the application server aiming at the service request into data with a preset format.
In the embodiment of the application, the purpose of converting the intercepted data into the data in the predetermined format is to convert the recorded dynamic data into static information for storage, and the data in the predetermined format is in a format suitable for storage in the database.
And step S203, storing the data with the preset format into a database.
In another embodiment, before converting the service request and the response data returned by the application server for the service request into data in a predetermined format, the method may further include:
and performing security desensitization processing on the service request and response data returned by the application server aiming at the service request. Since some user data are sensitive data, such as user telephone numbers, bank card numbers, etc., these data should not be directly stored in the database from the perspective of security design, so as to achieve reliable protection of the sensitive data.
In another embodiment, the converting the service request and the response data returned by the application server for the service request into data in a predetermined format may be, for example: and converting the service request and response data returned by the application server aiming at the service request into a preset format in an order cracking mode.
In another embodiment, the storing the data in the predetermined format into the database may be, for example: asynchronous operation or multithreading is started to store the data with the preset format into the database, so that the performance of an application system can be prevented from being influenced.
Referring to fig. 3, a method for regression testing of a system according to an embodiment of the present application includes the following steps:
step S301, reading the preset format data stored in the database and restoring the preset format data into the original format data. In this embodiment of the present application, the execution subject of each step may be a playback server, where the purpose of restoring the predetermined format data to the original format data is to restore the stored static information to the corresponding dynamic data to facilitate playback processing. In particular implementations, the playback processing of the playback server may be triggered based on the playback instructions.
Step S302, the original format data is played back to obtain a regression test result. The playback process may be, for example, a mock test. And the playback result can be obtained after the playback processing, the playback result is compared with the previous recording result, a report can be generated, and the report is the regression test result of the application system.
And S303, outputting the regression test result.
In another embodiment, the restoring the predetermined format data to the original format data may include: and restoring the data in the preset format into the data in the original format in a deserialization mode. For example, the original format data is jvm (Java Virtual Machine) object data, which becomes static information after serialization and stores the static information in the database, and the static information can be restored to jvm objects through deserialization.
While the process flows described above for the various method embodiments include a number of operations occurring in a particular order, it should be appreciated that the processes may include more or less operations, which may be performed sequentially or in parallel (e.g., using parallel processors or a multi-threaded environment).
Referring to fig. 4, a system for regression testing of a system according to an embodiment of the present application includes:
the recording server 41 is configured to obtain a service request sent by a client to an application server and response data returned by the application server in response to the service request according to predefined configuration information, convert the service request into data in a predetermined format, and store the data in a database.
In the embodiment of the application, the purpose of converting the intercepted data into the data in the predetermined format is to convert the recorded dynamic data into static information for storage, and the data in the predetermined format is in a format suitable for storage in the database.
In this embodiment of the application, the recording server 41 may be an interceptor configured on the application server, and the predefined configuration information may be a pre-configured configuration file. The configuration content of the configuration file can include the IP identification of the online recording device, the online recording time length, which interfaces need to be recorded online, and the like, and the related configuration file can be pushed to the interceptor through the management system, and the interceptor starts to take effect. When a user sends a service request to an application server through a client, an interceptor intercepts the service request, and similarly, when the application server returns response data according to the service request, the interceptor intercepts the response data.
And the playback server 42 is used for reading the preset format data stored in the database, restoring the preset format data into the original format data, then performing playback processing, obtaining a regression test result and outputting the regression test result.
In the embodiment of the application, the purpose of restoring the predetermined format data into the original format data is to restore the stored static information into corresponding dynamic data so as to facilitate playback processing. In particular implementations, the playback processing of the playback server 42 may be triggered based on the playback instructions.
The system of the system regression test of the embodiment of the application can be applied to the development stage of the application system and also can be applied to the release stage of the application system so as to verify or check the performance of the system. Wherein the application system publication comprises a blue-green publication. For the application of the method in the release stage of the application system, reference may be made to the above first method embodiment, which is not described herein again.
In the system of the system regression test according to the embodiment of the present application, the recording server 41 intercepts the user traffic through predefined configuration information, performs format conversion on the user traffic, and then stores the user traffic, and performs playback processing on another specified device (i.e., the playback server 42), thereby implementing the online system regression test. Since only the recording server 41 and the related configuration need to be introduced for the application system, the whole deployment does not need to be modified greatly, and therefore, the intrusion of the application system is small.
As shown in fig. 5, the recording server 41 of the system regression testing system according to the embodiment of the present application specifically includes:
the data obtaining module 411 is configured to obtain, according to predefined configuration information, a service request sent by a client to an application server and response data returned by the application server for the service request.
And a format conversion module 412, configured to convert the service request and response data returned by the application server for the service request into data in a predetermined format. In the embodiment of the application, the purpose of converting the intercepted data into the data in the predetermined format is to convert the recorded dynamic data into static information for storage, and the data in the predetermined format is in a format suitable for storage in the database.
And a data storage module 413, configured to store the data in the predetermined format in a database.
In another embodiment, the recording server 41 may further include:
and a security desensitization module, configured to perform security desensitization processing on the service request and the response data returned by the application server for the service request before the format conversion module 412 converts the service request and the response data returned by the application server for the service request into data in a predetermined format. Since some user data are sensitive data, such as user telephone numbers, bank card numbers, etc., these data should not be directly stored in the database from the perspective of security design, so as to achieve reliable protection of the sensitive data.
In another embodiment, the format conversion module 412 converts the service request and the response data returned by the application server for the service request into data in a predetermined format, which may be, for example: and converting the service request and response data returned by the application server aiming at the service request into a preset format in an order cracking mode.
In another embodiment, the data storage module 413 stores the data in the predetermined format in a database, for example, the data may be: asynchronous operation or multithreading is started to store the data with the preset format into the database, so that the performance of an application system can be prevented from being influenced.
As shown in fig. 6, the playback server 51 of the system regression testing system of the embodiment of the present application includes:
the format restoring module 511 is configured to read the predetermined format data stored in the database and restore the predetermined format data to the original format data.
And the playback processing module 512 is configured to perform playback processing on the original format data to obtain a regression test result. The playback process may be, for example, a mock test. And the playback result can be obtained after the playback processing, the playback result is compared with the previous recording result, a report can be generated, and the report is the regression test result of the application system.
And a result output module 513, configured to output the regression test result. In another embodiment, the restoring the predetermined format data to the original format data may include: and restoring the data in the preset format into the data in the original format in a deserialization mode. For example, the original format data is jvm object data, which becomes static information after serialization and stores the static information in the database, and the static information can be restored to jvm object by deserialization.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate a dedicated integrated circuit chip 2. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Language Description Language), traffic, pl (core unified Programming Language), HDCal, JHDL (Java Hardware Description Language), langue, Lola, HDL, laspam, hardbyscript Description Language (vhr Description Language), and the like, which are currently used by Hardware compiler-software (Hardware Description Language-software). It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory.
Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present application may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments of the present application.
The application is operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
While the present application has been described with examples, those of ordinary skill in the art will appreciate that there are numerous variations and permutations of the present application without departing from the spirit of the application, and it is intended that the appended claims encompass such variations and permutations without departing from the spirit of the application.

Claims (20)

1. A method of regression testing of a system, wherein the system comprises a blue cluster and a green cluster; the method comprises the following steps:
the recording server acquires a service request sent to an application server by a client and response data returned by the application server aiming at the service request according to predefined configuration information, converts the service request into data with a preset format and stores the data in a database; wherein, include: the recording server records a service request sent by the client to the green cluster according to predefined configuration information, converts the recorded data into data with a preset format and stores the data into a database;
the playback server reads the preset format data stored in the database, restores the preset format data into original format data and then performs playback processing to obtain and output a regression test result; wherein, include: reading the data in the preset format in the database, restoring the data to the original format, and then performing playback processing to obtain a regression test result and output the regression test result so as to verify the performance of the green cluster; the blue cluster is used for processing a service request sent by a client in the process of verifying the performance of the green cluster;
verifying the blue cluster by using the recording server and the playback server; and the green cluster is used for processing the service request sent by the client in the process of verifying the performance of the blue cluster.
2. The method of claim 1, wherein the method is applied to application system publishing to verify system performance.
3. The method of systematic regression testing of claim 2 wherein said application system release comprises a blue green release.
4. The method of claim 1, wherein the recording server comprises an interceptor configured on the application server.
5. A method of regression testing of a system, wherein the system comprises a blue cluster and a green cluster; the method comprises the following steps:
acquiring a service request sent to an application server by a client and response data returned by the application server aiming at the service request according to predefined configuration information; wherein, include: the recording server acquires a service request sent by the client to the green cluster or the blue cluster according to predefined configuration information;
converting the service request and response data returned by the application server aiming at the service request into data with a preset format;
storing the preset format data into a database so that a playback server reads the preset format data stored in the database, restores the preset format data into original format data and then performs playback processing to obtain and output a regression test result; wherein, include: reading the data in the preset format in the database, restoring the data to the original format, and then performing playback processing to obtain a regression test result and output the regression test result so as to verify the performance of the green cluster or the blue cluster; and the playback server processes the service request sent by the client side by the other cluster when verifying the performance of the green cluster or the blue cluster.
6. The method of claim 5, wherein before converting the service request and the response data returned by the application server for the service request into data in a predetermined format, the method further comprises:
and performing security desensitization processing on the service request and response data returned by the application server aiming at the service request.
7. The method of claim 5, wherein the transforming comprises serializing.
8. The method for systematic regression testing according to claim 5, wherein said storing the data in the predetermined format into the database specifically comprises:
and starting asynchronous operation or multithreading to store the data with the preset format into the database.
9. A method of regression testing of a system, wherein the system comprises a blue cluster and a green cluster; the method comprises the following steps:
reading data in a preset format stored in a database and restoring the data into original format data; the data with the preset format comprises data which is obtained by converting a service request sent to the green cluster by the client and recorded according to predefined configuration information into the preset format;
carrying out playback processing on the original format data to obtain a regression test result; the regression test result is used for verifying the performance of the green cluster;
outputting the regression test result;
verifying the blue cluster by using a recording server and a playback server; and the green cluster is used for processing the service request sent by the client in the process of verifying the performance of the blue cluster.
10. The method of systematic regression testing of claim 9 wherein said reduction comprises deserialization.
11. A system for system regression testing, comprising:
the recording server is used for acquiring a service request sent to the application server by the client and response data returned by the application server aiming at the service request according to predefined configuration information, converting the service request into data with a preset format and storing the data into a database; wherein, include: the recording server records a service request sent by the client to the green cluster or the blue cluster according to predefined configuration information, converts the recorded data into data with a preset format and stores the data in a database;
the playback server is used for reading the preset format data stored in the database, restoring the preset format data into original format data and then performing playback processing to obtain and output a regression test result; wherein, include: reading the data in the preset format in the database, restoring the data to the original format, and then performing playback processing to obtain a regression test result and output the regression test result so as to verify the performance of the green cluster or the blue cluster; and the playback server processes the service request sent by the client side by the other cluster when verifying the performance of the green cluster or the blue cluster.
12. The system for systematic regression testing of claim 11, wherein the system is applied to application system releases to verify system performance.
13. The system for systematic regression testing of claim 12 wherein said application system release comprises a blue green release.
14. The system for systematic regression testing of claim 11, wherein said recording server comprises an interceptor configured on said application server.
15. A recording server, comprising:
the data acquisition module is used for acquiring a service request sent to an application server by a client and response data returned by the application server aiming at the service request according to predefined configuration information; wherein, include: the recording server acquires a service request sent by the client to the green cluster or the blue cluster according to predefined configuration information;
the format conversion module is used for converting the service request and response data returned by the application server aiming at the service request into data with a preset format;
the data storage module is used for storing the data in the preset format into a database so that the playback server reads the data in the preset format stored in the database, restores the data in the preset format into the data in the original format and performs playback processing to obtain a regression test result and output the regression test result; wherein, include: reading the data in the preset format in the database, restoring the data to the original format, and then performing playback processing to obtain a regression test result and output the regression test result so as to verify the performance of the green cluster or the blue cluster; and the playback server processes the service request sent by the client side by the other cluster when verifying the performance of the green cluster or the blue cluster.
16. The recording server of claim 15, further comprising:
and the safety desensitization module is used for performing safety desensitization processing on the service request and the response data returned by the application server aiming at the service request before the format conversion module converts the service request and the response data returned by the application server aiming at the service request into data with a preset format.
17. The recording server of claim 15, wherein the converting includes serializing.
18. The recording server of claim 15, wherein the data storage module stores the data in the predetermined format in a database, and specifically comprises:
and the data storage module starts asynchronous operation or multithreading to store the data with the preset format into a database.
19. A playback server, comprising:
the format reduction module is used for reading the preset format data stored in the database and reducing the preset format data into original format data; the data with the preset format comprises data which is obtained by converting a service request sent to a green cluster or a blue cluster by a client according to predefined configuration information into the preset format;
the playback processing module is used for performing playback processing on the original format data to obtain a regression test result; the regression test result is used for verifying the performance of the green cluster or the blue cluster; processing a service request sent by a client by another cluster when verifying the performance of the green cluster or the blue cluster;
and the result output module is used for outputting the regression test result.
20. The playback server of claim 19, wherein the restoring comprises deserializing.
CN201610104369.6A 2016-02-25 2016-02-25 Method, device and system for system regression testing Active CN107122289B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610104369.6A CN107122289B (en) 2016-02-25 2016-02-25 Method, device and system for system regression testing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610104369.6A CN107122289B (en) 2016-02-25 2016-02-25 Method, device and system for system regression testing

Publications (2)

Publication Number Publication Date
CN107122289A CN107122289A (en) 2017-09-01
CN107122289B true CN107122289B (en) 2021-01-15

Family

ID=59717722

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610104369.6A Active CN107122289B (en) 2016-02-25 2016-02-25 Method, device and system for system regression testing

Country Status (1)

Country Link
CN (1) CN107122289B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107608898B (en) * 2017-10-10 2020-01-07 浙江网新恒天软件有限公司 Method for reproducing test flow to realize automatic regression test
CN109189665B (en) * 2018-08-01 2022-03-01 创新先进技术有限公司 Method and device for recording, replaying and automatically testing data
CN111159008B (en) * 2018-11-08 2023-05-05 阿里巴巴集团控股有限公司 Test method and device and electronic equipment
CN111221721B (en) * 2018-11-27 2023-09-05 中国移动通信集团上海有限公司 Automatic recording and executing method and device for unit test cases
CN109831357B (en) * 2019-01-30 2020-12-29 北京大米科技有限公司 Service verification method, device, storage medium and server
CN110134597A (en) * 2019-04-25 2019-08-16 阿里巴巴集团控股有限公司 The regression testing method and its system of operation system fund security
CN110175115B (en) * 2019-04-30 2022-12-27 中国航空无线电电子研究所 Variable-based dynamic data operation and management system
CN110597725B (en) * 2019-09-19 2023-05-05 浙江诺诺网络科技有限公司 Mysql simulation return method, device and equipment
CN110784356B (en) * 2019-10-30 2022-03-29 北京蜜莱坞网络科技有限公司 Automatic flow playback method
CN113268391A (en) * 2020-02-14 2021-08-17 北京沃东天骏信息技术有限公司 Method, apparatus, device and storage medium for data playback
CN111309625A (en) * 2020-03-03 2020-06-19 中国工商银行股份有限公司 Regression testing method and device based on real transaction data
CN114448825A (en) * 2020-11-06 2022-05-06 行吟信息科技(上海)有限公司 Flow comparison method, device, equipment and storage medium
CN112637085B (en) * 2020-12-08 2023-02-17 广州品唯软件有限公司 Flow recording method and device, computer equipment and storage medium
CN112965901B (en) * 2021-03-05 2023-08-01 北京百度网讯科技有限公司 API testing method, server, system and electronic equipment
CN113468061A (en) * 2021-07-15 2021-10-01 浙江百应科技有限公司 Automatic testing method and device based on recording and playback and electronic equipment
CN115834443A (en) * 2022-09-07 2023-03-21 深圳依时货拉拉科技有限公司 Flow playback method and device, computer equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101316201A (en) * 2008-07-18 2008-12-03 中国工商银行股份有限公司 Multi-terminal mode script device and data processing method and automatization test system
CN102053906A (en) * 2009-10-30 2011-05-11 国际商业机器公司 System and method for collecting program runtime information
CN102385582B (en) * 2010-08-31 2016-08-03 中兴通讯股份有限公司 Production test data processing method, server and system
CN105335278A (en) * 2014-06-16 2016-02-17 阿里巴巴集团控股有限公司 Testing method and device
CN104901845B (en) * 2015-05-18 2018-03-16 中国互联网络信息中心 Domain name WHOIS automatizations of service test system and method

Also Published As

Publication number Publication date
CN107122289A (en) 2017-09-01

Similar Documents

Publication Publication Date Title
CN107122289B (en) Method, device and system for system regression testing
CN106970873B (en) On-line mock testing method, device and system
KR102300451B1 (en) A generic verification approach for protobuf based projects
CN107729246B (en) Auxiliary test method, device and equipment for target application and storage medium
CN107710215A (en) The method and apparatus of mobile computing device safety in test facilities
CN102073489A (en) Method and device for generating debug log
CN107479868B (en) Interface loading method, device and equipment
CN112667246A (en) Application function extension method and device and electronic equipment
CN111538659A (en) Interface testing method and system for service scene, electronic device and storage medium
US10459823B1 (en) Debugging using dual container images
CN111159040A (en) Test data generation method, device, equipment and storage medium
CN104731626A (en) Application installation method and device
CN113986257A (en) Cloud platform front-end management interface deployment method and device and storage medium
CN113032202A (en) Chip verification method, system, device, computer equipment and storage medium
CN113272785B (en) Method for mounting file system, terminal equipment and storage medium
CN110471828B (en) Operating system testing method, device and equipment thereof
CN110908644A (en) Configuration method and device of state node, computer equipment and storage medium
CN110602163A (en) File uploading method and device
AU2021268828B2 (en) Secure data replication in distributed data storage environments
CN114238934A (en) Equipment information acquisition method, device, equipment and medium
US10671505B2 (en) System and method for monitoring service
CN113656044B (en) Android installation package compression method and device, computer equipment and storage medium
EP3872630A2 (en) Request processing method and apparatus, electronic device, and computer storage medium
CN107391223A (en) A kind of document handling method and device
CN117806939A (en) Test method, test device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20201013

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.

Effective date of registration: 20201013

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

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: Greater Cayman, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

GR01 Patent grant
GR01 Patent grant