System test operation scene mirror image recovery method and device and storage medium

By embedding tracking components and containerizing deployment on different platforms, and using a slicing mechanism to obtain image information data, the problem of difficult multi-platform data integration in existing technologies is solved, achieving efficient data management and root cause location of problems, and improving the automation level of system testing.

CN120909843AActive Publication Date: 2025-11-07BEIJING YUNXING ONLINE SOFTWARE DEV CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202511041598.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-28
Publication Date
2025-11-07
Estimated Expiration
2045-07-28

AI Technical Summary

Technical Problem

Existing technologies can only collect and store data within a single system or platform, lacking the ability to integrate data across multiple platforms and dimensions. This makes it difficult to centrally manage and trace data, and version control is simple, making it impossible to effectively distinguish the data sources and scenarios of different versions. The recovery process also makes it difficult to locate the root cause of the problem.

Method used

By embedding tracking components on different platforms, containerized deployment, loading slicing mechanisms to obtain image information data, analyzing system error logs, and using tracking data to perform automated operation restoration, centralized management of multi-platform data and accurate location of the root cause of problems can be achieved.

Benefits of technology

It enables centralized management of data across multiple platforms and precise identification of the root cause of problems, improves the efficiency and accuracy of the recovery process, simplifies version control, and ensures that the scene after image recovery is consistent with the actual environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120909843A_ABST
    Figure CN120909843A_ABST
Patent Text Reader

Abstract

The invention relates to a system test operation scene mirror image recovery method and device and a storage medium, and is applied to the technical field of test scene recovery. The method specifically comprises the following steps: embedding burying point components into software of different platforms so as to obtain operation data of multiple platforms; deploying a test environment, and carrying out containerization deployment on all services of the to-be-tested software according to different versions and different environments; therefore, data sources and scenes of different versions are effectively distinguished, and confusion and misoperation during mirror image recovery are avoided; in the testing process, sequential mirror image mapping is carried out on the container through a preset slicing mechanism; analyzing system error logs in the mirror image information data of different time sequences, and obtaining a service with an error and a corresponding error moment; scene recovery is carried out according to the system operation data and the mirror image information data at the error moment, and automatic operation recovery is carried out through burying point collection data; therefore, a specific data source and an operation scene are effectively backtracked, and a problem source is accurately positioned.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The application belongs to the technical field of test scene recovery, and particularly relates to a system test operation scene image recovery method and device and a storage medium. BACKGROUND

[0002] In the process of software development debugging and software system testing, the situation of needing to reproduce a software error scene in a development or testing or pre-release environment is often encountered. However, due to environmental reasons, cache problems, data problems or other problems of the system, a specific scene is needed to trigger reproduction.

[0003] However, the prior art can only collect and store data in a single system or platform, lacks the integration capability of multi-platform and multi-dimensional data, and thus it is difficult to centrally manage and backtrack the data, and the version control is relatively simple, which cannot effectively distinguish the data sources and scenes of different versions. Meanwhile, the prior art cannot effectively backtrack the specific data sources and operation scenes, which makes it difficult to locate the root cause of the problem in the recovery process. SUMMARY

[0004] Therefore, the application aims to provide a system test operation scene image recovery method and device and a storage medium, so as to solve the problem that the prior art can only collect and store data in a single system or platform, lacks the integration capability of multi-platform and multi-dimensional data, and thus it is difficult to centrally manage and backtrack the data, and the version control is relatively simple, which cannot effectively distinguish the data sources and scenes of different versions. Meanwhile, the prior art cannot effectively backtrack the specific data sources and operation scenes, which makes it difficult to locate the root cause of the problem in the recovery process.

[0005] According to a first aspect of an embodiment of the application, a system test operation scene image recovery method is provided, and the method comprises the following steps.

[0006] Embedding a point component in software of different platforms;

[0007] Deploying a test environment of the software to be tested, and containerizing deployment of all services of the software to be tested according to different versions and different environments;

[0008] Loading a preset slicing mechanism, performing a test process of the software to be tested, acquiring point collection data through the point component in the test process, performing time-sequenced image mapping of the container through the preset slicing mechanism, saving image information data of different time sequences, and acquiring system running data in the test process;

[0009] Analyzing system error logs in the image information data of different time sequences, and acquiring services that appear errors and corresponding error time;

[0010] According to the system running data at the error time and the mirror information data, a scene recovery is performed;

[0011] In the recovered scene, the data collected by the error time point collection is used to restore the automatic operation.

[0012] Preferably,

[0013] The preset slicing mechanism comprises:

[0014] Information collection tool: used to obtain mirror information data, the mirror information data comprising: mirror time, mirror size, mirror service name, mirror service running condition, service performance index and system error log;

[0015] Further comprising:

[0016] Timing task: the timing task is used to perform mirror mapping in the container of the corresponding version and environment according to the test operation information at the set task time.

[0017] Preferably,

[0018] The point component is a function method set for recording the front-end behavior by using js listening technology and probe principle.

[0019] Preferably,

[0020] The point collection data comprises: the point collection data obtained by marking and monitoring the elements of the user operation through the point component listening to the user operation.

[0021] Preferably,

[0022] The system running data is obtained by a preset information listening component, and the system running data comprises: system load, CPU occupancy, system running log and service running information.

[0023] Preferably,

[0024] The automatic operation restoration through the point collection data at the error time comprises:

[0025] Obtaining the point collection data at the error time, comprising element positioning and operation type, and converting the element positioning and operation type into an operation script implemented by webdriver;

[0026] In the recovered scene, the operation script is executed to realize the playback and recovery of the defect scene.

[0027] Preferably,

[0028] The different platforms comprise mobile phones, computers or tablets.

[0029] According to a second aspect of the embodiments of the present application, a system test operation scene mirroring recovery device is provided, and the device comprises:

[0030] A point embedding module is used for embedding a point component into software of different platforms;

[0031] A containerization module is used for deploying a test environment of the software to be tested, and containerizing all services of the software to be tested according to different versions and different environments;

[0032] A mirroring mapping module is used for loading a preset slicing mechanism, performing a test flow of the software to be tested, acquiring point collection data through the point component in a test process, performing time-sequenced mirroring mapping on a container through the preset slicing mechanism, and saving mirroring information data of different time sequences; and simultaneously acquiring system running data in the test process;

[0033] A defect analysis module is used for analyzing system error logs in the mirroring information data of different time sequences, and acquiring error services and corresponding error moments;

[0034] A scene recovery module is used for recovering a scene according to the system running data and the mirroring information data of the error moment;

[0035] An operation recovery module is used for performing automatic operation recovery through the point collection data of the error moment in the recovered scene.

[0036] According to a third aspect of the embodiments of the present application, a storage medium is provided, and the storage medium stores a computer program, and when the computer program is executed by a host controller, each step in the above method is implemented.

[0037] The technical solution provided by the embodiments of the present application can have the following beneficial effects:

[0038] The application obtains operation data of multiple platforms by embedding a software embedding point component on different platforms; a test environment of the to-be-tested software is deployed, and all services of the to-be-tested software are containerized deployed according to different versions and different environments; thereby, the data sources and scenes of different versions are effectively distinguished, and confusion and misoperation during image recovery are avoided; by loading a preset slicing mechanism, during the test process, the embedding point component is used to obtain embedding point collection data, the preset slicing mechanism is used to perform time-sequenced image mapping on the container, and image information data of different time sequences are saved, and system running data in the test process is obtained; the system error logs in the image information data of different time sequences are analyzed, and the services that appear errors and the corresponding error moments are obtained; the system running data and the image information data at the error moment are used for scene recovery; in the recovered scene, the embedding point collection data at the error moment is used for automatic operation restoration; thereby, the specific data sources and operation scenes are effectively traced back, and the problem root is accurately located.

[0039] It should be understood that the foregoing general description and the following detailed description are only exemplary and explanatory, and are not limiting to the application. BRIEF DESCRIPTION OF DRAWINGS

[0040] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and serve to explain the principles of the application, together with the description.

[0041] Figure 1 is a flowchart of a system test operation scene image recovery method according to an exemplary embodiment;

[0042] Figure 2 is a system diagram of a system test operation scene image recovery device according to another exemplary embodiment;

[0043] In the drawings: 1-embedding point embedding module, 2-containerization module, 3-image mapping module, 4-defect analysis module, 5-scene restoration module, 6-operation restoration module. DETAILED DESCRIPTION

[0044] The exemplary embodiments will be described in detail herein with reference to the attached drawings; figures, wherein like reference numerals refer to like elements throughout. The following detailed description is made with reference to the accompanying drawings.

[0045] Embodiment one

[0046] Figure 1Fig. 1 is a flow diagram of a system test operation scene mirroring recovery method according to an exemplary embodiment, as shown in Figure 1 The method comprises the following steps:

[0047] S1, embedding a software embedding point component for different platforms;

[0048] S2, deploying a test environment for the software to be tested, and containerizing the software to be tested according to different versions and different environments;

[0049] S3, loading a preset slicing mechanism to perform a test process of the software to be tested, obtaining embedding collection data through the embedding point component during the test process, performing time-sequenced mirroring mapping of the container through the preset slicing mechanism, and saving mirroring information data at different time sequences; and simultaneously obtaining system running data during the test process;

[0050] S4, analyzing system error logs in the mirroring information data at different time sequences to obtain error services and corresponding error time;

[0051] S5, performing scene recovery according to the system running data and the mirroring information data at the error time;

[0052] S6, performing automatic operation recovery through the embedding collection data at the error time in the recovered scene;

[0053] It can be understood that, in order to facilitate understanding of the present application, it is necessary to understand that:

[0054] Embedding point: embedding point technology is a technology of embedding a data collection module in software or a system, which is used to collect various data in the running of a device, a server or a system, such as device status, performance indicators, error logs, user behavior, etc., to help the system understand the current running status in time;

[0055] Mirroring: a kind of technology of packaging software and its running environment (such as dependent software packages, scripts, configuration files, etc.) into an independent entity, which can be quickly copied and deployed on different servers. The mirroring usually contains complete software code, dependent items and environment configuration information. The developer only needs to deploy the mirroring to the target server, without manually copying and configuring all dependent software packages. The container mirroring can improve the development efficiency, simplify the deployment process, and guarantee the stability and compatibility of the software in different environments;

[0056] Virtualization: Virtualization technology abstracts physical hardware resources (such as CPU, memory, storage devices, etc.) into virtualized resources (such as virtualized CPU, virtualized memory, virtualized storage, etc.), and through software realizes the isolation, sharing and optimization management of these virtual resources. Through virtualization technology, efficient utilization of resources can be realized, resource utilization can be improved, and more complex computing and storage requirements can be supported.

[0057] The embodiment specifically includes:

[0058] The software embedding and embedding component for different platforms, including mobile phones, computers, tablets and the like, is embedded in the component, which is a function method set for recording front-end elements including app and web elements and their behaviors by using js listening technology and probe principle, and the operation data is transmitted to the data collection system through the embedding service by marking and monitoring the elements of the user operation through the listening mechanism;

[0059] Deploy the test environment of the software to be tested, containerize all services according to different versions and different environments, including data services, which are also containerized, to facilitate environment and data recovery in the later stage;

[0060] Load the slicing mechanism, which includes information collection tools and timing tasks, wherein the information collection tools are used to obtain image information data at each time sequence, and the timing tasks are used to perform image mapping in the corresponding version and environment container according to the test operation information at the specified time. In simple terms, if it is set to perform image mapping every 5 minutes, and the test task starts at 9 o'clock, then at 9:05, image mapping is performed once in the container of the corresponding version and environment. Image mapping is to restore the user's real test operation in the container, and obtain the image information data of this image mapping through the information collection tool, and image mapping is performed again at 9:10;

[0061] Artificially perform test operations, and through the slicing mechanism, perform time-sequenced image mapping on the container during the test process, and save the image information data of each image mapping, including image time, image size, image service name, image service running condition, service performance index and system error log data;

[0062] At the same time, through the preset information collection component, the system running information data in the test process is obtained, including system load, CPU occupancy, system running log and service running information;

[0063] The collected data, mirror information data and system running information data are input into the data integration management system, the data integration management system cleans, stores, classifies and labels the input data, analyzes the system error logs in the mirror information data, confirms which service has errors, maps the log analysis results and the affected services, and integrates and merges the system running information data and the mirror information data and the buried point operation data at the corresponding error time for later scene recovery and automatic operation script generation;

[0064] According to the system running information data and the mirror information data at the error time, the scene is recovered;

[0065] The buried point data at the error time is converted into an executable automatic operation script, which is mainly converted into an operation script implemented by webdriver according to the element positioning and operation type in the buried point log;

[0066] The operation script is executed in the recovered service environment and data environment to completely realize the playback and recovery of the defect scene, realize fast and efficient recovery and positioning of problems, and realize completely automatic operation, thereby improving the overall automation level.

[0067] The containerization technology adopted in the present application supports multi-container operation, users can select different containers according to needs, while optimizing resource utilization, further improving the real-time performance and accuracy of image recovery; the containerization technology realizes rapid construction and deployment of images, supports large-scale scene image recovery, and improves the scalability of the system; the containerization technology realizes a unified image environment, simplifies version selection, solves the problem of inconsistent versions, and ensures that the scene after image recovery is consistent with the actual running environment; the containerization technology makes the image recovery process more convenient, and significantly improves the recovery efficiency through automatic image deployment.

[0068] The present application embeds a data collection module in each component and platform of the device or system through the burying point technology, and collects device running data in real time without additional hardware devices.

[0069] The present application integrates the data dispersed in different systems, platforms or devices into a unified data management platform, realizes centralized storage and management of data.

[0070] Embodiment two:

[0071] Figure 2 is a system schematic diagram of a system test operation scene image recovery device according to another exemplary embodiment, the device comprising:

[0072] The burying point embedding module 1 is used for embedding a burying point component in different platforms;

[0073] Containerization module 2: for deploying a test environment of the software to be tested, containerizing all services of the software to be tested according to different versions and different environments;

[0074] Mirror mapping module 3: for loading a preset slicing mechanism, performing a test process of the software to be tested, acquiring the point-in-time collection data through the point-in-time component during the test process, performing time-sequenced mirror mapping on the container through the preset slicing mechanism, and saving the mirror information data at different time sequences; and acquiring the system running data during the test process;

[0075] Defect analysis module 4: for analyzing the system error logs in the mirror information data at different time sequences, and acquiring the error services and the corresponding error time;

[0076] Scene restoration module 5: for performing scene recovery according to the system running data at the error time and the mirror information data;

[0077] Operation restoration module 6: for performing automatic operation restoration through the point-in-time collection data at the error time in the restored scene.

[0078] Embodiment three:

[0079] The storage medium stores a computer program, and the computer program is executed by the host controller to implement each step in the above method.

[0080] It can be understood that the storage medium mentioned above can be a read-only memory, a disk or an optical disk, etc.

[0081] It can be understood that the same or similar parts in the above embodiments can be mutually referred to, and the contents not described in detail in some embodiments can be referred to the same or similar contents in other embodiments.

[0082] It should be noted that, in the description of the present application, the terms "first", "second", etc. are only for the purpose of description, and cannot be understood as indicating or implying relative importance. In addition, in the description of the present application, unless otherwise specified, the meaning of "a small amount of sparse distribution" is at least two.

[0083] Any process or method descriptions in the flowchart or otherwise described herein, can be understood as representing code modules, segments, or portions of code which include one or more executable instructions for performing specific logic functions or steps in the process, and the preferred embodiments of the present application also include the possibility that the described processes might be modified in terms of their order of execution, including essential simultaneous or reverse order of execution, depending on the functionality involved, as will be apparent to those skilled in the art.

[0084] It should be understood that various parts of the present application can be implemented in hardware, software, firmware or a combination thereof. In the above embodiments, a small number of sparse distributed steps or methods can be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, and as in another embodiment, any of the following technologies known in the art or their combinations can be used: discrete logic circuitry having logic gates for implementing logic functions on data signals, application specific integrated circuits having appropriate combinational logic gates, programmable gate arrays (PGA), field programmable gate arrays (FPGA), etc.

[0085] Those skilled in the art of the present technology can understand that all or part of the steps carried out by the above-mentioned embodiment methods can be completed by programs instructing related hardware, and the programs can be stored in a computer readable storage medium, and when executed, include one or a combination of steps of the embodiment method.

[0086] In addition, each functional unit in each embodiment of the present application can be integrated into one processing module, or each unit can be physically present separately, or two or more units can be integrated into one module. The above-mentioned integrated module can be realized in the form of hardware or in the form of a software function module. The integrated module, if realized in the form of a software function module and sold or used as an independent product, can also be stored in a computer readable storage medium.

[0087] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.

[0088] In the description of the present specification, the description of the terms "one embodiment", "some embodiments", "example", "specific example" or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In the present specification, the illustrative description of the above terms does not necessarily mean the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or a small number of sparse distributed embodiments or examples in a suitable manner.

[0089] Although the embodiments of the present application have been shown and described above, it should be understood that the above embodiments are exemplary and cannot be understood as limiting the present application, and those skilled in the art can make changes, modifications, replacements and variations to the above embodiments within the scope of the present application.

Claims

1. A system test operation scenario mirroring recovery method, characterized in that, The method comprises: embedding a software point-injection component on different platforms; deploying a test environment for the software to be tested, and containerizing deployment of all services of the software to be tested according to different versions and different environments; loading a preset slicing mechanism, performing a test process of the software to be tested, obtaining point-injection collection data in the test process through the point-injection component, performing time-sequenced image mapping on the container through the preset slicing mechanism, and saving image information data at different times; and simultaneously obtaining system running data in the test process; analyzing system error logs in the image information data at different times to obtain error services and corresponding error time; performing scene recovery according to the system running data and the image information data at the error time; performing automatic operation restoration through the point-injection collection data at the error time in the recovered scene.

2. The method of claim 1, wherein the preset slicing mechanism comprises: an information collection tool for obtaining image information data, the image information data comprising: image time, image size, image service name, image service running condition, service performance index, and system error logs; and further comprising: a timing task for performing image mapping in the container of the corresponding version and environment according to test operation information at a set task time.

3. The method of claim 2, wherein the point-injection component is a function method set for recording front-end behaviors by using js listening technology and probe principle.

4. The method of claim 3, wherein the point-injection collection data comprises point-injection collection data obtained by marking and monitoring elements of user operations through the point-injection component listening to the user operations.

5. The method of claim 4, wherein the system running data is obtained through a preset information listening component, and the system running data comprises: system load, CPU occupancy, system running logs, and service running information.

6. The method of claim 5, wherein the automatic operation restoration through the point-injection collection data at the error time comprises: obtaining point-injection collection data at the error time, including element positioning and operation type, and converting the element positioning and operation type into an operation script implemented by webdriver; in the recovered scene, executing the operation script to realize playback and recovery of the defect scene.

7. The method of claim 6, wherein the different platforms comprise mobile phones, computers, or tablets. The device comprises: a point-injection embedding module for embedding a software point-injection component on different platforms; a containerization module for deploying a test environment for the software to be tested, and containerizing deployment of all services of the software to be tested according to different versions and different environments; ​ ​ ​ 8. A system test operation scenario mirroring recovery apparatus characterized by comprising: ​ ​ ​ The mirror mapping module is used to load a preset slicing mechanism, and perform a test flow of the software to be tested. In the test process, the embedded point component is used to acquire embedded point collection data, the preset slicing mechanism is used to perform time-sequenced mirror mapping on the container, and mirror information data at different times is saved. Meanwhile, system running data in the test process is acquired. The defect analysis module is used to analyze system error logs in the mirror information data at different times, and acquire error services and corresponding error time. The scene restoration module is used to perform scene recovery according to the system running data at the error time and the mirror information data. The operation restoration module is used to perform automatic operation restoration by using the embedded point collection data at the error time in the restored scene.

9. A storage medium, characterized by The storage medium stores a computer program, and when the computer program is executed by the host controller, each step in the system test operation scene mirror recovery method according to any one of claims 1-7 is implemented.

Citation Information

Patent Citations

  • Compatibility test method and apparatus, computer device and medium

    CN109446069A

  • Method and system for recovering test environment

    CN115203029A

  • Abnormality analysis method and device, electronic equipment and computer program product

    CN119862062A

  • Error detection and recovery tool for logical volume management in a data storage system

    US8713356B1