Gathering networking disconnection test method and system, terminal and storage medium
By generating the automation of batch processing files for intermittent continuous testing, the problem of manual testing and effort and inaccurate results in existing technologies has been solved. The communication is complete.
Patent Information
- Application Number
- CN202411279532.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-12
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2044-09-12
AI Technical Summary
In the prior art, manual equipment interrupt network reconnection test is time-consuming and labor-intensive, resulting in insufficient test times, insufficient data, inaccurate test results, and inaccurate network connection problems cannot be discovered in time.
Provide a galaxy group network break test method. By obtaining the target equipment, controlling equipment network connection, generating batch processing files for automated interrupt testing, saving test information and identifying the network connection abnormalities, and pushing abnormal information.
Realize multiple device disconnection tests for automation, obtain accurate test results, and timely discover network connection problems to ensure that the network communication of the galaxy networking equipment is complete and prevent the loss caused by the network connection problem.
Smart Images

Figure CN119363627A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of disconnection testing, and in particular to a galaxy networking disconnection testing method, system, terminal and storage medium. Background Art
[0002] Currently, the abnormal network disconnection and reconnection test between devices is usually performed by manually disconnecting the network connection to determine whether there are abnormal situations caused by process crash, process deadlock, system crash, etc. in the network.
[0003] However, although performing these tests manually can discover some network problems, the time-consuming and labor-intensive manual processing may result in the number of tests not meeting the requirements within a certain period of time, and multiple test data cannot be obtained. The test results corresponding to a small amount of test data are not accurate, and some network connection problems cannot be discovered in time.
[0004] Therefore, the prior art still needs to be improved and developed. Summary of the invention
[0005] The main purpose of the present invention is to provide a galaxy network disconnection test method, system, terminal and computer-readable storage medium, aiming to solve the problem in the prior art that although these tests can be performed manually, some network problems can be discovered, but the time-consuming and labor-intensive manual processing will result in the number of tests failing to meet the requirements within a certain period of time, and multiple test data cannot be obtained. The test results corresponding to a small amount of test data are not accurate, so some network connection problems cannot be discovered in time.
[0006] To achieve the above object, the present invention provides a galaxy network disconnection test method, the galaxy network disconnection test method comprising the following steps:
[0007] Acquire a first target device in the galaxy network, and control the first target device to establish a network connection with a second target device;
[0008] Obtain a target stress test number, generate a network port switch operation based on the stress test command, and generate a batch file according to the target stress test number and the network port switch operation;
[0009] Loading the batch file to a local device, performing a disconnection test for a target number of stress tests on the first target device and the second target device according to the batch file, and saving test information of each disconnection test into a preset file;
[0010] After completing the disconnection test for the target stress test times, it is identified according to the preset file whether there is an abnormality in the network connection between the first target device and the second target device. When an abnormality exists, corresponding abnormality information is generated and pushed to the target device.
[0011] Optionally, the acquiring of a first target device in the galaxy network and controlling the first target device to establish a network connection with a second target device also includes:
[0012] Obtaining a first target device and a preset interface;
[0013] The first target device is connected to the local device according to the preset interface.
[0014] Optionally, obtaining a target stress test number, generating a network port switch operation based on a stress test command, and generating a batch file according to the target stress test number and the network port switch operation specifically includes:
[0015] Obtain the target stress test times;
[0016] Generate a network port switch operation according to the stress test command in the local device, wherein the network port switch operation includes an open network port operation and a close network port operation;
[0017] Generate a batch file based on the target stress test times and network port switch operations.
[0018] Optionally, loading the batch file to a local device, performing a target stress test number of disconnection tests on the first target device and the second target device according to the batch file, and saving test information of each disconnection test to a preset file specifically includes:
[0019] Loading the batch file to a local device;
[0020] Controlling the first target device and the second target device to cyclically perform disconnection tests according to the batch file, and saving corresponding test information in a preset file after each test;
[0021] When the disconnection test times reach the target stress test times, the test is stopped and the preset file is stored in the database.
[0022] Optionally, controlling the first target device and the second target device to cyclically perform disconnection tests according to the batch file, and saving corresponding test information in a preset file after each test, specifically includes:
[0023] According to the network port switch operation in the batch file, the network port closing operation and the network port opening operation are sequentially executed to control the first target device and the second target device to cyclically perform a disconnection test;
[0024] After each disconnection test is completed, the cycle value corresponding to each disconnection test is recorded in a preset file, and the test information corresponding to each disconnection test is obtained and saved in the preset file.
[0025] Optionally, when the disconnection test times reaches the target stress test times, the test is stopped and the preset file is stored in the database, specifically including:
[0026] After each disconnection test is completed, the cycle value recorded in the preset file for this disconnection test is compared with the target stress test number;
[0027] When the cycle value recorded in the preset file of this disconnection test reaches the target stress test number, the test is stopped and the preset file is stored in the database.
[0028] Optionally, after completing the disconnection test for the target stress test times, identifying whether there is an abnormality in the network connection between the first target device and the second target device according to the preset file, and when there is an abnormality, generating corresponding abnormality information and pushing it to the target device, specifically includes:
[0029] After the disconnection test for the target stress test times is completed, judging whether there is a situation where the network between the first target device and the second target device cannot be successfully connected according to the preset file;
[0030] When it exists, the preset file identifies that there is an abnormality in the network connection between the first target device and the second target device, generates corresponding abnormal information according to the situation that the network connection between the first target device and the second target device cannot be successfully connected, and pushes the abnormal information to the target device.
[0031] In addition, to achieve the above-mentioned purpose, the present invention further provides a galaxy network disconnection test system, wherein the galaxy network disconnection test system comprises:
[0032] A connection module, used for acquiring a first target device in the galaxy network, and controlling the first target device to establish a network connection with a second target device;
[0033] A file generation module is used to obtain a target stress test number, generate a network port switch operation based on a stress test command, and generate a batch file according to the target stress test number and the network port switch operation;
[0034] A test module, used to load the batch file into a local device, perform a disconnection test on the first target device and the second target device for a target number of stress tests according to the batch file, and save test information of each disconnection test into a preset file;
[0035] The exception push module is used to identify whether there is an abnormality in the network connection between the first target device and the second target device according to the preset file after completing the disconnection test of the target stress test number of times. When an abnormality exists, corresponding exception information is generated and pushed to the target device.
[0036] In addition, to achieve the above-mentioned purpose, the present invention also provides a terminal, wherein the terminal includes: a memory, a processor, and a galaxy network disconnection test program stored in the memory and executable on the processor, and when the galaxy network disconnection test program is executed by the processor, the steps of the galaxy network disconnection test method as described above are implemented.
[0037] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a galaxy network disconnection test program, and when the galaxy network disconnection test program is executed by a processor, the steps of the galaxy network disconnection test method as described above are implemented.
[0038] In the present invention, a first target device in a galaxy network is obtained, and the first target device is controlled to establish a network connection with a second target device; a target stress test number is obtained, a network port switch operation is generated based on a stress test command, and a batch file is generated according to the target stress test number and the network port switch operation; the batch file is loaded into a local device, and a disconnection test is performed on the first target device and the second target device for the target stress test number according to the batch file, and test information of each disconnection test is saved in a preset file; after the disconnection test for the target stress test number is completed, it is identified according to the preset file whether there is an abnormality in the network connection between the first target device and the second target device, and when an abnormality exists, corresponding abnormality information is generated and pushed to the target device. Although the present invention can find some network problems by manually performing these tests, the time-consuming and labor-intensive manual processing may result in the number of tests failing to meet the requirements within a certain period of time, and multiple test data cannot be obtained. In addition, the test results corresponding to a small amount of test data are not accurate, and thus some network connection problems cannot be discovered in time. The present invention connects the ports of the devices in the galaxy network to generate a batch file that can be automatically tested. This allows the present invention to quickly complete multiple tests on the devices to be tested through the batch file, and the test can obtain accurate results, thereby ensuring the integrity of the network communication of the devices in the galaxy network and preventing losses caused by network connection problems. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 It is a flow chart of a preferred embodiment of the galaxy network disconnection test method of the present invention;
[0040] Figure 2It is a structural diagram of a preferred embodiment of the galaxy network disconnection test system of the present invention;
[0041] Figure 3 It is a structural diagram of a preferred embodiment of the terminal of the present invention. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0043] At present, the abnormal network disconnection and reconnection test between devices is usually conducted by manually disconnecting the network connection to determine whether there are abnormal situations caused by process crashes, process deadlocks, system crashes, etc. However, although these tests can find some network problems manually, the number of tests cannot meet the requirements within a certain period of time due to the time-consuming and labor-intensive manual processing, and multiple test data cannot be obtained. The test results corresponding to a small amount of test data are not accurate, so some network connection problems cannot be discovered in time.
[0044] In response to one or more of the above-mentioned problems, the present invention obtains a first target device in a galaxy network, controls the first target device to establish a network connection with a second target device; obtains a target stress test number, generates a network port switch operation based on a stress test command, and generates a batch file according to the target stress test number and the network port switch operation; loads the batch file to a local device, performs a disconnection test on the first target device and the second target device for a target stress test number according to the batch file, and saves test information of each disconnection test into a preset file; after completing the disconnection test for the target stress test number, identifies whether there is an abnormality in the network connection between the first target device and the second target device according to the preset file, and when there is an abnormality, generates corresponding abnormality information and pushes it to the target device.
[0045] The galaxy network disconnection test method described in the preferred embodiment of the present invention is as follows: Figure 1 As shown, the galaxy network disconnection test method includes the following steps:
[0046] Step S10: Acquire a first target device in the galaxy network, and control the first target device to establish a network connection with a second target device.
[0047] It should be noted that star networking refers to a network structure in which all devices are directly connected to a host or hub; the host or hub, as the central node of the network, controls the communication between all devices connected to it, and all data traffic must be transferred through it. This structure is simple, easy to manage and maintain, and is suitable for small-scale LAN environments. In star networking, the network connection of many devices is crucial, so the connection of the corresponding devices must be tested to prevent connection errors.
[0048] In the present invention, the first target device is one of the two devices connected to each other. In one embodiment of the present application, the first target device and the second target device are handheld mobile devices or powered stationary devices, wherein the handheld mobile device is powered by a battery, and when the user uses it, he carries the device around in the scene. For example, a tablet or a robot; the powered stationary device is powered by a stable power supply (socket), and when the user uses it, the device is simply initialized with parameters and placed in the scene, and the deployment is completed, such as a variety of development boards based on the RK3568A platform.
[0049] In the present invention, the network connection between the corresponding first target device and the second target device may be a variety of current connection modes, preferably, in the present application, it may be a WIFI connection.
[0050] Furthermore, the acquiring of a first target device in the galaxy network and controlling the first target device to establish a network connection with a second target device may also include:
[0051] Obtaining a first target device and a preset interface;
[0052] The first target device is connected to the local device according to the preset interface.
[0053] Specifically, in the present application, the first target device controlled by the local device is connected through a preset interface to achieve control of the first target device. The preset interface may be an external interface, and in one embodiment of the present application, a USB data cable may be used to connect the first target device to the local device.
[0054] Step S20: Obtain a target stress test number, generate a network port switch operation based on the stress test command, and generate a batch file according to the target stress test number and the network port switch operation.
[0055] Specifically, in the present application, a batch file can be generated by using the target stress test times and the stress test commands corresponding to the local device, and the disconnection test is implemented through the batch file.
[0056] Further, the obtaining of the target stress test times, generating a network port switch operation based on the stress test command, and generating a batch file according to the target stress test times and the network port switch operation specifically includes:
[0057] Obtain the target stress test times;
[0058] Generate a network port switch operation according to the stress test command in the local device, wherein the network port switch operation includes an open network port operation and a close network port operation;
[0059] Generate a batch file based on the target stress test times and network port switch operations.
[0060] Specifically, in the present application, the target stress test times are the times preset by the user, and the more times, the more accurate the disconnection test results. The network port switch operation includes opening the network port operation and closing the network port operation, and the corresponding stress test commands include the first stress test command and the second stress test command, wherein the network port closing operation is generated by the first stress test command "hdc shell wlan0 down n" provided by the openharmony system, and the network port opening operation is generated by the second command "hdc shel l wlan0 up" provided by the openharmony system.
[0061] In this application, the network port closing operation and the network port opening operation are written into the batch file. At the same time, in the batch file, the number of times the stress test is set is the number of times the "network port closing operation to network port opening operation" is cyclically executed. Each time the batch file executes the disconnection test, in the corresponding log, by filtering keywords, time 1 (the time to obtain the WIFI IP, that is, the time to open the network port operation) and time 2 (network reconnection between the primary and secondary devices) are obtained, the difference between the two times is calculated, and the time length of the device network reconnection is obtained, and the corresponding time length and the log of each disconnection test are stored in the preset file.
[0062] Step S30, loading the batch file into the local device, performing a target stress test number of disconnection tests on the first target device and the second target device according to the batch file, and saving the test information of each disconnection test into a preset file.
[0063] Specifically, in the present application, the batch file is loaded to the local device accordingly, so that the disconnection test is performed through the batch file, and the corresponding information is saved.
[0064] Further, the loading of the batch file to the local device, performing a target stress test number of disconnection tests on the first target device and the second target device according to the batch file, and saving the test information of each disconnection test into a preset file, specifically includes:
[0065] Loading the batch file to a local device;
[0066] Controlling the first target device and the second target device to cyclically perform disconnection tests according to the batch file, and saving corresponding test information in a preset file after each test;
[0067] When the disconnection test times reach the target stress test times, the test is stopped and the preset file is stored in the database.
[0068] Specifically, in this application, the set batch file is loaded onto the local device, thereby controlling the first target device and the second target device to perform disconnection test, and in each disconnection test, the test information of that time is stored in the preset file, and the test is stopped only when the number of disconnection tests reaches the target stress test number. At the same time, the time length and log of each disconnection test are stored in the preset file as test information.
[0069] Further, controlling the first target device and the second target device to cyclically perform disconnection test according to the batch file, and saving corresponding test information in a preset file after each test, specifically includes:
[0070] According to the network port switch operation in the batch file, the network port closing operation and the network port opening operation are sequentially executed to control the first target device and the second target device to cyclically perform a disconnection test;
[0071] After each disconnection test is completed, the cycle value corresponding to each disconnection test is recorded in a preset file, and the test information corresponding to each disconnection test is obtained and saved in the preset file.
[0072] Specifically, in the present application, when performing a disconnection test, each disconnection test is to first disconnect the networking of the first target device and the second target device by closing the network port, and then connect the first target device and the second target device to the network by opening the network port, and record them at the same time.
[0073] Furthermore, when the disconnection test times reach the target stress test times, the test is stopped and the preset file is stored in the database, which specifically includes:
[0074] After each disconnection test is completed, the cycle value recorded in the preset file of this disconnection test is compared with the target stress test number;
[0075] When the cycle value recorded in the preset file of this disconnection test reaches the target stress test number, the test is stopped and the preset file is stored in the database.
[0076] Specifically, in the present application, after each disconnection test is completed, the cycle value of each time is recorded in the preset file for comparison with the target stress test number. When the cycle value recorded in the preset file of this disconnection test reaches the target stress test number, a prompt "test have done!" is displayed, indicating that the test is stopped and the preset file is stored in the database.
[0077] Step S40: After completing the disconnection test for the target stress test times, identify whether there is an abnormality in the network connection between the first target device and the second target device according to the preset file. If there is an abnormality, generate corresponding abnormality information and push it to the target device.
[0078] Specifically, in the present application, after completing the disconnection test, it is determined whether there is an abnormality in the network connection. If there is an abnormality, the abnormality information will be sent to the target device to inform the corresponding user.
[0079] Further, after completing the disconnection test for the target stress test times, identifying whether there is an abnormality in the network connection between the first target device and the second target device according to the preset file, and when there is an abnormality, generating corresponding abnormality information and pushing it to the target device, specifically includes:
[0080] After the disconnection test for the target stress test times is completed, judging whether there is a situation where the network between the first target device and the second target device cannot be successfully connected according to the preset file;
[0081] When it exists, the preset file identifies that there is an abnormality in the network connection between the first target device and the second target device, generates corresponding abnormal information according to the situation that the network connection between the first target device and the second target device cannot be successfully connected, and pushes the abnormal information to the target device.
[0082] Specifically, in this application, after completing the disconnection test of the target stress test times, identify whether the log in the corresponding preset file has a situation where the IP of the local area network where the WIFI is located cannot be obtained and the network connection cannot be achieved, and the time length exceeds the preset connection time length. If so, it is considered that the corresponding disconnection test is a situation where the network between the first target device and the second target device cannot be successfully connected. At this time, the connection has process crashes, process deadlocks, system crashes, etc. Then the logs and time lengths corresponding to all these situations are integrated together to form abnormal information and sent to the corresponding user.
[0083] The present invention obtains a first target device in a galaxy network, controls the first target device to establish a network connection with a second target device; obtains a target stress test number, generates a network port switch operation based on a stress test command, and generates a batch file according to the target stress test number and the network port switch operation; loads the batch file to a local device, performs a disconnection test for the first target device and the second target device for the target stress test number according to the batch file, and saves test information of each disconnection test into a preset file; after completing the disconnection test for the target stress test number, identifies whether there is an abnormality in the network connection between the first target device and the second target device according to the preset file, and when an abnormality exists, generates corresponding abnormality information and pushes it to the target device. Although the present invention can find some network problems by manually performing these tests, the time-consuming and labor-intensive manual processing may result in the number of tests failing to meet the requirements within a certain period of time, and multiple test data cannot be obtained. In addition, the test results corresponding to a small amount of test data are not accurate, and thus some network connection problems cannot be discovered in time. The present invention connects the ports of the devices in the galaxy network to generate a batch file that can be automatically tested. This allows the present invention to quickly complete multiple tests on the devices to be tested through the batch file, and the test can obtain accurate results, thereby ensuring the integrity of the network communication of the devices in the galaxy network and preventing losses caused by network connection problems.
[0084] Furthermore, if Figure 2 As shown, based on the above-mentioned galaxy network disconnection test method, the present invention also provides a galaxy network disconnection test system accordingly, wherein the galaxy network disconnection test system includes:
[0085] A connection module 21 is used to obtain a first target device in the galaxy network and control the first target device to establish a network connection with a second target device;
[0086] A file generation module 22 is used to obtain a target stress test number, generate a network port switch operation based on a stress test command, and generate a batch file according to the target stress test number and the network port switch operation;
[0087] A test module 23 is used to load the batch file to a local device, perform a disconnection test on the first target device and the second target device for a target number of stress tests according to the batch file, and save test information of each disconnection test into a preset file;
[0088] The exception push module 24 is used to identify whether there is an abnormality in the network connection between the first target device and the second target device according to the preset file after completing the disconnection test of the target stress test times. When an abnormality exists, corresponding exception information is generated and pushed to the target device.
[0089] Furthermore, if Figure 3 As shown, based on the above-mentioned galaxy network disconnection test method and system, the present invention also provides a terminal accordingly, and the terminal includes a processor 10, a memory 20 and a display 30. Figure 3 Only some components of the terminal are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.
[0090] In some embodiments, the memory 20 may be an internal storage unit of the terminal, such as a hard disk or memory of the terminal. In other embodiments, the memory 20 may also be an external storage device of the terminal, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the terminal. Further, the memory 20 may also include both an internal storage unit of the terminal and an external storage device. The memory 20 is used to store application software and various types of data installed in the terminal, such as the program code of the installation terminal. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, a galaxy network disconnection test program 40 is stored on the memory 20, and the galaxy network disconnection test program 40 can be executed by the processor 10, thereby realizing the galaxy network disconnection test method in the present application.
[0091] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run the program code or process data stored in the memory 20, such as executing the galaxy network disconnection test method.
[0092] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 30 is used to display information on the terminal and to display a visual user interface. The components 10-30 of the terminal communicate with each other via a system bus.
[0093] In one embodiment, when the processor 10 executes the galaxy network disconnection test program 40 in the memory 20 , the steps in the above galaxy network disconnection test method are implemented.
[0094] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a galaxy network disconnection test program, and when the galaxy network disconnection test program is executed by a processor, the following steps of the galaxy network disconnection test method are implemented:
[0095] Acquire a first target device in the galaxy network, and control the first target device to establish a network connection with a second target device;
[0096] Obtain a target stress test number, generate a network port switch operation based on the stress test command, and generate a batch file according to the target stress test number and the network port switch operation;
[0097] Loading the batch file to a local device, performing a disconnection test for a target number of stress tests on the first target device and the second target device according to the batch file, and saving test information of each disconnection test into a preset file;
[0098] After completing the disconnection test for the target stress test times, it is identified according to the preset file whether there is an abnormality in the network connection between the first target device and the second target device. When an abnormality exists, corresponding abnormality information is generated and pushed to the target device.
[0099] The acquiring of a first target device in the galaxy network and controlling the first target device to establish a network connection with a second target device may also include:
[0100] Obtaining a first target device and a preset interface;
[0101] The first target device is connected to the local device according to the preset interface.
[0102] The step of obtaining a target stress test number, generating a network port switch operation based on a stress test command, and generating a batch file according to the target stress test number and the network port switch operation specifically includes:
[0103] Obtain the target stress test times;
[0104] Generate a network port switch operation according to the stress test command in the local device, wherein the network port switch operation includes an open network port operation and a close network port operation;
[0105] Generate a batch file based on the target stress test times and network port switch operations.
[0106] The step of loading the batch file to the local device, performing a target stress test number of disconnection tests on the first target device and the second target device according to the batch file, and saving the test information of each disconnection test to a preset file specifically includes:
[0107] Loading the batch file to a local device;
[0108] Controlling the first target device and the second target device to cyclically perform disconnection tests according to the batch file, and saving corresponding test information in a preset file after each test;
[0109] When the disconnection test times reach the target stress test times, the test is stopped and the preset file is stored in the database.
[0110] The step of controlling the first target device and the second target device to cyclically perform disconnection test according to the batch file, and saving corresponding test information in a preset file after each test, specifically includes:
[0111] According to the network port switch operation in the batch file, the network port closing operation and the network port opening operation are sequentially executed to control the first target device and the second target device to cyclically perform a disconnection test;
[0112] After each disconnection test is completed, the cycle value corresponding to each disconnection test is recorded in a preset file, and the test information corresponding to each disconnection test is obtained and saved in the preset file.
[0113] When the disconnection test times reach the target stress test times, the test is stopped and the preset file is stored in the database, which specifically includes:
[0114] After each disconnection test is completed, the cycle value recorded in the preset file of this disconnection test is compared with the target stress test number;
[0115] When the cycle value recorded in the preset file of this disconnection test reaches the target stress test number, the test is stopped and the preset file is stored in the database.
[0116] Among them, after completing the disconnection test of the target stress test times, identifying whether there is an abnormality in the network connection between the first target device and the second target device according to the preset file, and when there is an abnormality, generating corresponding abnormal information and pushing it to the target device, specifically includes:
[0117] After the disconnection test for the target stress test times is completed, judging whether there is a situation where the network between the first target device and the second target device cannot be successfully connected according to the preset file;
[0118] When it exists, the preset file identifies that there is an abnormality in the network connection between the first target device and the second target device, generates corresponding abnormal information according to the situation that the network connection between the first target device and the second target device cannot be successfully connected, and pushes the abnormal information to the target device.
[0119] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal 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 terminal. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or terminal including the element.
[0120] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer-readable storage medium that can be read by a computer, and the program can include the processes of the above-mentioned method embodiments when executed. The computer-readable storage medium can be a memory, a disk, an optical disk, etc.
[0121] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A galaxy network disconnection test method, characterized in that: The galaxy network disconnection test method comprises: Acquire a first target device in the galaxy network, and control the first target device to establish a network connection with a second target device; Obtain a target stress test number, generate a network port switch operation based on the stress test command, and generate a batch file according to the target stress test number and the network port switch operation; Loading the batch file to a local device, performing a disconnection test for a target number of stress tests on the first target device and the second target device according to the batch file, and saving test information of each disconnection test into a preset file; After completing the disconnection test for the target stress test times, it is identified according to the preset file whether there is an abnormality in the network connection between the first target device and the second target device. When an abnormality exists, corresponding abnormality information is generated and pushed to the target device.
2. The galaxy network disconnection test method according to claim 1, characterized in that: The obtaining of the first target device in the galaxy network and controlling the first target device to establish a network connection with the second target device also includes: Obtaining a first target device and a preset interface; The first target device is connected to the local device according to the preset interface.
3. The galaxy network disconnection test method according to claim 1, characterized in that: The obtaining of the target stress test times, generating a network port switch operation based on the stress test command, and generating a batch file according to the target stress test times and the network port switch operation specifically includes: Obtain the target stress test times; Generate a network port switch operation according to the stress test command in the local device, wherein the network port switch operation includes an open network port operation and a close network port operation; Generate a batch file based on the target stress test times and network port switch operations.
4. The galaxy network disconnection test method according to claim 3, characterized in that: The step of loading the batch file to the local device, performing a target stress test number of disconnection tests on the first target device and the second target device according to the batch file, and saving test information of each disconnection test to a preset file specifically includes: Loading the batch file to a local device; Controlling the first target device and the second target device to cyclically perform disconnection tests according to the batch file, and saving corresponding test information in a preset file after each test; When the disconnection test times reach the target stress test times, the test is stopped and the preset file is stored in the database.
5. The galaxy network disconnection test method according to claim 4, characterized in that: The controlling the first target device and the second target device to cyclically perform disconnection test according to the batch file, and saving corresponding test information in a preset file after each test, specifically includes: According to the network port switch operation in the batch file, the network port closing operation and the network port opening operation are sequentially executed to control the first target device and the second target device to cyclically perform a disconnection test; After each disconnection test is completed, the cycle value corresponding to each disconnection test is recorded in a preset file, and the test information corresponding to each disconnection test is obtained and saved in the preset file.
6. The galaxy network disconnection test method according to claim 5, characterized in that: When the disconnection test times reach the target stress test times, the test is stopped and the preset file is stored in the database, specifically including: After each disconnection test is completed, the cycle value recorded in the preset file for this disconnection test is compared with the target stress test number; When the cycle value recorded in the preset file of this disconnection test reaches the target stress test number, the test is stopped and the preset file is stored in the database.
7. The galaxy network disconnection test method according to claim 1, characterized in that: After the disconnection test of the target stress test number is completed, identifying whether there is an abnormality in the network connection between the first target device and the second target device according to the preset file, and when there is an abnormality, generating corresponding abnormality information and pushing it to the target device specifically includes: After the disconnection test for the target stress test times is completed, judging whether there is a situation where the network between the first target device and the second target device cannot be successfully connected according to the preset file; When it exists, the preset file identifies that there is an abnormality in the network connection between the first target device and the second target device, generates corresponding abnormal information according to the situation that the network connection between the first target device and the second target device cannot be successfully connected, and pushes the abnormal information to the target device.
8. A galaxy network disconnection test system, characterized in that: The galaxy network disconnection test system comprises: A connection module, used for acquiring a first target device in the galaxy network, and controlling the first target device to establish a network connection with a second target device; A file generation module is used to obtain a target stress test number, generate a network port switch operation based on a stress test command, and generate a batch file according to the target stress test number and the network port switch operation; A test module, used to load the batch file into a local device, perform a disconnection test on the first target device and the second target device for a target number of stress tests according to the batch file, and save test information of each disconnection test into a preset file; The exception push module is used to identify whether there is an abnormality in the network connection between the first target device and the second target device according to the preset file after completing the disconnection test of the target stress test number of times. When an abnormality exists, corresponding exception information is generated and pushed to the target device.
9. A terminal, characterized in that: The terminal includes: a memory, a processor, and a galaxy network disconnection test program stored in the memory and executable on the processor. When the galaxy network disconnection test program is executed by the processor, the steps of the galaxy network disconnection test method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a galaxy network disconnection test program, and when the galaxy network disconnection test program is executed by a processor, the steps of the galaxy network disconnection test method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Server network card remote testing method and device, terminal and storage medium
CN109510742A
Equipment networking test method, device, electronic equipment and storage medium
CN113612659A
WiFi module automatic test method, device and equipment and storage medium
CN117062122A
Security analysis system and method based on negative testing for protocol implementation of LTE device
US20230114705A1