CN-115833945-B - Method and system for replaying behavior of user operating cat equipment
Abstract
The invention provides a method and a system for replaying the behavior of user operation light cat equipment, which belong to the technical field of light cat equipment; the data analysis module of the playback tool analyzes the operation configuration information data, initializes the protocol interface, constructs corresponding protocol messages according to the analyzed operation data information, after the corresponding protocol message is constructed, sequentially sends corresponding messages and receives responses according to the protocol message sending time sequence read by the analysis operation data information, and the operation flow of the playback user is ended. The method has the advantages that the problem of inaccurate backtracking in the prior art can be solved, the configuration request can be reinitiated according to the same environment, the configuration of the light cat is accurately replayed, and the replay accuracy and the test efficiency of testers are improved.
Inventors
- GUAN WEIBO
- LI QUAN
Assignees
- 深圳市吉祥腾达科技有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20221221
Claims (7)
- 1. A method of replaying user-operated light cat device behavior, comprising the steps of: S1, importing operation configuration information data stored by a light cat device into a playback tool, pre-writing an internal command function required by the playback tool before leaving a factory of the light cat device, wherein the playback tool can directly call the internal command function of the light cat to realize unification of internal and external test interfaces; S2, a data analysis module of the playback tool analyzes operation configuration information data, wherein the operation configuration information data comprises an operation configuration function, a transferred parameter and execution time; S3, initializing a protocol interface and constructing a corresponding protocol message according to the analyzed operation data information; S4, after the construction of the corresponding protocol message is completed, according to the protocol message sending time sequence read by the analysis operation data information, enabling the light cat to sequentially send the corresponding message and receive the response; And S5, ending the operation flow of the playback user.
- 2. The method for replaying user operation light cat device behaviors according to claim 1, wherein the replaying tool functions include replaying, analyzing and incorporating test cases, and before the step S3, the method further comprises the step that a worker selects functional requirements, and when the replaying function is selected, the step S3 is performed.
- 3. The method for playback of user-operated light cat device behavior of claim 2 wherein when the staff member selects the parsing function, the parsing function comprises the following specific steps: a01, extracting corresponding data from the analyzed operation configuration information data; a02, automatically drawing a function call flow in the operation process through the extracted corresponding data; A03, ending the analysis flow.
- 4. The method for playback of user-operated light cat device behavior according to claim 3, wherein said corresponding data in said step A01 comprises a called function name, execution time and execution parameters.
- 5. The method for replaying user operation light cat equipment behaviors according to claim 2, wherein when a staff member selects a test case inclusion function, the specific steps of the test case inclusion function are as follows: B01, extracting corresponding data from the analyzed operation configuration information data; b02, sequentially storing the extracted corresponding data in a database of the test case; And B03, finishing the function of the inclusion test case.
- 6. The system for playing back the behavior of the user operation optical cat equipment is used for realizing the method for playing back the behavior of the user operation optical cat equipment according to any one of claims 1-5, and is characterized by comprising a playback end and an optical cat end, wherein the optical cat end comprises an operation recording module, a data storage module and an optical cat communication module, the operation recording module is used for converting configuration operation of the optical cat end by a user into data information and storing the data information in the data storage module, the playback end comprises an import data module, a data analysis module, a construction message module and an information communication module, the import data module is used for receiving the data information recorded by the operation recording module, the data analysis module is used for analyzing the data information recorded by the operation recording module, the construction message module is used for constructing corresponding protocol messages according to the data analyzed by the analysis module, and the information communication module is used for establishing communication with the optical cat communication module.
- 7. The system for playback of user-operated light cat device behavior of claim 6 wherein said data storage module storage means comprises local storage and external storage.
Description
Method and system for replaying behavior of user operating cat equipment Technical Field The invention relates to the technical field of light cat equipment, in particular to a method and a system for replaying behavior of user operation light cat equipment. Background With the development of communication technology, optical communication is widely used in home or unit communication. Each home or unit using optical communication uses an optical modem. Optical modems, commonly known as optical modems, are generally referred to as transceivers that convert optical ethernet signals to other protocol signals, and utilize a pair of optical fibers for single E1 or single v.35 or single 10BaseT point-to-point optical transmission termination devices. The method is used for converting photoelectric signals in the wide area network and converting interface protocols, and the access router is wide area network access. In the process of using and configuring the optical cat, configuration errors often occur to cause abnormal use or bug and other situations of software in the optical cat, and in order to facilitate the discovery and solution of the problems of research personnel, error problems are usually repeated. In order to realize the reproduction effect, the existing industry is characterized in that the reproduction is carried out through the description of operation steps by a user, but whether the random reproduction exists or not, and the other industry is characterized in that the problems are positioned on the spot through research and development intervention, the system configuration, the system information, the debugging printing and other means, but the user configuration process cannot be reversely deduced, and the method is only called an avoidance method, the existing reproduction mode is complicated, the reproduction authenticity is not guaranteed, and the difficulty is improved for research and development personnel to solve the errors in the optical cat. Disclosure of Invention In order to solve the problems in the prior art, the invention provides a method and a system for replaying behavior of user operation cat equipment. The invention discloses a method for replaying behavior of user operation light cat equipment, which comprises the following steps: S1, importing operation configuration information data stored by a light cat device into a playback tool, pre-writing an internal command function required by the playback tool before leaving a factory of the light cat device, wherein the playback tool can directly call the internal command function of the light cat to realize unification of internal and external test interfaces; S2, a data analysis module of the playback tool analyzes operation configuration information data, wherein the operation configuration information data comprises an operation configuration function, a transferred parameter and execution time; S3, initializing a protocol interface and constructing a corresponding protocol message according to the analyzed operation data information; S4, after the construction of the corresponding protocol message is completed, according to the protocol message sending time sequence read by the analysis operation data information, enabling the light cat to sequentially send the corresponding message and receive the response; And S5, ending the operation flow of the playback user. The invention further improves, the functions of the playback tool comprise playback, analysis and inclusion of test cases, and before the step S3, the method also comprises the step that a worker selects the function requirements, and when the playback function is selected, the step S3 is carried out. According to the invention, when a worker selects an analysis function, the specific steps of the analysis function are as follows: a01, extracting corresponding data from the analyzed operation configuration information data; a02, automatically drawing a function call flow in the operation process through the extracted corresponding data; A03, ending the analysis flow. The invention further improves that the corresponding data in step a01 comprises the name of the called function, the execution time and the execution parameters. According to the invention, when a worker selects the function of the test case, the specific steps of the function of the test case are as follows: B01, extracting corresponding data from the analyzed operation configuration information data; b02, sequentially storing the extracted corresponding data in a database of the test case; And B03, finishing the function of the inclusion test case. The invention also provides a system for playing back the behavior of the user operation optical cat equipment, which is used for realizing the method for playing back the behavior of the user operation optical cat equipment, and comprises a playback end and an optical cat end, wherein the optical cat end comprises an operation recording module, a data