WO2022183552A1 - Communication device test method and apparatus, storage medium, terminal, and test system - Google Patents

Communication device test method and apparatus, storage medium, terminal, and test system Download PDF

Info

Publication number
WO2022183552A1
WO2022183552A1 PCT/CN2021/083498 CN2021083498W WO2022183552A1 WO 2022183552 A1 WO2022183552 A1 WO 2022183552A1 CN 2021083498 W CN2021083498 W CN 2021083498W WO 2022183552 A1 WO2022183552 A1 WO 2022183552A1
Authority
WO
WIPO (PCT)
Prior art keywords
signaling data
target
terminal
signaling
network
Prior art date
Application number
PCT/CN2021/083498
Other languages
French (fr)
Chinese (zh)
Inventor
杜凯
杨丽娜
Original Assignee
惠州Tcl移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 惠州Tcl移动通信有限公司 filed Critical 惠州Tcl移动通信有限公司
Publication of WO2022183552A1 publication Critical patent/WO2022183552A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/06Testing, supervising or monitoring using simulated traffic

Definitions

  • the present application relates to the field of mobile communication technologies, and in particular, to a communication equipment testing method, apparatus, storage medium and terminal.
  • the operator laboratory or GCF certification test usually does not provide the test script on the 5G instrument side to the terminal manufacturer, so the operator laboratory or GCF certification test process.
  • the terminal manufacturer cannot reproduce the test exception by itself.
  • the embodiments of this application provide a method, device, storage medium, and terminal for testing communication equipment.
  • the patent of the present invention is based on the log file (logfile, LOG) generated in the operator's 5G real network test or laboratory certification test based on the 5G mobile terminal.
  • 5G NAS Non-Access-Stratum, non-access stratum
  • RRC Radio Resource Control, radio resource control
  • connection interruption event includes: an abnormal situation in which the first terminal fails to establish a communication connection with the target network;
  • network interruption event includes: the first terminal establishes a communication connection with the target network, but cannot perform network data.
  • the authentication failure event includes: the abnormal situation that the first terminal and the target network cannot complete the authentication.
  • the abnormality event Based on the context information of the abnormality indication information in the log file, determine the abnormality event corresponding to each abnormality indication information; and determine whether there is a preset abnormality event in the abnormality event.
  • acquiring the target signaling data from the log file includes: when the abnormal event includes the authentication failure event, acquiring RRC signaling data and NAS signaling data from the log file , the NAS signaling data is the target signaling data.
  • the step of performing signaling interaction with the second terminal based on the target signaling data specifically includes: performing a communication connection with the second terminal; obtaining the target signaling data described in the The first signaling data sent by the network side to the first terminal under the target network, the second signaling data sent by the first terminal to the network side of the target network, and the first signaling data and the first signaling data.
  • the step of acquiring the target signaling data corresponding to the target signaling interaction process from the log file specifically includes:
  • the signaling data corresponding to the first target test case is acquired from the log file as the target signaling data.
  • the embodiment of the present application also provides a communication equipment testing apparatus, and the communication equipment testing apparatus includes:
  • a log acquisition module configured to acquire a log file generated by a target test, where the target test is a test performed by the first terminal under the target network based on the target test case;
  • a signaling data acquisition module configured to acquire target signaling data corresponding to a target signaling interaction process from the log file, where the target signaling interaction process is the first terminal and the target network in the target test The signaling interaction process;
  • the simulation test module performs signaling interaction with the second terminal based on the target signaling data to simulate the target signaling interaction flow of the target test.
  • the log obtaining module is further configured to: determine whether a preset abnormal event occurs in the target testing process based on the log file, wherein the preset abnormal event includes: a connection interruption event, a network Interruption events and authentication failure events;
  • connection interruption event includes: an abnormal situation in which the first terminal fails to establish a communication connection with the target network;
  • network interruption event includes: the first terminal establishes a communication connection with the target network, but cannot perform network data.
  • the authentication failure event includes: the abnormal situation that the first terminal and the target network cannot complete the authentication.
  • the signaling data acquisition module is configured to: when the preset abnormal event includes the connection interruption event or the network interruption event, acquire the RRC information from the log file. Command data, and obtain target signaling data based on the RRC signaling data.
  • a first signaling data acquisition sub-module configured to acquire the first signaling data sent by the network side under the target network to the first terminal in the target signaling data, and the first signaling data sent by the first terminal to the target
  • the second signaling data on the network side of the network and the sending order and response relationship of the first signaling data and the second signaling data
  • the preset abnormal event includes the authentication failure event
  • obtain RRC signaling data and NAS signaling data from the log file and obtain target signaling data based on the RRC signaling data and NAS signaling data .
  • the simulation test module includes: a second communication sub-module for communicating with the second terminal;
  • the second data interaction sub-module is configured to send the second signaling data, the sending sequence of the second signaling data, and the response relationship to the second terminal, and trigger the second terminal based on the Sending the second signaling data in a sending order and a response relationship; based on the received second signaling data, the sending order of the first signaling data, and the response relationship, sending the second signaling data in response to the received second signaling data
  • the first signaling data of the data is sent to the second terminal.
  • the second communication sub-module is configured to simulate a server under the target network to obtain a target virtual server; and control the target virtual server to establish a communication connection with the second terminal.
  • the second data interaction sub-module is configured to exchange the second signaling data, the sending order of the second signaling data, and the response relationship through the target virtual server Send to the second terminal; through the target virtual server, determine the response to the received second signaling data based on the received second signaling data, the sending order of the first signaling data, and the response relationship. Make the first signaling data of the data, and send the determined first signaling data to the second terminal.
  • the signaling data acquisition module is used for:
  • the signaling data corresponding to the first target test case is acquired from the log file as the target signaling data.
  • Embodiments of the present application further provide a storage medium, where a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer is made to execute the steps in the above communication device testing method.
  • An embodiment of the present application further provides a terminal, including a processor and a memory, wherein a computer program is stored in the memory, and the processor is configured to execute the above-mentioned communication device testing method by calling the computer program stored in the memory steps in .
  • the present application obtains a log file generated by a target test, where the target test is a test performed by the first terminal under the target network based on the target test case; and obtains target signaling data corresponding to the target signaling interaction process from the log file,
  • the target signaling interaction process is the signaling interaction process between the first terminal and the target network in the target test; signaling interaction with the second terminal based on the target signaling data to simulate the target The target signaling interaction flow of the test.
  • the embodiments of this application can simulate abnormal problem scenarios in the operator's 5G real network or in the laboratory 5G certification process, speed up the problem solving process and save various costs for 5G mobile terminal manufacturers
  • FIG. 1 is a first schematic flowchart of a communication device testing method provided by an embodiment of the present application.
  • FIG. 2 is a second schematic flowchart of a communication device testing method provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a first structure of a communication device testing apparatus provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a third structure of a communication device testing apparatus provided by an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a terminal according to an embodiment of the present application.
  • FIG. 8 is another schematic structural diagram of a terminal provided by an embodiment of the present application.
  • first and second are only used for descriptive purposes, and should not be construed as indicating or implying relative importance or implying the number of indicated technical features. Thus, a feature defined as “first” or “second” may expressly or implicitly include one or more of that feature. In the description of this application, unless stated otherwise, “plurality” means two or more. Additionally, the term “comprising” and any variations thereof are intended to cover non-exclusive inclusion.
  • Step 101 Obtain a log file generated by a target test, where the target test is a test performed by the first terminal under the target network based on the target test case.
  • a log file generated by the first terminal communicating and interacting with the target network according to a preset test case is obtained.
  • the 5G mobile terminal needs to be tested on the real network of the operator; or, the operator's laboratory test or GCF certification test.
  • the 5G terminal establishes a communication connection with the server under the operation of the real network or the communication instrument used in the operator's laboratory certification test, the network session and the log file generated by the 5G terminal in the authentication process.
  • the method before the step of acquiring the target signaling data corresponding to the target signaling interaction process from the log file, the method further includes: determining whether an abnormal event occurs during the target testing process based on the log file, wherein , the abnormal event includes at least one of a connection interruption event, a network interruption event, and an authentication failure event; if so, continue to perform the step of obtaining the target signaling data corresponding to the target signaling interaction flow from the log file ; wherein, the connection interruption event includes an abnormal situation that the first terminal fails to establish a communication connection with the target network; the network interruption event includes the first terminal establishing a communication connection with the target network, but unable to carry out network data interaction the abnormal situation; the authentication failure event includes the abnormal situation that the first terminal and the target network cannot complete the authentication.
  • the determining, based on the log file, whether a preset abnormal event occurs during the target testing process includes:
  • the records in the log file are detected, and the abnormal indication information in the log file is determined, and the abnormal indication information is used to indicate that an abnormal situation occurs during the execution of the target test case; based on the information in the log file.
  • the context information of the abnormality indication information is determined, the abnormality event corresponding to each abnormality indication information is determined, and whether there is a preset abnormality event in the abnormality event is determined.
  • the abnormal indication information may be error information generated when an abnormal event occurs when the terminal executes the relevant instruction during the execution of the target test case, and the context information may be the execution process corresponding to the abnormal event. records and the error message returned by the error process check.
  • Step 102 Obtain target signaling data corresponding to a target signaling interaction process from the log file, where the target signaling interaction process is a signaling interaction process between the first terminal and the target network in the target test .
  • the signaling data related to the test is extracted from the acquired log file, and the signaling data is the signaling data related to the network layer involved in the process of the communication test between the first terminal and the target network .
  • the signaling interaction process in this embodiment may be a signaling interaction process required by a network function layer under the network hierarchy in the communication field to realize its function.
  • the network function layer may be divided into different types according to different types of networks. This embodiment does not limit this.
  • the network function layer may include the RRC layer and the NAS layer.
  • the main functions of the RRC layer include connection establishment and release functions, system information broadcasting, radio bearer establishment, reconfiguration and release, RRC connection mobility procedures, paging notification and so on.
  • the main functions of the NAS layer include authentication, authentication, mobility management, and session management.
  • one target test case may be used to test one or more signaling interaction processes.
  • the target signaling interaction process may be any one or more of the signaling interaction processes tested by the target test case.
  • the target signaling interaction process may be preset, for example, the target signaling interaction process includes the RRC signaling interaction process and the signaling data of the RRC layer.
  • the step of acquiring the target signaling data corresponding to the signaling interaction process from the log file specifically includes: acquiring from the log file the information received by the terminal during the process of testing the communication interaction All signaling data; from all signaling data, obtain the target signaling data in the order of generation time.
  • acquiring the target signaling data from the log file includes: when the preset abnormal event includes the connection interruption event or the network interruption event, acquiring the RRC signaling data from the log file The RRC signaling data is the target signaling data.
  • acquiring the target signaling data from the log file includes: when the abnormal event includes the authentication failure event, acquiring RRC signaling data and NAS signaling data from the log file , the RRC signaling data and the NAS signaling data are the target signaling data.
  • Step 103 Perform signaling interaction with the second terminal based on the target signaling data to simulate the target signaling interaction process of the target test.
  • the step of performing signaling interaction with the second terminal based on the target signaling data specifically includes:
  • Two signaling data based on the received second signaling data, the sending order of the first signaling data, and the response relationship, sending the first signaling data in response to the received second signaling data to the second terminal.
  • establishing a communication connection with the second terminal includes:
  • controlling the target virtual server to perform the test with the second terminal includes:
  • the sending the second signaling data, the sending sequence of the second signaling data and the response relationship to the second terminal includes:
  • Two terminals including:
  • the present application is not limited by the execution order of the described steps, and certain steps may also be performed in other sequences or simultaneously under the condition of no conflict.
  • FIG. 2 is a second schematic flowchart of the communication device testing method provided by the embodiment of the present application.
  • the embodiments of the present invention are optimized on the basis of the foregoing embodiments, and the embodiments of the present invention may be combined with various optional solutions in one or more of the foregoing embodiments.
  • the method may include the following steps:
  • a log file generated by the first terminal communicating and interacting with the target network according to a preset test case is obtained.
  • Step 202 Obtain target signaling data corresponding to a target signaling interaction process from the log file, where the target signaling interaction process is a signaling interaction process between the first terminal and the target network in the target test .
  • the signaling data related to the test is extracted from the acquired log file, and the signaling data is the signaling data related to the network layer involved in the process of the communication test between the first terminal and the target network .
  • the signaling interaction process in this embodiment may be a signaling interaction process required by a network function layer under the network hierarchy in the communication field to realize its function.
  • the network function layer may be divided into different types according to different types of networks. This embodiment does not limit this.
  • the signaling interaction process in this embodiment may be a signaling interaction process required by a network function layer under the network hierarchy in the communication field to realize its function.
  • the network function layer may be divided into different types according to different types of networks. This embodiment does not limit this.
  • one target test case may be used to test one or more signaling interaction processes.
  • the target signaling interaction process may be any one or more of the signaling interaction processes tested by the target test case.
  • the target signaling interaction process may be preset, for example, the target signaling interaction process includes the RRC signaling interaction process and the signaling data of the RRC layer.
  • the target signaling interaction process can be selected according to the problems in the target test, so as to reduce the time required to reproduce the target signaling interaction process.
  • acquiring the target signaling data corresponding to the target signaling interaction process from the log file includes: when the preset abnormal event includes the connection interruption event or the network interruption event, obtaining the target signaling data from the Obtain RRC signaling data from the log file, and obtain target signaling data based on the RRC signaling data.
  • the step of acquiring the target signaling data corresponding to the signaling interaction process from the log file specifically includes: acquiring from the log file the information received by the terminal during the process of testing the communication interaction All signaling data; from all signaling data, obtain the target signaling data in the order of generation time.
  • acquiring the target signaling data from the log file includes: when the preset abnormal event includes the connection interruption event or the network interruption event, acquiring the RRC signaling data from the log file The RRC signaling data is the target signaling data.
  • Step 204 Control the simulated server to perform signaling interaction with the second terminal based on the target signaling data, so as to simulate the target signaling interaction process of the target test.
  • the simulated server is controlled to establish a communication connection with the second terminal, and the target instruction data is sent to the second terminal, To simulate and reproduce the scenarios corresponding to the abnormal events generated during the target testing process.
  • controlling the target virtual server to perform the test with the second terminal includes:
  • the sending the second signaling data, the sending sequence of the second signaling data and the response relationship to the second terminal includes:
  • the present application is not limited by the execution order of the described steps, and certain steps may also be performed in other sequences or simultaneously under the condition of no conflict.
  • a signaling data acquisition module 302 configured to acquire target signaling data corresponding to a target signaling interaction process from the log file, where the target signaling interaction process is the first terminal and the target in the target test Network signaling interaction process;
  • the simulation test module 303 is configured to perform signaling interaction with the second terminal based on the target signaling data, so as to simulate the target signaling interaction process of the target test.
  • the signaling data acquisition module 301 is specifically further configured to: determine whether a preset abnormal event occurs in the target test process based on the log file, and determine whether a preset abnormal event occurs in the target test process based on the log file. Whether a preset abnormal event occurs includes:
  • the records in the log file are detected, and the abnormal indication information in the log file is determined, and the abnormal indication information is used to indicate that an abnormal situation occurs during the execution of the target test case; based on the information in the log file.
  • the context information of the abnormality indication information is determined, the abnormality event corresponding to each abnormality indication information is determined, and whether there is a preset abnormality event in the abnormality event is determined.
  • the signaling data acquisition module 302 is further configured to acquire target test cases, and one target test case can be used to test one or more signaling interaction processes.
  • the target signaling interaction process may be any one or more of the signaling interaction processes tested by the target test case.
  • the target signaling interaction process may be preset, for example, the target signaling interaction process includes the RRC signaling interaction process and the signaling data of the RRC layer.
  • the target signaling interaction process can be selected according to the problems in the target test, so as to reduce the time required to reproduce the target signaling interaction process.
  • the signaling data acquisition module 302 is further configured to acquire RRC signaling data from the log file when the abnormal event includes the connection interruption event or the network interruption event , the RRC signaling data is the target signaling data.
  • the signaling data acquisition module 302 is further configured to: when the abnormal event includes the authentication failure event, acquire RRC signaling data and NAS signaling data from the log file , the RRC signaling data and the NAS signaling data are the target signaling data.
  • the signaling data acquisition module 302 is further configured to: acquire the target signaling data corresponding to the signaling interaction flow from the log file, which specifically includes: acquiring from the log file All signaling data received by the terminal in the process of testing the communication interaction; from the all signaling data, the target signaling data is acquired in the order of generation time.
  • the simulation test module 303 is specifically configured to acquire corresponding type of target signaling data from the log file according to the classification of abnormal events.
  • acquiring target signaling data from the log file includes: acquiring RRC signaling data from the log file, where the RRC The signaling data is the target signaling data.
  • the target signaling data obtained from the log file may further include RRC signaling data, NAS signaling data and other types of signaling data.
  • the target signaling data obtained from the log file may further include RRC signaling data, NAS signaling data and other types of signaling data.
  • the simulation test module 303 is further configured to: perform signaling interaction with the second terminal based on the target signaling data, which specifically includes: performing a communication connection with the second terminal;
  • the sending sequence of the first signaling data, and the response relationship the first signaling data in response to the received second signaling data is sent to the second terminal .
  • the simulation test module 303 is further configured to: establish a communication connection with the second terminal, including: simulating a server under the target network to obtain a target virtual server; controlling the target virtual server to communicate with the target virtual server The second terminal executes the test.
  • the simulation test module 303 is further configured to: the controlling the target virtual server and the second terminal to perform the test, including:
  • the sending the second signaling data, the sending sequence of the second signaling data and the response relationship to the second terminal includes:
  • Two terminals including:
  • the communication equipment testing apparatus 30 obtains the log file generated by the target test through the log acquisition module 301, and the target test is the test performed by the first terminal under the target network based on the target test case; Let the data acquisition module 302 acquire the target signaling data corresponding to the target signaling interaction process from the log file, and the target signaling interaction process is the signaling between the first terminal and the target network in the target test. Interaction process; the simulation test module 303 performs signaling interaction with the second terminal based on the target signaling data to simulate the target signaling interaction process of the target test.
  • the embodiments of the present application can simulate abnormal problem scenarios in the operator's 5G real network or in the laboratory 5G certification process, so as to speed up the problem solving process and save various costs of 5G mobile terminal manufacturers.
  • the present application is not limited by the execution order of the described steps, and certain steps may also be performed in other sequences or simultaneously under the condition of no conflict.
  • FIG. 4 is a schematic diagram of a second structure of a communication device testing apparatus provided by an embodiment of the present application.
  • the communication equipment testing apparatus 40 may include:
  • a log acquisition module 401 configured to acquire a log file generated by a target test, where the target test is a test performed by the first terminal under the target network based on the target test case;
  • a signaling data acquisition module 402 configured to acquire target signaling data corresponding to a target signaling interaction process from the log file, where the target signaling interaction process is the first terminal and the target in the target test Network signaling interaction process;
  • the simulation test module 403 is configured to perform signaling interaction with the second terminal based on the target signaling data, so as to simulate the target signaling interaction process of the target test.
  • the simulation test module 403 also includes:
  • a first communication sub-module 4031 configured to establish a communication connection with the second terminal
  • the first signaling data acquisition sub-module 4032 is configured to acquire the first signaling data sent by the network side under the target network to the first terminal in the target signaling data, and the first terminal sends the first signaling data to the the second signaling data on the network side of the target network, and the sending sequence and response relationship of the first signaling data and the second signaling data;
  • the first data interaction sub-module 4033 is configured to send the second signaling data, the sending sequence of the second signaling data, and the response relationship to the second terminal, and trigger the second terminal to sending the second signaling data in the sending sequence and the response relationship;
  • the third communication sub-module 4034 is configured to, based on the received second signaling data, the sending order of the first signaling data, and the response relationship, send the first signaling data in response to the received second signaling data send the data to the second terminal.
  • the log acquisition module 401 acquires the log file generated by the target test, and the target test is a test performed by the first terminal under the target network based on the target test case; the signaling data acquisition module 402 acquires the target signaling interaction process from the log file Corresponding target signaling data, the target signaling interaction process is the signaling interaction process between the first terminal and the target network in the target test; the simulation test module 403 is based on the target signaling data and the first terminal. The two terminals perform signaling interaction to simulate the target signaling interaction process of the target test.
  • the simulation test module 403 further includes: the first communication sub-module 4031 establishes a communication connection with the second terminal; the first signaling data acquisition sub-module 4032 acquires the network side under the target network in the target signaling data The first signaling data sent to the first terminal, the second signaling data sent by the first terminal to the network side of the target network, and the difference between the first signaling data and the second signaling data.
  • the first data interaction sub-module 4033 sends the second signaling data, the sending sequence of the second signaling data, and the response relationship to the second terminal, triggering the second signaling data
  • the terminal sends the second signaling data based on the sending order and the response relationship
  • the third communication sub-module 4034 sends the response based on the received second signaling data, the sending order of the first signaling data, and the response relationship.
  • the first signaling data corresponding to the received second signaling data is sent to the second terminal.
  • the embodiments of the present application can simulate abnormal problem scenarios in the operator's 5G real network or in the laboratory 5G certification process, so as to speed up the problem solving process and save various costs of 5G mobile terminal manufacturers.
  • FIG. 5 is a third schematic structural diagram of a communication equipment testing apparatus provided by an embodiment of the present application.
  • the communication equipment testing apparatus 50 includes a memory 120, one or more processors 180, and one or more application programs, wherein The one or more application programs are stored in the memory 120 and configured to be executed by the processor 180 ; the processor 180 may include a log acquisition module 501 , a signaling data acquisition module 502 , and a simulation test module 503 .
  • the structures and connection relationships of the above components can be as follows:
  • Memory 120 may be used to store applications and data.
  • the application programs stored in the memory 120 contain executable codes. Applications can be composed of various functional modules.
  • the processor 180 executes various functional applications and data processing by executing application programs stored in the memory 120 .
  • memory 120 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 120 may also include a memory controller to provide processor 180 access to memory 120 .
  • the processor 180 is the control center of the device, uses various interfaces and lines to connect various parts of the entire terminal, and executes various functions of the device by running or executing the application program stored in the memory 120 and calling the data stored in the memory 120. function and process data for overall monitoring of the installation.
  • the processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc. .
  • the processor 180 loads the executable code corresponding to the process of one or more application programs into the memory 120 according to the following instructions, and the processor 180 executes the executable code stored in the memory 120 application to achieve various functions:
  • a log acquisition module 501 configured to acquire a log file generated by a target test, where the target test is a test performed by the first terminal under the target network based on the target test case;
  • a signaling data acquisition module 502 configured to acquire target signaling data corresponding to a target signaling interaction process from the log file, where the target signaling interaction process is the first terminal and the target in the target test Network signaling interaction process;
  • the simulation test module 503 is configured to perform signaling interaction with the second terminal based on the target signaling data, so as to simulate the target signaling interaction process of the target test.
  • FIG. 6 is a fourth schematic structural diagram of a communication equipment testing apparatus provided by an embodiment of the present application.
  • the communication equipment testing apparatus 60 includes a memory 120, one or more processors 180, and one or more application programs, wherein The one or more application programs are stored in the memory 120 and configured to be executed by the processor 180; the processor 180 may include a log acquisition module 601, a signaling data acquisition module 602, a simulation test module 603, a first Communication sub-module 6031, first data interaction sub-module 6032.
  • the structure and connection relationship of each component can be as follows:
  • a log acquisition module 601 configured to acquire a log file generated by a target test, where the target test is a test performed by the first terminal under the target network based on the target test case;
  • a signaling data acquisition module 602 configured to acquire target signaling data corresponding to a target signaling interaction process from the log file, where the target signaling interaction process is the first terminal and the target in the target test Network signaling interaction process;
  • the simulation test module 603 is configured to perform signaling interaction with the second terminal based on the target signaling data, so as to simulate the target signaling interaction process of the target test.
  • the simulation test module 603 also includes:
  • a first communication sub-module 6031 configured to establish a communication connection with the second terminal
  • the first signaling data acquisition sub-module 6032 is configured to acquire the first signaling data sent by the network side under the target network to the first terminal in the target signaling data, and the first terminal sends the first signaling data to the the second signaling data on the network side of the target network, and the sending sequence and response relationship of the first signaling data and the second signaling data;
  • the first data interaction sub-module 6033 is configured to send the second signaling data, the sending sequence of the second signaling data, and the response relationship to the second terminal, triggering the second terminal based on the sending the second signaling data in the sending sequence and the response relationship;
  • the third communication sub-module 6034 is configured to, based on the received second signaling data, the sending order of the first signaling data, and the response relationship, send the first signaling data in response to the received second signaling data send the data to the second terminal.
  • the embodiment of the present application also provides a terminal.
  • the terminal may be a smart phone, a tablet computer, a desktop computer, a smart watch, a mobile workstation, a server and other devices.
  • an embodiment of the present application further provides a terminal, where the terminal may be a device such as a smart phone, a tablet computer, and a TV.
  • the terminal 700 includes a processor 701 and a memory 702 .
  • the processor 701 is electrically connected to the memory 702 .
  • the processor 701 is the control center of the terminal 700, uses various interfaces and lines to connect various parts of the entire terminal, executes various functions of the terminal by running or loading the application program stored in the memory 702, and calling the data stored in the memory 702. functions and process data to monitor the terminal as a whole.
  • the processor 701 in the terminal 700 loads the instructions corresponding to the processes of one or more application programs into the memory 702 according to the following steps, and is executed by the processor 701 and stored in the memory 702 application to achieve various functions:
  • the target test is a test performed by the first terminal under the target network based on the target test case
  • target signaling data corresponding to a target signaling interaction process from the log file, where the target signaling interaction process is a signaling interaction process between the first terminal and the target network in the target test;
  • FIG. 8 is a schematic structural diagram of a terminal provided by an embodiment of the present application.
  • the terminal 1800 may include an RF circuit 810, a memory 820 including one or more computer-readable storage media, an input unit 830, a display unit 840, a sensor 850, an audio circuit 860, a speaker 861, a microphone 862, a transmission module 870, including There are a processor 880 with one or more processing cores, and components such as a power supply 890.
  • the terminal structure shown in FIG. 5 does not constitute a limitation on the terminal, and may include more or less components than the one shown, or combine some components, or arrange different components.
  • the RF circuit 810 is used for receiving and sending electromagnetic waves, realizing mutual conversion between electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices.
  • RF circuitry 810 may include various existing circuit elements for performing these functions, eg, antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, subscriber identity module (SIM) cards, memory, and the like.
  • the RF circuit 810 may communicate with various networks such as the Internet, an intranet, a wireless network, or with other devices over a wireless network.
  • the aforementioned wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network.
  • the above-mentioned wireless networks can use various communication standards, protocols and technologies, including but not limited to the Global System for Mobile Communications (Global System for Mobile Communication, GSM), Enhanced Mobile Communication Technology (Enhanced Data GSM Environment, EDGE), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), code division multiple access technology (Code Division Access, CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wireless Fidelity, Wi-Fi) (e.g.
  • GSM Global System for Mobile Communication
  • EDGE Enhanced Mobile Communication Technology
  • WCDMA Wideband Code Division Multiple Access
  • CDMA Code Division Multiple Access
  • TDMA Time Division Multiple Access
  • Wireless Fidelity Wireless Fidelity
  • Wi-Fi Wireless Fidelity
  • IEEE 802.11a Institute of Electrical and Electronics Engineers standards IEEE 802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE 802.11n
  • Internet telephony VoIP over Internet Protocol, VoIP
  • Worldwide Interconnection for Microwave Access Worldwide Interoperability for Microwave Access, Wi-Max
  • other protocols for mail, instant messaging, and short messaging and any other suitable communication protocols, even those that are not currently being developed.
  • the memory 820 can be used to store software programs and modules, such as program instructions/modules corresponding to the image decompression apparatus and method in the above-mentioned embodiments, and the processor 880 executes various functional applications by running the software programs and modules stored in the memory 820. And data processing, that is, to realize the function of automatically filling light for the front camera to take pictures.
  • Memory 820 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 820 may further include memory located remotely from the processor 880, and these remote memories may be connected to the terminal 1800 through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
  • the input unit 830 may be used to receive input numerical or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
  • the input unit 830 may include a touch-sensitive surface 831 as well as other input devices 832 .
  • Touch-sensitive surface 831 also known as a touch display or trackpad, collects user touch operations on or near it (such as a user using a finger, stylus, etc., any suitable object or accessory on or on touch-sensitive surface 831). operations near the touch-sensitive surface 831), and drive the corresponding connection device according to a preset program.
  • the touch-sensitive surface 831 may include two parts, a touch detection device and a touch controller.
  • the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller.
  • the touch-sensitive surface 831 may be implemented using resistive, capacitive, infrared, and surface acoustic wave types.
  • the input unit 830 may also include other input devices 832 .
  • other input devices 832 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 840 may be used to display information input by the user or information provided to the user and various graphical user interfaces of the terminal 1800, which may be composed of graphics, text, icons, videos, and any combination thereof.
  • the display unit 840 may include a display panel 841, and optionally, an LCD (Liquid
  • the display panel 841 is configured in the form of Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, organic light emitting diode) and the like.
  • the touch-sensitive surface 831 may cover the display panel 841, and when the touch-sensitive surface 831 detects a touch operation on or near it, it transmits it to the processor 880 to determine the type of the touch event, and then the processor 880 determines the type of the touch event according to the touch event. Type provides corresponding visual output on display panel 841 .
  • the touch-sensitive surface 831 and the display panel 841 are implemented as two separate components to realize the input and output functions, in some embodiments, the touch-sensitive surface 831 and the display panel 841 may be integrated to realize the input and output functions.
  • the terminal 1800 may also include at least one sensor 850, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 841 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 841 and the display panel 841 when the terminal 1800 is moved to the ear. / or backlight.
  • the gravitational acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when it is stationary.
  • the audio circuit 860 , the speaker 861 and the microphone 862 may provide an audio interface between the user and the terminal 1800 .
  • the audio circuit 860 can transmit the received audio data converted electrical signals to the speaker 861, and the speaker 861 converts them into sound signals for output; on the other hand, the microphone 862 converts the collected sound signals into electrical signals, and the audio circuit 860 converts the collected sound signals into electrical signals. After receiving, it is converted into audio data, and then the audio data is output to the processor 880 for processing, and then sent to, for example, another terminal through the RF circuit 810, or the audio data is output to the memory 820 for further processing.
  • the audio circuit 860 may also include an earphone jack to provide communication of peripheral headphones with the terminal 1800 .
  • the terminal 1800 can help the user to send and receive emails, browse web pages, access streaming media, etc. through the transmission module 870 (eg, a Wi-Fi module), and it provides the user with wireless broadband Internet access.
  • the transmission module 870 eg, a Wi-Fi module
  • FIG. 5 shows the transmission module 870, it can be understood that it does not belong to the necessary structure of the terminal 1800, and can be completely omitted as required within the scope of not changing the essence of the invention.
  • the processor 880 is the control center of the terminal 1800, using various interfaces and lines to connect various parts of the entire mobile phone, by running or executing the software programs and/or modules stored in the memory 820, and calling the data stored in the memory 820, Execute various functions of the terminal 1800 and process data to monitor the mobile phone as a whole.
  • the processor 880 may include one or more processing cores; in some embodiments, the processor 880 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface and Applications, etc., the modem processor mainly deals with wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 880.
  • the terminal 1800 also includes a power source 890 (such as a battery) for powering various components.
  • the power source can be logically connected to the processor 880 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. and other functions.
  • Power source 890 may also include one or more DC or AC power sources, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and any other components.
  • the terminal 1800 may further include a camera (eg, a front camera, a rear camera), a Bluetooth module, and the like, which will not be repeated here.
  • the display unit of the terminal is a touch screen display
  • the terminal further includes a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to be processed by one or more programs
  • a program that executes one or more programs contains instructions for:
  • the target test is a test performed by the first terminal under the target network based on the target test case
  • target signaling data corresponding to a target signaling interaction process from the log file, where the target signaling interaction process is a signaling interaction process between the first terminal and the target network in the target test;
  • the above modules can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities.
  • the specific implementation of the above modules can refer to the previous method embodiments, which will not be repeated here.
  • an embodiment of the present invention provides a storage medium in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any communication device testing method provided by the embodiment of the present invention.
  • the storage medium may include: a read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD, etc.
  • ROM Read Only Memory
  • RAM Random Access Memory
  • CD Compact Disc
  • the instructions stored in the storage medium can execute the steps in any of the communication equipment testing methods provided by the embodiments of the present invention, it is possible to achieve the capabilities of any communication equipment testing methods provided by the embodiments of the present invention.
  • the beneficial effects achieved see the foregoing embodiments for details, and details are not repeated here.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

Embodiments of the present application provide a communication device test method and apparatus, a storage medium, a terminal, and a test system, the method comprising: acquiring a log file generated by a target test; acquiring, from the log file, target signaling data corresponding to a target signaling interaction process; and performing signaling interaction with a second terminal on the basis of the target signaling data to simulate the target signaling interaction process of the target test.

Description

通信设备测试方法、装置、存储介质、终端及测试系统Communication equipment test method, device, storage medium, terminal and test system
本申请要求于2021年03月19日提交中国专利局、申请号为202110237931.3、发明名称为“通信设备测试方法、装置、存储介质及终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on March 19, 2021 with the application number 202110237931.3 and the title of the invention is "communication equipment testing method, device, storage medium and terminal", the entire contents of which are incorporated by reference in this application.
技术领域technical field
本申请涉及移动通信技术领域,特别涉及一种通信设备测试方法、装置、存储介质及终端。The present application relates to the field of mobile communication technologies, and in particular, to a communication equipment testing method, apparatus, storage medium and terminal.
背景技术Background technique
随着移动通信技术的发展以及5G网络技术的普及,目前5G移动终端的市场占有量在不断提高,而在实际应用中,5G终端在进入市场前还需要进行一系列的测试与认证。With the development of mobile communication technology and the popularization of 5G network technology, the market share of 5G mobile terminals is constantly increasing. In practical applications, 5G terminals need to undergo a series of tests and certifications before entering the market.
例如,5G移动终端厂商如果需要将5G终端在某运营商运营网络下进行销售和使用,在正式入网销售前需要在该运营商的实网下对5G终端进行一系列的实网测试。而实网测试的过程中,如果发现某个实网场景测试异常,则需要进行异常问题的处理,如果选择在实网状态下进行相应的测试调整,则有测试验证周期长,成本高昂的特点。此外,5G终端在进入市场前还需要进行运营商实验室测试或者GCF测试(GSM Certification Forum,GSM认可论坛),而在进行上述认证测试时,运营商实验室或者GCF认证测试通常不会提供5G仪器侧的测试脚本给到终端厂商,因此运营商实验室或者GCF认证测试过程中出现了测试异常,终端厂商也不能自行复现测试异常的场景。For example, if a 5G mobile terminal manufacturer needs to sell and use 5G terminals under an operator's operating network, it is necessary to conduct a series of real network tests on the 5G terminals under the operator's real network before the official network sales. In the process of real network testing, if an abnormal test is found in a real network scenario, it is necessary to deal with the abnormal problem. If you choose to make corresponding test adjustments in the real network state, the test verification cycle will be long and the cost will be high. . In addition, 5G terminals also need to be tested in the operator's laboratory or GCF test (GSM) before entering the market. Certification Forum, GSM Accreditation Forum), and during the above certification test, the operator laboratory or GCF certification test usually does not provide the test script on the 5G instrument side to the terminal manufacturer, so the operator laboratory or GCF certification test process. When a test exception occurs, the terminal manufacturer cannot reproduce the test exception by itself.
因此,现有技术存在缺陷,有待改进和发展。Therefore, the existing technology has defects and needs to be improved and developed.
技术问题technical problem
本申请实施例提供一种通信设备测试方法、装置、存储介质及终端,本发明专利通过基于5G移动终端在运营商5G实网测试或者实验室认证测试中所产生的日志文件(logfile,LOG)中获取5G网络发送给5G移动终端5G NAS(Non-Access-Stratum,非接入层)和RRC(Radio Resource Control,无线资源控制)信令数据,再将获取的5G NAS和RRC信令数据依次输入到5G移动终端厂商的5G仪器,这样就可以实现根据日志文件模拟运营商5G实网测试或者实验室认证测试中出现问题的场景。The embodiments of this application provide a method, device, storage medium, and terminal for testing communication equipment. The patent of the present invention is based on the log file (logfile, LOG) generated in the operator's 5G real network test or laboratory certification test based on the 5G mobile terminal. 5G NAS (Non-Access-Stratum, non-access stratum) and RRC (Radio Resource Control, radio resource control) signaling data, and then input the acquired 5G NAS and RRC signaling data into the 5G equipment of the 5G mobile terminal manufacturer in turn, so that the operator can simulate the 5G real network test or laboratory certification according to the log file. Scenarios that go wrong in the test.
技术解决方案technical solutions
本申请实施例提供一种通信设备测试方法,所述方法包括:获取目标测试产生的日志文件,所述目标测试为第一终端在目标网络下基于目标测试用例执行的测试;从所述日志文件中获取目标信令交互流程对应的目标信令数据,所述目标信令交互流程为所述目标测试中所述第一终端与所述目标网络的信令交互流程;基于所述目标信令数据与第二终端进行信令交互,以模拟所述目标测试的所述目标信令交互流程。An embodiment of the present application provides a method for testing a communication device. The method includes: acquiring a log file generated by a target test, where the target test is a test performed by a first terminal under a target network based on a target test case; The target signaling data corresponding to the target signaling interaction process is obtained in the target test, and the target signaling interaction process is the signaling interaction process between the first terminal and the target network in the target test; based on the target signaling data Perform signaling interaction with the second terminal to simulate the target signaling interaction process of the target test.
在一些实施例中,在从所述日志文件中获取目标信令交互流程对应的目标信令数据的步骤之前,还包括:In some embodiments, before the step of acquiring the target signaling data corresponding to the target signaling interaction flow from the log file, the method further includes:
基于所述日志文件确定所述目标测试过程中是否发生预设异常事件,其中,预设异常事件包括:连接中断事件、网络中断事件和鉴权失败事件;Determine whether a preset abnormal event occurs in the target testing process based on the log file, wherein the preset abnormal event includes: a connection interruption event, a network interruption event, and an authentication failure event;
若是,继续执行所述从所述日志文件中获取目标信令交互流程对应的目标信令数据的步骤;If so, continue to perform the step of obtaining the target signaling data corresponding to the target signaling interaction flow from the log file;
其中,所述连接中断事件包括:所述第一终端未能与目标网络建立通信连接的异常情况;所述网络中断事件包括:所述第一终端与目标网络建立通信连接,但是无法进行网络数据交互的异常情况;所述鉴权失败事件包括:所述第一终端与目标网络无法完成鉴权的异常情况。Wherein, the connection interruption event includes: an abnormal situation in which the first terminal fails to establish a communication connection with the target network; the network interruption event includes: the first terminal establishes a communication connection with the target network, but cannot perform network data. The abnormal situation of interaction; the authentication failure event includes: the abnormal situation that the first terminal and the target network cannot complete the authentication.
进一步地,在一些实施例中,所述基于所述日志文件确定所述目标测试过程中是否发生预设异常事件包括:Further, in some embodiments, the determining whether a preset abnormal event occurs during the target testing process based on the log file includes:
对所述日志文件中的记录进行检测,确定所述日志文件中的异常指示信息,所述异常指示信息用于指示在所述目标测试用例执行过程中发生异常情况;Detecting records in the log file, and determining abnormality indication information in the log file, where the abnormality indication information is used to indicate that an abnormality occurs during the execution of the target test case;
基于所述日志文件中所述异常指示信息的上下文信息,确定各所述异常指示信息对应的异常事件;确定所述异常事件中是否存在预设异常事件。Based on the context information of the abnormality indication information in the log file, determine the abnormality event corresponding to each abnormality indication information; and determine whether there is a preset abnormality event in the abnormality event.
在一些实施例中,从所述日志文件中获取目标信令数据,包括:当所述异常事件包括所述连接中断事件或者所述网络中断事件时,从所述日志文件中获取RRC信令数据,所述RRC信令数据即为所述目标信令数据。In some embodiments, acquiring the target signaling data from the log file includes: when the abnormal event includes the connection interruption event or the network interruption event, acquiring RRC signaling data from the log file , the RRC signaling data is the target signaling data.
在一些实施例中,从所述日志文件中获取目标信令数据,包括:当所述异常事件包括所述鉴权失败事件时,从所述日志文件中获取RRC信令数据和NAS信令数据,所述NAS信令数据即为所述目标信令数据。In some embodiments, acquiring the target signaling data from the log file includes: when the abnormal event includes the authentication failure event, acquiring RRC signaling data and NAS signaling data from the log file , the NAS signaling data is the target signaling data.
进一步地,在一些实施例中,基于所述目标信令数据与第二终端进行信令交互的步骤,具体包括:与所述第二终端进行通信连接;获取所述目标信令数据中所述目标网络下网络侧发送至所述第一终端的第一信令数据,所述第一终端发送至所述目标网络的网络侧的第二信令数据,以及所述第一信令数据和第二信令数据的发送顺序和响应关系;将所述第二信令数据、所述第二信令数据的发送顺序以及所述响应关系发送给所述第二终端,触发所述第二终端基于所述发送顺序和响应关系发送所述第二信令数据;基于接收到的第二信令数据、所述第一信令数据的发送顺序以及响应关系,将响应于所述接收到的第二信令数据的第一信令数据发送给所述第二终端。Further, in some embodiments, the step of performing signaling interaction with the second terminal based on the target signaling data specifically includes: performing a communication connection with the second terminal; obtaining the target signaling data described in the The first signaling data sent by the network side to the first terminal under the target network, the second signaling data sent by the first terminal to the network side of the target network, and the first signaling data and the first signaling data. Two signaling data sending sequence and response relationship; sending the second signaling data, the second signaling data sending sequence, and the response relationship to the second terminal, triggering the second terminal based on The second signaling data is sent in the sending sequence and the response relationship; based on the received second signaling data, the sending sequence of the first signaling data, and the response relationship, the second signaling data is sent in response to the received second signaling data. The first signaling data of the signaling data is sent to the second terminal.
进一步地,在一些实施例中,从所述日志文件中获取目标信令交互流程对应的目标信令数据的步骤,具体包括:Further, in some embodiments, the step of acquiring the target signaling data corresponding to the target signaling interaction process from the log file specifically includes:
获取目标测试用例与目标测试用例测试的信令交互流程之间的对应关系;Obtain the correspondence between the target test case and the signaling interaction process tested by the target test case;
基于所述对应关系,确定目标信令交互流程对应的第一目标测试用例;Based on the corresponding relationship, determine the first target test case corresponding to the target signaling interaction process;
从所述日志文件获取所述第一目标测试用例对应的信令数据作为目标信令数据。The signaling data corresponding to the first target test case is acquired from the log file as the target signaling data.
本申请实施例还提供一种通信设备测试装置,所述通信设备测试装置包括:The embodiment of the present application also provides a communication equipment testing apparatus, and the communication equipment testing apparatus includes:
日志获取模块,用于获取目标测试产生的日志文件,所述目标测试为第一终端在目标网络下基于目标测试用例执行的测试;a log acquisition module, configured to acquire a log file generated by a target test, where the target test is a test performed by the first terminal under the target network based on the target test case;
信令数据获取模块,用于从所述日志文件中获取目标信令交互流程对应的目标信令数据,所述目标信令交互流程为所述目标测试中所述第一终端与所述目标网络的信令交互流程;A signaling data acquisition module, configured to acquire target signaling data corresponding to a target signaling interaction process from the log file, where the target signaling interaction process is the first terminal and the target network in the target test The signaling interaction process;
模拟测试模块,基于所述目标信令数据与第二终端进行信令交互,以模拟所述目标测试的所述目标信令交互流程。The simulation test module performs signaling interaction with the second terminal based on the target signaling data to simulate the target signaling interaction flow of the target test.
进一步地,在一些实施例中所述日志获取模块,还用于:基于所述日志文件确定所述目标测试过程中是否发生预设异常事件,其中,预设异常事件包括:连接中断事件、网络中断事件和鉴权失败事件;Further, in some embodiments, the log obtaining module is further configured to: determine whether a preset abnormal event occurs in the target testing process based on the log file, wherein the preset abnormal event includes: a connection interruption event, a network Interruption events and authentication failure events;
若是,触发所述信令数据获取模块执行所述从所述日志文件中获取目标信令交互流程对应的目标信令数据的步骤;If so, trigger the signaling data acquisition module to perform the step of acquiring the target signaling data corresponding to the target signaling interaction flow from the log file;
其中,所述连接中断事件包括:所述第一终端未能与目标网络建立通信连接的异常情况;所述网络中断事件包括:所述第一终端与目标网络建立通信连接,但是无法进行网络数据交互的异常情况;所述鉴权失败事件包括:所述第一终端与目标网络无法完成鉴权的异常情况。Wherein, the connection interruption event includes: an abnormal situation in which the first terminal fails to establish a communication connection with the target network; the network interruption event includes: the first terminal establishes a communication connection with the target network, but cannot perform network data. The abnormal situation of interaction; the authentication failure event includes: the abnormal situation that the first terminal and the target network cannot complete the authentication.
进一步地,在一些实施例中,所述信令数据获取模块,用于:当所述预设异常事件包括所述连接中断事件或者所述网络中断事件时,从所述日志文件中获取RRC信令数据,基于所述RRC信令数据得到目标信令数据。Further, in some embodiments, the signaling data acquisition module is configured to: when the preset abnormal event includes the connection interruption event or the network interruption event, acquire the RRC information from the log file. Command data, and obtain target signaling data based on the RRC signaling data.
进一步地,在一些实施例中,所述模拟测试模块,包括:Further, in some embodiments, the simulation test module includes:
第一通信子模块,用于与所述第二终端进行通信连接;a first communication sub-module for communicating with the second terminal;
第一信令数据获取子模块,用于获取所述目标信令数据中所述目标网络下网络侧发送至所述第一终端的第一信令数据、所述第一终端发送至所述目标网络的网络侧的第二信令数据以及所述第一信令数据和第二信令数据的发送顺序和响应关系;a first signaling data acquisition sub-module, configured to acquire the first signaling data sent by the network side under the target network to the first terminal in the target signaling data, and the first signaling data sent by the first terminal to the target The second signaling data on the network side of the network and the sending order and response relationship of the first signaling data and the second signaling data;
第一数据交互子模块,用于将所述第二信令数据、所述第二信令数据的发送顺序以及所述响应关系发送给所述第二终端,触发所述第二终端基于所述发送顺序和响应关系发送所述第二信令数据;基于接收到的第二信令数据、所述第一信令数据的发送顺序以及响应关系,将响应于所述接收到的第二信令数据的第一信令数据发送给所述第二终端。a first data interaction sub-module, configured to send the second signaling data, the sending sequence of the second signaling data, and the response relationship to the second terminal, triggering the second terminal based on the Sending the second signaling data in a sending order and a response relationship; based on the received second signaling data, the sending order of the first signaling data, and the response relationship, sending the second signaling data in response to the received second signaling data The first signaling data of the data is sent to the second terminal.
进一步地,在一些实施例中,所述信令数据获取模块,用于:Further, in some embodiments, the signaling data acquisition module is used for:
当所述预设异常事件包括所述鉴权失败事件时,从所述日志文件中获取RRC信令数据和NAS信令数据,基于所述RRC信令数据和NAS信令数据得到目标信令数据。When the preset abnormal event includes the authentication failure event, obtain RRC signaling data and NAS signaling data from the log file, and obtain target signaling data based on the RRC signaling data and NAS signaling data .
进一步地,在一些实施例中,所述模拟测试模块,包括:第二通信子模块,用于与所述第二终端进行通信连接;Further, in some embodiments, the simulation test module includes: a second communication sub-module for communicating with the second terminal;
第二信令数据获取子模块,用于获取所述目标信令数据中所述目标网络下网络侧发送至所述第一终端的第一信令数据、所述第一终端发送至所述目标网络的网络侧的第二信令数据以及所述第一信令数据和第二信令数据的发送顺序和响应关系;The second signaling data acquisition sub-module is configured to acquire the first signaling data sent by the network side under the target network to the first terminal in the target signaling data, and the first signaling data sent by the first terminal to the target The second signaling data on the network side of the network and the sending order and response relationship of the first signaling data and the second signaling data;
第二数据交互子模块,用于将所述第二信令数据、所述第二信令数据的发送顺序以及所述响应关系发送给所述第二终端,触发所述第二终端基于所述发送顺序和响应关系发送所述第二信令数据;基于接收到的第二信令数据、所述第一信令数据的发送顺序以及响应关系,将响应于所述接收到的第二信令数据的第一信令数据发送给所述第二终端。The second data interaction sub-module is configured to send the second signaling data, the sending sequence of the second signaling data, and the response relationship to the second terminal, and trigger the second terminal based on the Sending the second signaling data in a sending order and a response relationship; based on the received second signaling data, the sending order of the first signaling data, and the response relationship, sending the second signaling data in response to the received second signaling data The first signaling data of the data is sent to the second terminal.
进一步地,在一些实施例中,所述第二通信子模块,用于模拟所述目标网络下的服务器,得到目标虚拟服务器;控制所述目标虚拟服务器与所述第二终端建立通信连接。Further, in some embodiments, the second communication sub-module is configured to simulate a server under the target network to obtain a target virtual server; and control the target virtual server to establish a communication connection with the second terminal.
进一步地,在一些实施例中,所述第二数据交互子模块,用于通过所述目标虚拟服务器将所述第二信令数据,所述第二信令数据的发送顺序以及所述响应关系发送给所述第二终端;通过所述目标虚拟服务器,基于接收到的第二信令数据、所述第一信令数据的发送顺序以及响应关系,确定响应于所述接收到的第二信令数据的第一信令数据,将确定的所述第一信令数据发送给所述第二终端。Further, in some embodiments, the second data interaction sub-module is configured to exchange the second signaling data, the sending order of the second signaling data, and the response relationship through the target virtual server Send to the second terminal; through the target virtual server, determine the response to the received second signaling data based on the received second signaling data, the sending order of the first signaling data, and the response relationship. Make the first signaling data of the data, and send the determined first signaling data to the second terminal.
进一步地,在一些实施例中,所述信令数据获取模块,用于:Further, in some embodiments, the signaling data acquisition module is used for:
获取目标测试用例与目标测试用例测试的信令交互流程之间的对应关系;Obtain the correspondence between the target test case and the signaling interaction process tested by the target test case;
基于所述对应关系,确定目标信令交互流程对应的第一目标测试用例;Based on the corresponding relationship, determine the first target test case corresponding to the target signaling interaction process;
从所述日志文件获取所述第一目标测试用例对应的信令数据作为目标信令数据。The signaling data corresponding to the first target test case is acquired from the log file as the target signaling data.
本申请实施例还提供一种存储介质,所述存储介质中存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述事任一实施例中所述的通信设备测试方法中的步骤。An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer is made to perform the communication device test described in any one of the above-mentioned embodiments. steps in the method.
本申请实施例还提供一种存储介质,所述存储介质中存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述通信设备测试方法中的步骤。Embodiments of the present application further provide a storage medium, where a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer is made to execute the steps in the above communication device testing method.
本申请实施例还提供一种终端,包括处理器和存储器,所述存储器中存储有计算机程序,所述处理器通过调用所述存储器中存储的所述计算机程序,用于执行上述通信设备测试方法中的步骤。An embodiment of the present application further provides a terminal, including a processor and a memory, wherein a computer program is stored in the memory, and the processor is configured to execute the above-mentioned communication device testing method by calling the computer program stored in the memory steps in .
本申请实施例还提供一种测试系统,其中,包括测试仪器和被测试设备,所述测试仪器存储有测试程序,所述测试仪器可调用测试程序,根据输入的测试信息与所述被测试设备进行通信交互,用于执行上述事任一实施例中所述的通信设备测试方法的步骤。The embodiment of the present application further provides a test system, which includes a test instrument and a device under test, the test instrument stores a test program, the test instrument can call the test program, and the device under test is related to the input test information according to the input test information. A communication interaction is performed to execute the steps of the communication device testing method described in any one of the above embodiments.
本申请通过获取目标测试产生的日志文件,所述目标测试为第一终端在目标网络下基于目标测试用例执行的测试;从所述日志文件中获取目标信令交互流程对应的目标信令数据,所述目标信令交互流程为所述目标测试中所述第一终端与所述目标网络的信令交互流程;基于所述目标信令数据与第二终端进行信令交互,以模拟所述目标测试的所述目标信令交互流程。本申请实施例可以模拟运营商5G实网或者实验室5G认证过程中的异常问题场景,加快问题解决进度和节省5G移动终端厂商的各种成本The present application obtains a log file generated by a target test, where the target test is a test performed by the first terminal under the target network based on the target test case; and obtains target signaling data corresponding to the target signaling interaction process from the log file, The target signaling interaction process is the signaling interaction process between the first terminal and the target network in the target test; signaling interaction with the second terminal based on the target signaling data to simulate the target The target signaling interaction flow of the test. The embodiments of this application can simulate abnormal problem scenarios in the operator's 5G real network or in the laboratory 5G certification process, speed up the problem solving process and save various costs for 5G mobile terminal manufacturers
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍。显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained from these drawings without creative effort.
图1为本申请实施例提供的通信设备测试方法的第一流程示意图。FIG. 1 is a first schematic flowchart of a communication device testing method provided by an embodiment of the present application.
图2为本申请实施例提供的通信设备测试方法的第二流程示意图。FIG. 2 is a second schematic flowchart of a communication device testing method provided by an embodiment of the present application.
图3为本申请实施例提供的通信设备测试装置的第一结构示意图。FIG. 3 is a schematic diagram of a first structure of a communication device testing apparatus provided by an embodiment of the present application.
图4为本申请实施例提供的通信设备测试装置的第二结构示意图。FIG. 4 is a schematic diagram of a second structure of a communication device testing apparatus provided by an embodiment of the present application.
图5为本申请实施例提供的通信设备测试装置的第三结构示意图。FIG. 5 is a schematic diagram of a third structure of a communication device testing apparatus provided by an embodiment of the present application.
图6为本申请实施例提供的通信设备测试装置的第四结构示意图。FIG. 6 is a fourth schematic structural diagram of a communication device testing apparatus provided by an embodiment of the present application.
图7为本申请实施例提供的终端的一种结构示意图。FIG. 7 is a schematic structural diagram of a terminal according to an embodiment of the present application.
图8为本申请实施例提供的终端的另一种结构示意图。FIG. 8 is another schematic structural diagram of a terminal provided by an embodiment of the present application.
本发明的实施方式Embodiments of the present invention
这里所公开的具体结构和功能细节仅仅是代表性的,并且是用于描述本申请的示例性实施例的目的。但是本申请可以通过许多替换形式来具体实现,并且不应当被解释成仅仅受限于这里所阐述的实施例。Specific structural and functional details disclosed herein are merely representative and for purposes of describing example embodiments of the present application. The application may, however, be embodied in many alternative forms and should not be construed as limited only to the embodiments set forth herein.
在本申请的描述中,需要理解的是,术语“中心”、“横向”、“上”、“下”、“左”、“右”、“竖直”、“水平”、“顶”、“底”、“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本申请和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本申请的限制。此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请的描述中,除非另有说明,“多个”的含义是两个或两个以上。另外,术语“包括”及其任何变形,意图在于覆盖不排他的包含。In the description of this application, it should be understood that the terms "center", "lateral", "top", "bottom", "left", "right", "vertical", "horizontal", "top", The orientation or positional relationship indicated by "bottom", "inner", "outer", etc. is based on the orientation or positional relationship shown in the accompanying drawings, which is only for the convenience of describing the present application and simplifying the description, rather than indicating or implying the indicated device. Or elements must have a particular orientation, be constructed and operate in a particular orientation, and therefore should not be construed as a limitation of the present application. In addition, the terms "first" and "second" are only used for descriptive purposes, and should not be construed as indicating or implying relative importance or implying the number of indicated technical features. Thus, a feature defined as "first" or "second" may expressly or implicitly include one or more of that feature. In the description of this application, unless stated otherwise, "plurality" means two or more. Additionally, the term "comprising" and any variations thereof are intended to cover non-exclusive inclusion.
在本申请的描述中,需要说明的是,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是支撑连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本申请中的具体含义。In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it may be a support connection or a detachable connection Connection, or integral connection; can be mechanical connection, can also be electrical connection; can be directly connected, can also be indirectly connected through an intermediate medium, can be internal communication between two elements. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood in specific situations.
这里所使用的术语仅仅是为了描述具体实施例而不意图限制示例性实施例。除非上下文明确地另有所指,否则这里所使用的单数形式“一个”、“一项”还意图包括复数。还应当理解的是,这里所使用的术语“包括”和/或“包含”规定所陈述的特征、整数、步骤、操作、单元和/或组件的存在,而不排除存在或添加一个或更多其他特征、整数、步骤、操作、单元、组件和/或其组合。The terminology used herein is for the purpose of describing specific embodiments only and is not intended to limit the exemplary embodiments. As used herein, the singular forms "a", "an" and "an" are intended to include the plural unless the context clearly dictates otherwise. It should also be understood that the terms "comprising" and/or "comprising" as used herein specify the presence of stated features, integers, steps, operations, units and/or components, but do not preclude the presence or addition of one or more Other features, integers, steps, operations, units, components and/or combinations thereof.
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有付出创造性劳动前提下所获得的所有其他实施例,都属于本申请的保护范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of this application.
本申请实施例提供一种通信设备测试方法,所述通信设备测试方法可以应用于终端中。所述终端可以是智能手机、平板电脑、台式计算机、智能手表、服务器、工作站、移动工作站等设备。An embodiment of the present application provides a method for testing a communication device, and the method for testing a communication device can be applied to a terminal. The terminal may be a smart phone, a tablet computer, a desktop computer, a smart watch, a server, a workstation, a mobile workstation, and other devices.
请参阅图1,图1为本申请实施例提供的通信设备测试方法的第一流程示意图。所述通信设备测试方法,应用于终端中,所述终端具有屏幕、摄像头、WiFi模块、通信模块等。所述方法可以包括以下步骤:Please refer to FIG. 1. FIG. 1 is a first schematic flowchart of a communication device testing method provided by an embodiment of the present application. The communication device testing method is applied to a terminal, and the terminal has a screen, a camera, a WiFi module, a communication module, and the like. The method may include the following steps:
步骤101,获取目标测试产生的日志文件,所述目标测试为第一终端在目标网络下基于目标测试用例执行的测试。Step 101: Obtain a log file generated by a target test, where the target test is a test performed by the first terminal under the target network based on the target test case.
具体的,获取第一终端对目标网络发起通信请求,并与目标网络建立通信连接之后,第一终端根据预设定的测试用例与目标网络进行通信交互所产生的日志文件。Specifically, after the first terminal initiates a communication request to the target network and establishes a communication connection with the target network, a log file generated by the first terminal communicating and interacting with the target network according to a preset test case is obtained.
例如,5G移动终端厂商出货5G终端到某个运营商,需要将5G移动终端到该运营商实网下进行实网测试;或者,运营商实验室测试或者GCF认证测试。在上述测试的过程中5G终端与实网运营下的服务器或者运营商实验室认证测试所使用的通信仪器建立通信连接、网络会话以及鉴权流程5G终端所产生的日志文件。For example, if a 5G mobile terminal manufacturer ships a 5G terminal to a certain operator, the 5G mobile terminal needs to be tested on the real network of the operator; or, the operator's laboratory test or GCF certification test. In the process of the above test, the 5G terminal establishes a communication connection with the server under the operation of the real network or the communication instrument used in the operator's laboratory certification test, the network session and the log file generated by the 5G terminal in the authentication process.
在一些实施例中,在从所述日志文件中获取目标信令交互流程对应的目标信令数据的步骤之前,还包括:基于所述日志文件确定所述目标测试过程中是否发生异常事件,其中,所述异常事件包括连接中断事件、网络中断事件和鉴权失败事件中的至少一种;若是,继续执行所述从所述日志文件中获取目标信令交互流程对应的目标信令数据的步骤;其中,所述连接中断事件包括所述第一终端未能与目标网络建立通信连接的异常情况;所述网络中断事件包括所述第一终端与目标网络建立通信连接,但是无法进行网络数据交互的异常情况;所述鉴权失败事件包括所述第一终端与目标网络无法完成鉴权的异常情况。In some embodiments, before the step of acquiring the target signaling data corresponding to the target signaling interaction process from the log file, the method further includes: determining whether an abnormal event occurs during the target testing process based on the log file, wherein , the abnormal event includes at least one of a connection interruption event, a network interruption event, and an authentication failure event; if so, continue to perform the step of obtaining the target signaling data corresponding to the target signaling interaction flow from the log file ; wherein, the connection interruption event includes an abnormal situation that the first terminal fails to establish a communication connection with the target network; the network interruption event includes the first terminal establishing a communication connection with the target network, but unable to carry out network data interaction the abnormal situation; the authentication failure event includes the abnormal situation that the first terminal and the target network cannot complete the authentication.
在一些实施例中,所述基于所述日志文件确定所述目标测试过程中是否发生预设异常事件包括:In some embodiments, the determining, based on the log file, whether a preset abnormal event occurs during the target testing process includes:
对所述日志文件中的记录进行检测,确定所述日志文件中的异常指示信息,所述异常指示信息用于指示在所述目标测试用例执行过程中发生异常情况;基于所述日志文件中所述异常指示信息的上下文信息,确定各所述异常指示信息对应的异常事件;确定所述异常事件中是否存在预设异常事件。具体的,所述异常指示信息可以为在目标测试用例执行过程中,终端在执行有关指令时出现异常事件时所产生的报错信息,此时所述的上下文信息可以为异常事件所对应的执行过程的记录以及对错误过程检查所返回的报错信息。The records in the log file are detected, and the abnormal indication information in the log file is determined, and the abnormal indication information is used to indicate that an abnormal situation occurs during the execution of the target test case; based on the information in the log file. The context information of the abnormality indication information is determined, the abnormality event corresponding to each abnormality indication information is determined, and whether there is a preset abnormality event in the abnormality event is determined. Specifically, the abnormal indication information may be error information generated when an abnormal event occurs when the terminal executes the relevant instruction during the execution of the target test case, and the context information may be the execution process corresponding to the abnormal event. records and the error message returned by the error process check.
步骤102,从所述日志文件中获取目标信令交互流程对应的目标信令数据,所述目标信令交互流程为所述目标测试中所述第一终端与所述目标网络的信令交互流程。Step 102: Obtain target signaling data corresponding to a target signaling interaction process from the log file, where the target signaling interaction process is a signaling interaction process between the first terminal and the target network in the target test .
具体的,从所获取到的日志文件中提取出与测试相关的信令数据,所述信令数据为第一终端与目标网络在通信测试的过程中所涉及到的网络层有关的信令数据。Specifically, the signaling data related to the test is extracted from the acquired log file, and the signaling data is the signaling data related to the network layer involved in the process of the communication test between the first terminal and the target network .
本实施例中的信令交互流程,可以是通信领域中网络层级架构下某一网络功能层为实现其功能所需的信令交互流程,网络功能层根据不同类型的网络可以有不同的划分,本实施例对此没有限制。The signaling interaction process in this embodiment may be a signaling interaction process required by a network function layer under the network hierarchy in the communication field to realize its function. The network function layer may be divided into different types according to different types of networks. This embodiment does not limit this.
以5G为例,网络功能层可以包括RRC层和NAS层。RRC层主要功能包括连接建立和释放功能、系统信息广播、无线电承载建立,重配置和释放、RRC连接移动性过程、寻呼通知等等。NAS层主要功能包括鉴权、认证、移动性管理,会话管理等。Taking 5G as an example, the network function layer may include the RRC layer and the NAS layer. The main functions of the RRC layer include connection establishment and release functions, system information broadcasting, radio bearer establishment, reconfiguration and release, RRC connection mobility procedures, paging notification and so on. The main functions of the NAS layer include authentication, authentication, mobility management, and session management.
本实施例中,一个目标测试用例可以用于测试一个或多个信令交互流程。In this embodiment, one target test case may be used to test one or more signaling interaction processes.
其中,目标信令交互流程可以是目标测试用例所测试的信令交互流程中的任意一个或多个。The target signaling interaction process may be any one or more of the signaling interaction processes tested by the target test case.
可选的,目标信令交互流程可以预先设置,例如目标信令交互流程包括RRC信令交互流程和RRC层的信令数据。Optionally, the target signaling interaction process may be preset, for example, the target signaling interaction process includes the RRC signaling interaction process and the signaling data of the RRC layer.
或者,目标信令交互流程可以根据目标测试中出现的问题,针对性地进行选择,以降低复现目标信令交互流程所需的时间。Alternatively, the target signaling interaction process can be selected according to the problems in the target test, so as to reduce the time required to reproduce the target signaling interaction process.
在一些实施例中,从所述日志文件中获取信令交互流程对应的目标信令数据的步骤,具体包括:从所述日志文件中获取在所述测试通信交互的过程中所述终端接收到的全部信令数据;从所述全部信令数据中,依照生成时间顺序获取所述目标信令数据。In some embodiments, the step of acquiring the target signaling data corresponding to the signaling interaction process from the log file specifically includes: acquiring from the log file the information received by the terminal during the process of testing the communication interaction All signaling data; from all signaling data, obtain the target signaling data in the order of generation time.
在一些实施例中,从所述日志文件中获取目标信令数据,包括:当所述预设异常事件包括所述连接中断事件或者所述网络中断事件时,从所述日志文件中获取RRC信令数据,所述RRC信令数据即为所述目标信令数据。In some embodiments, acquiring the target signaling data from the log file includes: when the preset abnormal event includes the connection interruption event or the network interruption event, acquiring the RRC signaling data from the log file The RRC signaling data is the target signaling data.
在一些实施例中,从所述日志文件中获取信令交互流程对应的目标信令数据的步骤,具体包括:从所述日志文件中获取在所述测试通信交互的过程中所述终端接收到的全部信令数据;从所述全部信令数据中,依照生成时间顺序获取所述目标信令数据。In some embodiments, the step of acquiring the target signaling data corresponding to the signaling interaction process from the log file specifically includes: acquiring from the log file the information received by the terminal during the process of testing the communication interaction All signaling data; from all signaling data, obtain the target signaling data in the order of generation time.
在一些实施例中,从所述日志文件中获取目标信令数据,包括:当所述异常事件包括所述鉴权失败事件时,从所述日志文件中获取RRC信令数据和NAS信令数据,所述RRC信令数据和所述NAS信令数据即为所述目标信令数据。In some embodiments, acquiring the target signaling data from the log file includes: when the abnormal event includes the authentication failure event, acquiring RRC signaling data and NAS signaling data from the log file , the RRC signaling data and the NAS signaling data are the target signaling data.
步骤103,基于所述目标信令数据与第二终端进行信令交互,以模拟所述目标测试的所述目标信令交互流程。Step 103: Perform signaling interaction with the second terminal based on the target signaling data to simulate the target signaling interaction process of the target test.
具体的,步骤103可以为根据所获取到的目标信令数据,与第二终端建立通信连接,基于接收到的信令数据与所述第二终端进行通信交互,所述通信交互为根据目标信令数据之间的对应关系以及时间顺序信息与第二终端进行信令交互,以复现出所述目标信令数据所对应的测试环境。Specifically, step 103 may be to establish a communication connection with the second terminal according to the acquired target signaling data, and to communicate and interact with the second terminal based on the received signaling data, and the communication interaction is to perform communication and interaction according to the target signaling data. The correspondence between the data and the time sequence information are made to perform signaling interaction with the second terminal, so as to reproduce the test environment corresponding to the target signaling data.
在一些实施例中,基于所述目标信令数据与第二终端进行信令交互的步骤,具体包括:In some embodiments, the step of performing signaling interaction with the second terminal based on the target signaling data specifically includes:
与所述第二终端进行建立通信连接;establishing a communication connection with the second terminal;
获取所述目标信令数据中所述目标网络下网络侧发送至所述第一终端的第一信令数据,所述第一终端发送至所述目标网络的网络侧的第二信令数据,以及所述第一信令数据和第二信令数据的发送顺序和响应关系;acquiring the first signaling data sent by the network side under the target network to the first terminal in the target signaling data, and the second signaling data sent by the first terminal to the network side of the target network, And the sending order and response relationship of the first signaling data and the second signaling data;
将所述第二信令数据,所述第二信令数据的发送顺序以及所述响应关系发送给所述第二终端,触发所述第二终端基于所述发送顺序和响应关系发送所述第二信令数据;基于接收到的第二信令数据、所述第一信令数据的发送顺序以及响应关系,将响应于所述接收到的第二信令数据的第一信令数据发送给所述第二终端。Send the second signaling data, the sending order of the second signaling data, and the response relationship to the second terminal, and trigger the second terminal to send the first signaling based on the sending order and the response relationship. Two signaling data; based on the received second signaling data, the sending order of the first signaling data, and the response relationship, sending the first signaling data in response to the received second signaling data to the second terminal.
在一些实施例中,与所述第二终端建立通信连接,包括:In some embodiments, establishing a communication connection with the second terminal includes:
模拟所述目标网络下的服务器,得到目标虚拟服务器;Simulate the server under the target network to obtain the target virtual server;
控制所述目标虚拟服务器与所述第二终端执行测试。Controlling the target virtual server and the second terminal to perform a test.
在一些实施例中,所述控制所述目标虚拟服务器与所述第二终端执行测试,包括:In some embodiments, the controlling the target virtual server to perform the test with the second terminal includes:
控制所述目标虚拟服务器与所述第二终端建立通信连接;controlling the target virtual server to establish a communication connection with the second terminal;
所述将所述第二信令数据,所述第二信令数据的发送顺序以及所述响应关系发送给所述第二终端,包括:The sending the second signaling data, the sending sequence of the second signaling data and the response relationship to the second terminal includes:
通过所述目标虚拟服务器将所述第二信令数据、所述第二信令数据的发送顺序以及所述响应关系发送给所述第二终端;Send the second signaling data, the sending sequence of the second signaling data, and the response relationship to the second terminal through the target virtual server;
所述基于接收到的第二信令数据、所述第一信令数据的发送顺序以及响应关系,将响应于所述接收到的第二信令数据的第一信令数据发送给所述第二终端,包括:Sending the first signaling data in response to the received second signaling data to the first signaling data based on the received second signaling data, the sending sequence of the first signaling data and the response relationship; Two terminals, including:
通过所述目标虚拟服务器,基于接收到的第二信令数据、所述第一信令数据的发送顺序以及响应关系,确定响应于所述接收到的第二信令数据的第一信令数据,将确定的所述第一信令数据发送给所述第二终端。Determine, by the target virtual server, first signaling data in response to the received second signaling data based on the received second signaling data, the sending sequence of the first signaling data, and the response relationship , sending the determined first signaling data to the second terminal.
上述所有可选技术方案,可以采用任意结合形成本申请的可选实施例,在此不再一一赘述。All the above-mentioned optional technical solutions can be combined arbitrarily to form optional embodiments of the present application, which will not be repeated here.
具体实施时,本申请不受所描述的各个步骤的执行顺序的限制,在不产生冲突的情况下,某些步骤还可以采用其它顺序进行或者同时进行。During specific implementation, the present application is not limited by the execution order of the described steps, and certain steps may also be performed in other sequences or simultaneously under the condition of no conflict.
由上可知,本申请实施例提供的通信设备测试方法通过获取目标测试产生的日志文件,所述目标测试为第一终端在目标网络下基于目标测试用例执行的测试;从所述日志文件中获取目标信令交互流程对应的目标信令数据,所述目标信令交互流程为所述目标测试中所述第一终端与所述目标网络的信令交互流程;基于所述目标信令数据与第二终端进行信令交互,以模拟所述目标测试的所述目标信令交互流程。本申请实施例当在获取测试过程中终端所产生的日志文件的基础上,基于从日志文件中获取到的信令数据与被测试终端进行数据通信,以复现/模拟出测试过程中出现问题的异常场景。As can be seen from the above, the communication device testing method provided by the embodiment of the present application obtains the log file generated by the target test, and the target test is the test performed by the first terminal under the target network based on the target test case; obtain the log file from the log file. Target signaling data corresponding to the target signaling interaction process, the target signaling interaction process is the signaling interaction process between the first terminal and the target network in the target test; based on the target signaling data and the first terminal. The two terminals perform signaling interaction to simulate the target signaling interaction flow of the target test. In this embodiment of the present application, on the basis of acquiring the log file generated by the terminal during the test process, data communication is performed with the terminal under test based on the signaling data acquired from the log file, so as to reproduce/simulate the problem in the test process. unusual scene.
本申请实施例还提供一种通信设备测试装置,所述通信设备测试装置可以集成在终端中,所述终端可以是智台式计算机、移动式计算机、服务器、手持式移动终端等设备。Embodiments of the present application further provide a communication equipment testing apparatus, which may be integrated in a terminal, and the terminal may be a smart desktop computer, a mobile computer, a server, a handheld mobile terminal, or other equipment.
请参阅图2,图2为本申请实施例提供的通信设备测试方法的第二流程示意图。本发明实施例在上述实施例的基础上进行优化,本发明实施例可以与上述一个或者多个实施例中的各个可选方案结合。所述方法可以包括以下步骤:Please refer to FIG. 2 , which is a second schematic flowchart of the communication device testing method provided by the embodiment of the present application. The embodiments of the present invention are optimized on the basis of the foregoing embodiments, and the embodiments of the present invention may be combined with various optional solutions in one or more of the foregoing embodiments. The method may include the following steps:
步骤201,获取目标测试产生的日志文件,所述目标测试为第一终端在目标网络下基于目标测试用例执行的测试。Step 201: Obtain a log file generated by a target test, where the target test is a test performed by the first terminal under the target network based on the target test case.
具体的,获取第一终端对目标网络发起通信请求,并与目标网络建立通信连接之后,第一终端根据预设定的测试用例与目标网络进行通信交互所产生的日志文件。Specifically, after the first terminal initiates a communication request to the target network and establishes a communication connection with the target network, a log file generated by the first terminal communicating and interacting with the target network according to a preset test case is obtained.
步骤202,从所述日志文件中获取目标信令交互流程对应的目标信令数据,所述目标信令交互流程为所述目标测试中所述第一终端与所述目标网络的信令交互流程。Step 202: Obtain target signaling data corresponding to a target signaling interaction process from the log file, where the target signaling interaction process is a signaling interaction process between the first terminal and the target network in the target test .
具体的,从所获取到的日志文件中提取出与测试相关的信令数据,所述信令数据为第一终端与目标网络在通信测试的过程中所涉及到的网络层有关的信令数据。Specifically, the signaling data related to the test is extracted from the acquired log file, and the signaling data is the signaling data related to the network layer involved in the process of the communication test between the first terminal and the target network .
本实施例中的信令交互流程,可以是通信领域中网络层级架构下某一网络功能层为实现其功能所需的信令交互流程,网络功能层根据不同类型的网络可以有不同的划分,本实施例对此没有限制。The signaling interaction process in this embodiment may be a signaling interaction process required by a network function layer under the network hierarchy in the communication field to realize its function. The network function layer may be divided into different types according to different types of networks. This embodiment does not limit this.
本实施例中的信令交互流程,可以是通信领域中网络层级架构下某一网络功能层为实现其功能所需的信令交互流程,网络功能层根据不同类型的网络可以有不同的划分,本实施例对此没有限制。The signaling interaction process in this embodiment may be a signaling interaction process required by a network function layer under the network hierarchy in the communication field to realize its function. The network function layer may be divided into different types according to different types of networks. This embodiment does not limit this.
以5G为例,网络功能层可以包括RRC层和NAS层。RRC层主要功能包括连接建立和释放功能、系统信息广播、无线电承载建立,重配置和释放、RRC连接移动性过程、寻呼通知等等。NAS层主要功能包括鉴权、认证、移动性管理,会话管理等。Taking 5G as an example, the network function layer may include the RRC layer and the NAS layer. The main functions of the RRC layer include connection establishment and release functions, system information broadcasting, radio bearer establishment, reconfiguration and release, RRC connection mobility procedures, paging notification and so on. The main functions of the NAS layer include authentication, authentication, mobility management, and session management.
本实施例中,一个目标测试用例可以用于测试一个或多个信令交互流程。其中,目标信令交互流程可以是目标测试用例所测试的信令交互流程中的任意一个或多个。In this embodiment, one target test case may be used to test one or more signaling interaction processes. The target signaling interaction process may be any one or more of the signaling interaction processes tested by the target test case.
可选的,目标信令交互流程可以预先设置,例如目标信令交互流程包括RRC信令交互流程和RRC层的信令数据。或者,目标信令交互流程可以根据目标测试中出现的问题,针对性地进行选择,以降低复现目标信令交互流程所需的时间。Optionally, the target signaling interaction process may be preset, for example, the target signaling interaction process includes the RRC signaling interaction process and the signaling data of the RRC layer. Alternatively, the target signaling interaction process can be selected according to the problems in the target test, so as to reduce the time required to reproduce the target signaling interaction process.
在一些实施例中,从所述日志文件中获取目标信令交互流程对应的目标信令数据,包括:当所述预设异常事件包括所述连接中断事件或者所述网络中断事件时,从所述日志文件中获取RRC信令数据,基于所述RRC信令数据得到目标信令数据。In some embodiments, acquiring the target signaling data corresponding to the target signaling interaction process from the log file includes: when the preset abnormal event includes the connection interruption event or the network interruption event, obtaining the target signaling data from the Obtain RRC signaling data from the log file, and obtain target signaling data based on the RRC signaling data.
在一些实施例中,从所述日志文件中获取信令交互流程对应的目标信令数据的步骤,具体包括:从所述日志文件中获取在所述测试通信交互的过程中所述终端接收到的全部信令数据;从所述全部信令数据中,依照生成时间顺序获取所述目标信令数据。In some embodiments, the step of acquiring the target signaling data corresponding to the signaling interaction process from the log file specifically includes: acquiring from the log file the information received by the terminal during the process of testing the communication interaction All signaling data; from all signaling data, obtain the target signaling data in the order of generation time.
在一些实施例中,从所述日志文件中获取目标信令数据,包括:当所述预设异常事件包括所述连接中断事件或者所述网络中断事件时,从所述日志文件中获取RRC信令数据,所述RRC信令数据即为所述目标信令数据。In some embodiments, acquiring the target signaling data from the log file includes: when the preset abnormal event includes the connection interruption event or the network interruption event, acquiring the RRC signaling data from the log file The RRC signaling data is the target signaling data.
在一些实施例中,从所述日志文件中获取目标信令数据,包括:当所述预设异常事件包括所述鉴权失败事件时,从所述日志文件中获取RRC信令数据和NAS信令数据,所述NAS信令数据即为所述目标信令数据。In some embodiments, acquiring the target signaling data from the log file includes: when the preset abnormal event includes the authentication failure event, acquiring RRC signaling data and NAS signaling data from the log file The NAS signaling data is the target signaling data.
步骤203,根据目标信令数据模拟所述目标网络的服务器;Step 203, simulate the server of the target network according to the target signaling data;
具体的,基于获取到的日志文件中的目标信令数据以及其他与网络侧的有关信息,模拟出与网络侧工作参数相同的服务器。Specifically, based on the acquired target signaling data in the log file and other information related to the network side, a server with the same working parameters as the network side is simulated.
步骤204,控制模拟出的服务器基于所述目标信令数据与第二终端进行信令交互,以模拟所述目标测试的所述目标信令交互流程。Step 204: Control the simulated server to perform signaling interaction with the second terminal based on the target signaling data, so as to simulate the target signaling interaction process of the target test.
具体的,在控制模拟出的服务器的基础上,根据所提取到的目标指令数据,控制所述模拟服务器与所述第二终端建立通信连接,并将所述目标指令数据发送给第二终端,以模拟复现出目标测试过程中产生的异常事件所对应的场景。Specifically, on the basis of controlling the simulated server, according to the extracted target instruction data, the simulated server is controlled to establish a communication connection with the second terminal, and the target instruction data is sent to the second terminal, To simulate and reproduce the scenarios corresponding to the abnormal events generated during the target testing process.
在一些实施例中,与所述第二终端建立通信连接,包括:模拟所述目标网络下的服务器,得到目标虚拟服务器;控制所述目标虚拟服务器与所述第二终端执行测试。In some embodiments, establishing a communication connection with the second terminal includes: simulating a server under the target network to obtain a target virtual server; and controlling the target virtual server to perform a test with the second terminal.
在一些实施例中,所述控制所述目标虚拟服务器与所述第二终端执行测试,包括:In some embodiments, the controlling the target virtual server to perform the test with the second terminal includes:
控制所述目标虚拟服务器与所述第二终端建立通信连接;controlling the target virtual server to establish a communication connection with the second terminal;
所述将所述第二信令数据,所述第二信令数据的发送顺序以及所述响应关系发送给所述第二终端,包括:The sending the second signaling data, the sending sequence of the second signaling data and the response relationship to the second terminal includes:
通过所述目标虚拟服务器将所述第二信令数据、所述第二信令数据的发送顺序以及所述响应关系发送给所述第二终端;Send the second signaling data, the sending sequence of the second signaling data, and the response relationship to the second terminal through the target virtual server;
所述基于接收到的第二信令数据、所述第一信令数据的发送顺序以及响应关系,将响应于所述接收到的第二信令数据的第一信令数据发送给所述第二终端,包括:通过所述目标虚拟服务器,基于接收到的第二信令数据、所述第一信令数据的发送顺序以及响应关系,确定响应于所述接收到的第二信令数据的第一信令数据,将确定的所述第一信令数据发送给所述第二终端。Sending the first signaling data in response to the received second signaling data to the first signaling data based on the received second signaling data, the sending sequence of the first signaling data and the response relationship; Two terminals, including: by the target virtual server, based on the received second signaling data, the sending order of the first signaling data, and the response relationship, determining a response to the received second signaling data. the first signaling data, and send the determined first signaling data to the second terminal.
上述所有可选技术方案,可以采用任意结合形成本申请的可选实施例,在此不再一一赘述。All the above-mentioned optional technical solutions can be combined arbitrarily to form optional embodiments of the present application, which will not be repeated here.
具体实施时,本申请不受所描述的各个步骤的执行顺序的限制,在不产生冲突的情况下,某些步骤还可以采用其它顺序进行或者同时进行。During specific implementation, the present application is not limited by the execution order of the described steps, and certain steps may also be performed in other sequences or simultaneously under the condition of no conflict.
请参阅图3,图3为本申请实施例提供的通信设备测试装置的第一结构示意图。所述通信设备测试装置30可以包括:Please refer to FIG. 3 . FIG. 3 is a schematic diagram of a first structure of a communication device testing apparatus provided by an embodiment of the present application. The communication equipment testing apparatus 30 may include:
日志获取模块301,用于获取目标测试产生的日志文件,所述目标测试为第一终端在目标网络下基于目标测试用例执行的测试;A log acquisition module 301, configured to acquire a log file generated by a target test, where the target test is a test performed by the first terminal under the target network based on the target test case;
信令数据获取模块302,用于从所述日志文件中获取目标信令交互流程对应的目标信令数据,所述目标信令交互流程为所述目标测试中所述第一终端与所述目标网络的信令交互流程;A signaling data acquisition module 302, configured to acquire target signaling data corresponding to a target signaling interaction process from the log file, where the target signaling interaction process is the first terminal and the target in the target test Network signaling interaction process;
模拟测试模块303,用于基于所述目标信令数据与第二终端进行信令交互,以模拟所述目标测试的所述目标信令交互流程。The simulation test module 303 is configured to perform signaling interaction with the second terminal based on the target signaling data, so as to simulate the target signaling interaction process of the target test.
在一些实施例中,所述信令数据获取模块301,具体还用于:在从所述日志文件中获取目标信令交互流程对应的目标信令数据的步骤之前,还包括:基于所述日志文件确定所述目标测试过程中是否发生预设异常事件,其中,预设异常事件包括:连接中断事件、网络中断事件和鉴权失败事件中的至少一种;若是,继续执行所述从所述日志文件中获取目标信令交互流程对应的目标信令数据的步骤;其中,所述连接中断事件包括:所述第一终端未能与目标网络建立通信连接的异常情况;所述网络中断事件包括:所述第一终端与目标网络建立通信连接,但是无法进行网络数据交互的异常情况;所述鉴权失败事件包括:所述第一终端与目标网络无法完成鉴权的异常情况。In some embodiments, the signaling data acquisition module 301 is further configured to: before the step of acquiring the target signaling data corresponding to the target signaling interaction process from the log file, further comprising: based on the log The file determines whether a preset abnormal event occurs in the target test process, wherein the preset abnormal event includes: at least one of a connection interruption event, a network interruption event and an authentication failure event; The step of acquiring target signaling data corresponding to the target signaling interaction process in the log file; wherein the connection interruption event includes: an abnormal situation in which the first terminal fails to establish a communication connection with the target network; the network interruption event includes : an abnormal situation in which the first terminal establishes a communication connection with the target network, but cannot perform network data exchange; the authentication failure event includes: an abnormal situation in which the first terminal and the target network cannot complete the authentication.
进一步地,所述信令数据获取模块301,具体还用于:基于所述日志文件确定所述目标测试过程中是否发生预设异常事件,所述基于所述日志文件确定所述目标测试过程中是否发生预设异常事件包括:Further, the signaling data acquisition module 301 is specifically further configured to: determine whether a preset abnormal event occurs in the target test process based on the log file, and determine whether a preset abnormal event occurs in the target test process based on the log file. Whether a preset abnormal event occurs includes:
对所述日志文件中的记录进行检测,确定所述日志文件中的异常指示信息,所述异常指示信息用于指示在所述目标测试用例执行过程中发生异常情况;基于所述日志文件中所述异常指示信息的上下文信息,确定各所述异常指示信息对应的异常事件;确定所述异常事件中是否存在预设异常事件。The records in the log file are detected, and the abnormal indication information in the log file is determined, and the abnormal indication information is used to indicate that an abnormal situation occurs during the execution of the target test case; based on the information in the log file. The context information of the abnormality indication information is determined, the abnormality event corresponding to each abnormality indication information is determined, and whether there is a preset abnormality event in the abnormality event is determined.
在一些实施例中,所述信令数据获取模块302,具体还用于进行目标测试用例的获取,一个目标测试用例可以用于测试一个或多个信令交互流程。In some embodiments, the signaling data acquisition module 302 is further configured to acquire target test cases, and one target test case can be used to test one or more signaling interaction processes.
其中,目标信令交互流程可以是目标测试用例所测试的信令交互流程中的任意一个或多个。可选的,目标信令交互流程可以预先设置,例如目标信令交互流程包括RRC信令交互流程和RRC层的信令数据。或者,目标信令交互流程可以根据目标测试中出现的问题,针对性地进行选择,以降低复现目标信令交互流程所需的时间。The target signaling interaction process may be any one or more of the signaling interaction processes tested by the target test case. Optionally, the target signaling interaction process may be preset, for example, the target signaling interaction process includes the RRC signaling interaction process and the signaling data of the RRC layer. Alternatively, the target signaling interaction process can be selected according to the problems in the target test, so as to reduce the time required to reproduce the target signaling interaction process.
在一些实施例中,所述信令数据获取模块302,具体还用于:当所述异常事件包括所述连接中断事件或者所述网络中断事件时,从所述日志文件中获取RRC信令数据,所述RRC信令数据即为所述目标信令数据。In some embodiments, the signaling data acquisition module 302 is further configured to acquire RRC signaling data from the log file when the abnormal event includes the connection interruption event or the network interruption event , the RRC signaling data is the target signaling data.
在一些实施例中,所述信令数据获取模块302,具体还用于:当所述异常事件包括所述鉴权失败事件时,从所述日志文件中获取RRC信令数据和NAS信令数据,所述RRC信令数据和所述NAS信令数据即为所述目标信令数据。In some embodiments, the signaling data acquisition module 302 is further configured to: when the abnormal event includes the authentication failure event, acquire RRC signaling data and NAS signaling data from the log file , the RRC signaling data and the NAS signaling data are the target signaling data.
在一些实施例中,所述信令数据获取模块302,具体还用于:从所述日志文件中获取信令交互流程对应的目标信令数据的步骤,具体包括:从所述日志文件中获取在所述测试通信交互的过程中所述终端接收到的全部信令数据;从所述全部信令数据中,依照生成时间顺序获取所述目标信令数据。In some embodiments, the signaling data acquisition module 302 is further configured to: acquire the target signaling data corresponding to the signaling interaction flow from the log file, which specifically includes: acquiring from the log file All signaling data received by the terminal in the process of testing the communication interaction; from the all signaling data, the target signaling data is acquired in the order of generation time.
在一些实施例中,模拟测试模块303,具体用于根据异常事件的分类,从所述日志文件中获取相应类型的目标信令数据。In some embodiments, the simulation test module 303 is specifically configured to acquire corresponding type of target signaling data from the log file according to the classification of abnormal events.
例如,当所述异常事件为所述连接中断事件或者所述网络中断事件时,从所述日志文件中获取目标信令数据,包括:从所述日志文件中获取RRC信令数据,所述RRC信令数据即为所述目标信令数据。For example, when the abnormal event is the connection interruption event or the network interruption event, acquiring target signaling data from the log file includes: acquiring RRC signaling data from the log file, where the RRC The signaling data is the target signaling data.
可选的,当连接中断事件或者所述网络中断事件时,从所述日志文件中获取目标信令数据还可以包括RRC信令数据与NAS信令数据及其他类型的信令数据。Optionally, when the connection is interrupted or the network is interrupted, the target signaling data obtained from the log file may further include RRC signaling data, NAS signaling data and other types of signaling data.
例如,当所述异常事件为所述鉴权失败事件时,从所述日志文件中获取目标信令数据,包括:从所述日志文件中获取NAS信令数据,所述NAS信令数据即为所述目标信令数据。For example, when the abnormal event is the authentication failure event, acquiring target signaling data from the log file includes: acquiring NAS signaling data from the log file, where the NAS signaling data is the target signaling data.
可选的,当鉴权失败事件时,从所述日志文件中获取目标信令数据还可以包括RRC信令数据与NAS信令数据及其他类型的信令数据。Optionally, in the event of an authentication failure, the target signaling data obtained from the log file may further include RRC signaling data, NAS signaling data and other types of signaling data.
在一些实施例中,模拟测试模块303,具体还用于:基于所述目标信令数据与第二终端进行信令交互的步骤,具体包括:与所述第二终端进行通信连接;In some embodiments, the simulation test module 303 is further configured to: perform signaling interaction with the second terminal based on the target signaling data, which specifically includes: performing a communication connection with the second terminal;
获取所述目标信令数据中所述目标网络下网络侧发送至所述第一终端的第一信令数据,所述第一终端发送至所述目标网络的网络侧的第二信令数据,以及所述第一信令数据和第二信令数据的发送顺序和响应关系;acquiring the first signaling data sent by the network side under the target network to the first terminal in the target signaling data, and the second signaling data sent by the first terminal to the network side of the target network, And the sending order and response relationship of the first signaling data and the second signaling data;
将所述第二信令数据、所述第二信令数据的发送顺序以及所述响应关系发送给所述第二终端,触发所述第二终端基于所述发送顺序和响应关系发送所述第二信令数据;Send the second signaling data, the sending order of the second signaling data, and the response relationship to the second terminal, and trigger the second terminal to send the first signaling based on the sending order and the response relationship. 2. Signaling data;
基于接收到的第二信令数据、所述第一信令数据的发送顺序以及响应关系,将响应于所述接收到的第二信令数据的第一信令数据发送给所述第二终端。Based on the received second signaling data, the sending sequence of the first signaling data, and the response relationship, the first signaling data in response to the received second signaling data is sent to the second terminal .
在一些实施例中,模拟测试模块303,具体还用于:与所述第二终端建立通信连接,包括:模拟所述目标网络下的服务器,得到目标虚拟服务器;控制所述目标虚拟服务器与所述第二终端执行测试。In some embodiments, the simulation test module 303 is further configured to: establish a communication connection with the second terminal, including: simulating a server under the target network to obtain a target virtual server; controlling the target virtual server to communicate with the target virtual server The second terminal executes the test.
在一些实施例中,模拟测试模块303,具体还用于:所述控制所述目标虚拟服务器与所述第二终端执行测试,包括:In some embodiments, the simulation test module 303 is further configured to: the controlling the target virtual server and the second terminal to perform the test, including:
控制所述目标虚拟服务器与所述第二终端建立通信连接;controlling the target virtual server to establish a communication connection with the second terminal;
所述将所述第二信令数据,所述第二信令数据的发送顺序以及所述响应关系发送给所述第二终端,包括:The sending the second signaling data, the sending sequence of the second signaling data and the response relationship to the second terminal includes:
通过所述目标虚拟服务器将所述第二信令数据、所述第二信令数据的发送顺序以及所述响应关系发送给所述第二终端;Send the second signaling data, the sending sequence of the second signaling data, and the response relationship to the second terminal through the target virtual server;
所述基于接收到的第二信令数据、所述第一信令数据的发送顺序以及响应关系,将响应于所述接收到的第二信令数据的第一信令数据发送给所述第二终端,包括:Sending the first signaling data in response to the received second signaling data to the first signaling data based on the received second signaling data, the sending sequence of the first signaling data and the response relationship; Two terminals, including:
通过所述目标虚拟服务器,基于接收到的第二信令数据、所述第一信令数据的发送顺序以及响应关系,确定响应于所述接收到的第二信令数据的第一信令数据,将确定的所述第一信令数据发送给所述第二终端。Determine, by the target virtual server, first signaling data in response to the received second signaling data based on the received second signaling data, the sending sequence of the first signaling data, and the response relationship , sending the determined first signaling data to the second terminal.
由上可知,本申请实施例提供的通信设备测试装置30,通过日志获取模块301获取目标测试产生的日志文件,所述目标测试为第一终端在目标网络下基于目标测试用例执行的测试;信令数据获取模块302从所述日志文件中获取目标信令交互流程对应的目标信令数据,所述目标信令交互流程为所述目标测试中所述第一终端与所述目标网络的信令交互流程;模拟测试模块303基于所述目标信令数据与第二终端进行信令交互,以模拟所述目标测试的所述目标信令交互流程。本申请实施例可以模拟运营商5G实网或者实验室5G认证过程中的异常问题场景,加快问题解决进度和节省5G移动终端厂商的各种成本。As can be seen from the above, the communication equipment testing apparatus 30 provided by the embodiment of the present application obtains the log file generated by the target test through the log acquisition module 301, and the target test is the test performed by the first terminal under the target network based on the target test case; Let the data acquisition module 302 acquire the target signaling data corresponding to the target signaling interaction process from the log file, and the target signaling interaction process is the signaling between the first terminal and the target network in the target test. Interaction process; the simulation test module 303 performs signaling interaction with the second terminal based on the target signaling data to simulate the target signaling interaction process of the target test. The embodiments of the present application can simulate abnormal problem scenarios in the operator's 5G real network or in the laboratory 5G certification process, so as to speed up the problem solving process and save various costs of 5G mobile terminal manufacturers.
上述所有可选技术方案,可以采用任意结合形成本申请的可选实施例,在此不再一一赘述。All the above-mentioned optional technical solutions can be combined arbitrarily to form optional embodiments of the present application, which will not be repeated here.
具体实施时,本申请不受所描述的各个步骤的执行顺序的限制,在不产生冲突的情况下,某些步骤还可以采用其它顺序进行或者同时进行。During specific implementation, the present application is not limited by the execution order of the described steps, and certain steps may also be performed in other sequences or simultaneously under the condition of no conflict.
请参阅图4,图4为本申请实施例提供的通信设备测试装置的第二结构示意图。所述通信设备测试装置40可以包括:Please refer to FIG. 4 . FIG. 4 is a schematic diagram of a second structure of a communication device testing apparatus provided by an embodiment of the present application. The communication equipment testing apparatus 40 may include:
日志获取模块401,用于获取目标测试产生的日志文件,所述目标测试为第一终端在目标网络下基于目标测试用例执行的测试;A log acquisition module 401, configured to acquire a log file generated by a target test, where the target test is a test performed by the first terminal under the target network based on the target test case;
信令数据获取模块402,用于从所述日志文件中获取目标信令交互流程对应的目标信令数据,所述目标信令交互流程为所述目标测试中所述第一终端与所述目标网络的信令交互流程;A signaling data acquisition module 402, configured to acquire target signaling data corresponding to a target signaling interaction process from the log file, where the target signaling interaction process is the first terminal and the target in the target test Network signaling interaction process;
模拟测试模块403,用于基基于所述目标信令数据与第二终端进行信令交互,以模拟所述目标测试的所述目标信令交互流程。The simulation test module 403 is configured to perform signaling interaction with the second terminal based on the target signaling data, so as to simulate the target signaling interaction process of the target test.
所述模拟测试模块403还包括:The simulation test module 403 also includes:
第一通信子模块4031,用于与所述第二终端进行建立通信连接;a first communication sub-module 4031, configured to establish a communication connection with the second terminal;
第一信令数据获取子模块4032,用于获取所述目标信令数据中所述目标网络下网络侧发送至所述第一终端的第一信令数据,所述第一终端发送至所述目标网络的网络侧的第二信令数据,以及所述第一信令数据和第二信令数据的发送顺序和响应关系;The first signaling data acquisition sub-module 4032 is configured to acquire the first signaling data sent by the network side under the target network to the first terminal in the target signaling data, and the first terminal sends the first signaling data to the the second signaling data on the network side of the target network, and the sending sequence and response relationship of the first signaling data and the second signaling data;
第一数据交互子模块4033,用于将所述第二信令数据,所述第二信令数据的发送顺序以及所述响应关系发送给所述第二终端,触发所述第二终端基于所述发送顺序和响应关系发送所述第二信令数据;The first data interaction sub-module 4033 is configured to send the second signaling data, the sending sequence of the second signaling data, and the response relationship to the second terminal, and trigger the second terminal to sending the second signaling data in the sending sequence and the response relationship;
第三通信子模块4034,用于基于接收到的第二信令数据、所述第一信令数据的发送顺序以及响应关系,将响应于所述接收到的第二信令数据的第一信令数据发送给所述第二终端。The third communication sub-module 4034 is configured to, based on the received second signaling data, the sending order of the first signaling data, and the response relationship, send the first signaling data in response to the received second signaling data send the data to the second terminal.
由上可知,本申请实施例提供的通信设备测试装置40,通过It can be seen from the above that the communication equipment testing apparatus 40 provided by the embodiment of the present application can pass
日志获取模块401获取目标测试产生的日志文件,所述目标测试为第一终端在目标网络下基于目标测试用例执行的测试;信令数据获取模块402从所述日志文件中获取目标信令交互流程对应的目标信令数据,所述目标信令交互流程为所述目标测试中所述第一终端与所述目标网络的信令交互流程;模拟测试模块403基基于所述目标信令数据与第二终端进行信令交互,以模拟所述目标测试的所述目标信令交互流程。所述模拟测试模块403还包括:第一通信子模块4031与所述第二终端进行建立通信连接;第一信令数据获取子模块4032获取所述目标信令数据中所述目标网络下网络侧发送至所述第一终端的第一信令数据,所述第一终端发送至所述目标网络的网络侧的第二信令数据,以及所述第一信令数据和第二信令数据的发送顺序和响应关系;第一数据交互子模块4033将所述第二信令数据,所述第二信令数据的发送顺序以及所述响应关系发送给所述第二终端,触发所述第二终端基于所述发送顺序和响应关系发送所述第二信令数据;第三通信子模块4034基于接收到的第二信令数据、所述第一信令数据的发送顺序以及响应关系,将响应于所述接收到的第二信令数据的第一信令数据发送给所述第二终端。以复现所述目标测试的过程中产生的异常事件所对应的信令交互流程。本申请实施例可以模拟运营商5G实网或者实验室5G认证过程中的异常问题场景,加快问题解决进度和节省5G移动终端厂商的各种成本。The log acquisition module 401 acquires the log file generated by the target test, and the target test is a test performed by the first terminal under the target network based on the target test case; the signaling data acquisition module 402 acquires the target signaling interaction process from the log file Corresponding target signaling data, the target signaling interaction process is the signaling interaction process between the first terminal and the target network in the target test; the simulation test module 403 is based on the target signaling data and the first terminal. The two terminals perform signaling interaction to simulate the target signaling interaction process of the target test. The simulation test module 403 further includes: the first communication sub-module 4031 establishes a communication connection with the second terminal; the first signaling data acquisition sub-module 4032 acquires the network side under the target network in the target signaling data The first signaling data sent to the first terminal, the second signaling data sent by the first terminal to the network side of the target network, and the difference between the first signaling data and the second signaling data. Sending sequence and response relationship; the first data interaction sub-module 4033 sends the second signaling data, the sending sequence of the second signaling data, and the response relationship to the second terminal, triggering the second signaling data The terminal sends the second signaling data based on the sending order and the response relationship; the third communication sub-module 4034 sends the response based on the received second signaling data, the sending order of the first signaling data, and the response relationship. The first signaling data corresponding to the received second signaling data is sent to the second terminal. In order to reproduce the signaling interaction process corresponding to the abnormal event generated in the process of the target test. The embodiments of the present application can simulate abnormal problem scenarios in the operator's 5G real network or in the laboratory 5G certification process, so as to speed up the problem solving process and save various costs of 5G mobile terminal manufacturers.
请参阅图5,图5为本申请实施例提供的通信设备测试装置的第三结构示意图,通信设备测试装置50包括存储器120、一个或多个处理器180、以及一个或多个应用程序,其中该一个或多个应用程序被存储于该存储器120中,并配置为由该处理器180执行;该处理器180可以包括日志获取模块501,信令数据获取模块502,模拟测试模块503。例如,以上各个部件的结构和连接关系可以如下:Please refer to FIG. 5. FIG. 5 is a third schematic structural diagram of a communication equipment testing apparatus provided by an embodiment of the present application. The communication equipment testing apparatus 50 includes a memory 120, one or more processors 180, and one or more application programs, wherein The one or more application programs are stored in the memory 120 and configured to be executed by the processor 180 ; the processor 180 may include a log acquisition module 501 , a signaling data acquisition module 502 , and a simulation test module 503 . For example, the structures and connection relationships of the above components can be as follows:
存储器120可用于存储应用程序和数据。存储器120存储的应用程序中包含有可执行代码。应用程序可以组成各种功能模块。处理器180通过运行存储在存储器120的应用程序,从而执行各种功能应用以及数据处理。此外,存储器120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器120还可以包括存储器控制器,以提供处理器180对存储器120的访问。Memory 120 may be used to store applications and data. The application programs stored in the memory 120 contain executable codes. Applications can be composed of various functional modules. The processor 180 executes various functional applications and data processing by executing application programs stored in the memory 120 . Additionally, memory 120 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 120 may also include a memory controller to provide processor 180 access to memory 120 .
处理器180是装置的控制中心,利用各种接口和线路连接整个终端的各个部分,通过运行或执行存储在存储器120内的应用程序,以及调用存储在存储器120内的数据,执行装置的各种功能和处理数据,从而对装置进行整体监控。可选的,处理器180可包括一个或多个处理核心;优选的,处理器180可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等。The processor 180 is the control center of the device, uses various interfaces and lines to connect various parts of the entire terminal, and executes various functions of the device by running or executing the application program stored in the memory 120 and calling the data stored in the memory 120. function and process data for overall monitoring of the installation. Optionally, the processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc. .
具体在本实施例中,处理器180会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行代码加载到存储器120中,并由处理器180来运行存储在存储器120中的应用程序,从而实现各种功能:Specifically in this embodiment, the processor 180 loads the executable code corresponding to the process of one or more application programs into the memory 120 according to the following instructions, and the processor 180 executes the executable code stored in the memory 120 application to achieve various functions:
日志获取模块501,用于获取目标测试产生的日志文件,所述目标测试为第一终端在目标网络下基于目标测试用例执行的测试;A log acquisition module 501, configured to acquire a log file generated by a target test, where the target test is a test performed by the first terminal under the target network based on the target test case;
信令数据获取模块502,用于从所述日志文件中获取目标信令交互流程对应的目标信令数据,所述目标信令交互流程为所述目标测试中所述第一终端与所述目标网络的信令交互流程;A signaling data acquisition module 502, configured to acquire target signaling data corresponding to a target signaling interaction process from the log file, where the target signaling interaction process is the first terminal and the target in the target test Network signaling interaction process;
模拟测试模块503,用于基于所述目标信令数据与第二终端进行信令交互,以模拟所述目标测试的所述目标信令交互流程。The simulation test module 503 is configured to perform signaling interaction with the second terminal based on the target signaling data, so as to simulate the target signaling interaction process of the target test.
以上各个操作的具体实施可参见前面的实施例,在此不再赘述。For the specific implementation of the above operations, reference may be made to the foregoing embodiments, and details are not described herein again.
请参阅图6,图6为本申请实施例提供的通信设备测试装置的第四结构示意图,通信设备测试装置60包括存储器120、一个或多个处理器180、以及一个或多个应用程序,其中该一个或多个应用程序被存储于该存储器120中,并配置为由该处理器180执行;该处理器180可以包括日志获取模块601,信令数据获取模块602,模拟测试模块603,第一通信子模块6031,第一数据交互子模块6032。以上各个部件的具体功能可参见前面的实施例,在此不再赘述。各部件的结构和连接关系可以如下:Please refer to FIG. 6. FIG. 6 is a fourth schematic structural diagram of a communication equipment testing apparatus provided by an embodiment of the present application. The communication equipment testing apparatus 60 includes a memory 120, one or more processors 180, and one or more application programs, wherein The one or more application programs are stored in the memory 120 and configured to be executed by the processor 180; the processor 180 may include a log acquisition module 601, a signaling data acquisition module 602, a simulation test module 603, a first Communication sub-module 6031, first data interaction sub-module 6032. For the specific functions of the above components, reference may be made to the foregoing embodiments, which will not be repeated here. The structure and connection relationship of each component can be as follows:
日志获取模块601,用于获取目标测试产生的日志文件,所述目标测试为第一终端在目标网络下基于目标测试用例执行的测试;A log acquisition module 601, configured to acquire a log file generated by a target test, where the target test is a test performed by the first terminal under the target network based on the target test case;
信令数据获取模块602,用于从所述日志文件中获取目标信令交互流程对应的目标信令数据,所述目标信令交互流程为所述目标测试中所述第一终端与所述目标网络的信令交互流程;A signaling data acquisition module 602, configured to acquire target signaling data corresponding to a target signaling interaction process from the log file, where the target signaling interaction process is the first terminal and the target in the target test Network signaling interaction process;
模拟测试模块603,用于基基于所述目标信令数据与第二终端进行信令交互,以模拟所述目标测试的所述目标信令交互流程。The simulation test module 603 is configured to perform signaling interaction with the second terminal based on the target signaling data, so as to simulate the target signaling interaction process of the target test.
所述模拟测试模块603还包括:The simulation test module 603 also includes:
第一通信子模块6031,用于与所述第二终端进行建立通信连接;a first communication sub-module 6031, configured to establish a communication connection with the second terminal;
第一信令数据获取子模块6032,用于获取所述目标信令数据中所述目标网络下网络侧发送至所述第一终端的第一信令数据,所述第一终端发送至所述目标网络的网络侧的第二信令数据,以及所述第一信令数据和第二信令数据的发送顺序和响应关系;The first signaling data acquisition sub-module 6032 is configured to acquire the first signaling data sent by the network side under the target network to the first terminal in the target signaling data, and the first terminal sends the first signaling data to the the second signaling data on the network side of the target network, and the sending sequence and response relationship of the first signaling data and the second signaling data;
第一数据交互子模块6033,用于将所述第二信令数据,所述第二信令数据的发送顺序以及所述响应关系发送给所述第二终端,触发所述第二终端基于所述发送顺序和响应关系发送所述第二信令数据;The first data interaction sub-module 6033 is configured to send the second signaling data, the sending sequence of the second signaling data, and the response relationship to the second terminal, triggering the second terminal based on the sending the second signaling data in the sending sequence and the response relationship;
第三通信子模块6034,用于基于接收到的第二信令数据、所述第一信令数据的发送顺序以及响应关系,将响应于所述接收到的第二信令数据的第一信令数据发送给所述第二终端。The third communication sub-module 6034 is configured to, based on the received second signaling data, the sending order of the first signaling data, and the response relationship, send the first signaling data in response to the received second signaling data send the data to the second terminal.
本申请实施例还提供一种终端。所述终端可以是智能手机、平板电脑、台式计算机、智能手表、移动工作站、服务器等设备。The embodiment of the present application also provides a terminal. The terminal may be a smart phone, a tablet computer, a desktop computer, a smart watch, a mobile workstation, a server and other devices.
另外,本申请实施例还提供一种终端,该终端可以是智能手机、平板电脑、电视等设备。如图7所示,终端700包括处理器701、存储器702。其中,处理器701与存储器702电性连接。In addition, an embodiment of the present application further provides a terminal, where the terminal may be a device such as a smart phone, a tablet computer, and a TV. As shown in FIG. 7 , the terminal 700 includes a processor 701 and a memory 702 . The processor 701 is electrically connected to the memory 702 .
处理器701是终端700的控制中心,利用各种接口和线路连接整个终端的各个部分,通过运行或加载存储在存储器702内的应用程序,以及调用存储在存储器702内的数据,执行终端的各种功能和处理数据,从而对终端进行整体监控。The processor 701 is the control center of the terminal 700, uses various interfaces and lines to connect various parts of the entire terminal, executes various functions of the terminal by running or loading the application program stored in the memory 702, and calling the data stored in the memory 702. functions and process data to monitor the terminal as a whole.
在本实施例中,终端700中的处理器701会按照如下的步骤,将一个或一个以上的应用程序的进程对应的指令加载到存储器702中,并由处理器701来运行存储在存储器702中的应用程序,从而实现各种功能:In this embodiment, the processor 701 in the terminal 700 loads the instructions corresponding to the processes of one or more application programs into the memory 702 according to the following steps, and is executed by the processor 701 and stored in the memory 702 application to achieve various functions:
获取目标测试产生的日志文件,所述目标测试为第一终端在目标网络下基于目标测试用例执行的测试;Obtain the log file generated by the target test, where the target test is a test performed by the first terminal under the target network based on the target test case;
从所述日志文件中获取目标信令交互流程对应的目标信令数据,所述目标信令交互流程为所述目标测试中所述第一终端与所述目标网络的信令交互流程;Obtain target signaling data corresponding to a target signaling interaction process from the log file, where the target signaling interaction process is a signaling interaction process between the first terminal and the target network in the target test;
基于所述目标信令数据与第二终端进行信令交互,以模拟所述目标测试的所述目标信令交互流程。Perform signaling interaction with the second terminal based on the target signaling data to simulate the target signaling interaction flow of the target test.
请参阅图8,图8为本申请实施例提供的终端的结构示意图。该终端1800可以包括RF电路810、包括有一个或一个以上计算机可读存储介质的存储器820、输入单元830、显示单元840、传感器850、音频电路860、扬声器861、传声器862、传输模块870、包括有一个或者一个以上处理核心的处理器880、以及电源890等部件。本领域技术人员可以理解,图5中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Please refer to FIG. 8 , which is a schematic structural diagram of a terminal provided by an embodiment of the present application. The terminal 1800 may include an RF circuit 810, a memory 820 including one or more computer-readable storage media, an input unit 830, a display unit 840, a sensor 850, an audio circuit 860, a speaker 861, a microphone 862, a transmission module 870, including There are a processor 880 with one or more processing cores, and components such as a power supply 890. Those skilled in the art can understand that the terminal structure shown in FIG. 5 does not constitute a limitation on the terminal, and may include more or less components than the one shown, or combine some components, or arrange different components.
RF电路810用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯。RF电路810可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。RF电路810可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其他设备进行通讯。上述的无线网络可包括蜂窝式电话网、无线局域网或者城域网。上述的无线网络可以使用各种通信标准、协议及技术,包括但并不限于全球移动通信系统(Global System for Mobile Communication, GSM)、增强型移动通信技术(Enhanced Data GSM Environment, EDGE),宽带码分多址技术(Wideband Code Division Multiple Access, WCDMA),码分多址技术(Code Division Access, CDMA)、时分多址技术(Time Division Multiple Access, TDMA),无线保真技术(Wireless Fidelity, Wi-Fi)(如美国电气和电子工程师协会标准 IEEE 802.11a, IEEE 802.11b, IEEE802.11g 和/或 IEEE 802.11n)、网络电话(Voice over Internet Protocol, VoIP)、全球微波互联接入(Worldwide Interoperability for Microwave Access, Wi-Max)、其他用于邮件、即时通讯及短消息的协议,以及任何其他合适的通讯协议,甚至可包括那些当前仍未被开发出来的协议。The RF circuit 810 is used for receiving and sending electromagnetic waves, realizing mutual conversion between electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. RF circuitry 810 may include various existing circuit elements for performing these functions, eg, antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, subscriber identity module (SIM) cards, memory, and the like. The RF circuit 810 may communicate with various networks such as the Internet, an intranet, a wireless network, or with other devices over a wireless network. The aforementioned wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network. The above-mentioned wireless networks can use various communication standards, protocols and technologies, including but not limited to the Global System for Mobile Communications (Global System for Mobile Communication, GSM), Enhanced Mobile Communication Technology (Enhanced Data GSM Environment, EDGE), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), code division multiple access technology (Code Division Access, CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wireless Fidelity, Wi-Fi) (e.g. Institute of Electrical and Electronics Engineers standards IEEE 802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE 802.11n), Internet telephony (Voice over Internet Protocol, VoIP), Worldwide Interconnection for Microwave Access (Worldwide Interoperability for Microwave Access, Wi-Max), other protocols for mail, instant messaging, and short messaging, and any other suitable communication protocols, even those that are not currently being developed.
存储器820可用于存储软件程序以及模块,如上述实施例中图像解压缩装置、方法对应的程序指令/模块,处理器880通过运行存储在存储器820内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现前置摄像头拍照自动补光的功能。存储器820可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器820可进一步包括相对于处理器880远程设置的存储器,这些远程存储器可以通过网络连接至终端1800。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 820 can be used to store software programs and modules, such as program instructions/modules corresponding to the image decompression apparatus and method in the above-mentioned embodiments, and the processor 880 executes various functional applications by running the software programs and modules stored in the memory 820. And data processing, that is, to realize the function of automatically filling light for the front camera to take pictures. Memory 820 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 820 may further include memory located remotely from the processor 880, and these remote memories may be connected to the terminal 1800 through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
输入单元830可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,输入单元830可包括触敏表面831以及其他输入设备832。触敏表面831,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面831上或在触敏表面831附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面831可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器880,并能接收处理器880发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面831。除了触敏表面831,输入单元830还可以包括其他输入设备832。具体地,其他输入设备832可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 830 may be used to receive input numerical or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, the input unit 830 may include a touch-sensitive surface 831 as well as other input devices 832 . Touch-sensitive surface 831, also known as a touch display or trackpad, collects user touch operations on or near it (such as a user using a finger, stylus, etc., any suitable object or accessory on or on touch-sensitive surface 831). operations near the touch-sensitive surface 831), and drive the corresponding connection device according to a preset program. Optionally, the touch-sensitive surface 831 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. To the processor 880, and can receive the command sent by the processor 880 and execute it. Additionally, the touch-sensitive surface 831 may be implemented using resistive, capacitive, infrared, and surface acoustic wave types. In addition to the touch-sensitive surface 831 , the input unit 830 may also include other input devices 832 . Specifically, other input devices 832 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.
显示单元840可用于显示由用户输入的信息或提供给用户的信息以及终端1800的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元840可包括显示面板841,可选的,可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板841。进一步的,触敏表面831可覆盖显示面板841,当触敏表面831检测到在其上或附近的触摸操作后,传送给处理器880以确定触摸事件的类型,随后处理器880根据触摸事件的类型在显示面板841上提供相应的视觉输出。虽然在图5中,触敏表面831与显示面板841是作为两个独立的部件来实现输入和输出功能,但是在某些实施例中,可以将触敏表面831与显示面板841集成而实现输入和输出功能。The display unit 840 may be used to display information input by the user or information provided to the user and various graphical user interfaces of the terminal 1800, which may be composed of graphics, text, icons, videos, and any combination thereof. The display unit 840 may include a display panel 841, and optionally, an LCD (Liquid The display panel 841 is configured in the form of Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, organic light emitting diode) and the like. Further, the touch-sensitive surface 831 may cover the display panel 841, and when the touch-sensitive surface 831 detects a touch operation on or near it, it transmits it to the processor 880 to determine the type of the touch event, and then the processor 880 determines the type of the touch event according to the touch event. Type provides corresponding visual output on display panel 841 . Although in FIG. 5, the touch-sensitive surface 831 and the display panel 841 are implemented as two separate components to realize the input and output functions, in some embodiments, the touch-sensitive surface 831 and the display panel 841 may be integrated to realize the input and output functions.
终端1800还可包括至少一种传感器850,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板841的亮度,接近传感器可在终端1800移动到耳边时,关闭显示面板841和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等; 至于终端1800还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The terminal 1800 may also include at least one sensor 850, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 841 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 841 and the display panel 841 when the terminal 1800 is moved to the ear. / or backlight. As a kind of motion sensor, the gravitational acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when it is stationary. games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. that can be configured on the terminal 1800, we will not Repeat.
音频电路860、扬声器861和传声器862,传声器862可提供用户与终端1800之间的音频接口。音频电路860可将接收到的音频数据转换后的电信号,传输到扬声器861,由扬声器861转换为声音信号输出;另一方面,传声器862将收集的声音信号转换为电信号,由音频电路860接收后转换为音频数据,再将音频数据输出处理器880处理后,经RF电路810以发送给比如另一终端,或者将音频数据输出至存储器820以便进一步处理。音频电路860还可能包括耳塞插孔,以提供外设耳机与终端1800的通信。The audio circuit 860 , the speaker 861 and the microphone 862 may provide an audio interface between the user and the terminal 1800 . The audio circuit 860 can transmit the received audio data converted electrical signals to the speaker 861, and the speaker 861 converts them into sound signals for output; on the other hand, the microphone 862 converts the collected sound signals into electrical signals, and the audio circuit 860 converts the collected sound signals into electrical signals. After receiving, it is converted into audio data, and then the audio data is output to the processor 880 for processing, and then sent to, for example, another terminal through the RF circuit 810, or the audio data is output to the memory 820 for further processing. The audio circuit 860 may also include an earphone jack to provide communication of peripheral headphones with the terminal 1800 .
终端1800通过传输模块870(例如Wi-Fi模块)可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图5示出了传输模块870,但是可以理解的是,其并不属于终端1800的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。The terminal 1800 can help the user to send and receive emails, browse web pages, access streaming media, etc. through the transmission module 870 (eg, a Wi-Fi module), and it provides the user with wireless broadband Internet access. Although FIG. 5 shows the transmission module 870, it can be understood that it does not belong to the necessary structure of the terminal 1800, and can be completely omitted as required within the scope of not changing the essence of the invention.
处理器880是终端1800的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器820内的软件程序和/或模块,以及调用存储在存储器820内的数据,执行终端1800的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器880可包括一个或多个处理核心;在一些实施例中,处理器880可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器880中。The processor 880 is the control center of the terminal 1800, using various interfaces and lines to connect various parts of the entire mobile phone, by running or executing the software programs and/or modules stored in the memory 820, and calling the data stored in the memory 820, Execute various functions of the terminal 1800 and process data to monitor the mobile phone as a whole. Optionally, the processor 880 may include one or more processing cores; in some embodiments, the processor 880 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface and Applications, etc., the modem processor mainly deals with wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 880.
终端1800还包括给各个部件供电的电源890(比如电池),在一些实施例中,电源可以通过电源管理系统与处理器880逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源890还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The terminal 1800 also includes a power source 890 (such as a battery) for powering various components. In some embodiments, the power source can be logically connected to the processor 880 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. and other functions. Power source 890 may also include one or more DC or AC power sources, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and any other components.
尽管未示出,终端1800还可以包括摄像头(如前置摄像头、后置摄像头)、蓝牙模块等,在此不再赘述。具体在本实施例中,终端的显示单元是触摸屏显示器,终端还包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行一个或者一个以上程序包含用于进行以下操作的指令:Although not shown, the terminal 1800 may further include a camera (eg, a front camera, a rear camera), a Bluetooth module, and the like, which will not be repeated here. Specifically in this embodiment, the display unit of the terminal is a touch screen display, the terminal further includes a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to be processed by one or more programs A program that executes one or more programs contains instructions for:
获取目标测试产生的日志文件,所述目标测试为第一终端在目标网络下基于目标测试用例执行的测试;Obtain the log file generated by the target test, where the target test is a test performed by the first terminal under the target network based on the target test case;
从所述日志文件中获取目标信令交互流程对应的目标信令数据,所述目标信令交互流程为所述目标测试中所述第一终端与所述目标网络的信令交互流程;Obtain target signaling data corresponding to a target signaling interaction process from the log file, where the target signaling interaction process is a signaling interaction process between the first terminal and the target network in the target test;
基于所述目标信令数据与第二终端进行信令交互,以模拟所述目标测试的所述目标信令交互流程。Perform signaling interaction with the second terminal based on the target signaling data to simulate the target signaling interaction flow of the target test.
具体实施时,以上各个模块可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个模块的具体实施可参见前面的方法实施例,在此不再赘述。During specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above modules can refer to the previous method embodiments, which will not be repeated here.
本领域普通技术人员可以理解,上述实施例的各种方法中的全部或部分步骤可以通过指令来完成,或通过指令控制相关的硬件来完成,该指令可以存储于一计算机可读存储介质中,并由处理器进行加载和执行。为此,本发明实施例提供一种存储介质,其中存储有多条指令,该指令能够被处理器进行加载,以执行本发明实施例所提供的任一种通讯设备测试方法中的步骤。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructions, or by instructions that control relevant hardware, and the instructions can be stored in a computer-readable storage medium, and loaded and executed by the processor. To this end, an embodiment of the present invention provides a storage medium in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any communication device testing method provided by the embodiment of the present invention.
其中,该存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。Wherein, the storage medium may include: a read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD, etc.
由于该存储介质中所存储的指令,可以执行本发明实施例所提供的任一种通讯设备测试方法中的步骤,因此,可以实现本发明实施例所提供的任一种通讯设备测试方法所能实现的有益效果,详见前面的实施例,在此不再赘述。Because the instructions stored in the storage medium can execute the steps in any of the communication equipment testing methods provided by the embodiments of the present invention, it is possible to achieve the capabilities of any communication equipment testing methods provided by the embodiments of the present invention. For the beneficial effects achieved, see the foregoing embodiments for details, and details are not repeated here.
以上各个操作的具体实施可参见前面的实施例,在此不再赘述。For the specific implementation of the above operations, reference may be made to the foregoing embodiments, and details are not described herein again.
综上所述,虽然本申请已以优选实施例揭露如上,但上述优选实施例并非用以限制本申请,本领域的普通技术人员,在不脱离本申请的精神和范围内,均可作各种更动与润饰,因此本申请的保护范围以权利要求界定的范围为准。To sum up, although the present application has disclosed the above-mentioned preferred embodiments, the above-mentioned preferred embodiments are not intended to limit the present application. Those of ordinary skill in the art, without departing from the spirit and scope of this application, can Therefore, the scope of protection of the present application is subject to the scope defined by the claims.

Claims (20)

  1. 一种通信设备测试方法,其中,应用于通信设备测试装置,所述方法包括:A communication equipment testing method, wherein, applied to a communication equipment testing device, the method comprises:
    获取目标测试产生的日志文件,所述目标测试为第一终端在目标网络下基于目标测试用例执行的测试;Obtain the log file generated by the target test, where the target test is a test performed by the first terminal under the target network based on the target test case;
    从所述日志文件中获取目标信令交互流程对应的目标信令数据,所述目标信令交互流程为所述目标测试中所述第一终端与所述目标网络的信令交互流程;Obtain target signaling data corresponding to a target signaling interaction process from the log file, where the target signaling interaction process is a signaling interaction process between the first terminal and the target network in the target test;
    基于所述目标信令数据与第二终端进行信令交互,以模拟所述目标测试的所述目标信令交互流程。Perform signaling interaction with the second terminal based on the target signaling data to simulate the target signaling interaction flow of the target test.
  2. 根据权利要求1所述的通信设备测试方法,其中,在从所述日志文件中获取目标信令交互流程对应的目标信令数据的步骤之前,还包括:The communication device testing method according to claim 1, wherein before the step of acquiring the target signaling data corresponding to the target signaling interaction flow from the log file, the method further comprises:
    基于所述日志文件确定所述目标测试过程中是否发生异常事件,其中,异常事件包括连接中断事件、网络中断事件和鉴权失败事件中的至少一种;Determine whether an abnormal event occurs in the target testing process based on the log file, wherein the abnormal event includes at least one of a connection interruption event, a network interruption event, and an authentication failure event;
    若是,继续执行所述从所述日志文件中获取目标信令交互流程对应的目标信令数据的步骤;If so, continue to perform the step of obtaining the target signaling data corresponding to the target signaling interaction flow from the log file;
    其中,所述连接中断事件包括:所述第一终端未能与目标网络建立通信连接的异常情况;Wherein, the connection interruption event includes: an abnormal situation in which the first terminal fails to establish a communication connection with the target network;
    所述网络中断事件包括:所述第一终端与目标网络建立通信连接,但是无法进行网络数据交互的异常情况;The network interruption event includes: an abnormal situation in which the first terminal establishes a communication connection with the target network, but cannot perform network data interaction;
    所述鉴权失败事件包括:所述第一终端与目标网络无法完成鉴权的异常情况。The authentication failure event includes: an abnormal situation in which the first terminal and the target network cannot complete the authentication.
  3. 根据权利要求2所述的通信设备测试方法,其中,所述基于所述日志文件确定所述目标测试过程中是否发生预设异常事件包括:The communication device testing method according to claim 2, wherein the determining whether a preset abnormal event occurs in the target testing process based on the log file comprises:
    对所述日志文件中的记录进行检测,确定所述日志文件中的异常指示信息,所述异常指示信息用于指示在所述目标测试用例执行过程中发生异常情况;Detecting records in the log file, and determining abnormality indication information in the log file, where the abnormality indication information is used to indicate that an abnormality occurs during the execution of the target test case;
    基于所述日志文件中所述异常指示信息的上下文信息,确定各所述异常指示信息对应的异常事件;Determine the abnormal event corresponding to each abnormality indication information based on the context information of the abnormality indication information in the log file;
    确定所述异常事件中是否存在预设异常事件。It is determined whether a preset abnormal event exists in the abnormal events.
  4. 根据权利要求2所述的通信设备测试方法,其中,从所述日志文件中获取目标信令数据,包括:The communication device testing method according to claim 2, wherein acquiring target signaling data from the log file comprises:
    当所述异常事件包括所述连接中断事件或者所述网络中断事件时,从所述日志文件中获取RRC信令数据,所述RRC信令数据即为所述目标信令数据。When the abnormal event includes the connection interruption event or the network interruption event, acquire RRC signaling data from the log file, and the RRC signaling data is the target signaling data.
  5. 根据权利要求2所述的通信设备测试方法,其中,从所述日志文件中获取目标信令数据,包括:The communication device testing method according to claim 2, wherein acquiring target signaling data from the log file comprises:
    当所述异常事件包括所述鉴权失败事件时,从所述日志文件中获取RRC信令数据和NAS信令数据,所述NAS信令数据即为所述目标信令数据。When the abnormal event includes the authentication failure event, acquire RRC signaling data and NAS signaling data from the log file, and the NAS signaling data is the target signaling data.
  6. 根据权利要求4或5所述的通信设备测试方法,其中,基于所述目标信令数据与第二终端进行信令交互的步骤,具体包括:The communication device testing method according to claim 4 or 5, wherein the step of performing signaling interaction with the second terminal based on the target signaling data specifically includes:
    与所述第二终端进行通信连接;communicating with the second terminal;
    获取所述目标信令数据中所述目标网络下网络侧发送至所述第一终端的第一信令数据,所述第一终端发送至所述目标网络的网络侧的第二信令数据,以及所述第一信令数据和第二信令数据的发送顺序和响应关系;acquiring the first signaling data sent by the network side under the target network to the first terminal in the target signaling data, and the second signaling data sent by the first terminal to the network side of the target network, And the sending order and response relationship of the first signaling data and the second signaling data;
    将所述第二信令数据,所述第二信令数据的发送顺序以及所述响应关系发送给所述第二终端,触发所述第二终端基于所述发送顺序和响应关系发送所述第二信令数据;Send the second signaling data, the sending order of the second signaling data, and the response relationship to the second terminal, and trigger the second terminal to send the first signaling based on the sending order and the response relationship. 2. Signaling data;
    基于接收到的第二信令数据、所述第一信令数据的发送顺序以及响应关系,将响应于所述接收到的第二信令数据的第一信令数据发送给所述第二终端。Based on the received second signaling data, the sending sequence of the first signaling data, and the response relationship, the first signaling data in response to the received second signaling data is sent to the second terminal .
  7. 根据权利要求6所述的通信设备测试方法,其中,所述与所述第二终端建立通信连接,包括:The communication device testing method according to claim 6, wherein the establishing a communication connection with the second terminal comprises:
    模拟所述目标网络下的服务器,得到目标虚拟服务器;Simulate the server under the target network to obtain the target virtual server;
    控制所述目标虚拟服务器与所述第二终端执行测试。Controlling the target virtual server and the second terminal to perform a test.
  8. 根据权利要求7所述的通信设备测试方法,其中,所述控制所述目标虚拟服务器与所述第二终端执行测试,包括:The communication device testing method according to claim 7, wherein the controlling the target virtual server and the second terminal to perform the test comprises:
    控制所述目标虚拟服务器与所述第二终端建立通信连接;controlling the target virtual server to establish a communication connection with the second terminal;
    所述将所述第二信令数据,所述第二信令数据的发送顺序以及所述响应关系发送给所述第二终端,包括:The sending the second signaling data, the sending sequence of the second signaling data and the response relationship to the second terminal includes:
    通过所述目标虚拟服务器将所述第二信令数据、所述第二信令数据的发送顺序以及所述响应关系发送给所述第二终端;Send the second signaling data, the sending sequence of the second signaling data, and the response relationship to the second terminal through the target virtual server;
    所述基于接收到的第二信令数据、所述第一信令数据的发送顺序以及响应关系,将响应于所述接收到的第二信令数据的第一信令数据发送给所述第二终端,包括:Sending the first signaling data in response to the received second signaling data to the first signaling data based on the received second signaling data, the sending sequence of the first signaling data and the response relationship; Two terminals, including:
    通过所述目标虚拟服务器,基于接收到的第二信令数据、所述第一信令数据的发送顺序以及响应关系,确定响应于所述接收到的第二信令数据的第一信令数据,将确定的所述第一信令数据发送给所述第二终端。Determine, by the target virtual server, first signaling data in response to the received second signaling data based on the received second signaling data, the sending sequence of the first signaling data, and the response relationship , sending the determined first signaling data to the second terminal.
  9. 根据权利要求1-8任一项所述的通信设备测试方法,其中,从所述日志文件中获取目标信令交互流程对应的目标信令数据的步骤,具体包括:The communication device testing method according to any one of claims 1-8, wherein the step of acquiring the target signaling data corresponding to the target signaling interaction process from the log file specifically includes:
    获取目标测试用例与目标测试用例测试的信令交互流程之间的对应关系;Obtain the correspondence between the target test case and the signaling interaction process tested by the target test case;
    基于所述对应关系,确定目标信令交互流程对应的第一目标测试用例;Based on the corresponding relationship, determine the first target test case corresponding to the target signaling interaction process;
    从所述日志文件获取所述第一目标测试用例对应的信令数据作为目标信令数据。The signaling data corresponding to the first target test case is acquired from the log file as the target signaling data.
  10. 一种通信设备测试装置,其中,包括:A communication equipment testing device, comprising:
    日志获取模块,用于获取目标测试产生的日志文件,所述目标测试为第一终端在目标网络下基于目标测试用例执行的测试;a log acquisition module, configured to acquire a log file generated by a target test, where the target test is a test performed by the first terminal under the target network based on the target test case;
    信令数据获取模块,用于从所述日志文件中获取目标信令交互流程对应的目标信令数据,所述目标信令交互流程为所述目标测试中所述第一终端与所述目标网络的信令交互流程;A signaling data acquisition module, configured to acquire target signaling data corresponding to a target signaling interaction process from the log file, where the target signaling interaction process is the first terminal and the target network in the target test The signaling interaction process;
    模拟测试模块,基于所述目标信令数据与第二终端进行信令交互,以模拟所述目标测试的所述目标信令交互流程。The simulation test module performs signaling interaction with the second terminal based on the target signaling data to simulate the target signaling interaction flow of the target test.
  11. 如权利要求10所述的通信设备测试装置,其中,所述日志获取模块,还用于:The communication equipment testing apparatus according to claim 10, wherein the log acquisition module is further used for:
    基于所述日志文件确定所述目标测试过程中是否发生预设异常事件,其中,预设异常事件包括:连接中断事件、网络中断事件和鉴权失败事件;Determine whether a preset abnormal event occurs in the target testing process based on the log file, wherein the preset abnormal event includes: a connection interruption event, a network interruption event, and an authentication failure event;
    若是,触发所述信令数据获取模块执行所述从所述日志文件中获取目标信令交互流程对应的目标信令数据的步骤;If so, trigger the signaling data acquisition module to perform the step of acquiring the target signaling data corresponding to the target signaling interaction flow from the log file;
    其中,所述连接中断事件包括:所述第一终端未能与目标网络建立通信连接的异常情况;Wherein, the connection interruption event includes: an abnormal situation in which the first terminal fails to establish a communication connection with the target network;
    所述网络中断事件包括:所述第一终端与目标网络建立通信连接,但是无法进行网络数据交互的异常情况;The network interruption event includes: an abnormal situation in which the first terminal establishes a communication connection with the target network, but cannot perform network data interaction;
    所述鉴权失败事件包括:所述第一终端与目标网络无法完成鉴权的异常情况。The authentication failure event includes: an abnormal situation in which the first terminal and the target network cannot complete the authentication.
  12. 如权利要求11所述的通信设备测试装置,其中,所述信令数据获取模块,用于:The communication equipment testing apparatus according to claim 11, wherein the signaling data acquisition module is used for:
    当所述预设异常事件包括所述连接中断事件或者所述网络中断事件时,从所述日志文件中获取RRC信令数据,基于所述RRC信令数据得到目标信令数据。When the preset abnormal event includes the connection interruption event or the network interruption event, acquire RRC signaling data from the log file, and acquire target signaling data based on the RRC signaling data.
  13. 根据权利要求12所述的通信设备测试装置,其中,所述模拟测试模块,还包括:The communication equipment testing device according to claim 12, wherein the simulation test module further comprises:
    第一通信子模块,用于与所述第二终端进行建立通信连接;a first communication submodule for establishing a communication connection with the second terminal;
    第一信令数据获取子模块,用于获取所述目标信令数据中所述目标网络下网络侧发送至所述第一终端的第一信令数据,所述第一终端发送至所述目标网络的网络侧的第二信令数据,以及所述第一信令数据和第二信令数据的发送顺序和响应关系;a first signaling data acquisition sub-module, configured to acquire the first signaling data in the target signaling data that is sent by the network side under the target network to the first terminal, and the first terminal sends to the target The second signaling data on the network side of the network, and the sending order and response relationship of the first signaling data and the second signaling data;
    第一数据交互子模块,用于将所述第二信令数据,所述第二信令数据的发送顺序以及所述响应关系发送给所述第二终端,触发所述第二终端基于所述发送顺序和响应关系发送所述第二信令数据;用于基于接收到的第二信令数据、所述第一信令数据的发送顺序以及响应关系,将响应于所述接收到的第二信令数据的第一信令数据发送给所述第二终端。a first data interaction submodule, configured to send the second signaling data, the sending sequence of the second signaling data, and the response relationship to the second terminal, and trigger the second terminal based on the Sending the second signaling data in a sending order and a response relationship; for sending the second signaling data in response to the received second signaling data, the sending order of the first signaling data, and the response relationship The first signaling data of the signaling data is sent to the second terminal.
  14. 根据权利要求11所述的通信设备测试装置,其中,所述信令数据获取模块,用于:The communication equipment testing apparatus according to claim 11, wherein the signaling data acquisition module is used for:
    当所述预设异常事件包括所述鉴权失败事件时,从所述日志文件中获取RRC信令数据和NAS信令数据,基于所述RRC信令数据和NAS信令数据得到目标信令数据。When the preset abnormal event includes the authentication failure event, obtain RRC signaling data and NAS signaling data from the log file, and obtain target signaling data based on the RRC signaling data and NAS signaling data .
  15. 如权利要求14所述的通信设备测试装置,其中,所述模拟测试模块,包括:The communication equipment testing device as claimed in claim 14, wherein the simulation test module comprises:
    第二通信子模块,用于与所述第二终端进行通信连接;a second communication submodule, configured to communicate with the second terminal;
    第二信令数据获取子模块,用于获取所述目标信令数据中所述目标网络下网络侧发送至所述第一终端的第一信令数据、所述第一终端发送至所述目标网络的网络侧的第二信令数据以及所述第一信令数据和第二信令数据的发送顺序和响应关系;The second signaling data acquisition sub-module is configured to acquire the first signaling data sent by the network side under the target network to the first terminal in the target signaling data, and the first signaling data sent by the first terminal to the target The second signaling data on the network side of the network and the sending order and response relationship of the first signaling data and the second signaling data;
    第二数据交互子模块,用于将所述第二信令数据、所述第二信令数据的发送顺序以及所述响应关系发送给所述第二终端,触发所述第二终端基于所述发送顺序和响应关系发送所述第二信令数据;基于接收到的第二信令数据、所述第一信令数据的发送顺序以及响应关系,将响应于所述接收到的第二信令数据的第一信令数据发送给所述第二终端。The second data interaction sub-module is configured to send the second signaling data, the sending sequence of the second signaling data, and the response relationship to the second terminal, and trigger the second terminal based on the Sending the second signaling data in a sending order and a response relationship; based on the received second signaling data, the sending order of the first signaling data, and the response relationship, sending the second signaling data in response to the received second signaling data The first signaling data of the data is sent to the second terminal.
  16. 如权利要求15所述的通信设备测试装置,其中,第二通信子模块,用于模拟所述目标网络下的服务器,得到目标虚拟服务器;控制所述目标虚拟服务器与所述第二终端建立通信连接;The communication equipment testing apparatus according to claim 15, wherein the second communication sub-module is used to simulate a server under the target network to obtain a target virtual server; control the target virtual server to establish communication with the second terminal connect;
    第二数据交互子模块,用于通过所述目标虚拟服务器将所述第二信令数据,所述第二信令数据的发送顺序以及所述响应关系发送给所述第二终端;通过所述目标虚拟服务器,基于接收到的第二信令数据、所述第一信令数据的发送顺序以及响应关系,确定响应于所述接收到的第二信令数据的第一信令数据,将确定的所述第一信令数据发送给所述第二终端。The second data interaction submodule is configured to send the second signaling data, the sending sequence of the second signaling data and the response relationship to the second terminal through the target virtual server; The target virtual server, based on the received second signaling data, the sending order of the first signaling data, and the response relationship, determines the first signaling data in response to the received second signaling data, and determines the first signaling data in response to the received second signaling data. The first signaling data is sent to the second terminal.
  17. 根据权利要求10-16任一项所述的通信设备测试装置,其中,信令数据获取模块,用于:The communication equipment testing device according to any one of claims 10-16, wherein the signaling data acquisition module is used for:
    获取目标测试用例与目标测试用例测试的信令交互流程之间的对应关系;Obtain the correspondence between the target test case and the signaling interaction process tested by the target test case;
    基于所述对应关系,确定目标信令交互流程对应的第一目标测试用例;Based on the corresponding relationship, determine the first target test case corresponding to the target signaling interaction process;
    从所述日志文件获取所述第一目标测试用例对应的信令数据作为目标信令数据。The signaling data corresponding to the first target test case is acquired from the log file as the target signaling data.
  18. 一种存储介质,其中,所述存储介质中存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行权利要求1至6任一项所述的通信设备测试方法中的步骤。A storage medium, wherein a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer is made to execute the method in the communication device testing method according to any one of claims 1 to 6. step.
  19. 一种终端,其中,所述终端包括处理器和存储器,所述存储器中存储有计算机程序,所述处理器通过调用所述存储器中存储的所述计算机程序,用于执行权利要求1至6任一项所述的通信设备测试方法中的步骤。A terminal, wherein the terminal includes a processor and a memory, and a computer program is stored in the memory, and the processor is used to execute any one of claims 1 to 6 by calling the computer program stored in the memory. A step in a method for testing a communication device.
  20. 一种测试系统,其中,包括权利要求10-17任一项所述的通信设备测试装置和第二终端,所述通信设备测试装置存储有测试程序,所述测试程序被运行时执行权利要求1-9任一项所述的通信设备测试方法中的步骤。A test system, comprising the communication equipment testing device according to any one of claims 10-17 and a second terminal, the communication equipment testing device stores a test program, and the test program executes claim 1 when the test program is run -9 any one of the steps in the communication equipment testing method.
PCT/CN2021/083498 2021-03-04 2021-03-29 Communication device test method and apparatus, storage medium, terminal, and test system WO2022183552A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110237931.3A CN112788640B (en) 2021-03-04 2021-03-04 Communication equipment testing method and device, storage medium and terminal
CN202110237931.3 2021-03-04

Publications (1)

Publication Number Publication Date
WO2022183552A1 true WO2022183552A1 (en) 2022-09-09

Family

ID=75762082

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/083498 WO2022183552A1 (en) 2021-03-04 2021-03-29 Communication device test method and apparatus, storage medium, terminal, and test system

Country Status (2)

Country Link
CN (1) CN112788640B (en)
WO (1) WO2022183552A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113890868A (en) * 2021-09-23 2022-01-04 恒睿(重庆)人工智能技术研究院有限公司 Signaling interaction simulation method and device and computer storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1901538A (en) * 2005-07-20 2007-01-24 中国移动通信集团公司 Multiple interface multiple protocol detecting method based on WAP/MMS service
US20080294948A1 (en) * 2006-11-06 2008-11-27 Tektronix International Sales Gmbh Protocol Tester and Method for Performing a Protocol Test
CN103686818A (en) * 2012-08-30 2014-03-26 电信科学技术研究院 Simulation test method and equipment
CN107148033A (en) * 2017-05-02 2017-09-08 惠州Tcl移动通信有限公司 A kind of position fixing process analysis method, storage device and mobile terminal
CN111917603A (en) * 2020-07-22 2020-11-10 广州虎牙信息科技有限公司 Client test method and device, computer equipment and storage medium

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101394646B (en) * 2008-11-06 2011-06-01 北京天碁科技有限公司 Software test method and system
CN102421112B (en) * 2011-11-18 2015-05-20 展讯通信(上海)有限公司 Testing method of mobile terminal, mobile terminal simulator, testing equipment and testing system
CN103731850A (en) * 2013-12-12 2014-04-16 北京泰合佳通信息技术有限公司 Wireless network testing method based on mobile intelligent terminal
CN104765686B (en) * 2015-04-08 2017-12-08 小米科技有限责任公司 The method and device of test application program
WO2017025773A1 (en) * 2015-08-07 2017-02-16 Telefonaktiebolaget Lm Ericsson (Publ) Root cause analysis of call failures in a communication network
CN106897206B (en) * 2015-12-18 2020-06-02 阿里巴巴集团控股有限公司 Service testing method and device
CN109344055B (en) * 2018-09-07 2020-05-19 武汉达梦数据库有限公司 Test method and test device
CN109460349B (en) * 2018-09-19 2021-09-21 武汉达梦数据库股份有限公司 Test case generation method and device based on log
CN110334004A (en) * 2019-05-24 2019-10-15 深圳壹账通智能科技有限公司 A kind of test data building method and device, electronic equipment and storage medium
CN110825618B (en) * 2019-10-10 2024-01-26 天航长鹰(江苏)科技有限公司 Method and related device for generating test case
CN110636537B (en) * 2019-11-21 2020-04-10 翱捷科技(上海)有限公司 TTCN-3-based multi-card mobile terminal test system and method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1901538A (en) * 2005-07-20 2007-01-24 中国移动通信集团公司 Multiple interface multiple protocol detecting method based on WAP/MMS service
US20080294948A1 (en) * 2006-11-06 2008-11-27 Tektronix International Sales Gmbh Protocol Tester and Method for Performing a Protocol Test
CN103686818A (en) * 2012-08-30 2014-03-26 电信科学技术研究院 Simulation test method and equipment
CN107148033A (en) * 2017-05-02 2017-09-08 惠州Tcl移动通信有限公司 A kind of position fixing process analysis method, storage device and mobile terminal
CN111917603A (en) * 2020-07-22 2020-11-10 广州虎牙信息科技有限公司 Client test method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN112788640B (en) 2022-08-05
CN112788640A (en) 2021-05-11

Similar Documents

Publication Publication Date Title
US11665571B2 (en) Reference signal measurement method and user terminal
WO2017140276A1 (en) Network connection method and apparatus, and computer storage medium
WO2017202348A1 (en) Video playing method and device, and computer storage medium
US20210204127A1 (en) Image Sharing Method and System, and Electronic Device
US20160314219A1 (en) Method and apparatus for invoking application programming interface
WO2015043361A1 (en) Methods, devices, and systems for completing communication between terminals
CN107329901B (en) Data packet capturing method, terminal, server and storage medium
US11937111B2 (en) Measurement configuration method, device, and system
CN106371964B (en) Method and device for prompting message
CN108039963B (en) Container configuration method and device and storage medium
CN107465841B (en) Fault information reporting method and terminal
CN106375478B (en) A kind of synchronous method of mobile terminal data, apparatus and system
CN111177013B (en) Log data acquisition method, device, computer equipment and storage medium
JP7457703B2 (en) Measurement instruction method, device and system
WO2018049894A1 (en) Data transmission method and device
US20170323115A1 (en) Method and apparatus for remotely deleting information
KR101621637B1 (en) Method, apparatus device, client computer, server, mobile terminal, program and storage medium for processing mobile terminal resource
WO2022183552A1 (en) Communication device test method and apparatus, storage medium, terminal, and test system
CN105703808A (en) Method and device for transmitting data
CN112199246A (en) Terminal testing method and device, storage medium and mobile terminal
CN110891262A (en) Bluetooth pairing method, system and terminal equipment
CN114510417A (en) Image rendering effect testing method and device, electronic equipment and storage medium
WO2020107169A1 (en) Audio mode correction method and apparatus, and electronic device
CN112667868A (en) Data detection method and device
CN110618798A (en) Multi-screen display method, multi-screen device, storage medium and terminal equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21928633

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21928633

Country of ref document: EP

Kind code of ref document: A1