A method, system, terminal and storage medium for testing disconnection of a galaxy networking

By generating batch files to automatically control the device to perform network port switching operations, the time-consuming and labor-intensive manual testing problem is solved, and fast and accurate device network connection testing is achieved, ensuring the network communication integrity of devices in the galaxy network.

CN119363627BActive Publication Date: 2025-10-10深圳开鸿数字产业发展有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411279532.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-12
Publication Date
2025-10-10
Estimated Expiration
2044-09-12

AI Technical Summary

Technical Problem

In the existing technology, manual reconnection testing of abnormal device disconnection is time-consuming and labor-intensive, resulting in the number of tests failing to meet the requirements, insufficient test data, inaccurate test results, and inability to detect network connection problems in a timely manner.

Method used

By generating batch files, the device is automatically controlled to perform network port switching operations, achieving the target number of disconnection tests for stress testing, saving the test information to a preset file, identifying network connection anomalies, and pushing anomaly information.

Benefits of technology

It achieves fast and multiple device network connection tests, ensures the accuracy of test results, and prevents losses caused by network connection problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119363627B_ABST
    Figure CN119363627B_ABST
Patent Text Reader

Abstract

The application discloses a galaxy networking disconnection test method and system, a terminal and a storage medium. The method comprises the following steps: acquiring a first target device in galaxy networking, controlling the first target device to be connected with a second target device, acquiring a target pressure test frequency, generating a network port switch operation, generating a batch processing file according to the target pressure test frequency and the network port switch operation, loading the batch processing file to a local device, performing the target pressure test frequency disconnection test on the first target device and the second target device, saving test information of each disconnection test to a preset file, and when the target pressure test frequency disconnection test is completed, identifying whether the network connection between the first target device and the second target device is abnormal according to the preset file, generating corresponding abnormal information and pushing the abnormal information to the target device when the network connection is abnormal. The application can realize automatic test, obtain accurate test results and prevent losses caused by network connection abnormalities.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of disconnection testing, and in particular to a galaxy network disconnection testing method, system, terminal and storage medium. Background Art

[0002] Currently, abnormal network disconnection and reconnection testing between devices is usually performed by manually disconnecting the network connection to determine whether there are abnormal situations in the network caused by process crashes, process deadlocks, system crashes, etc.

[0003] However, although manually performing these tests 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 thus some network connection problems cannot be discovered in a timely manner.

[0004] Therefore, the existing technology 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 existing technology that although manual testing can discover some network problems, 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 inaccurate, and thus some network connection problems cannot be discovered in a timely manner.

[0006] To achieve the above object, the present invention provides a galaxy network disconnection test method, which includes 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 number of stress tests, generate a network port switch operation based on the stress test command, and generate a batch file based on the target number of stress tests and the network port switch operation;

[0009] 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;

[0010] After completing the target stress test times, the network connection between the first target device and the second target device is identified according to the preset file to determine whether there is an abnormality. If there is an abnormality, 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 further 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 number of stress tests, generating a network port switch operation based on a stress test command, and generating a batch file according to the target number of stress tests 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 a network port opening operation and a network port closing operation;

[0017] Generate a batch file based on the target stress test times and network port switch operations.

[0018] Optionally, loading the batch file into a local device, performing a target 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 into 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 number of disconnection tests reaches the target stress test number, 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, sequentially executing the network port closing operation and the network port opening operation 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 number of disconnection tests reaches the target stress test number, 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 number of cycles recorded in the preset file for 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 target number of disconnection tests, 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 an abnormality exists, generating corresponding abnormality information and pushing it to the target device, specifically includes:

[0029] After completing the target stress test times of disconnection tests, determining whether there is a situation where the network connection between the first target device and the second target device cannot be successfully established 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 abnormality information based on the situation that the network connection between the first target device and the second target device cannot be successfully connected, and pushes the abnormality 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 includes:

[0032] a connection module, configured to 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;

[0033] A file generation module is used to 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;

[0034] A testing module, configured to load the batch file into a local device, perform a target number of disconnection tests on the first target device and the second target device 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. 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 runnable 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 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 the 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, whether there is an abnormality in the network connection between the first target device and the second target device is identified according to the preset file, and when an abnormality exists, corresponding abnormality information is generated and pushed to the target device. Although the present invention can detect some network problems when performing these tests manually, 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. Moreover, the test results corresponding to a small amount of test data are inaccurate, and thus some network connection problems cannot be discovered in a timely manner. The present invention connects the ports of the devices in the galaxy network to generate corresponding batch files that can be automatically tested, so that the present invention can quickly complete multiple tests on the devices to be tested through the batch files, and the tests 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 2This is a structural diagram of a preferred embodiment of the galaxy network disconnection test system of the present invention;

[0041] Figure 3 FIG. 4 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 solutions and advantages of the present invention more clear and distinct, 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 intended to limit the present invention.

[0043] Currently, testing for abnormal network disconnection and reconnection between devices is typically performed by manually disconnecting the network to determine whether there are abnormalities caused by process crashes, process deadlocks, system crashes, and other reasons. However, while manual testing can reveal some network issues, the time and effort required to perform these tests may result in insufficient testing within a certain period of time, making it impossible to obtain sufficient test data. Furthermore, the resulting small amount of test data may yield inaccurate test results, making it difficult to detect some network connection issues in a timely manner.

[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 number of stress tests, generates a network port switch operation based on a stress test command, and generates a batch file according to the target number of stress tests 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 the target number of stress tests according to the batch file, and saves the test information of each disconnection test into a preset file; after completing the disconnection test for the target number of stress tests, 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's important to note that a star-shaped network structure connects all devices directly to a single host or hub. The host or hub, acting as the central node of the network, controls communications between all connected devices, and all data traffic must transit through it. This structure is simple, easy to manage, and maintain, and is suitable for small-scale local area networks. In a star-shaped network, the network connectivity of many devices is crucial, so testing the connections of all devices is essential to prevent errors.

[0048] In the present invention, the first target device is one of 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. The handheld mobile device is battery-powered and the user carries the device around in the scene, such as a tablet or a robot. The powered stationary device is powered by a stable power supply (socket). When the user uses it, they simply initialize the device parameters and place it in the scene to complete the deployment, such as multiple 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 can be a variety of current connection modes. Preferably, in this application, it can 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 via a preset interface to achieve control of the first target device. The preset interface can be an external interface. In one embodiment of the present application, the first target device can be connected to the local device via a USB data cable.

[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] Furthermore, obtaining 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 a network port opening operation and a network port closing operation;

[0059] Generate a batch file based on the target stress test times and network port switch operations.

[0060] Specifically, in this application, the target stress test times are user-preset times; the greater the number, the more accurate the disconnection test results. Generating network port switch operations includes opening and closing the network port, and the corresponding stress test commands include a first stress test command and a second stress test command. The first stress test command "hdc shell wlan0 down n" provided by the OpenHarmony system generates a network port closing operation, while the second stress test command "hdc shel l wlan0 up" provided by the OpenHarmony system generates a network port opening operation.

[0061] In this application, the network port closing operation and the network port opening operation are written into a batch file. At the same time, in the batch file, the number of times the stress test is required is set to 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 realize the network port opening operation) and time 2 (the 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. The corresponding time length and the log of each disconnection test are stored in the preset file.

[0062] Step S30: Load the batch file to the local device, perform a target stress test number of disconnection tests on the first target device and the second target device according to the batch file, and save the test information of each disconnection test into a preset file.

[0063] Specifically, in the present application, the batch file is loaded into the local device accordingly, thereby performing a disconnection test through the batch file and saving corresponding information.

[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 to 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 number of disconnection tests reaches the target stress test number, the test is stopped and the preset file is stored in the database.

[0068] Specifically, in this application, a pre-set batch file is loaded onto a local device to control the first and second target devices to perform disconnection tests. During each disconnection test, the test information is stored in a preset file. The test is stopped only when the number of disconnection tests reaches the target stress test number. At the same time, the duration of each disconnection test and the log are stored as test information in the preset file.

[0069] Furthermore, 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:

[0070] According to the network port switch operation in the batch file, sequentially executing the network port closing operation and the network port opening operation 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 operation, and then connect the first target device and the second target device to the network by opening the network port operation, 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, specifically including:

[0074] 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;

[0075] When the number of cycles recorded in the preset file for 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 this 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 for this disconnection test reaches the target stress test number, a prompt "test have done!" is displayed, which means the test is stopped and the preset file is stored in the database.

[0077] Step S40: After completing 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 any 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] Furthermore, after completing the target stress test number of disconnection tests, 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 an abnormality exists, generating corresponding abnormality information and pushing it to the target device, specifically includes:

[0080] After completing the target stress test times of disconnection tests, determining whether there is a situation where the network connection between the first target device and the second target device cannot be successfully established 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 abnormality information based on the situation that the network connection between the first target device and the second target device cannot be successfully connected, and pushes the abnormality information to the target device.

[0082] Specifically, in this application, after completing the target number of disconnection tests, the logs in the corresponding preset file are identified to determine whether there are any cases where the LAN IP address of the Wi-Fi device cannot be obtained, resulting in an inability to establish a network connection, or the duration exceeds the preset connection time. If so, the corresponding disconnection test is considered to be a case where the network connection between the first target device and the second target device cannot be successfully established. In this case, the connection may be caused by a process crash, process deadlock, system crash, etc. The logs and durations corresponding to all these cases are then combined to form an exception message 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 number of stress tests, generates a network port switch operation based on a stress test command, and generates a batch file according to the target number of stress tests 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 the target number of stress tests 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 number of stress tests, 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 detect some network problems when performing these tests manually, 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. Moreover, the test results corresponding to a small amount of test data are inaccurate, and thus some network connection problems cannot be discovered in a timely manner. The present invention connects the ports of the devices in the galaxy network to generate corresponding batch files that can be automatically tested, so that the present invention can quickly complete multiple tests on the devices to be tested through the batch files, and the tests 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, wherein the galaxy network disconnection test system includes:

[0085] A connection module 21 is configured 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 configured 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 testing module 23 is configured to load the batch file into a local device, perform a target number of disconnection tests on the first target device and the second target device 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 for the target number of stress tests. When an abnormality exists, corresponding abnormality 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, which includes a processor 10, a memory 20 and a display 30. Figure 3 Only some of the components of the terminal are shown, but it should be understood that implementation of all of the shown components is not required, 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 the terminal's hard drive or memory. In other embodiments, the memory 20 may also be an external storage device of the terminal, such as a plug-in hard drive, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash memory card, etc. Furthermore, the memory 20 may include both the terminal's internal storage unit and an external storage device. The memory 20 is used to store application software installed in the terminal and various types of data, such as program code for the terminal. The memory 20 may also be used to temporarily store data that has been output or is about to be output. In one embodiment, the memory 20 stores a galaxy network disconnection test program 40, which can be executed by the processor 10, thereby implementing the galaxy network disconnection test method of 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, or an OLED (Organic Light-Emitting Diode) touchscreen. 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 further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a galaxy network disconnection test program. 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 number of stress tests, generate a network port switch operation based on the stress test command, and generate a batch file based on the target number of stress tests and the network port switch operation;

[0097] 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;

[0098] After completing the target stress test times, the network connection between the first target device and the second target device is identified according to the preset file to determine whether there is an abnormality. If there is an abnormality, 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 a network port opening operation and a network port closing 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 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:

[0107] loading the batch file to a local device;

[0108] controlling the first target device and the second target device to cyclically perform the disconnection test according to the batch file, and saving corresponding test information in a preset file after each test is completed;

[0109] stopping the test when the number of disconnection tests reaches a target test number, and storing the preset file into a database.

[0110] The method comprises the following steps:

[0111] performing the closing network port operation and the opening network port operation in sequence according to the network port switch operation in the batch file to control the first target device and the second target device to cyclically perform the disconnection test;

[0112] recording the cycle value of each disconnection test in the preset file after each disconnection test is completed, and saving corresponding test information of each disconnection test in the preset file.

[0113] The method comprises the following steps:

[0114] comparing the cycle value of the current disconnection test recorded in the preset file with the target test number after each disconnection test is completed;

[0115] stopping the test when the cycle value of the current disconnection test recorded in the preset file reaches the target test number, and storing the preset file into the database.

[0116] The method comprises the following steps:

[0117] judging whether there is a situation that the network connection between the first target device and the second target device fails to be successfully connected after the disconnection test of the target test number is completed according to the preset file;

[0118] When the situation exists, the preset file identifies that the network connection between the first target device and the second target device is abnormal, corresponding abnormal information is generated according to the situation that the network connection between the first target device and the second target device fails to be successfully connected, and the abnormal information is pushed to the target device.

[0119] It should be noted that, in the present document, the terms "comprising", "including", or any other variant thereof are intended to cover a non-exclusive inclusion, such that processes, methods, articles, or apparatuses that comprise a list of elements are not required to comprise only those elements recited, but can also include other elements not expressly listed or inherent to such processes, methods, articles, or apparatuses. Without further limitation, an element preceded by "comprises a" does not, without more constraints, foreclose the existence of additional identical elements in the process, method, article, or apparatus that comprises the recited element.

[0120] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing relevant hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer readable computer readable storage medium, 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 magnetic disc, an optical disc, etc.

[0121] It should be understood that the application is not limited to the above examples, and those skilled in the art can make improvements or changes according to the above description, and all these improvements and changes shall fall within the protection scope of the appended claims of the present application.

Claims

1. A galaxy network disconnection test method, characterized in that: The galaxy network disconnection test method includes: 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 number of stress tests, generate a network port switch operation based on the stress test command, and generate a batch file based on the target number of stress tests and the network port switch operation; 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; After completing the target stress test times, the network connection between the first target device and the second target device is identified according to the preset file to determine whether there is an abnormality. If there is an abnormality, 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 step of obtaining a first target device in the galaxy network and controlling the first target device to establish a network connection with a second target device further 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 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: 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 a network port opening operation and a network port closing 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 number of disconnection tests reaches the target stress test number, 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 step of controlling the first target device and the second target device to cyclically perform disconnection testing according to the batch file and saving corresponding test information in a preset file after each test is completed specifically includes: According to the network port switch operation in the batch file, sequentially executing the network port closing operation and the network port opening operation 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 number of cycles recorded in the preset file for 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 completing the target stress test number of disconnection tests, 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 an abnormality exists, generating corresponding abnormality information and pushing it to the target device, specifically including: After completing the target stress test times of disconnection tests, determining whether there is a situation where the network connection between the first target device and the second target device cannot be successfully established 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 abnormality information based on the situation that the network connection between the first target device and the second target device cannot be successfully connected, and pushes the abnormality information to the target device.

8. A galaxy network disconnection test system, characterized in that: The galaxy network disconnection test system includes: a connection module, configured to 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; A file generation module is used to 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; A testing module, configured to load the batch file into a local device, perform a target number of disconnection tests on the first target device and the second target device 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. 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, which, when executed by a processor, implements the steps of the galaxy network disconnection test method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Server network card remote testing method and device, terminal and storage medium

    CN109510742A

  • WiFi module automatic test method, device and equipment and storage medium

    CN117062122A