Multi-base-station joint test system and method
The main test machine controls the network connection between multiple auxiliary test machines and the base station to be tested, and realizes joint testing of multiple base stations, improves the testing efficiency and unified data analysis capabilities, and supports automated testing.
Patent Information
- Application Number
- CN202310775943.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-28
- Publication Date
- 2024-12-31
AI Technical Summary
In the prior art, the joint testing efficiency of multiple base stations is low, and the dispersion of test data is inconvenient for unified processing.
Design a multi-base station joint testing system, through the network connection between the main test machine and multiple auxiliary test machines, the main test machine sends test instructions to the target test machine, the target test machine and the base station to be tested are executed together, and Feedback the results to the main test machine to realize automated testing of multiple base stations.
It improves the efficiency of joint testing of multiple base stations, solves the problem of dispersed test data, supports automated testing, and simplifies the operation process.
Smart Images

Figure CN119233298A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a multi-base station joint testing system and method. Background Art
[0002] In base station testing, for test scenarios such as switching process verification, NSA (Non-Standalone), and dual-mode, it is often necessary to operate two or more base stations simultaneously in one test.
[0003] In the existing laboratory environment, the test machine (computer) needs to be directly connected to the proximal debugging interface of the base station for testing. Since the physical port and the proximal IP (Internet Protocol) address are fixed, one test machine is limited to connecting to only one base station. Therefore, when conducting joint testing of multiple stations, multiple people are required to operate multiple test machines together, that is, manually operate each test machine separately, and obtain data from each test machine for analysis, or one person operates multiple test machines in series. Both of these testing methods will result in low efficiency during testing. And because the data is often distributed on different test machines, it is not convenient for unified testing and analysis. Summary of the invention
[0004] The purpose of the embodiment of the present invention is to provide a multi-base station joint test system and method to solve the problem of low multi-base station test efficiency and inconvenience of unified processing of scattered test data in the prior art. The specific technical solution is as follows:
[0005] In a first aspect of the implementation of the present invention, a multi-base station joint test system is first provided, comprising: a plurality of test machines and a plurality of base stations to be tested, wherein a one-to-one corresponding connection relationship exists between the test machines and the base stations to be tested, the plurality of test machines include a main test machine and at least one auxiliary test machine, and the test machines are all connected to the same network;
[0006] The main test machine is used to send a test instruction to the target test machine; the target test machine is a main test machine or an auxiliary test machine connected to the target base station to be tested;
[0007] The target test machine is used to, after receiving the test instruction, execute the operation indicated by the test instruction in conjunction with the base station to be tested connected to itself, and feed back the operation result to the main test machine.
[0008] Optionally, the test instruction includes one or more of a parameter configuration instruction, an event monitoring instruction, a message copy instruction, a file download instruction, and a file upload instruction.
[0009] Optionally, the test instruction is a parameter configuration instruction, and the parameter configuration instruction carries parameter configuration information;
[0010] The main test machine is specifically used to send the parameter configuration instruction to the target test machine;
[0011] The target test machine is specifically used to convert the parameter configuration information into a base station instruction, and send the base station instruction to the base station to be tested connected to itself;
[0012] The base station to be tested is specifically used to perform parameter configuration according to the parameter configuration information carried in the base station instruction, and send a parameter configuration response message to the target test machine;
[0013] The target test machine is specifically used to forward the parameter configuration response message to the main test machine.
[0014] Optionally, the test instruction is an event monitoring instruction, and the event monitoring instruction includes a start monitoring instruction and a stop monitoring instruction;
[0015] The main test machine is specifically used to send the start monitoring instruction to the target test machine;
[0016] The target test machine is specifically configured to forward the event information reported by the base station to be tested connected to the target test machine to the main test machine after receiving the start monitoring instruction;
[0017] The main test machine is further configured to send the stop monitoring instruction to the target test machine;
[0018] The target test machine is further configured to stop forwarding the event information reported by the base station to be tested connected to the target test machine to the main test machine after receiving the stop monitoring instruction.
[0019] Optionally, the test instruction is a message copy instruction, and the message copy instruction includes a start copy instruction and a stop copy instruction; the start copy instruction and the stop copy instruction contain identification information of the target message;
[0020] The main test machine is specifically used to send the start copy instruction to the target test machine;
[0021] The target test machine is specifically configured to send the CC switch on information related to the target message to the base station to be tested connected to itself after receiving the CC start instruction;
[0022] The base station to be tested is specifically used to turn on the copy switch related to the target message according to the copy switch turning on information, return a first response message to the target test machine, and copy the target message to the target test machine;
[0023] The target test machine is further configured to receive and cache the copy data of the target message after receiving the first response message;
[0024] The main test machine is further configured to send the stop copy instruction to the target test machine;
[0025] The target test machine is further configured to send the CC switch closing information related to the target message to the base station to be tested connected to itself after receiving the CC stop instruction;
[0026] The base station to be tested is further configured to turn off the carbon copy switch according to the carbon copy switch off information, return a second response message to the target test machine, and stop carbon copying the target message to the target test machine;
[0027] The target test machine is further configured to send the copy data to the main test machine after receiving the second response message.
[0028] Optionally, the test instruction is a file download instruction;
[0029] The main test machine is specifically used to send the file download instruction to the target test machine;
[0030] The target test machine is specifically used to create a first designated directory in the file transfer server according to the file download instruction, and send login information of the file transfer server to the base station to be tested connected to itself;
[0031] The base station to be tested is specifically used to return a third response message to the target test machine after receiving the login information;
[0032] The target test machine is further configured to send first file transfer task information to the base station to be tested connected to itself after receiving the third response message; the first file transfer task information includes: first path information of the first designated directory and first file information of the first target file;
[0033] The base station to be tested is further configured to determine the first target file based on the first file information, log in to the file transfer server according to the login information, upload the first target file to the first designated directory based on the first path information, and send a first file transfer completion message to the target test machine;
[0034] The target test machine is further configured to send the login information and the first file transfer task information to the main test machine;
[0035] The main test machine is further specifically used to log in to the file transfer server according to the login information, determine the first designated directory based on the first path information, and download the first target file from the first designated directory to the local machine.
[0036] Optionally, the test instruction is a file upload instruction;
[0037] The main test machine is specifically used to send the file upload instruction to the target test machine;
[0038] The target test machine is specifically used to create a second designated directory on the file transfer server according to the file upload instruction, and send the login information of the file transfer server and the second path information of the second designated directory to the main test machine;
[0039] The main test machine is further configured to log in to the file transfer server according to the login information, and upload the second target file to the second designated directory based on the second path information;
[0040] The target test machine is further configured to send the login information to the base station to be tested connected to the target test machine;
[0041] The base station to be tested is specifically used to return a fourth response message to the target test machine after receiving the login information;
[0042] The target test machine is further configured to send the second file transfer task information to the base station to be tested connected to itself after receiving the fourth response message; the second file transfer task information includes the second path information of the second designated directory and the second file information of the second target file;
[0043] The base station to be tested is further configured to send a second file transfer task creation success message to the target test machine, log in to the file transfer server according to the login information, download the second target file to the base station based on the second path information, and send a second file transfer completion message to the target test machine;
[0044] The target test machine is further configured to send the second file transfer completion message to the main test machine.
[0045] Optionally, the test machines are all built-in with a first network card and a second network card, and the test machines are connected to the base station to be tested via the built-in first network card; the test machines are all connected to the same gateway via the built-in second network card, so that the test machines are all connected to the same network.
[0046] Optionally, the main test machine is determined in advance from the test machines according to the test requirements;
[0047] The test machines are all provided with an agent program, which is a program run by the test machine when the test machine is selected as a target test machine to perform a multi-base station joint test;
[0048] The main test machine is also provided with a test main program; when the main test machine is selected as a target test machine, the main test program and the agent program are run to perform a multi-base station joint test;
[0049] When the main test machine is not selected as the target test machine, it only runs the test main program to perform multi-base station joint testing.
[0050] In a second aspect of the implementation of the present invention, a multi-base station joint testing method is also provided, the method is applied to a target test machine in a multi-base station joint testing system, the system comprising: a plurality of test machines and a plurality of base stations to be tested, a one-to-one connection relationship exists between the test machines and the base stations to be tested, the plurality of test machines comprise a main test machine and at least one auxiliary test machine, the test machines are all connected to the same network; the target test machine is a main test machine or an auxiliary test machine connected to the target base station to be tested; the method comprises:
[0051] The test machine receives the test instruction sent by the main test machine, executes the operation indicated by the test instruction in conjunction with the base station to be tested connected to the main test machine, and feeds back the operation result to the main test machine.
[0052] Optionally, the test instruction includes one or more of a parameter configuration instruction, an event monitoring instruction, a message copy instruction, a file download instruction, and a file upload instruction.
[0053] Optionally, the test instruction is a parameter configuration instruction, and the parameter configuration instruction carries parameter configuration information;
[0054] The receiving the test instruction sent by the main test machine, jointly executing the operation indicated by the test instruction with the base station to be tested connected to the main test machine, and feeding back the operation result to the main test machine, includes:
[0055] Receive the parameter configuration instruction sent by the main test machine, convert the parameter configuration information into a base station instruction, and send the base station instruction to the base station to be tested connected to itself; the base station instruction is used to instruct the base station to be tested to perform parameter configuration according to the parameter configuration information carried in the base station instruction, and send a parameter configuration response message to the target test machine;
[0056] The parameter configuration response message is forwarded to the main test machine.
[0057] Optionally, the test instruction is an event monitoring instruction, and the event monitoring instruction includes a start monitoring instruction and a stop monitoring instruction;
[0058] The receiving the test instruction sent by the main test machine, jointly executing the operation indicated by the test instruction with the base station to be tested connected to the main test machine, and feeding back the operation result to the main test machine, includes:
[0059] receiving the start monitoring instruction sent by the main testing machine;
[0060] After receiving the start monitoring instruction, forwarding the event information reported by the base station to be tested connected to the main testing machine to the main testing machine;
[0061] receiving the stop monitoring instruction sent by the main testing machine;
[0062] After receiving the stop monitoring instruction, the main testing machine stops forwarding the event information reported by the base station to be tested connected to the main testing machine.
[0063] Optionally, the test instruction is a message copy instruction, and the message copy instruction includes a start copy instruction and a stop copy instruction; the start copy instruction and the stop copy instruction contain identification information of the target message;
[0064] The receiving the test instruction sent by the main test machine, jointly executing the operation indicated by the test instruction with the base station to be tested connected to the main test machine, and feeding back the operation result to the main test machine, includes:
[0065] Receiving the start copy instruction sent by the main testing machine;
[0066] After receiving the start copy instruction, the test machine sends the copy switch opening information related to the target message to the base station to be tested connected to itself; the copy switch opening information is used to instruct the base station to be tested to turn on the copy switch related to the target message, return a first response message to the target test machine, and copy the target message to the target test machine;
[0067] After receiving the first response message, receiving and buffering the copy data of the target message;
[0068] Receiving the stop copy instruction sent by the main testing machine;
[0069] After receiving the stop copy instruction, the cc switch closing information related to the target message is sent to the base station to be tested connected to itself; the cc switch closing information is used to instruct the base station to be tested to turn off the cc switch, return a second response message to the target test machine, and stop copying the target message to the target test machine;
[0070] After receiving the second response message, the carbon copy data is sent to the main test machine.
[0071] Optionally, the test instruction is a file download instruction;
[0072] The receiving the test instruction sent by the main test machine, jointly executing the operation indicated by the test instruction with the base station to be tested connected to the main test machine, and feeding back the operation result to the main test machine, includes:
[0073] Receive the file download instruction sent by the main test machine, create a first designated directory in the file transfer server according to the file download instruction, and send login information of the file transfer server to the base station to be tested connected to itself; the login information is used to instruct the base station to be tested to return a third response message to the target test machine;
[0074] After receiving the third response message, the first file transfer task information is sent to the base station to be tested connected to itself; the first file transfer task information includes: the first path information of the first designated directory and the first file information of the first target file; the first file transfer task information is used to instruct the base station to be tested to determine the first target file based on the first file information, log in to the file transfer server according to the login information, upload the first target file to the first designated directory based on the first path information, and send a first file transfer completion message to the target test machine;
[0075] The login information and the first file transfer task information are sent to the main test machine; the login information is used to instruct the main test machine to log in to the file transfer server, and the first file transfer task information is used to instruct the main test machine to determine the first designated directory based on the first path information, and download the first target file from the first designated directory to the local machine.
[0076] Optionally, the test instruction is a file upload instruction;
[0077] The receiving the test instruction sent by the main test machine, jointly executing the operation indicated by the test instruction with the base station to be tested connected to the main test machine, and feeding back the operation result to the main test machine, includes:
[0078] Receive the file upload instruction sent by the main test machine; create a new second designated directory on the file transfer server according to the file upload instruction, and send the login information of the file transfer server and the second path information of the second designated directory to the main test machine; the login information is used to instruct the main test machine to log in to the file transfer server, and the second path information is used to instruct the main test machine to upload the second target file to the second designated directory;
[0079] Sending the login information to the base station to be tested connected to itself; the login information is used to instruct the base station to be tested to return a fourth response message to the target test machine;
[0080] After receiving the fourth response message, the second file transfer task information is sent to the base station to be tested connected to itself; the second file transfer task information includes the second path information of the second designated directory and the second file information of the second target file; the second file transfer task information is used to instruct the base station to be tested to send the second file transfer task creation success message to the target test machine, log in to the file transfer server according to the login information, download the second target file to this base station based on the second path information, and send the second file transfer completion message to the target test machine;
[0081] Sending the second file transfer completion message to the main testing machine.
[0082] Optionally, the test machines are all built-in with a first network card and a second network card, and the test machines are connected to the base station to be tested via the built-in first network card; the test machines are all connected to the same gateway via the built-in second network card, so that the test machines are all connected to the same network.
[0083] Optionally, the main test machine is determined in advance from the test machines according to the test requirements;
[0084] The test machines are all provided with an agent program, which is a program run by the test machine when the test machine is selected as a target test machine to perform a multi-base station joint test;
[0085] The main test machine is also provided with a test main program; when the main test machine is selected as a target test machine, the main test program and the agent program are run to perform a multi-base station joint test;
[0086] When the main test machine is not selected as the target test machine, it only runs the test main program to perform multi-base station joint testing.
[0087] In a third aspect of the implementation of the present invention, a multi-base station joint testing method is also provided, the method is applied to a main test machine in a multi-base station joint testing system, the system comprising: a plurality of test machines and a plurality of base stations to be tested, a one-to-one connection relationship exists between the test machines and the base stations to be tested, the plurality of test machines comprise a main test machine and at least one auxiliary test machine, the test machines are all connected to the same network; the target test machine is a main test machine or an auxiliary test machine connected to the target base station to be tested; the method comprises:
[0088] Sending a test instruction to the target test machine; the test instruction is used to instruct the target test machine to jointly execute the operation indicated by the test instruction with the base station to be tested connected to the target test machine;
[0089] Receive the operation result fed back by the target test machine.
[0090] Optionally, the test instruction includes one or more of a parameter configuration instruction, an event monitoring instruction, a message copy instruction, a file download instruction, and a file upload instruction.
[0091] Optionally, the test instruction is a parameter configuration instruction, and the parameter configuration instruction carries parameter configuration information;
[0092] The sending of a test instruction to the target test machine; the test instruction is used to instruct the target test machine to jointly execute the operation indicated by the test instruction with the base station to be tested connected to the target test machine; and the receiving of the operation result fed back by the target test machine, including:
[0093] Sending the parameter configuration instruction to the target test machine; the parameter configuration instruction is used to instruct the target test machine to convert the parameter configuration information into a base station instruction, and send the base station instruction to the base station to be tested connected to itself; the base station instruction is used to instruct the base station to be tested to perform parameter configuration according to the parameter configuration information carried in the base station instruction, and send a parameter configuration response message to the target test machine;
[0094] Receive the parameter configuration response message forwarded by the target test machine.
[0095] Optionally, the test instruction is an event monitoring instruction, and the event monitoring instruction includes a start monitoring instruction and a stop monitoring instruction;
[0096] The sending of a test instruction to the target test machine; the test instruction is used to instruct the target test machine to jointly execute the operation indicated by the test instruction with the base station to be tested connected to the target test machine; and the receiving of the operation result fed back by the target test machine, including:
[0097] Sending the start monitoring instruction to the target test machine; the start monitoring instruction is used to instruct the target test machine to forward event information reported by the base station to be tested connected to itself to the main test machine;
[0098] The stop monitoring instruction is sent to the target test machine; the stop monitoring instruction is used to instruct the target test machine to stop forwarding event information reported by the base station to be tested connected to the target test machine to the main test machine.
[0099] Optionally, the test instruction is a message copy instruction, and the message copy instruction includes a start copy instruction and a stop copy instruction; the start copy instruction and the stop copy instruction contain identification information of the target message;
[0100] The step of sending a test instruction to the target test machine; wherein the test instruction is used to instruct the target test machine to jointly execute the operation indicated by the test instruction with the base station to be tested connected to the target test machine; and receiving the operation result fed back by the target test machine includes:
[0101] Sending the start CC instruction to the target test machine; the start CC instruction is used to instruct the target test machine to send CC switch on information related to the target message to the base station to be tested connected to itself; the CC switch on information is used to instruct the base station to be tested to turn on the CC switch related to the target message, return a first response message to the target test machine, and CC the target message to the target test machine; the first response message is used to instruct the target test machine to receive and cache the CC data of the target message;
[0102] Sending the stop CC instruction to the target test machine; the stop CC instruction is used to instruct the target test machine to send CC switch closing information related to the target message to the base station to be tested connected to itself; the CC switch closing information is used to instruct the base station to be tested to turn off the CC switch, return a second response message to the target test machine, and stop CCing the target message to the target test machine;
[0103] Receive the carbon copy data sent by the target test machine.
[0104] Optionally, the test instruction is a file download instruction;
[0105] The sending of a test instruction to the target test machine; the test instruction is used to instruct the target test machine to jointly execute the operation indicated by the test instruction with the base station to be tested connected to the target test machine; and the receiving of the operation result fed back by the target test machine, including:
[0106] Send the file download instruction to the target test machine; the file download instruction is used to instruct the target test machine to create a new first designated directory on the file transfer server, and send the login information of the file transfer server to the base station to be tested connected to itself; the login information is used to instruct the base station to be tested to return a third response message to the target test machine; the third response message is used to instruct the target test machine to send the first file transfer task information to the base station to be tested connected to itself; the first file transfer task information includes: the first path information of the first designated directory and the first file information of the first target file; the first file transfer task information is used to instruct the base station to be tested to determine the first target file based on the first file information, log in to the file transfer server according to the login information, and upload the first target file to the first designated directory based on the first path information, and send a first file transfer completion message to the target test machine; the first file transfer completion message is used to instruct the target test machine to send the login information and the first file transfer task information to the host test machine;
[0107] The file transfer server is logged in according to the login information, and the first designated directory is determined based on the first path information, and the first target file is downloaded from the first designated directory to the local machine.
[0108] Optionally, the test instruction is a file upload instruction;
[0109] The sending of a test instruction to the target test machine; the test instruction is used to instruct the target test machine to jointly execute the operation indicated by the test instruction with the base station to be tested connected to the target test machine; and the receiving of the operation result fed back by the target test machine, including:
[0110] Sending the file upload instruction to the target test machine; the file upload instruction is used to instruct the target test machine to create a new second designated directory on the file transfer server, and send the login information of the file transfer server and the second path information of the second designated directory to the main test machine;
[0111] Log in to the file transfer server according to the login information, and upload the second target file to the second designated directory based on the second path information; the file upload instruction is also used to instruct the target test machine to send the login information to the base station to be tested connected to itself; the login information is used to instruct the base station to be tested to return a fourth response message to the target test machine; the fourth response message is used to instruct the target test machine to send the second file transfer task information to the base station to be tested connected to itself; the second file transfer task information includes the second path information of the second designated directory and the second file information of the second target file; the second file transfer task information is used to instruct the base station to be tested to send the second file transfer task creation success message to the target test machine, and log in to the file transfer server according to the login information, and download the second target file to this base station based on the second path information, and send a second file transfer completion message to the target test machine;
[0112] Receive the second file transfer completion message sent by the target test machine.
[0113] Optionally, the test machines are all built-in with a first network card and a second network card, and the test machines are connected to the base station to be tested via the built-in first network card; the test machines are all connected to the same gateway via the built-in second network card, so that the test machines are all connected to the same network.
[0114] Optionally, the main test machine is determined in advance from the test machines according to the test requirements;
[0115] The test machines are all provided with an agent program, which is a program run by the test machine when the test machine is selected as a target test machine to perform a multi-base station joint test;
[0116] The main test machine is also provided with a test main program; when the main test machine is selected as a target test machine, the main test program and the agent program are run to perform a multi-base station joint test;
[0117] When the main test machine is not selected as the target test machine, it only runs the test main program to perform multi-base station joint testing.
[0118] In a fourth aspect of the implementation of the present invention, a multi-base station joint test device is further provided, the device is applied to a target test machine in a multi-base station joint test system, the system comprising: a plurality of test machines and a plurality of base stations to be tested, a one-to-one connection relationship exists between the test machines and the base stations to be tested, the plurality of test machines comprise a main test machine and at least one auxiliary test machine, the test machines are all connected to the same network; the target test machine is a main test machine or an auxiliary test machine connected to the target base station to be tested; the device comprises:
[0119] The test module is used to receive the test instruction sent by the main test machine, execute the operation indicated by the test instruction in conjunction with the base station to be tested connected to itself, and feed back the operation result to the main test machine.
[0120] In a fifth aspect of the implementation of the present invention, a multi-base station joint test device is further provided, the device is applied to a main test machine in a multi-base station joint test system, the system comprises: a plurality of test machines and a plurality of base stations to be tested, there is a one-to-one connection relationship between the test machines and the base stations to be tested, the plurality of test machines comprise a main test machine and at least one auxiliary test machine, the test machines are all connected to the same network; the target test machine is a main test machine or an auxiliary test machine connected to the target base station to be tested; the device comprises:
[0121] A sending module, used for sending a test instruction to the target test machine; the test instruction is used for instructing the target test machine to jointly execute the operation indicated by the test instruction with the base station to be tested connected to the target test machine;
[0122] The receiving module is used to receive the operation result fed back by the target testing machine.
[0123] In a sixth aspect of the implementation of the present invention, a computer-readable storage medium is further provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements any of the above-mentioned multi-base station joint testing methods.
[0124] In a seventh aspect of the embodiments of the present invention, a computer program product comprising instructions is also provided. When the computer program product is run on a computer, the computer is enabled to execute any one of the multi-base station joint testing methods in the above embodiments.
[0125] Beneficial effects of the embodiments of the present invention:
[0126] A multi-base station joint testing system and method provided by an embodiment of the present invention includes: multiple test machines and multiple base stations to be tested, the test machines and the base stations to be tested have a one-to-one corresponding connection relationship, the multiple test machines include a main test machine and at least one auxiliary test machine, and the test machines are all connected to the same network. The main test machine sends a test instruction to the target test machine. After receiving the test instruction, the target test machine jointly performs the operation indicated by the test instruction with the base station to be tested connected to itself, and feeds back the operation result to the main test machine. That is, in this application, because a test instruction can be sent by a main test machine to control multiple test machines to jointly perform the operation indicated by the test instruction with the base station to be tested connected to itself, the test efficiency of the multi-base station joint test can be improved compared with the prior art. And after the test is completed, the operation result can be finally returned to the main test machine, which is convenient for unified analysis of the test data of multiple test stations, and solves the technical problem of scattered test data in the prior art during multi-base station joint testing.
[0127] Moreover, in the embodiment of the present invention, a main test machine sends a test instruction to control multiple auxiliary test machines to perform test-related operations on the base stations to be tested connected to it, and the obtained operation results and test data are finally returned to the main test machine for aggregation. Therefore, this solution can provide underlying support for the automated testing of multiple base stations, that is, when there is a need for automated testing, it supports the deployment of corresponding test scripts in the main test machine and the auxiliary test machine to realize automated joint testing of multiple base stations. In addition, there is no need for staff to operate the main test machine and the auxiliary test machine separately, but they are controlled by program instructions, which is convenient for testing steps with high requirements for operation delay.
[0128] Of course, it is not necessary to achieve all of the advantages described above at the same time to implement any product or method of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0129] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can also be obtained based on these drawings.
[0130] Figure 1 It is a schematic diagram of a multi-base station joint test scenario in the prior art;
[0131] Figure 2 A schematic diagram of the structure of a multi-base station joint testing system provided by an embodiment of the present invention;
[0132] Figure 3 An exemplary multi-base station joint test scenario diagram provided for an embodiment of the present invention;
[0133] Figure 4 A flow chart of a multi-base station joint testing method based on parameter configuration instructions provided by an embodiment of the present invention;
[0134] Figure 5 A flow chart of a multi-base station joint testing method based on event monitoring instructions provided by an embodiment of the present invention;
[0135] Figure 6 A flow chart of a multi-base station joint testing method based on a message copy instruction provided by an embodiment of the present invention;
[0136] Figure 7 A flow chart of a multi-base station joint testing method based on file download instructions provided by an embodiment of the present invention;
[0137] Figure 8A flow chart of a multi-base station joint testing method based on a file upload instruction provided by an embodiment of the present invention;
[0138] Fig. 9 A flow chart of a multi-base station joint testing method applied to a target test machine provided by an embodiment of the present invention;
[0139] Fig.10 A flow chart of a multi-base station joint testing method applied to a main testing machine provided by an embodiment of the present invention;
[0140] Fig.11 A schematic diagram of the structure of a multi-base station joint testing device applied to a target testing machine provided by an embodiment of the present invention;
[0141] Fig.12 A schematic structural diagram of a multi-base station joint testing device applied to a main testing machine provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0142] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field based on this application belong to the scope of protection of the present invention.
[0143] For existing multi-base station joint test scenarios, when conducting multi-base station joint tests, multiple people are often required to operate each test machine separately, or the same person operates multiple test machines in series, and then obtains data from each test machine for test analysis. Figure 1 As shown, Figure 1 Schematic diagram of multi-base station joint test scenario in the prior art. Each tester is connected to a base station to be tested, such as tester 1 is connected to base station 1 to be tested, tester 2 is connected to base station 2 to be tested, and tester 3 is connected to base station 3 to be tested. Base stations 1, 2, and 3 to be tested are connected to the same network element device. Figure 1 In the test scenario shown, test machine 1, test machine 2, and test machine 3 are operated by different staff members or by the same staff member. This test method is often inefficient, and because the data is distributed on different test machines, it is not convenient to perform unified test analysis and cannot provide support for automated testing. In addition, it is not convenient to perform test steps that require rapid and continuous operations.
[0144] In order to solve the above technical problems, the present application provides a multi-base station joint testing system, such as Figure 2 As shown, Figure 2A structural diagram of a multi-base station joint test system provided by an embodiment of the present invention. The multi-base station joint test system includes multiple test machines and multiple base stations to be tested 201, and there is a one-to-one connection relationship between the test machines and the base stations to be tested. The multiple test machines include a main test machine 202 and at least one auxiliary test machine 203, and the test machines are all connected to the same network.
[0145] In one embodiment of the present application, the test machines are all built-in with a first network card and a second network card, wherein the test machines are connected to the base station to be tested via the built-in first network card, and the test machines are all connected to the same gateway via the built-in second network card, so that the test machines are all connected to the same network.
[0146] It can be seen that considering that connecting to the base station to be tested requires a network card, in the embodiment of the present application, dual network cards are built into the test machine, and an additional network card is added to enable multiple test machines to access the same network, that is, hardware support is provided for the system architecture of multi-base station joint testing.
[0147] The main test machine is used to send a test instruction to the target test machine, and the target test machine is the main test machine or the auxiliary test machine connected to the target base station to be tested.
[0148] In this embodiment, the main test machine can be understood as a test machine that initiates the test and summarizes the test results. The main test machine can be selected according to actual test requirements.
[0149] The target test machine is the test machine connected to the target base station to be tested, which can be the main test machine or the auxiliary test machine. The target base station to be tested is determined according to the actual test requirements. For example, a certain test project requires joint testing of base stations to be tested a, b and c. Then base stations to be tested a, b and c are all target base stations to be tested, and the test machines connected to base stations to be tested a, b and c are all target test machines.
[0150] To further explain the multi-base station joint test system provided in the embodiment of the present application, please refer to Figure 3 ,like Figure 3 As shown, Figure 3 An exemplary multi-base station joint test scenario diagram provided by an embodiment of the present invention. Figure 3 There are three test machines in the multi-base station joint test scenario shown, namely test machine 1, test machine 2 and test machine 3. When test machine 1 is configured as the main test machine, test machine 2 and test machine 3 are configured as auxiliary test machines. Or, when test machine 2 is configured as the main test machine, test machine 1 and test machine 3 are configured as auxiliary test machines.
[0151] Figure 3The test machines 1, 2, and 3 are all connected to the same gateway through the built-in second network card, so that the test machines 1, 2, and 3 access the same network based on the same gateway.
[0152] Figure 3 The network element devices may include core network, terminals, instruments, etc.
[0153] In this embodiment, the target test machine in the multi-base station joint test system receives the test command through the test command interface, wherein the test command interface is used for interaction between the main test machine and the target test machine. The protocol selected by the test command interface may be UDP (User Datagram Protocol), TCP (Transmission Control Protocol) and other protocols.
[0154] Specifically, the test instruction may include one or more of a parameter configuration instruction, an event monitoring instruction, a message copy instruction, a file download instruction, and a file upload instruction.
[0155] The target test machine is used to perform the operation indicated by the test instruction in conjunction with the base station to be tested connected to it after receiving the test instruction, and feed back the operation result to the main test machine. The test instruction is divided into multiple different types of instructions. Therefore, corresponding to different types of test instructions, after receiving the test instruction, the target test machine performs the operation indicated by the test instruction in conjunction with the base station to be tested connected to it, and the operation result fed back to the main test machine is different.
[0156] In this embodiment, after the target test machine performs the test in conjunction with the base station to be tested connected to it, the operation result is finally fed back to the main test machine for aggregation, so as to subsequently perform a unified analysis on the operation result.
[0157] Those skilled in the art can understand that the target test machine jointly with the base station to be tested connected to it executes the operation indicated by the test instruction and the main test machine determines the operation result after receiving the operation result, which together constitute the test steps of multi-base station joint testing.
[0158] For example, Figure 3 As shown, in Figure 3There are 3 target test machines and 3 base stations to be tested. If test machine 1 is the main test machine, test machine 2 and test machine 3 are auxiliary test machines. If the determined target test machines include test machine 2 and test machine 3, then after test machine 2 receives the parameter configuration instruction sent by test machine 1, it will jointly execute the operations related to parameter configuration indicated by the test instruction with the base station 1 to be tested connected to itself, and feed back the operation results to test machine 1. Similarly, after test machine 3 receives the event monitoring instruction sent by test machine 1, it will jointly execute the operations related to event monitoring indicated by the test instruction with the base station 3 to be tested connected to itself, and feed back the operation results to test machine 1.
[0159] A multi-base station joint test system provided by an embodiment of the present invention is adopted, and the main test machine sends a test instruction to the target test machine. After receiving the test instruction, the target test machine jointly performs the operation indicated by the test instruction with the base station to be tested connected to itself, and feeds back the operation result to the main test machine. That is, in the present application, a main test machine sends a test instruction to control multiple test machines to jointly perform the operation indicated by the test instruction with the base station to be tested connected to itself. Therefore, compared with the prior art, the test efficiency of the multi-base station joint test can be improved. And after the test is completed, the operation result can be finally returned to the main test machine, which is convenient for unified analysis of the test data of each test station, and solves the technical problem of scattered test data in the prior art during multi-base station joint testing.
[0160] Moreover, in the embodiment of the present invention, a main test machine sends a test instruction to control multiple auxiliary test machines to perform test-related operations on the base stations to be tested connected to it, and the obtained operation results and test data are finally returned to the main test machine for aggregation. Therefore, this solution can provide support for the automated testing of multiple base stations, that is, support the deployment of test scripts on the main test machine to realize automated joint testing of multiple base stations. In addition, there is no need for staff to operate the main test machine and the auxiliary test machine separately, but they are controlled by program instructions, which is convenient for testing steps with high requirements for operation delay.
[0161] In one embodiment of the present invention, the test instruction may include one or more of a parameter configuration instruction, an event monitoring instruction, a message copy instruction, a file download instruction, and a file upload instruction. Corresponding to different test instructions, the target tester and the base station to be tested connected to it perform the operation indicated by the test instruction, and the operation result fed back to the main tester are also different.
[0162] The specific operation process of each type of test instruction will be further explained below.
[0163] In the present application, the test instruction may be a parameter configuration instruction, and the parameter configuration instruction carries parameter configuration information. For the test in which the test instruction is a parameter configuration instruction, an embodiment of the present invention provides a flow chart of a multi-base station joint test method based on parameter configuration instructions, such as Figure 4 As shown, including:
[0164] Step S401: the main test machine sends a parameter configuration instruction carrying parameter configuration information to the target test machine.
[0165] In this embodiment, the test instruction sent by the main test machine is a parameter configuration instruction. The parameter configuration instruction carrying parameter configuration information may refer to an instruction for modifying and querying parameters of the base station to be tested connected to the target test machine, and for sending locking, resetting and other operations.
[0166] Step S402: the target test machine converts the parameter configuration information into a base station instruction, and sends the base station instruction to the base station to be tested connected to itself.
[0167] In this embodiment, after the target test machine receives the parameter configuration instruction sent by the main test machine through the test instruction interface, it converts the parameter configuration information in the parameter configuration instruction into a base station instruction that can be recognized by the base station under test, and then sends the base station instruction to the base station under test connected to itself through the base station parameter configuration interface.
[0168] Specifically, the parameter configuration interface of the target test machine can select the protocol supported by the base station to be tested connected to itself, for example, the selected protocol can be SNMP (Simple Network Management Protocol), SSH (Secure Shell) and other protocols.
[0169] Step S403: the base station to be tested performs parameter configuration according to the parameter configuration information carried in the base station instruction, and sends a parameter configuration response message to the target test machine.
[0170] In this embodiment, because the base station instruction received by the base station under test carries parameter configuration information, the base station under test can perform parameter configuration on itself based on the parameter configuration information, and after the parameter configuration is completed, send a parameter configuration response message to the target test machine.
[0171] Step S404: the target test machine forwards a parameter configuration response message to the host test machine.
[0172] In this embodiment, after receiving the parameter configuration response message sent by the base station to be tested connected to itself, the target test machine forwards the message to the main test machine to notify the main test machine that the base station to be tested has completed configuration based on the parameter configuration information in the test instruction.
[0173] In this embodiment, after receiving the parameter configuration instruction sent by the main test machine, the target test machine generates a base station instruction that can be recognized by the base station based on the parameter configuration information in the parameter configuration instruction, so that the base station to be tested connected to the target test machine can complete the corresponding parameter configuration of the base station based on the base station instruction, and finally return the parameter configuration result to the main test machine through a parameter configuration response message, so that the main test machine can uniformly summarize and analyze the test machine data distributed in different target test machines.
[0174] For the test where the test instruction is an event monitoring instruction, an embodiment of the present invention provides a flow chart of a multi-base station joint testing method based on an event monitoring instruction, such as Figure 5 As shown, the event monitoring instruction includes a start monitoring instruction and a stop monitoring instruction, and the test steps include:
[0175] Step S501: the main test machine sends a start monitoring instruction to the target test machine.
[0176] Since the target test machine maintains a long connection with the base station to be tested, the real-time event information generated by the base station to be tested will be actively reported to the target test machine. When the main test machine needs to report event information, it can send a start monitoring instruction to the target test machine, so that the target test machine forwards the event information to the main test machine based on the start monitoring instruction.
[0177] Specifically, the start monitoring instruction includes the IP address of the main test machine.
[0178] Step S502: After receiving the start monitoring instruction, the target test machine forwards the event information reported by the base station to be tested connected to itself to the main test machine.
[0179] In the initial state, that is, before the target test machine receives the start monitoring command sent by the main test machine, the target test machine does not forward the event information after receiving the event information reported by the base station to be tested connected to itself. It is not until the target test machine receives the start monitoring command through the test command interface that it forwards each received event information to the main test machine.
[0180] In this embodiment, the target test machine receives event information reported by the base station to be tested connected to itself through the base station event reporting interface.
[0181] Specifically, the base station under test reports event information, which means that after the base station under test generates event information such as alarm, state change, etc., it will actively report it to the target test machine connected to itself.
[0182] For example, Figure 5As shown in , before the target test machine receives event information 1 and event information 2 reported by the base station to be tested connected to itself, it does not receive the start monitoring instruction. Therefore, the target test machine does not forward event information 1 and event information 2 to the main test machine. Before the target test machine receives event information 3 and event information 4, it has received the start monitoring instruction sent by the main test machine. Therefore, after receiving event information 3 and event information 4, the target test machine forwards event information 3 and event information 4 to the main test machine.
[0183] Step S503: the main test machine sends a stop monitoring instruction to the target test machine.
[0184] In this embodiment, the stop monitoring instruction is used to send a stop monitoring instruction when the main test machine does not need to report event information, so that the target test machine stops forwarding event information to the main test machine based on the stop monitoring instruction.
[0185] Step S504: after receiving the stop monitoring instruction, the target test machine stops forwarding the event information reported by the base station to be tested connected to itself to the main test machine.
[0186] In this embodiment, after the target test machine receives the start monitoring instruction through the test instruction interface, it will forward each event information sent by the base station to be tested connected to itself to the main test machine. Until the target test machine receives the stop monitoring instruction sent by the main test machine through the test instruction interface, it will stop forwarding event information to the main test machine.
[0187] For example, Figure 5 As shown in , before the target test machine receives event information 3 and event information 4, it receives the start monitoring instruction but does not receive the stop monitoring instruction, so the target test machine forwards event information 3 and event information 4 to the main test machine. However, before the target test machine receives event information 5 and event information 6, it has received the stop monitoring instruction sent by the main test machine. Therefore, after receiving event information 5 and event information 6, the target test machine stops forwarding event information 5 and event information 6 to the main test machine.
[0188] In this embodiment, when event information reporting is required, the main test machine sends a start monitoring instruction to make the target test machine report the received event information to the main test machine. When event information reporting is not required, the main test machine sends a stop monitoring instruction to control the target test machine to stop forwarding event information to the main test machine. The main test machine sends a start monitoring instruction and a stop monitoring instruction to coordinate, which can play the role of switching the target test machine to report event information to the main test machine, so as to increase the controllability of the main test machine over the test process.
[0189] For the test in which the test instruction is a message copy instruction, an embodiment of the present invention provides a flow chart of a multi-base station joint test method based on a message copy instruction, such as Figure 6 As shown, the message copy instruction includes a start copy instruction and a stop copy instruction, and the start copy instruction and the stop copy instruction include identification information of the target message, and the test steps include:
[0190] Step S601: the main test machine sends a start copy instruction to the target test machine.
[0191] In this embodiment, the message copy refers to the internal service data of the base station to be tested being copied to the commissioning port for testing and analysis. The start copy instruction is used by the main tester to control the target tester to copy the required data from the base station to be tested connected to the target tester.
[0192] Step S602: After receiving the start copy instruction, the target test machine sends the copy switch on information related to the target message to the base station to be tested connected to itself.
[0193] In this embodiment, because the start copy instruction contains the identification information of the target message, after the target test machine receives the start copy instruction through the test instruction interface, it can send the copy switch opening information related to the target message to the base station to be tested connected to itself through the base station parameter configuration interface based on the identification information of the target message.
[0194] Specifically, the target message may be a business flow or the like.
[0195] Step S603: the base station to be tested turns on the carbon copy switch related to the target message according to the carbon copy switch on information, returns a first response message to the target test machine, and carbon copies the target message to the target test machine.
[0196] In this embodiment, after receiving the CC switch on information related to the target message, the base station to be tested will turn on the CC switch related to the target message according to the CC switch on information. After turning on the CC switch, the base station to be tested will send a first response message to the target test machine, and then CC the target message to the target test machine. The first response message contains the content that the CC switch related to the target message has been turned on.
[0197] For example, if the CC switch on information received by the base station to be tested is the CC switch on information of message 1, the base station to be tested turns on the CC switch related to message 1, and after turning on the CC switch, sends a response message to the target test machine indicating that the CC switch related to message 1 has been turned on, and then CCs message 1 to the target test machine.
[0198] Step S604: After receiving the first response message, the target test machine receives and caches the copy data of the target message.
[0199] After receiving the first response message through the base station parameter configuration interface, the target test machine confirms that the base station to be tested has turned on the CC switch related to the target message. Therefore, the target test machine can receive and cache the CC data of the target message through the base station message CC interface.
[0200] Step S605: the main test machine sends a stop copy instruction to the target test machine.
[0201] The stop copy instruction is used by the main test machine to control the target test machine to stop copying the required data from the base station to be tested connected to the target test machine.
[0202] Step S606: After receiving the stop copy instruction, the target test machine sends the copy switch closing information related to the target message to the base station to be tested connected to itself.
[0203] In this embodiment, after the target test machine receives the start CC instruction sent by the main test machine, it will continue to receive and cache the CC data of the target message sent by the base station to be tested connected to itself, until the target test machine receives the stop CC instruction through the test instruction interface, and then sends the CC switch off information related to the target message to the base station to be tested connected to itself.
[0204] Step S607: the base station to be tested turns off the carbon copy switch according to the carbon copy switch turning off information, returns a second response message to the target test machine, and stops carbon copying the target message to the target test machine.
[0205] After receiving the CC switch off information, the base station to be tested will turn off the CC switch according to the CC switch off information, and then return a second response message to the target test machine and stop CCing the target message to the target test machine. The second response message contains the content that the CC switch related to the target message has been turned off.
[0206] For example, if the CC switch OFF information received by the base station under test is the CC switch OFF information of message 1, the base station under test turns off the CC switch related to message 1, and returns a message containing the CC switch OFF information of message 1 to the target test machine, and then stops CCing message 1 to the target test machine.
[0207] Step S608: After receiving the second response message, the target test machine sends the copy data to the main test machine.
[0208] After the target test machine receives the second response message sent by the base station to be tested connected to itself through the base station parameter configuration interface, it indicates that the target test machine has completed the required copy data. Therefore, the target test machine can send the copy data to the main test machine through the test instruction interface.
[0209] In addition, after the target test machine completes copying data to the main test machine, the local data cache can be cleared to release local storage space.
[0210] In this embodiment, after receiving the start copy instruction sent by the main test machine, the target test machine sends the start information related to the target message to the base station to be tested connected to itself, and receives and caches the relevant data from the base station to be tested. After receiving the stop copy instruction sent by the main test machine, it stops receiving and caching the relevant data from the base station to be tested. And copy the relevant data already cached in the local machine to the main test machine, so that the main test machine can summarize the copy data and complete the multi-base station joint test based on the message copy instruction.
[0211] For the test in which the test instruction is a file download instruction, an embodiment of the present invention provides a flow chart of a multi-base station joint test method based on a file download instruction, such as Figure 7 As shown, the test steps include:
[0212] Step S701: the main test machine sends a file download instruction to the target test machine.
[0213] In this embodiment, the file download instruction is used by the host test machine to control the target test machine to extract the required file from the base station to be tested connected to the target test machine.
[0214] Step S702: the target test machine creates a first designated directory in the file transfer server according to the file download instruction, and sends login information of the file transfer server to the base station to be tested connected to itself.
[0215] The target test machine receives the file download instruction sent by the main test machine through the test instruction interface, and creates a first designated directory on the file transfer server according to the file download instruction.
[0216] Specifically, the file transfer server may be an FTP (File Transfer Protocol) server, or, depending on the protocol supported by the base station, other file transfer servers such as SFTP (SSH File Transfer Protocol) may be selected.
[0217] In this embodiment, the login information of the file transfer server sent by the target test machine to the base station to be tested connected to itself through the base station parameter configuration interface may include the user name and password information of the local file transfer server.
[0218] Step S703: After receiving the login information, the base station to be tested returns a third response message to the target test machine.
[0219] After the base station to be tested receives the login information sent by the target test machine, the login information can be saved so that the file transfer server can be logged in based on the received login information in subsequent operations. After saving the login information, a third response message is returned to the target test machine, and the third response message contains the content of the login information saved by the base station to be tested.
[0220] Step S704: After receiving the third response message, the target test machine sends the first file transmission task information to the base station to be tested connected to itself.
[0221] In this embodiment, the target test machine receives the third response message sent by the base station to be tested connected to itself through the base station parameter configuration interface, indicating that the base station to be tested has received the login information. Therefore, the target test machine can send the first file transfer task information to the base station to be tested connected to itself through the base station parameter configuration interface.
[0222] In this embodiment, the first file transfer task information includes: the first path information of the first designated directory and the first file information of the first target file. The path information of the first designated directory indicates the complete path of the specific location of the first designated directory. For example, a new first designated directory is created on the file transfer server as Directory 1, and the path information of Directory 1 can be represented by D\AAA\BBB\Directory 1, that is, Directory 1 is located in the BBB folder under the AAA folder in the D disk of the file transfer server. The first file information of the first target file is the identifier of the first target file. Specifically, the first file information may include information such as the file name or log type of the first target file.
[0223] Step S705, the base station to be tested determines the first target file based on the first file information, logs in to the file transfer server according to the login information, uploads the first target file to the first designated directory based on the first path information, and sends a first file transfer completion message to the target test machine.
[0224] Because the first file information is the identifier of the first target file, the base station under test can determine the first target file in the base station through the first file information. Then the base station under test can log in to the file transfer server of the target test machine connected to itself through the received login information. And according to the first path information received previously, the first target file is uploaded to the first designated directory of the target test machine through the file transfer interface of the target test machine. After successfully uploading the first target file, the base station under test sends a first file transfer completion message to the target test machine.
[0225] In this embodiment, the protocol of the file transfer interface of the target test machine may be FTP or SFTP.
[0226] Step S706: The target test machine sends login information and first file transfer task information to the host test machine.
[0227] After the target test machine receives the first file transfer completion message sent by the base station to be tested connected to it through the base station event reporting interface, the target test machine sends the login information and the first file transfer task information to the main test machine through the test command interface. That is, the target test machine sends the user name and password information of the local file transfer server, the first path information of the first designated directory, and the first file information of the first target file to the main test machine.
[0228] Step S707: the main test machine logs in to the file transfer server according to the login information, determines the first designated directory based on the first path information, and downloads the first target file from the first designated directory to the local machine.
[0229] The host test machine can log in to the file transfer server according to the user name and password information of the file transfer server of the target test machine, then determine the first designated directory based on the first path information, and then download the first target file in the first designated directory to the local machine.
[0230] For example, the first designated directory is directory 1, the first target file is file 1, and file 1 exists in directory 1. After the main test machine logs in to the file transfer server according to the login information, based on the path information of directory 1: D\AAA\BBB\directory 1, the location of directory 1 is determined, and then file 1 stored in directory 1 can be downloaded to the local machine.
[0231] In this embodiment, when the main test machine downloads files from the base station to be tested, the target test machine can transfer them. Specifically, a file transfer server can be deployed in the target test machine, and the main test machine and the base station to be tested connected to the target test machine serve as clients. During the file download process, the base station to be tested logs in to the file transfer server of the target test machine to upload files, and then the main test machine logs in to the file transfer server of the target test machine to download files. The entire file transfer process is controlled by the main test machine sending a file download instruction, and finally the file is downloaded to the main test machine. Compared with the prior art, the test efficiency can be improved, and at the same time, the problem that the downloaded files are scattered among multiple test machines, making it difficult to unify the test results, can be solved.
[0232] In addition, after the host test machine completes downloading of the first target file, the target test machine may delete the first target file from the local machine to release storage space.
[0233] For the test where the test instruction is a file upload instruction, an embodiment of the present invention provides a flow chart of a multi-base station joint test method based on a file upload instruction, such as Figure 8 As shown, the test steps include:
[0234] Step S801: the main test machine sends a file upload instruction to the target test machine.
[0235] In the embodiment of the present invention, the file upload instruction is used to control the file upload between the main test machine and the base station to be tested.
[0236] Step S802: the target test machine creates a second designated directory in the file transfer server according to the file upload instruction, and sends login information of the file transfer server and second path information of the second designated directory to the host test machine.
[0237] The target test machine receives the file upload instruction sent by the main test machine through the test instruction interface, creates a new second designated directory in the file transfer server deployed locally based on the file upload instruction, and then sends the login information of the local file transfer server and the second path information of the second designated directory to the main test machine through the test instruction interface. As mentioned above, the file transfer server in this embodiment can also be an FTP server or an SFTP server. The login information can include the user name and password information of the local file transfer server.
[0238] Step S803: the main test machine logs into the file transfer server according to the login information, and uploads the second target file to the second designated directory based on the second path information.
[0239] Because the login information received by the main test machine contains the user name and password information of the file transfer server of the target test machine, the main test machine can log in to the file transfer server based on this information. Then, based on the second path information of the second designated directory received, the main test machine can upload the second target file to the second designated directory through the file transfer interface of the target test machine.
[0240] For example, the path information of directory 2 is D\AAA\BBB\directory 2. Based on the path information of directory 2, the main test machine can determine the specific location of directory 2, and then upload file 2 to directory 2.
[0241] Step S804: the target test machine sends login information to the base station to be tested to which it is connected.
[0242] After the host test machine uploads the second target file to the second designated directory, the target test machine sends the login information to the base station to be tested connected to it through the parameter configuration interface, that is, the target test machine sends the user name and password information of the local file transfer server to the base station to be tested.
[0243] Step S805: After receiving the login information, the base station to be tested returns a fourth response message to the target test machine.
[0244] After receiving the login information, the base station to be tested can save the login information and then return a fourth response message to the target test machine. The fourth response message includes the content of the login information saved by the base station to be tested.
[0245] Step S806: After receiving the fourth response message, the target test machine sends the second file transmission task information to the base station to be tested connected to itself.
[0246] In this embodiment, the target test machine receives the fourth response message sent by the base station to be tested connected to itself through the parameter configuration interface, indicating that the base station to be tested has received the login information. Therefore, the target test machine can send the second file transfer task information to the base station to be tested connected to itself through the base station parameter configuration interface.
[0247] The second file transfer task information includes the second path information of the second designated directory and the second file information of the second target file. As mentioned above, the second file information of the second target file is the identifier of the second target file. Specifically, the second file information may include information such as the file name or log type of the second target file.
[0248] Step S807, the base station to be tested sends a second file transfer task creation success message to the target test machine, logs in to the file transfer server according to the login information, downloads the second target file to the base station based on the second path information, and sends a second file transfer completion message to the target test machine.
[0249] After creating the second file transfer task, the base station to be tested sends a message indicating that the second file transfer task has been successfully created to the target test machine. Then, the base station to be tested can log in to the file transfer server of the target test machine based on the received login information. Then, the second target file is downloaded to the base station based on the second path information. After the download of the second target file is completed, a message indicating that the second file transfer is completed is sent to the target test machine.
[0250] For example, the second designated directory is directory 2, and the path information of directory 2 is D\AAA\BBB\directory 2. The base station to be tested can determine the specific location of directory 2 based on the path information of directory 2, and then download file 2 from directory 2.
[0251] Step S808: The target test machine sends a second file transfer completion message to the host test machine.
[0252] In this embodiment, after the target test machine receives the second file transfer completion message sent by the base station under test connected to itself, it indicates that the base station under test has successfully downloaded the second target file. Therefore, the target test machine can forward the second file transfer completion message to the main test machine through the test command interface and feed back the test results to the main test machine.
[0253] In addition, after the file upload is completed, the target test machine can delete the second target file from the local machine to release storage space.
[0254] In this embodiment, when the main test machine uploads files to the base station to be tested, the target test machine can also perform transfer. Specifically, a file transfer server can be deployed in the target test machine, and the main test machine and the base station to be tested connected to the target test machine serve as clients. During the file upload process, the main test machine logs in to the file transfer server of the target test machine to upload files, and then the base station to be tested logs in to the file transfer server of the target test machine to download files. The entire file transfer process is controlled by the main test machine sending a file upload instruction, which can improve the test efficiency during multi-base station joint testing.
[0255] In the embodiment of the present invention, the main test machine is determined in advance from the test machine according to the test requirements. The main test machine and the auxiliary test machine can be distinguished by setting different programs in the test machine.
[0256] An agent program is set in each test machine. The agent program is a program that is run when the test machine is selected as a target test machine to perform a multi-base station joint test.
[0257] In addition to the agent program, the main test machine is also provided with a test main program, which can be understood as a program running in the main test machine for issuing test instructions to each target test machine and summarizing the test results fed back by each target test machine.
[0258] Specifically, when the main test machine is selected as the target test machine, it runs the test main program and the agent program to perform the multi-base station joint test. When the main test machine is not selected as the target test machine, it only runs the test main program to perform the multi-base station joint test.
[0259] In the main test machine, the local IP address is used between the test main program and the agent program. For example, the IP address can be an address allocated in the network or a loopback address 127.0.0.1, where the loopback address 127.0.0.1 is a universal address used to represent the local machine.
[0260] In this application, the main test machine and the auxiliary test machine are not fixed. Whichever test machine runs the main test program is the main test machine. That is, any test machine can be used as the main test machine, and you can choose which test machine to run the main test program on according to the test requirements. You can make full use of the test environment in the network to achieve the purpose of decentralization, which can significantly improve the flexibility of multi-base station joint testing, and the main test machine can summarize the test results fed back by each target test machine, which can provide underlying support for automated testing.
[0261] The present application also provides a multi-base station joint testing method, which is applied to a target test machine in a multi-base station joint testing system. The multi-base station joint testing system includes multiple test machines and multiple base stations to be tested. There is a one-to-one connection relationship between the test machines and the base stations to be tested. The multiple test machines include a main test machine and at least one auxiliary test machine. The test machines are all connected to the same network. The target test machine is the main test machine or auxiliary test machine connected to the target base station to be tested. Fig. 9 As shown, Fig. 9 A flow chart of a multi-base station joint testing method applied to a target test machine provided in an embodiment of the present invention includes:
[0262] Step S901, receiving a test instruction sent by a main test machine, executing the operation indicated by the test instruction in conjunction with the base station to be tested connected to itself, and feeding back the operation result to the main test machine.
[0263] In this embodiment, a main test machine sends a test instruction to control multiple test machines to jointly execute the operation indicated by the test instruction with the base station to be tested connected to it, so the test efficiency of multi-base station joint test can be improved compared with the prior art. After the test is completed, the operation result can be finally returned to the main test machine, which is convenient for unified analysis of the test data of multiple test stations, solving the technical problem of scattered test data in the prior art when testing multiple base stations jointly.
[0264] Moreover, in the embodiment of the present invention, a main test machine sends test instructions to control multiple auxiliary test machines to perform test-related operations on the base stations to be tested connected to themselves, and the operation results and test data are finally returned to the main test machine for aggregation. Therefore, this solution can provide support for automated testing of multiple base stations, that is, it supports the deployment of test scripts on the main test machine to realize automated testing of multiple base stations.
[0265] The present application also provides a multi-base station joint testing method, which is applied to a main test machine in a multi-base station joint testing system. The multi-base station joint testing system includes: multiple test machines and multiple base stations to be tested. There is a one-to-one connection relationship between the test machines and the base stations to be tested. The multiple test machines include a main test machine and at least one auxiliary test machine. The test machines are all connected to the same network. The target test machine is the main test machine or auxiliary test machine connected to the target base station to be tested. Fig.10 As shown, Fig.10 A flow chart of a multi-base station joint testing method applied to a main testing machine provided in an embodiment of the present invention includes:
[0266] S1001, sending a test instruction to a target test machine, where the test instruction is used to instruct the target test machine to jointly execute an operation indicated by the test instruction with a base station to be tested connected to the target test machine.
[0267] S1002, receiving the operation result fed back by the target test machine.
[0268] In this embodiment, a main test machine sends a test instruction to a target test machine, and the test instruction is used to instruct the target test machine to perform the operation indicated by the test instruction in conjunction with the base station to be tested connected to itself. Therefore, compared with the prior art, the test efficiency of multi-base station joint testing can be improved. And after the target test machine completes the joint operation with the base station to be tested test machine connected to itself, the main test machine receives the operation results fed back by the target test machine, and summarizes the operation results of each target test machine, which is convenient for unified analysis of the test data of multiple test stations, and solves the technical problem of scattered test data in the prior art during multi-base station joint testing.
[0269] Moreover, in the embodiment of the present invention, the main test machine sends test instructions to control multiple target test machines to perform test-related operations on the base stations to be tested connected to themselves, and finally the operation results and test data are returned to the main test machine for aggregation. Therefore, this solution can provide support for automated testing of multiple base stations, that is, it supports the deployment of test scripts on the main test machine to realize automated testing of multiple base stations.
[0270] The present application also provides a multi-base station joint test device, which is applied to a target test machine in a multi-base station joint test system, the system comprising: a plurality of test machines and a plurality of base stations to be tested, there being a one-to-one connection relationship between the test machines and the base stations to be tested, the plurality of test machines comprising a main test machine and at least one auxiliary test machine, the test machines all being connected to the same network; the target test machine is a main test machine or an auxiliary test machine connected to the target base station to be tested; Fig.11 As shown, Fig.11 A schematic structural diagram of a multi-base station joint testing device applied to a target test machine provided by an embodiment of the present invention includes:
[0271] The testing module 111 is used to receive the testing instruction sent by the main testing machine, execute the operation indicated by the testing instruction in conjunction with the base station to be tested connected to itself, and feed back the operation result to the main testing machine.
[0272] The present application also provides a multi-base station joint test device, which is applied to a main test machine in a multi-base station joint test system, the system comprising: a plurality of test machines and a plurality of base stations to be tested, there being a one-to-one connection relationship between the test machines and the base stations to be tested, the plurality of test machines comprising a main test machine and at least one auxiliary test machine, the test machines all being connected to the same network; the target test machine is a main test machine or an auxiliary test machine connected to the target base station to be tested; Fig.12 As shown, Fig.12 A schematic diagram of the structure of a multi-base station joint testing device applied to a main testing machine provided by an embodiment of the present invention includes:
[0273] The sending module 121 is used to send a test instruction to the target test machine; the test instruction is used to instruct the target test machine to jointly execute the operation indicated by the test instruction with the base station to be tested connected to it;
[0274] The receiving module 122 is used to receive the operation result fed back by the target test machine.
[0275] In another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any one of the above-mentioned multi-base station joint testing methods are implemented.
[0276] In another embodiment of the present invention, a computer program product including instructions is provided. When the computer program product is run on a computer, the computer is enabled to execute any one of the multi-base station joint testing methods in the above embodiments.
[0277] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.
[0278] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0279] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the method, device, computer-readable storage medium, and computer program product embodiments, since they are basically similar to the system embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the system embodiment.
[0280] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A multi-base station joint testing system, characterized in that: include: A plurality of test machines and a plurality of base stations to be tested, wherein there is a one-to-one corresponding connection relationship between the test machines and the base stations to be tested, the plurality of test machines include a main test machine and at least one auxiliary test machine, and the test machines are all connected to the same network; The main test machine is used to send a test instruction to the target test machine; the target test machine is a main test machine or an auxiliary test machine connected to the target base station to be tested; The target test machine is used to, after receiving the test instruction, execute the operation indicated by the test instruction in conjunction with the base station to be tested connected to itself, and feed back the operation result to the main test machine.
2. The system according to claim 1, characterized in that The test instructions include one or more of parameter configuration instructions, event monitoring instructions, message copy instructions, file download instructions and file upload instructions.
3. The system according to claim 2, characterized in that The test instruction is a parameter configuration instruction, and the parameter configuration instruction carries parameter configuration information; The main test machine is specifically used to send the parameter configuration instruction to the target test machine; The target test machine is specifically used to convert the parameter configuration information into a base station instruction, and send the base station instruction to the base station to be tested connected to itself; The base station to be tested is specifically used to perform parameter configuration according to the parameter configuration information carried in the base station instruction, and send a parameter configuration response message to the target test machine; The target test machine is specifically used to forward the parameter configuration response message to the main test machine.
4. The system according to claim 2, characterized in that The test instruction is an event monitoring instruction, and the event monitoring instruction includes a start monitoring instruction and a stop monitoring instruction; The main test machine is specifically used to send the start monitoring instruction to the target test machine; The target test machine is specifically configured to forward the event information reported by the base station to be tested connected to the target test machine to the main test machine after receiving the start monitoring instruction; The main test machine is further configured to send the stop monitoring instruction to the target test machine; The target test machine is further configured to stop forwarding the event information reported by the base station to be tested connected to the target test machine to the main test machine after receiving the stop monitoring instruction.
5. The system according to claim 2, characterized in that The test instruction is a message copy instruction, and the message copy instruction includes a start copy instruction and a stop copy instruction; the start copy instruction and the stop copy instruction contain identification information of the target message; The main test machine is specifically used to send the start copy instruction to the target test machine; The target test machine is specifically configured to send the CC switch on information related to the target message to the base station to be tested connected to itself after receiving the CC start instruction; The base station to be tested is specifically used to turn on the copy switch related to the target message according to the copy switch turning on information, return a first response message to the target test machine, and copy the target message to the target test machine; The target test machine is further configured to receive and cache the copy data of the target message after receiving the first response message; The main test machine is further configured to send the stop copy instruction to the target test machine; The target test machine is further configured to send the CC switch closing information related to the target message to the base station to be tested connected to itself after receiving the CC stop instruction; The base station to be tested is further configured to turn off the carbon copy switch according to the carbon copy switch off information, return a second response message to the target test machine, and stop carbon copying the target message to the target test machine; The target test machine is further configured to send the copy data to the main test machine after receiving the second response message.
6. The system according to claim 2, characterized in that The test instruction is a file download instruction; The main test machine is specifically used to send the file download instruction to the target test machine; The target test machine is specifically used to create a first designated directory in the file transfer server according to the file download instruction, and send login information of the file transfer server to the base station to be tested connected to itself; The base station to be tested is specifically used to return a third response message to the target test machine after receiving the login information; The target test machine is further configured to send the first file transmission task information to the base station to be tested connected to itself after receiving the third response message; The first file transfer task information includes: first path information of the first designated directory and first file information of the first target file; The base station to be tested is further configured to determine the first target file based on the first file information, log in to the file transfer server according to the login information, upload the first target file to the first designated directory based on the first path information, and send a first file transfer completion message to the target test machine; The target test machine is further configured to send the login information and the first file transfer task information to the main test machine; The main test machine is further specifically used to log in to the file transfer server according to the login information, determine the first designated directory based on the first path information, and download the first target file from the first designated directory to the local machine.
7. The system according to claim 2, characterized in that The test instruction is a file upload instruction; The main test machine is specifically used to send the file upload instruction to the target test machine; The target test machine is specifically used to create a second designated directory on the file transfer server according to the file upload instruction, and send the login information of the file transfer server and the second path information of the second designated directory to the main test machine; The main test machine is further configured to log in to the file transfer server according to the login information, and upload the second target file to the second designated directory based on the second path information; The target test machine is further configured to send the login information to the base station to be tested connected to the target test machine; The base station to be tested is specifically used to return a fourth response message to the target test machine after receiving the login information; The target test machine is further configured to send the second file transfer task information to the base station to be tested connected to itself after receiving the fourth response message; the second file transfer task information includes the second path information of the second designated directory and the second file information of the second target file; The base station to be tested is further configured to send a second file transfer task creation success message to the target test machine, log in to the file transfer server according to the login information, download the second target file to the base station based on the second path information, and send a second file transfer completion message to the target test machine; The target test machine is further configured to send the second file transfer completion message to the main test machine.
8. The system according to any one of claims 1 to 7, characterized in that: The test machines are all built-in with a first network card and a second network card, and the test machines are connected to the base station to be tested via the built-in first network card; the test machines are all connected to the same gateway via the built-in second network card, so that the test machines are all connected to the same network.
9. The system according to any one of claims 1 to 7, characterized in that: The main test machine is determined in advance from the test machines according to the test requirements; The test machines are all provided with an agent program, which is a program run by the test machine when the test machine is selected as a target test machine to perform a multi-base station joint test; The main test machine is also provided with a test main program; when the main test machine is selected as a target test machine, the main test program and the agent program are run to perform a multi-base station joint test; When the main test machine is not selected as the target test machine, it only runs the test main program to perform multi-base station joint testing.
10. A multi-base station joint testing method, characterized in that: The method is applied to a target test machine in a multi-base station joint test system, the system comprising: a plurality of test machines and a plurality of base stations to be tested, a one-to-one connection relationship between the test machines and the base stations to be tested, the plurality of test machines comprising a main test machine and at least one auxiliary test machine, the test machines are all connected to the same network; the target test machine is a main test machine or an auxiliary test machine connected to the target base station to be tested; the method comprises: The test machine receives the test instruction sent by the main test machine, executes the operation indicated by the test instruction in conjunction with the base station to be tested connected to the main test machine, and feeds back the operation result to the main test machine.
