A method and system for replaying user operated behavior of a lightcat device
By pre-writing the internal command functions of the playback tool into the optical modem device, the internal and external interfaces are unified, which solves the problems of tediousness and inaccuracy in reproducing configuration errors of the optical modem device, and improves testing efficiency and accuracy.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN JIXIANG TENGDA TECH
- Filing Date
- 2022-12-21
- Publication Date
- 2026-05-08
AI Technical Summary
In existing technologies, reproducing configuration errors in optical modem devices is cumbersome and the accuracy is difficult to guarantee, which increases the difficulty for R&D personnel to solve problems.
This paper provides a method and system for replaying user operations on optical modem devices. By pre-writing internal command functions of the replay tool into the optical modem device, the internal and external test interfaces are unified, and the replay tool is used to parse and construct protocol messages for accurate configuration reproduction.
It improves the efficiency and accuracy of optical modem testing, helps R&D personnel quickly locate and resolve configuration errors, and enhances the user experience for testers.
Smart Images

Figure CN115833945B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of optical modem technology, and specifically to a method and system for replaying user operations on optical modem devices. Background Technology
[0002] With the development of communication technology, optical communication is widely used in home and office communications. Every home or office using optical communication uses an optical modem. An optical modem, commonly known as an optical cat, is a transceiver device that converts optical Ethernet signals into signals of other protocols. It utilizes a pair of optical fibers for point-to-point optical transmission of single E1, single V.35, or single 10BaseT signals. It is used for the conversion of photoelectric signals and interface protocols in wide area networks (WANs), connecting to routers, and facilitating WAN access.
[0003] During the configuration of optical modems, configuration errors often occur, leading to malfunctions or bugs in the modem's internal software. To facilitate problem identification and resolution by developers, it's common practice to reproduce these errors. Current industry practices for reproduction include: one is relying on user descriptions of their actions, but the success rate is unpredictable; another involves developer intervention, using system configuration, system information, and debug logs to pinpoint the problem on-site, but this doesn't allow for the derivation of the user's configuration process and can only be considered a workaround. Existing reproduction methods are cumbersome and their accuracy is questionable, increasing the difficulty for developers to resolve errors in optical modems. Summary of the Invention
[0004] To address the problems in the prior art, this invention provides a method and system for replaying user actions on optical modem devices.
[0005] The present invention provides a method for replaying user actions on an optical modem, comprising the following steps:
[0006] S1: Import the operation configuration information data stored in the optical modem into the playback tool. The optical modem is pre-written with the internal command functions required by the playback tool before leaving the factory. The playback tool can directly call the command functions inside the optical modem to achieve the unification of internal and external test interfaces.
[0007] S2: The data parsing module of the playback tool parses the operation configuration information data, which includes the function configured for the operation, the parameters passed, and the execution time.
[0008] S3: Initialize the protocol interface and construct the corresponding protocol message based on the parsed operation data information;
[0009] S4: After the corresponding protocol message is constructed, the optical modem sends the corresponding messages and receives responses in sequence according to the protocol message sending sequence read from the parsed operation data information.
[0010] S5: End of replaying user operation process.
[0011] The present invention is further improved so that the playback tool has the functions of playback, parsing and incorporating test cases. Before step S3, the staff also selects the functional requirements. When the playback function is selected, step 3 is performed.
[0012] In a further improvement, when the operator selects the parsing function, the specific steps of the parsing function are as follows:
[0013] A01: Extract the corresponding data from the parsed operation configuration information data;
[0014] A02: Automatically draw the function call flow during the operation by extracting the corresponding data;
[0015] A03: The parsing process has ended.
[0016] In a further improvement of the present invention, the corresponding data in step A01 includes the name of the called function, the execution time, and the execution parameters.
[0017] In a further improvement to this invention, when the staff selects the function to include the test cases, the specific steps for this function are as follows:
[0018] B01: Extract the corresponding data from the parsed operation configuration information data;
[0019] B02: The extracted data will be stored sequentially in the database of the test cases;
[0020] B03: The function of incorporating test cases has ended.
[0021] This invention also provides a system for replaying user operations on an optical modem, and a method for replaying user operations on an optical modem. The system includes a playback end and an optical modem end. The optical modem end includes an operation recording module, a data storage module, and an optical modem communication module. The operation recording module converts user configuration operations on the optical modem end into data information and stores it in the data storage module. The playback end includes an import data module, a data parsing module, a message construction module, and an information communication module. The import data module receives data information recorded by the operation recording module. The data parsing module parses the data information recorded by the operation recording module. The message construction module constructs corresponding protocol messages based on the data parsed by the parsing module. The information communication module establishes communication with the optical modem communication module.
[0022] The present invention is further improved in that the data storage module includes local storage and external storage.
[0023] Compared with the prior art, the beneficial effects of the present invention are as follows: the method can effectively solve the problems of inaccurate backtracking and low testing efficiency in the prior art when using user recall or configuration data to trace back the configuration process to solve error information. The method is easy to operate; simply import the operation configuration information data stored in the optical modem into the playback tool to complete the corresponding playback operation. Under the same environment, the configuration request is re-initiated, and the configuration of the optical modem is accurately replayed, helping testers to efficiently solve error problems and improving the testing efficiency and user experience of testers. Attached Figure Description
[0024] To more clearly illustrate the solutions in this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0025] Figure 1 This is a block diagram of the playback end of a system for the method of replaying user operations on an optical modem device according to the present invention;
[0026] Figure 2 This is a block diagram of the optical modem end of a system for applying the method of replaying user operations on the optical modem device according to the present invention;
[0027] Figure 3 This is a flowchart of the method for replaying user operations on the optical modem device according to the present invention. Detailed Implementation
[0028] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs; the terminology used herein in the specification of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "comprising" and "having," and any variations thereof, in the specification, claims, and foregoing drawings of this application are intended to cover non-exclusive inclusion. The terms "first," "second," etc., in the specification, claims, or foregoing drawings of this application are used to distinguish different objects, not to describe a particular order.
[0029] 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 this application. 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.
[0030] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
[0031] like Figure 1-2 As shown, the present invention provides a system for replaying user operations on an optical modem device, including a playback end and an optical modem end. The optical modem end is an optical modem device, and the playback end is a computer with playback tool software installed on the computer.
[0032] The computer is connected to the optical modem via a data cable.
[0033] The optical modem includes an operation log module, a data storage module, and an optical modem communication module. The operation log module is an operation log interface that is written into the optical modem at the factory. The operation log interface can convert the configuration operations performed by the user on the optical modem into data information and store the data information in the data storage module.
[0034] The playback tool software includes an import data module, a data parsing module, a message construction module, and an information communication module. The import data module is used to receive data information recorded by the operation record module. The data parsing module is used to parse the data information recorded by the operation record module. The message construction module is used to construct corresponding protocol messages based on the data parsed by the parsing module. The information communication module is used to establish communication with the optical modem communication module.
[0035] This invention provides a method for replaying user actions on an optical modem.
[0036] like Figure 3As shown, this example replays the entire process of a user's actions on the optical modem. The detailed implementation method for replaying the user's actions on the optical modem in this example is as follows:
[0037] Importing the recorded operation configuration information of the optical modem. Importing the recorded operation configuration information into the playback tool.
[0038] After the user performs the operation and configuration on the optical modem, the recording module of the optical modem will record the configuration process in the form of data fields and store it in the data storage module.
[0039] The logging module records configuration information such as the function name called, the parameters passed, and the execution time, which is equivalent to an operation log.
[0040] The data storage module offers two storage methods: local storage and external storage. External storage is used for storing large amounts of data. External storage can be achieved by plugging a USB flash drive into the optical modem or by using network storage. Users can install data storage tools on another computer and connect and communicate with the LAN side of the optical modem for data transmission and storage.
[0041] After a user encountered a problem during the configuration process of the optical modem, the R&D personnel imported the operation configuration information data into the import data module of the playback tool to import the data.
[0042] The current testing process for optical modems requires either setting up a dedicated internal testability interface or using an externally provided interface. However, the internal and external testing interfaces are not consistent, resulting in low testing efficiency.
[0043] In this solution, the functions required for the playback tool to be called are pre-written into the optical modem before it leaves the factory. This allows the playback tool to directly call the command functions inside the optical modem to achieve the same effect as external access calls. This solves the problem of inconsistent internal and external test interfaces in the current testing of optical modems. In other words, this solution achieves unified internal and external interfaces and improves testing efficiency.
[0044] The imported operation configuration information data is parsed and divided into multiple parameter fields.
[0045] By parsing the operation configuration information data, preparations are made for the subsequent execution of functions by the playback tool.
[0046] Testers select the functions of the replay tool, which include replaying, parsing, and incorporating test cases.
[0047] Before executing the function, a selection is made. When the tester selects the playback function, the playback tool calls the command function inside the optical modem to initialize the protocol interface.
[0048] Based on the parsed operation configuration information data, the corresponding protocol message is constructed using the constructor.
[0049] After the corresponding protocol message is constructed, the optical modem message sending function is called according to the protocol message sending sequence read from the parsed operation data information to send and receive the constructed messages in sequence.
[0050] Once all messages have been sent sequentially, the playback function ends.
[0051] Based on the playback, testers can automatically backtrack and re-initiate configuration requests under the same environment. By accurately replaying the playback, they can analyze and resolve configuration errors in the optical modem, thereby improving testing efficiency.
[0052] When testers select the parsing function, the playback tool extracts the corresponding data from the parsed operation configuration information.
[0053] The extracted data includes the function names, execution times, and execution parameters called by the user configuration operation. Based on the extracted data, the function call flow during the user configuration operation is automatically drawn.
[0054] Once the drawing is complete, the parsing function ends.
[0055] Testers analyze optical modem errors based on the drawn flowchart, gaining a more intuitive view of the data changes during the configuration process and improving testing efficiency.
[0056] When testers select to include a function in a test case, the replay tool extracts the corresponding data from the parsed operation configuration information.
[0057] The extracted data will be stored sequentially in the database of test cases used to test the optical modem device.
[0058] Once storage is complete, the function of incorporating test cases is finished.
[0059] When testing optical modem devices, testers often need to list all the test scenarios, write them into test cases, and add them to a test case database to provide a basis for subsequent test cases. The test tools then call the test cases in the test case database to test the optical modem devices.
[0060] By incorporating test case functionality, test cases can be automatically generated and stored in the test case database when new optical modem devices malfunction. This provides a foundation for updating and iterating the database and optical modem devices, thereby improving the testing efficiency of testers.
[0061] In summary, the method and system for replaying user operations on optical modem devices provided by this invention effectively solves the problems of inaccurate backtracking and low testing efficiency in existing technologies that rely on user recollection or deducing the configuration process from configuration data to resolve error information. This method is convenient to use; simply import the operation configuration information stored in the optical modem device into the playback tool to complete the corresponding playback operation. Under the same environment, a new configuration request is initiated, accurately replaying the configuration of the optical modem. This helps testers efficiently resolve errors, improving testing efficiency and user experience.
[0062] The specific embodiments described above are preferred embodiments of the present invention and are not intended to limit the specific scope of the present invention. The scope of the present invention includes, but is not limited to, these specific embodiments. All equivalent changes made in accordance with the present invention are within the protection scope of the present invention.
Claims
1. A method for replaying user actions on an optical modem, characterized in that, Includes the following steps: S1: Import the operation configuration information data stored in the optical modem into the playback tool. The optical modem is pre-written with the internal command functions required by the playback tool before leaving the factory. The playback tool can directly call the command functions inside the optical modem to achieve the unification of internal and external test interfaces. S2: The data parsing module of the playback tool parses the operation configuration information data, which includes the operation configuration function, the passed parameters, and the execution time; S3: Initialize the protocol interface and construct the corresponding protocol message based on the parsed operation data information; S4: After the corresponding protocol message is constructed, the optical modem sends the corresponding messages and receives responses in sequence according to the protocol message sending sequence read from the parsed operation data information. S5: End of replaying user operation process.
2. The method for replaying user operations on the optical modem device according to claim 1, characterized in that: The playback tool's functions include playback, parsing, and incorporation of test cases. Before step S3, staff members select functional requirements. When the playback function is selected, step 3 is performed.
3. The method for replaying user operations on the optical modem device according to claim 2, characterized in that: When the staff selects the parsing function, the specific steps for the parsing function are as follows: A01: Extract the corresponding data from the parsed operation configuration information data; A02: Automatically draw the function call flow during the operation by extracting the corresponding data; A03: The parsing process has ended.
4. The method for replaying user operations on the optical modem device according to claim 3, characterized in that: The corresponding data in step A01 includes the name of the called function, the execution time, and the execution parameters.
5. The method for replaying user operations on the optical modem device according to claim 2, characterized in that: Once the staff selects the "Include in Test Cases" feature, the specific steps for doing so are as follows: B01: Extract the corresponding data from the parsed operation configuration information data; B02: The extracted data will be stored sequentially in the database of the test cases; B03: The function of incorporating test cases has ended.
6. A system for replaying user operations on an optical modem, used to implement the method for replaying user operations on an optical modem as described in any one of claims 1-5, characterized in that: The system includes a playback end and an optical modem end. The optical modem end includes an operation recording module, a data storage module, and an optical modem communication module. The operation recording module converts the configuration operations performed by the user on the optical modem end into data information and stores it in the data storage module. The playback end includes an import data module, a data parsing module, a message construction module, and an information communication module. The import data module receives the data information recorded by the operation recording module. The data parsing module parses the data information recorded by the operation recording module. The message construction module constructs corresponding protocol messages based on the data parsed by the parsing module. The information communication module establishes communication with the optical modem communication module.
7. The system for replaying user operations on the optical modem device according to claim 6, characterized in that: The data storage module offers both local and external storage options.
Citation Information
Patent Citations
Operational analysis system for a communication device
US20040261061A1