Test processing method, device and equipment based on operation record and time travel

CN122450818APending Publication Date: 2026-07-24SHENZHEN GREEN CONNECTION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHENZHEN GREEN CONNECTION TECH CO LTD
Filing Date
2026-03-19
Publication Date
2026-07-24

Smart Images

  • Figure CN122450818A_ABST
    Figure CN122450818A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of computers and discloses a test processing method and device based on operation records and time travel and equipment, the method comprising the following steps: a test execution end determines an operation record list of a test process of running a test case through a preset host running module and a preset data record module, and sends the operation record list to a test management end, wherein the operation record list comprises operation record data of a plurality of operation items of the test process; the test management end receives the operation record list, constructs a time travel request according to the operation record list and a viewing operation triggered by a user, and sends the time travel request to the test execution end; and the test execution end receives the time travel request, and performs corresponding operation history tracing operation according to the time travel request and the operation record list. It can be seen that the application can improve the test execution efficiency, and improve the operation record tracing accuracy and timeliness of the test process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a test processing method, apparatus, and device based on operation records and time travel. Background Technology

[0002] Currently, the primary testing method for Flutter applications is the integration_test framework. This framework combines widget testing and integration testing, running on real mobile devices or emulators. Specifically, this testing approach works as follows: test code connects to the application instance running on the device / emulator via the Flutter Driver; the testing framework sends operation instructions (such as clicks or input) to the application for execution; after the application executes the operation, it returns a result, triggering the testing framework to perform assertion verification; after the testing framework completes the test, it generates a test report, which may include a list of passed / failed test cases.

[0003] However, in practice, it has been found that existing Flutter application testing methods have the following technical defects: First, the test execution process requires a lot of resources from mobile devices or emulators, which is not conducive to improving test execution efficiency, and thus not conducive to improving application development efficiency; Second, when the test execution fails, only the final assertion error message can be seen, and it is impossible to trace the specific operation situation in the test process in a timely and accurate manner.

[0004] It is evident that improving test execution efficiency while simultaneously enhancing the accuracy and timeliness of test process operation record traceability is of paramount importance. Summary of the Invention

[0005] This invention provides a test processing method, apparatus, and equipment based on operation records and time travel, which can improve test execution efficiency and enhance the accuracy and timeliness of operation record traceability during the test process.

[0006] To address the aforementioned technical problems, the first aspect of this invention discloses a test processing method based on operation logs and time travel. The method is applied to an electronic device with an installed application, and the electronic device is communicatively connected to a network-attached storage device (NAT), accessing the NAT through the application. The method is used to implement testing and traceability of at least one test case in the electronic device or the NAT; wherein the method includes: The test execution terminal determines the operation record list of the test process for running test cases through a preset host running module and a preset data recording module, and sends the operation record list to the test management terminal. The operation record list includes operation record data of the operation time point of each of the multiple operation items in the test process. The test management terminal receives the operation record list, and constructs a time travel request based on the operation record list and the viewing operation triggered by the user, and sends the time travel request to the test execution terminal; The test execution terminal receives the time travel request and performs the corresponding operation history tracing operation based on the time travel request and the operation record list.

[0007] As an optional implementation, in the first aspect of the present invention, the test execution terminal determines a list of operation records for the test process of running test cases through a preset host operation module and a preset data recording module, including: The test execution terminal runs test cases through a preset host execution module; The test execution terminal obtains operation record data of the operation time point of each operation item in the test process of the test case through a preset operation recorder; and determines the UI state snapshot corresponding to each operation item through a preset screenshot manager. The test execution terminal performs a time association operation on all operation record data and all UI state snapshots based on the operation time points of all operation items, so that the operation record data of each operation item is associated with the UI state snapshot of that operation item; The test execution terminal adds the operation record data of all the operation items and the UI state snapshot associated with each operation record data to a preset initial record list. Based on the operation time points of all the operation items, the operation record data of all the operation items in the initial record list and the UI state snapshot associated with each operation record data are sorted in a preset time order to obtain the operation record list of the test process.

[0008] As an optional implementation, in the first aspect of the present invention, the test execution terminal runs test cases through a preset host execution module, including: The test execution terminal determines the current test execution environment information; The test execution terminal detects whether the test execution environment information contains preset host characteristic information; If the test execution environment information is detected to contain the host feature information, the test execution terminal will start a preset host running module to provide a test API; The test execution terminal runs test cases based on the test API.

[0009] As an optional implementation, in the first aspect of the present invention, the test execution environment information is determined in the following manner: The test management terminal displays the test interface content, which includes at least one test case execution component; The test management terminal obtains test execution operations for any of the test cases triggered by the user through the test interface content; The test management terminal constructs a test execution instruction based on the test run operation and sends the test execution instruction to the test execution terminal to trigger the test execution terminal to receive the test execution instruction and determine the current test execution environment information of the test execution terminal based on the test execution instruction.

[0010] As an optional implementation, in the first aspect of the present invention, the test management terminal constructs a time travel request based on the operation record list and the user-triggered viewing operation, including: The test management terminal determines the operation panel corresponding to the operation record list, so that the user can browse the operation description information of each operation item contained in the operation record list in the operation panel; The test management terminal detects the user's triggered operations on the operation panel; When it is detected that the triggering operation indicates that the user has triggered a viewing operation for the target operation item, the test management terminal obtains the operation index information of the target operation item according to the operation record list, wherein the target operation item is at least one of all the operation items; The test management terminal constructs a time travel request based on the operation index information of the target operation item.

[0011] As an optional implementation, in the first aspect of the present invention, the operation history tracing operation includes UI status tracing operation and / or operation video tracing operation; Furthermore, the test execution terminal performs corresponding operation history tracing operations based on the time travel request and the operation record list, including: The test execution terminal parses the time travel request and retrieves the target operation record data of the target operation item that matches the user's triggered operation from the operation record list; The test execution terminal sends the target operation record data to the test management terminal to trigger the test management terminal to display the target operation record data. The test execution terminal and the test management terminal achieve bidirectional communication through a preset VM Service channel.

[0012] As an optional implementation, in the first aspect of the present invention, the operation record list further includes operation video data, wherein the operation video data includes video data corresponding to the operation record data of each of the operation items; The target operation record data is displayed in the following manner: The test management terminal receives the target operation record data, parses the target operation record data, obtains the UI status of the operation time point of the target operation item, and displays the target operation record data in the operation panel. The test management terminal calculates the playback position of the operation time point of the target operation item in the operation video data based on the preset operation index information corresponding to the target operation record data, and jumps the operation video data to the playback position corresponding to the operation time point through a preset video player, so as to display the video data corresponding to the target operation record data.

[0013] A second aspect of this invention discloses a test processing apparatus based on operation logs and time travel. The apparatus is applied to an electronic device with an application installed, and the electronic device is communicatively connected to a network-attached storage device (NAT), accessing the NAT through the application. The apparatus is used to implement testing and traceability of at least one test case in the electronic device or the NAT. The apparatus includes a test execution end and a test management end. The test execution end includes a determination module, a first sending module, a first receiving module, and a traceability module. The test management end includes a second receiving module, a construction module, and a second sending module, wherein: The determining module is used to determine the list of operation records for the test process of running test cases by using a preset host running module and a preset data recording module; The first sending module is used to send the operation record list to the second receiving module; The second receiving module is used to receive the operation record list; The construction module is used to construct a time travel request based on the operation record list and the viewing operation triggered by the user. The second sending module is used to send the time travel request to the first receiving module; The first receiving module is used to receive the time travel request; The tracing module is used to perform corresponding operation history tracing operations based on the time travel request and the operation record list.

[0014] As an optional implementation, in the second aspect of the present invention, the specific method by which the determining module determines the list of operation records for the test process of running test cases through a preset host operation module and a preset data recording module includes: Run test cases using the preset host execution module; The operation record data of the operation time point of each operation item in the test process of the test case is obtained through a preset operation recorder; and the UI state snapshot corresponding to each operation item is determined through a preset screenshot manager. Based on the operation time points of all the operation items, perform a time association operation on all the operation record data and all the UI state snapshots, so that the operation record data of each operation item is associated with the UI state snapshot of that operation item; All operation record data of the operation items and the UI state snapshot associated with each operation record data are added to a preset initial record list. Based on the operation time of all the operation items, the operation record data of all the operation items in the initial record list and the UI state snapshot associated with each operation record data are sorted in a preset time order to obtain the operation record list of the test process.

[0015] As an optional implementation, in the second aspect of the present invention, the specific method by which the determining module runs the test cases through a preset host running module includes: Determine the current test execution environment information of the test execution terminal; Detect whether the test execution environment information contains preset host characteristic information; If the test execution environment information is detected to contain the host feature information, then the preset host running module is started to provide the test API; Run test cases based on the aforementioned test API.

[0016] As an optional implementation, in the second aspect of the invention, the test execution environment information is determined in the following manner: The test management terminal displays the test interface content, which includes at least one test case execution component; The test management terminal obtains test execution operations for any of the test cases triggered by the user through the test interface content; The test management terminal constructs a test execution instruction based on the test run operation and sends the test execution instruction to the test execution terminal to trigger the test execution terminal to receive the test execution instruction and determine the current test execution environment information of the test execution terminal based on the test execution instruction.

[0017] As an optional implementation, in a second aspect of the present invention, the specific method by which the construction module constructs the time travel request based on the operation record list and the user-triggered viewing operation includes: Determine the operation panel corresponding to the operation record list so that the user can browse the operation description information of each operation item contained in the operation record list in the operation panel; Detect the user's triggered operation on the operation panel; When it is detected that the triggering operation indicates that the user has triggered a viewing operation for the target operation item, the operation index information of the target operation item is obtained according to the operation record list, wherein the target operation item is at least one of all the operation items; A time travel request is constructed based on the operation index information of the target operation item.

[0018] As an optional implementation, in a second aspect of the present invention, the operation history tracing operation includes UI status tracing operation and / or operation video tracing operation; Furthermore, the specific methods by which the tracing module performs corresponding operation history tracing operations based on the time travel request and the operation record list include: The test execution terminal parses the time travel request and retrieves the target operation record data of the target operation item that matches the user's triggered operation from the operation record list; The test execution terminal sends the target operation record data to the test management terminal to trigger the test management terminal to display the target operation record data. The test execution terminal and the test management terminal achieve bidirectional communication through a preset VM Service channel.

[0019] As an optional implementation, in a second aspect of the present invention, the operation record list further includes operation video data, wherein the operation video data includes video data corresponding to the operation record data of each of the operation items; The target operation record data is displayed in the following manner: The test management terminal receives the target operation record data, parses the target operation record data, obtains the UI status of the operation time point of the target operation item, and displays the target operation record data in the operation panel. The test management terminal calculates the playback position of the operation time point of the target operation item in the operation video data based on the preset operation index information corresponding to the target operation record data, and jumps the operation video data to the playback position corresponding to the operation time point through a preset video player, so as to display the video data corresponding to the target operation record data.

[0020] A third aspect of the present invention discloses an electronic device, the electronic device comprising: Memory containing executable program code; A processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the test processing method based on operation records and time travel disclosed in the first aspect of the present invention.

[0021] A fourth aspect of the present invention discloses a test processing system based on operation logs and time travel, the system comprising at least a test processing apparatus based on operation logs and time travel as described in the second aspect of the present invention, and a network-attached storage device communicatively connected to the test processing apparatus; wherein the test processing apparatus performs test and traceability operations for test cases according to the test processing method based on operation logs and time travel as described in any one of the first aspects of the present invention; or, The system includes at least an electronic device as described in the third aspect of the present invention, and a network-attached storage device communicatively connected to the electronic device; wherein the electronic device performs test and traceability operations for test cases in accordance with the test processing method based on operation logs and time travel as described in any of the first aspects of the present invention.

[0022] The fifth aspect of the present invention discloses a computer storage medium storing computer instructions, which, when invoked, are used to execute the test processing method based on operation records and time travel disclosed in the first aspect of the present invention.

[0023] Compared with the prior art, the embodiments of the present invention have the following beneficial effects: Implementing this invention enables the test execution terminal to run tests on the host machine without relying on actual mobile devices or simulators, improving test execution efficiency. Furthermore, the data recording module determines a list of test process operation records for running test cases, recording the operation data of each operation item at the operation time point. This provides detailed and accurate recording of the entire test process, offering comprehensive evidence for subsequent analysis. After receiving the operation record list, the test management terminal constructs a time travel request based on the user-triggered viewing operation and sends it to the test execution terminal, allowing users to view the test process records as needed, enhancing operational flexibility and interactivity. Upon receiving the time travel request, the test execution terminal performs an operation history tracing operation based on the operation record list, allowing it to revert to the test operation status at a specific point in time. This ensures the accuracy and timeliness of tracing the operation records of the test process, facilitating rapid problem location and fault diagnosis. Attached Figure Description

[0024] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0025] Figure 1 This is a flowchart illustrating a test processing method based on operation records and time travel disclosed in an embodiment of the present invention; Figure 2 This is a flowchart illustrating another test processing method based on operation records and time travel disclosed in an embodiment of the present invention; Figure 3 This is a schematic diagram of the structure of a test processing device based on operation records and time travel disclosed in an embodiment of the present invention; Figure 4 This is a schematic diagram of the structure of an electronic device disclosed in an embodiment of the present invention; Figure 5 This is a schematic diagram of the structure of a test processing system based on operation records and time travel disclosed in an embodiment of the present invention; Figure 6 This is a schematic diagram of another test processing system based on operation records and time travel disclosed in an embodiment of the present invention. Detailed Implementation

[0026] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0027] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, apparatus, product, or end that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or ends.

[0028] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0029] This invention discloses a test processing method, apparatus, and device based on operation logs and time travel. The test execution terminal, through a host execution module, enables tests to run on the host machine without relying on actual mobile devices or simulators, improving test execution efficiency. Furthermore, the data recording module determines a list of test process operation logs for running test cases, recording the operation data of each operation item at the operation time point. This provides detailed and accurate recording of the entire test process, offering comprehensive evidence for subsequent analysis. After receiving the operation log list, the test management terminal constructs a time travel request based on user-triggered viewing operations and sends it to the test execution terminal, allowing users to view the test process records as needed, enhancing operational flexibility and interactivity. Upon receiving the time travel request, the test execution terminal performs an operation history tracing operation based on the operation log list, enabling retracing to the test operation state at a specific time point. This ensures the accuracy and timeliness of operation log tracing during the test process, facilitating rapid problem location and fault diagnosis. Detailed descriptions follow.

[0030] Example 1 Please see Figure 1 , Figure 1 This is a flowchart illustrating a test processing method based on operation records and time travel, as disclosed in an embodiment of the present invention. Figure 1 The described operation log-based and time-travel-based test processing method can be applied to electronic devices with installed applications, where the electronic device is communicatively connected to a network-attached storage device (NAT), and accesses the NAT via the application. This method is used to implement testing and traceability of at least one test case in the electronic device or NAT. This method can also be applied to an operation log-based and time-travel-based test processing device, which may include a test processing platform or a test processing server. The test processing server may include a cloud server or a local server; this embodiment of the invention is not limited to these. Figure 1 As shown, this test processing method based on operation logs and time travel may include the following operations: 101. The test execution terminal determines the operation record list of the test process for running test cases through the preset host running module and the preset data recording module, and sends the operation record list to the test management terminal.

[0031] In this embodiment of the invention, the test execution end and the test management end achieve bidirectional communication through a preset VM Service channel. Specifically, when the test management end starts, it first initializes the VM Service server, listening on the default port 9753 (configurable). The VM Service server adopts an asynchronous non-blocking architecture, which can support multiple test execution ends connecting simultaneously. After the server starts, it enters a waiting state, waiting for the test execution end applications to connect. The test execution end application is started using the Flutter run command, and the startup parameters include the VM Service port and the disabled service authentication code. After the test execution end application starts, it immediately attempts to connect to the VM Service server of the test management end. The connection establishment process includes TCP handshake, protocol negotiation, authentication verification (if enabled), and other steps. After the connection is successful, a bidirectional communication channel is established between the test execution end and the test management end. This communication channel is based on the Dart VM Service Protocol, which can support JSON and binary data transmission. After the channel is established, both parties can exchange version information and capability information to ensure protocol compatibility. Furthermore, a heartbeat mechanism can be established to periodically check the connection status of the channel, so as to automatically reconnect when the connection is lost. After the channel is established, the test execution application loads the test file (e.g., integration_test / main_test.dart), parses the test group and test case definitions in the test file's code, and loads the test configuration, including timeout, retry strategy, isolation mode, etc., and then initializes the test execution environment to prepare for test execution.

[0032] In this embodiment of the invention, optionally, the operation record list includes operation record data for each operation item's operation time point among multiple operation items in the testing process. Optionally, the operation record data may include at least one of operation type, operation parameters, operation result, timestamp, etc. The operation type may be a type of serialized operation, such as click, input, assertion, etc.; the operation parameters may be parameters of a serialized operation, such as Finder, text content, etc.; the operation result may be the result of a serialized operation, such as success, failure, timeout, etc.; the timestamp may be the timestamp of a serialized operation, used for timeline display. Further optionally, the operation record list also includes operation video data, which includes video data corresponding to the operation record data of each operation item in all operation items; this embodiment of the invention does not impose limitations on this.

[0033] 102. The test management terminal receives the list of operation records, and based on the list of operation records and the viewing operations triggered by the user, constructs a time travel request and sends the time travel request to the test execution terminal.

[0034] 103. The test execution terminal receives the time travel request and performs the corresponding operation history tracing operation based on the time travel request and the operation record list.

[0035] In this embodiment of the invention, the operation history tracing operation includes UI status tracing operation and / or operation video tracing operation.

[0036] It is evident that implementation Figure 1 The described test processing method based on operation logs and time travel enables the test execution end to run tests on the host machine without relying on real mobile devices or simulators, improving test execution efficiency. The data recording module determines a list of test process operation logs for running test cases, recording the operation data of each operation item at the operation time point. This provides detailed and accurate recording of the entire test process, offering comprehensive evidence for subsequent analysis. After receiving the operation log list, the test management end constructs a time travel request based on the user-triggered viewing operation and sends it to the test execution end, allowing users to view the test process records as needed, enhancing operational flexibility and interactivity. Upon receiving the time travel request, the test execution end performs an operation history tracing operation based on the operation log list, allowing it to trace back to the test operation status at a specific point in time. This ensures the accuracy and timeliness of operation log tracing during the test process, facilitating rapid problem location and troubleshooting.

[0037] In an optional embodiment, the test execution terminal in step 101 above determines the operation record list of the test process for running test cases through a preset host running module and a preset data recording module, which may include: The test execution terminal runs test cases through a preset host execution module; The test execution end uses a preset operation recorder to obtain operation record data for the operation time point of each operation item in the test process of the test case; and uses a preset screenshot manager to determine the UI state snapshot corresponding to each operation item. The test execution end performs a time association operation on all operation record data and all UI state snapshots based on the operation time points of all operation items, so that the operation record data of each operation item is associated with the UI state snapshot of that operation item; The test execution end adds the operation record data of all operation items and the UI state snapshot associated with each operation record data to the preset initial record list. Based on the operation time of all operation items, the operation record data of all operation items in the initial record list and the UI state snapshot associated with each operation record data are sorted in a preset time order to obtain the operation record list of the test process.

[0038] In this embodiment of the invention, when running test cases, the test execution application scans the specified test file directory to find all test files. Specifically, it identifies the standard format of test files, such as files containing the `test()` or `group()` function, and supports recursive scanning of subdirectories to find all test files. Then, it parses the test group and test case structure. Specifically, it parses the test code, identifies the definitions of test groups (groups) and test cases (tests), extracts information such as test names, test functions, and test configurations, and constructs a hierarchical test structure, forming a tree-like test organization. Next, it constructs a TestTree. Specifically, it organizes the parsed test groups and test cases into a tree structure. Each node in the test tree contains test information, such as name, type (group / test case), path, etc. The test tree supports nested structures, and a group can contain subgroups and test cases. Finally, it sends test metadata to the test management end. Specifically, it serializes the test tree into JSON or Protobuf format and sends the test metadata to the test management end through the VM Service channel. The metadata includes information such as the test tree structure, the number of tests, and the test path.

[0039] As can be seen, this optional embodiment can acquire operation record data for each operation item at the operation time point during the test through a preset operation recorder. It can comprehensively and in detail record the specific actions and states of the test execution, providing a rich data foundation for subsequent analysis. It can also use a preset screenshot manager to determine the UI state snapshot corresponding to each operation item, intuitively presenting the changes in the interface during the test, which helps users understand the test steps and interface interactions. Subsequently, the operation record data and UI state snapshots are time-correlated, so that the operation record data of each operation item is closely linked to its corresponding UI state. This facilitates the quick location of the interface state under a specific operation in subsequent analysis, which helps to improve the correlation between the operation record data of each operation item and the UI state, thereby enhancing the traceability of the test process and clearly restoring the complete scenario during test execution. The operation record data of all operation items and their associated UI state snapshots are added to the initial record list and sorted according to a preset time order to obtain the operation record list. The sorted operation record list can clearly display the test execution process according to the timeline, which is conducive to providing a data foundation for the time travel mechanism.

[0040] In this optional embodiment, as an optional implementation, the test execution terminal runs test cases through a preset host execution module, including: The test execution end determines the current test execution environment information; The test execution terminal checks whether the test execution environment information contains preset host characteristic information; If the test execution environment information is found to contain host characteristic information, the test execution terminal will start the preset host running module to provide the test API; The test execution end runs test cases based on the test API.

[0041] In this embodiment of the invention, optionally, the test execution environment information may include at least one of hardware configuration information, software version information, network status information, etc. Host characteristic information may include at least one of host hardware configuration characteristic information, host software version characteristic information, host network status characteristic information, etc., and this embodiment of the invention does not impose limitations on these aspects.

[0042] As can be seen, this optional implementation allows the test execution end to first determine its current test execution environment information, and when the environment information includes host characteristic information, it directly starts the preset host running module to provide test API, thereby enabling test cases to run directly on the host without the need for real mobile devices or simulators, which is beneficial to improving test execution efficiency and speed.

[0043] In this optional implementation, the test execution environment information may be determined in the following manner: The test management terminal displays the test interface content, which includes at least one component for running test cases. The test management system obtains test execution operations for any test case triggered by the user through the test interface content; The test management terminal constructs test execution instructions based on the test run operations and sends the test execution instructions to the test execution terminal to trigger the test execution terminal to receive the test execution instructions and determine the current test execution environment information of the test execution terminal based on the test execution instructions.

[0044] In this embodiment of the invention, the test management terminal receives test metadata sent by the test execution terminal through the VM Service channel, deserializes the test metadata, reconstructs the test tree structure, and verifies the integrity and correctness of the test metadata. The test management terminal constructs a test list UI. Specifically, based on the test tree structure, a visual test list interface is constructed. The test list is displayed using a tree control, supporting expansion and collapse. Each test item displays the test name, test type (group / test case), and test status icon. The test management terminal displays test groups and test cases. Test groups are displayed with folder icons, which can be expanded to view subgroups and test cases. Test cases are displayed with file icons, showing the test name. Initially, all test items are displayed in the "Not Run" state. The test management terminal waits for user operation. Specifically, after the interface initialization is completed, it enters a state waiting for user operation. The user can click the "Run All" button to execute all test cases, or the user can click the execute button for a single test case to execute a single test case. At the same time, the user can configure test options, such as enabling isolation mode and enabling retry.

[0045] In this embodiment of the invention, the test management terminal sends a test execution instruction. Specifically, the test management terminal constructs a test execution instruction based on the user's selection. The instruction includes a list of test cases to be executed and execution configurations (such as timeout and retry strategy), and sends the execution instruction to the test execution terminal through the VM Service channel.

[0046] In this embodiment of the invention, the test execution terminal receives the test execution instruction, parses the list of test cases to be executed, verifies the validity of the test cases, checks whether the test cases exist, and accurately tests the execution environment, including initializing the test controller, operation recorder, etc.

[0047] It should be noted that if isolation mode is enabled, a hot reboot must be performed before executing the test. A hot reboot will reload the application code, preserve the application instance, and clear all states of the previous test, including global variables, caches, singleton objects, etc., to ensure that the test starts in a clean environment.

[0048] As can be seen, this optional implementation can also present the running component of at least one test case in a visual interface by the test management terminal, which makes it convenient for users to trigger test running operations for any test case through the test interface, thereby automatically converting user operations into test execution instructions and sending them to the test execution terminal, simplifying the test startup process and improving operational efficiency.

[0049] Example 2 Please see Figure 2 , Figure 2 This is a flowchart illustrating a test processing method based on operation records and time travel, as disclosed in an embodiment of the present invention. Figure 2 The described operation log-based and time-travel-based test processing method can be applied to electronic devices with installed applications, where the electronic device is communicatively connected to a network-attached storage device (NAT), and accesses the NAT via the application. This method is used to implement testing and traceability of at least one test case in the electronic device or NAT. This method can also be applied to an operation log-based and time-travel-based test processing device, which may include a test processing platform or a test processing server. The test processing server may include a cloud server or a local server; this embodiment of the invention is not limited to these. Figure 2 As shown, this test processing method based on operation logs and time travel may include the following operations: 201. The test execution terminal determines the operation record list of the test process for running test cases through the preset host running module and the preset data recording module, and sends the operation record list to the test management terminal.

[0050] 202. The test management terminal receives a list of operation records.

[0051] In this embodiment of the invention, specifically, the test management terminal receives the operation history records sent by the test execution terminal through the VM Service channel, deserializes the operation history data, reconstructs the operation history list, and arranges the operation history in chronological order to form a complete timeline.

[0052] 203. The test management terminal determines the operation panel corresponding to the operation record list, so that users can browse the operation description information of each operation item contained in the operation record list in the operation panel.

[0053] In this embodiment of the invention, specifically, the test management terminal displays all operation records in the operation panel. Each operation item displays an operation type icon, a user-friendly description text, and a timestamp. It also supports clicking on the operation item's detailed information, including operation parameters, results, screenshots, etc.

[0054] 204. The test management terminal detects the user's triggered operations in the operation panel.

[0055] 205. When a trigger operation is detected, indicating that the user has triggered a view operation on the target operation item, the test management terminal obtains the operation index information of the target operation item based on the operation record list.

[0056] In this embodiment of the invention, the target operation item is at least one of all operation items. Specifically, the user browses the operation history in the operation panel of the test management interface. The operation history is displayed in the form of a timeline, making it easy for the user to click on the operation item and select the historical operation point to view.

[0057] 206. The test management terminal constructs a time travel request based on the operation index information of the target operation item.

[0058] 207. The test management terminal sends the time travel request to the test execution terminal.

[0059] In this embodiment of the invention, specifically, the test management terminal obtains the operation index based on the operation item selected by the user, constructs a time travel request containing information such as the operation index and request type, and sends the time travel request to the test execution terminal through the VM Service channel.

[0060] 208. The test execution terminal receives the time travel request and performs the corresponding operation history tracing operation based on the time travel request and the operation record list.

[0061] In this embodiment of the invention, for other descriptions of steps 201-208, please refer to the detailed description of steps 101-103 in Embodiment 1. These descriptions will not be repeated in this embodiment of the invention.

[0062] It is evident that implementation Figure 2 The described test processing method based on operation logs and time travel enables the test execution end to run tests on the host machine without relying on real mobile devices or simulators, improving test execution efficiency. The data recording module determines a list of test process operation logs for running test cases, recording the operation data of each operation item at the operation time point. This provides detailed and accurate recording of the entire test process, offering comprehensive evidence for subsequent analysis. After receiving the operation log list, the test management end constructs a time travel request based on user-triggered viewing actions and sends it to the test execution end, allowing users to view the test process records as needed, enhancing operational flexibility and interactivity. Upon receiving the time travel request, the test execution end performs an operation history tracing operation based on the operation log list, allowing users to revert to the test operation status at a specific point in time. This ensures the accuracy and timeliness of operation log tracing, facilitating rapid problem location and troubleshooting. Furthermore, the test management end can determine the corresponding operation panel for the operation log list, allowing users to browse the operation description information of each operation item, thus facilitating the selection of the operation log data for the operation item to be traced, further improving the accuracy and reliability of operation log tracing.

[0063] In an optional embodiment, the test execution terminal in step 208 above performs a corresponding operation history tracing operation based on the time travel request and the operation record list, including: The test execution end parses the time travel request and traces back from the operation record list to obtain the target operation record data of the target operation item that matches the user's triggered operation; The test execution terminal sends the target operation record data to the test management terminal to trigger the test management terminal to display and process the target operation record data.

[0064] In this embodiment of the invention, the test execution terminal receives a time travel request, parses the operation index, and looks up the corresponding StateSnapshot object based on the operation index to determine the UI state snapshot. The snapshot stores the UI state information at that operation point. The test execution terminal restores the UI state to a specified point in time. Specifically, it restores the Widget tree structure from the StateSnapshot object, including the type, attributes, and child Widgets of all Widgets; restores the rendering object information, including layout information, drawing information, and constraint information; restores the operation context, including operation parameters, operation results, and other information; loads the corresponding UI screenshot. Specifically, it obtains the UI screenshot data or screenshot file path from the StateSnapshot object. If the screenshot data is in memory, it is loaded directly; if the screenshot is a file path, the screenshot file is loaded from the file system. The state and screenshot data are returned to the test management terminal. Specifically, the restored UI state and screenshot data are serialized and returned to the test management terminal through the VM Service channel. The data includes Widget tree information, rendering object information, screenshot data, etc.

[0065] As can be seen, this optional embodiment can parse the time travel request through the test execution terminal, trace the target operation record data of the target operation item selected by the user from the operation record list, accurately match the target operation record data, and enable the test management terminal to accurately display the target operation record data that matches the operation item selected by the user, so that the user can view the required test operation information in an intuitive and clear way.

[0066] In this optional embodiment, as an optional implementation, the target operation log data is displayed in the following manner: The test management terminal receives the target operation record data, parses the target operation record data, obtains the UI status of the operation time point of the target operation item, and displays the UI status of the target operation record data in the operation panel; The test management terminal calculates the playback position of the target operation item's operation time point in the operation video data based on the operation index information corresponding to the preset target operation record data, and jumps to the playback position corresponding to the operation time point through the preset video player to display the video data corresponding to the target operation record data.

[0067] As can be seen, this optional implementation can parse the target operation record data through the test management terminal, obtain the UI state of the target operation item's operation time point, and calculate the playback position of the target operation item's operation time point in the operation video data based on the preset operation index information corresponding to the target operation record data. Then, through the video player, the operation video data can be jumped to that playback position to display the video data corresponding to the target operation record data, thereby achieving accurate positioning of the UI state and video data of the target operation item.

[0068] Example 3 Please see Figure 3 , Figure 3 This is a schematic diagram of a test processing device based on operation records and time travel, as disclosed in an embodiment of the present invention. Figure 3 The described test processing apparatus based on operation logs and time travel can be applied to electronic devices with installed applications, where the electronic device is communicatively connected to a network-attached storage device (NAT), and accesses the NAT via the application. The apparatus is used to perform testing and traceability of at least one test case in the electronic device or NAT; and the apparatus may include a test processing platform or a test processing server, wherein the test processing server may include a cloud server or a local server, without limitation in the embodiments of the present invention. Figure 3 As shown, the test processing device based on operation records and time travel may include a test execution terminal 30 and a test management terminal 40. The test execution terminal includes a determination module 301, a first sending module 302, a first receiving module 303, and a traceability module 304. The test management terminal includes a second receiving module 401, a construction module 402, and a second sending module 403, wherein: The determination module 301 is used to determine the list of operation records for the test process of running test cases through a preset host operation module and a preset data recording module.

[0069] The first sending module 302 is used to send the operation record list to the second receiving module 401.

[0070] The second receiving module 401 is used to receive the operation record list.

[0071] Module 402 is used to construct a time travel request based on the list of operation records and the viewing operation triggered by the user.

[0072] The second sending module 403 is used to send the time travel request to the first receiving module 303.

[0073] The first receiving module 303 is used to receive time travel requests.

[0074] The traceability module 304 is used to perform corresponding operation history traceability operations based on the time travel request and the operation record list.

[0075] It is evident that implementation Figure 3 The described test processing device based on operation logs and time travel enables the test execution terminal to run tests on the host machine without relying on real mobile devices or simulators, improving test execution efficiency. The data recording module determines a list of test process operation logs for running test cases, recording the operation data of each operation item at the operation time point. This provides detailed and accurate recording of the entire test process, offering comprehensive evidence for subsequent analysis. After receiving the operation log list, the test management terminal constructs a time travel request based on the user-triggered viewing operation and sends it to the test execution terminal, allowing users to view the test process records as needed, enhancing operational flexibility and interactivity. Upon receiving the time travel request, the test execution terminal performs an operation history tracing operation based on the operation log list, allowing it to revert to the test operation status at a specific point in time. This ensures the accuracy and timeliness of the operation record tracing during the test process, facilitating rapid problem location and fault diagnosis.

[0076] In an optional embodiment, the specific method by which the determining module 301 determines the list of operation records for the test process of running test cases through a preset host operation module and a preset data recording module includes: Run test cases using the preset host execution module; The system uses a pre-defined operation recorder to acquire operation record data for each operation time point in the test process of the test case; and uses a pre-defined screenshot manager to determine the UI state snapshot corresponding to each operation item. Based on the operation time of all operation items, perform time association operations on all operation record data and all UI state snapshots, so that the operation record data of each operation item is associated with the UI state snapshot of that operation item; Add the operation record data of all operation items and the UI state snapshot associated with each operation record data to the preset initial record list. Then, based on the operation time of all operation items, sort the operation record data of all operation items in the initial record list and the UI state snapshot associated with each operation record data according to the preset time order to obtain the operation record list of the test process.

[0077] As can be seen, this optional embodiment can acquire operation record data for each operation item at the operation time point during the test through a preset operation recorder. It can comprehensively and in detail record the specific actions and states of the test execution, providing a rich data foundation for subsequent analysis. It can also use a preset screenshot manager to determine the UI state snapshot corresponding to each operation item, intuitively presenting the changes in the interface during the test, which helps users understand the test steps and interface interactions. Subsequently, the operation record data and UI state snapshots are time-correlated, so that the operation record data of each operation item is closely linked to its corresponding UI state. This facilitates the quick location of the interface state under a specific operation in subsequent analysis, which helps to improve the correlation between the operation record data of each operation item and the UI state, thereby enhancing the traceability of the test process and clearly restoring the complete scenario during test execution. The operation record data of all operation items and their associated UI state snapshots are added to the initial record list and sorted according to a preset time order to obtain the operation record list. The sorted operation record list can clearly display the test execution process according to the timeline, which is conducive to providing a data foundation for the time travel mechanism.

[0078] In this optional embodiment, as an optional implementation method, the specific way in which the determining module 301 runs test cases through a preset host running module includes: Determine the current test execution environment information of the test execution terminal; Check whether the test execution environment information contains preset host characteristic information; If the test execution environment information is found to contain host characteristic information, the preset host running module will be started to provide the test API; Run test cases based on the test API.

[0079] As can be seen, this optional implementation allows the test execution end to first determine its current test execution environment information, and when the environment information includes host characteristic information, it directly starts the preset host running module to provide test API, thereby enabling test cases to run directly on the host without the need for real mobile devices or simulators, which is beneficial to improving test execution efficiency and speed.

[0080] In this optional implementation, the test execution environment information may be determined in the following manner: The test management terminal displays the test interface content, which includes at least one component for running test cases. The test management system obtains test execution operations for any test case triggered by the user through the test interface content; The test management terminal constructs test execution instructions based on the test run operations and sends the test execution instructions to the test execution terminal to trigger the test execution terminal to receive the test execution instructions and determine the current test execution environment information of the test execution terminal based on the test execution instructions.

[0081] As can be seen, this optional implementation can also present the running component of at least one test case in a visual interface by the test management terminal, which makes it convenient for users to trigger test running operations for any test case through the test interface, thereby automatically converting user operations into test execution instructions and sending them to the test execution terminal, simplifying the test startup process and improving operational efficiency.

[0082] In another optional embodiment, the construction module 402 constructs the time travel request based on the operation log list and the user-triggered viewing operation in the following specific ways: Determine the operation panel corresponding to the operation record list so that users can browse the operation description information of each operation item contained in the operation record list in the operation panel; Detect user actions triggered in the control panel; When a trigger operation is detected, indicating that the user has triggered a view operation on the target operation item, the operation index information of the target operation item is obtained according to the operation record list. The target operation item is at least one of all operation items. Construct a time travel request based on the operation index information of the target operation item.

[0083] As can be seen, this optional embodiment can determine the operation panel corresponding to the operation record list through the test management terminal, which makes it convenient for users to browse the operation description information of each operation item, thereby making it easier for users to select the operation record data of the operation item to be traced, which is conducive to further improving the accuracy and reliability of operation record tracing.

[0084] In another optional embodiment, the operation history tracing operation includes UI status tracing operation and / or operation video tracing operation. The specific method by which the tracing module 304 performs the corresponding operation history tracing operation based on the time travel request and the operation record list includes: The test execution end parses the time travel request and traces back from the operation record list to obtain the target operation record data of the target operation item that matches the user's triggered operation; The test execution end sends the target operation record data to the test management end to trigger the test management end to display and process the target operation record data. The test execution end and the test management end achieve bidirectional communication through a preset VM Service channel.

[0085] As can be seen, this optional embodiment can parse the time travel request through the test execution terminal, trace the target operation record data of the target operation item selected by the user from the operation record list, accurately match the target operation record data, and enable the test management terminal to accurately display the target operation record data that matches the operation item selected by the user, so that the user can view the required test operation information in an intuitive and clear way.

[0086] In this optional embodiment, as an alternative implementation, the operation log list further includes operation video data, which comprises video data corresponding to the operation log data of each operation item. The target operation log data is displayed in the following manner: The test management terminal receives the target operation record data, parses the target operation record data, obtains the UI status of the operation time point of the target operation item, and displays the UI status of the target operation record data in the operation panel; The test management terminal calculates the playback position of the target operation item's operation time point in the operation video data based on the operation index information corresponding to the preset target operation record data, and jumps to the playback position corresponding to the operation time point through the preset video player to display the video data corresponding to the target operation record data.

[0087] As can be seen, this optional implementation can parse the target operation record data through the test management terminal, obtain the UI state of the target operation item's operation time point, and calculate the playback position of the target operation item's operation time point in the operation video data based on the preset operation index information corresponding to the target operation record data. Then, through the video player, the operation video data can be jumped to that playback position to display the video data corresponding to the target operation record data, thereby achieving accurate positioning of the UI state and video data of the target operation item.

[0088] Example 4 Please see Figure 4 , Figure 4 This is a schematic diagram of the structure of an electronic device disclosed in an embodiment of the present invention. For example... Figure 4 As shown, the electronic device may include: Memory 501 storing executable program code; Processor 502 coupled to memory 501; The processor 502 calls the executable program code stored in the memory 501 to execute the steps in the test processing method based on operation records and time travel described in Embodiment 1 or Embodiment 2 of the present invention.

[0089] Example 5 Please see Figure 5 , Figure 5This is a schematic diagram of the structure of a test processing system based on operation records and time travel, as disclosed in an embodiment of the present invention. Figure 5 As shown, the system includes at least a test processing device 30 as described in Embodiment 3 of the present invention, and a network-attached storage device 40 communicatively connected to the test processing device 30. The test processing device 30 performs test and traceability operations for test cases according to the test processing method based on operation records and time travel as described in Embodiment 1 or Embodiment 2 of the present invention; or, Please see Figure 6 , Figure 6 This is a schematic diagram of another test processing system based on operation logs and time travel disclosed in an embodiment of the present invention, as shown below. Figure 6 As shown, the system includes at least an electronic device 50 as described in Embodiment 4 of the present invention, and a network-attached storage device 40 communicatively connected to the electronic device 50. The electronic device 50 performs test and traceability operations for test cases in accordance with the test processing method based on operation records and time travel as described in Embodiment 1 or Embodiment 2 of the present invention.

[0090] Example 6 This invention discloses a computer storage medium storing computer instructions. When these computer instructions are invoked, they are used to execute the steps in the test processing method based on operation records and time travel described in Embodiment 1 or Embodiment 2 of this invention.

[0091] Example 7 This invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform the steps in the test processing method based on operation records and time travel described in Embodiment 1 or Embodiment 2.

[0092] The device embodiments described above are merely illustrative. The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0093] Through the detailed description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, including read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-Erasable Programmable Read-Only Memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.

[0094] Finally, it should be noted that the test processing method, apparatus, and device based on operation records and time travel disclosed in the embodiments of the present invention are merely preferred embodiments of the present invention and are only used to illustrate the technical solutions of the present invention, not to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features therein; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A test processing method based on operation logs and time travel, characterized in that, The method is applied to an electronic device with an application installed, and the electronic device is communicatively connected to a network-attached storage device (NAT), and accesses the NAT through the application. The method is used to implement testing and traceability of at least one test case in the electronic device or the NAT; wherein the method includes: The test execution terminal determines the operation record list of the test process for running test cases through a preset host running module and a preset data recording module, and sends the operation record list to the test management terminal. The operation record list includes operation record data of the operation time point of each of the multiple operation items in the test process. The test management terminal receives the operation record list, and constructs a time travel request based on the operation record list and the viewing operation triggered by the user, and sends the time travel request to the test execution terminal; The test execution terminal receives the time travel request and performs the corresponding operation history tracing operation based on the time travel request and the operation record list.

2. The test processing method based on operation records and time travel according to claim 1, characterized in that, The test execution terminal, through a preset host operation module and a preset data recording module, determines a list of operation records for the test process of running test cases, including: The test execution terminal runs test cases through a preset host execution module; The test execution terminal obtains operation record data of the operation time point of each operation item in the test process of the test case through a preset operation recorder; and determines the UI state snapshot corresponding to each operation item through a preset screenshot manager. The test execution terminal performs a time association operation on all operation record data and all UI state snapshots based on the operation time points of all operation items, so that the operation record data of each operation item is associated with the UI state snapshot of that operation item; The test execution terminal adds the operation record data of all the operation items and the UI state snapshot associated with each operation record data to a preset initial record list. Based on the operation time points of all the operation items, the operation record data of all the operation items in the initial record list and the UI state snapshot associated with each operation record data are sorted in a preset time order to obtain the operation record list of the test process.

3. The test processing method based on operation records and time travel according to claim 2, characterized in that, The test execution terminal runs test cases through a preset host execution module, including: The test execution terminal determines the current test execution environment information; The test execution terminal detects whether the test execution environment information contains preset host characteristic information; If the test execution environment information is detected to contain the host feature information, the test execution terminal will start a preset host running module to provide a test API; The test execution terminal runs test cases based on the test API.

4. The test processing method based on operation records and time travel according to claim 3, characterized in that, The test execution environment information is determined in the following way: The test management terminal displays the test interface content, which includes at least one test case execution component; The test management terminal obtains test execution operations for any of the test cases triggered by the user through the test interface content; The test management terminal constructs a test execution instruction based on the test run operation and sends the test execution instruction to the test execution terminal to trigger the test execution terminal to receive the test execution instruction and determine the current test execution environment information of the test execution terminal based on the test execution instruction.

5. The test processing method based on operation records and time travel according to any one of claims 1-4, characterized in that, The test management terminal constructs a time travel request based on the operation record list and the user-triggered viewing operation, including: The test management terminal determines the operation panel corresponding to the operation record list, so that the user can browse the operation description information of each operation item contained in the operation record list in the operation panel; The test management terminal detects the user's triggered operations on the operation panel; When it is detected that the triggering operation indicates that the user has triggered a viewing operation for the target operation item, the test management terminal obtains the operation index information of the target operation item according to the operation record list, wherein the target operation item is at least one of all the operation items; The test management terminal constructs a time travel request based on the operation index information of the target operation item.

6. The test processing method based on operation records and time travel according to claim 5, characterized in that, The operation history tracing operation includes UI status tracing operation and / or operation video tracing operation; Furthermore, the test execution terminal performs corresponding operation history tracing operations based on the time travel request and the operation record list, including: The test execution terminal parses the time travel request and retrieves the target operation record data of the target operation item that matches the user's triggered operation from the operation record list; The test execution terminal sends the target operation record data to the test management terminal to trigger the test management terminal to display the target operation record data. The test execution terminal and the test management terminal achieve bidirectional communication through a preset VM Service channel.

7. The test processing method based on operation records and time travel according to claim 6, characterized in that, The operation record list also includes operation video data, which includes video data corresponding to the operation record data of each of the operation items. The target operation record data is displayed in the following manner: The test management terminal receives the target operation record data, parses the target operation record data, obtains the UI status of the operation time point of the target operation item, and displays the target operation record data in the operation panel. The test management terminal calculates the playback position of the operation time point of the target operation item in the operation video data based on the preset operation index information corresponding to the target operation record data, and jumps the operation video data to the playback position corresponding to the operation time point through a preset video player, so as to display the video data corresponding to the target operation record data.

8. A test processing apparatus based on operation records and time travel, characterized in that, The device is applied to an electronic device with an application installed, and the electronic device is communicatively connected to a network-attached storage device (NAT), accessing the NAT through the application. The device is used to implement testing and traceability of at least one test case in the electronic device or the NAT. The device includes a test execution end and a test management end. The test execution end includes a determination module, a first sending module, a first receiving module, and a traceability module. The test management end includes a second receiving module, a construction module, and a second sending module, wherein: The determining module is used to determine the list of operation records for the test process of running test cases through a preset host running module and a preset data recording module; The first sending module is used to send the operation record list to the second receiving module; The second receiving module is used to receive the operation record list; The construction module is used to construct a time travel request based on the operation record list and the viewing operation triggered by the user. The second sending module is used to send the time travel request to the first receiving module; The first receiving module is used to receive the time travel request; The traceability module is used to perform corresponding operation history traceability operations based on the time travel request and the operation record list.

9. An electronic device, characterized in that, The electronic device includes: Memory containing executable program code; A processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the test processing method based on operation records and time travel as described in any one of claims 1-7.

10. A test processing system based on operation logs and time travel, characterized in that, The system includes at least the test processing apparatus based on operation logs and time travel as described in claim 8, and a network-attached storage device communicatively connected to the test processing apparatus; wherein the test processing apparatus performs test and traceability operations for test cases according to the test processing method based on operation logs and time travel as described in any one of claims 1-7; or, The system includes at least the electronic device as described in claim 9, and a network-attached storage device communicatively connected to the electronic device; wherein the electronic device performs test and traceability operations for test cases in accordance with the test processing method based on operation logs and time travel as described in any one of claims 1-7.

11. A computer storage medium, characterized in that, The computer storage medium stores computer instructions, which, when invoked, are used to execute the test processing method based on operation records and time travel as described in any one of claims 1-7.