Nothing Special   »   [go: up one dir, main page]

CN116546542A - Visual testing method and device for multi-network connection state - Google Patents

Visual testing method and device for multi-network connection state Download PDF

Info

Publication number
CN116546542A
CN116546542A CN202210088226.6A CN202210088226A CN116546542A CN 116546542 A CN116546542 A CN 116546542A CN 202210088226 A CN202210088226 A CN 202210088226A CN 116546542 A CN116546542 A CN 116546542A
Authority
CN
China
Prior art keywords
network
application
network connection
connection state
communication mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210088226.6A
Other languages
Chinese (zh)
Inventor
刘洪羽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Botai Internet Of Vehicles Dalian Co ltd
Original Assignee
Botai Internet Of Vehicles Dalian Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Botai Internet Of Vehicles Dalian Co ltd filed Critical Botai Internet Of Vehicles Dalian Co ltd
Priority to CN202210088226.6A priority Critical patent/CN116546542A/en
Publication of CN116546542A publication Critical patent/CN116546542A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/22Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention relates to the field of mobile communications technologies, and in particular, to a method and an apparatus for testing a multi-network connection state in a visual manner. The method comprises the following steps: step S1, binding the application and a corresponding network communication mode, so that the network request of each application is carried out by the bound network communication mode; step S2, selecting a required test application and domain name information thereof based on an interface, and confirming a network connection state of the required test application through a preset connected network test instruction; the connected network test instruction is configured to execute a network communication mode bound by the required test application, and request a feedback parameter from the network corresponding to the domain name information. The invention can effectively test and judge the networking condition of each application for the system with multiple networks simultaneously, and has the advantages of simplicity, straightness, strong operability and strong instantaneity.

Description

Visual testing method and device for multi-network connection state
Technical Field
The present invention relates to the field of mobile communications technologies, and in particular, to a method and an apparatus for testing a multi-network connection state in a visual manner.
Background
The existing mobile device has the situations of multiple networks such as double cards, double standby, multiple virtual network cards, local area network Wifi and the like, and a user needs to inquire what kind of network is connected by different applications so as to use the network through directional traffic or free Wifi.
In one case, different applications often correspond to different services when connecting to the network, i.e., to different traffic packages of the network provider. For example, for a cell phone system, most applications use basic package services when connected to the network, which requires the expense of user basic package traffic. For some specific applications, traffic networking may be directed, through proprietary packages, without consuming user base traffic, such as watching some video, some game, etc. with some big Wang Ka.
In another scenario, at some point in time, some applications may be networked in the user mobile device operating system, while other applications may not. At this time, the user needs to test whether there is an abnormality in using the current application and the corresponding network connection.
In the prior art, in querying network allocation of different applications in the same mobile device operating system, a professional debugging method is required, and the network allocation condition and the network connection condition are judged by checking a system log. Thus, a specialized technician judgment is required to judge the networking status of an application. For the average user, no intuitive, simple method of operation is confirmed.
Chinese patent No. CN201610996151.6 discloses a method and apparatus for testing network interoperability, the method comprising: obtaining and installing preset test software; starting test software; selecting an untested cloud host from all cloud hosts to be tested, and determining the untested cloud host as a current tested cloud host; acquiring IP address information of a current testing cloud host and IP address information of other cloud hosts to be tested; logging in a current testing cloud host, and sending a first type ping command to the current testing cloud host; sending a second type ping command to the current test cloud host; receiving a first test result and a second test result returned after the ping test and storing the first test result and the second test result corresponding to the public network IP of the current test cloud host; and returning to the step of selecting one untested cloud host from all cloud hosts to be tested and determining the untested cloud host as the current tested cloud host until all cloud hosts to be tested are tested.
The above patent is not applicable to confirmation of networking conditions of each application when a plurality of network connections exist in the same system; the automatic test tool Ranorex software, the Expect software, the preset IP address, the system user name password and other information are required to be installed, and the automatic test is realized by installing special test software; IP address information such as an intranet, a public network and the like of each host in the system can be unfolded only by fixing; every time one host is added, the IP address of the host needs to be fixed, and a configuration file is filled in to be used for information reading by test software; the maintainability is poor, the flexibility is not enough, and for a host with an automatic IP address allocation for DHCP (dynamic host configuration protocol), an automatic connection test is not available.
The Chinese patent No. 200810198002.0 discloses an electric control method for monitoring network disconnection and automatically restarting network equipment, which adopts a mains supply switching device comprising a plurality of mains supply output plug interfaces to provide working power supply for each network equipment, and connects the power input line of each network equipment in each plug interface of the mains supply switching device in a single corresponding way; and simultaneously, monitoring whether the network connection of each network device is in an abnormal state in real time, and generating a control signal according to the monitored network connection state of the network device to control the on-off of the power on the power input line of each network device so as to restart each network device and recover the network connection of the network device.
The above patent only proposes a mechanism for judging network disconnection and reconnection, but for a system in which multiple networks exist simultaneously, it is impossible to judge networking conditions of each application.
Disclosure of Invention
The invention aims to provide a visual testing method and device for multi-network connection states, which solve the problem that in the prior art, simple and visual query testing is difficult to perform on the multi-network connection states of different applications.
In order to achieve the above object, the present invention provides a method for testing the visualization of the connection status of multiple networks, comprising the following steps:
step S1, binding the application and a corresponding network communication mode, so that the network request of each application is carried out by the bound network communication mode;
step S2, selecting a required test application and domain name information thereof based on an interface, and confirming a network connection state of the required test application through a preset connected network test instruction;
the connected network test instruction is configured to execute a network communication mode bound by the required test application, and request a feedback parameter from the network corresponding to the domain name information.
In order to achieve the above object, the present invention provides a visual testing device for a multi-network connection state, including a memory and a processor, where the memory further stores a plurality of program modules, and the plurality of program modules are executed by the processor and perform the visual testing method for a multi-network connection state according to any one of the above.
In order to achieve the above object, the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method for visualizing a multi-network connection state as set forth in any one of the above.
The visual testing method and the visual testing device for the multi-network connection state provided by the invention determine the current network connection condition of the application program in a visual mode, do not need to install any automatic testing software or preset any information such as IP addresses, can effectively test and judge the networking condition of each application for a system with multiple networks at the same time, are simple and visual, have strong operability, can be confirmed in the first time of the occurrence of the problem, have strong instantaneity, and can be intuitively used by a common user through an interface, thereby reducing the technical difficulty.
Drawings
The above and other features, properties and advantages of the present invention will become more apparent from the following description of embodiments taken in conjunction with the accompanying drawings in which like reference characters designate like features throughout the drawings, and in which:
FIG. 1 is a flow chart of a method for visualizing multiple network connection status in accordance with an embodiment of the present invention;
FIG. 2 discloses a schematic diagram of a multi-network registration and application binding network according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a testing process of a multi-network connection status according to an embodiment of the invention;
FIG. 4 is a schematic diagram of a graphical interface of multiple network connection states according to an embodiment of the invention;
fig. 5 is a schematic structural diagram of a visual testing device for multi-network connection status according to an embodiment of the invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Fig. 1 discloses a flowchart of a method for visualizing multiple network connection states according to an embodiment of the present invention, and as shown in fig. 1, the method for visualizing multiple network connection states according to the present invention includes the following steps:
step S1, binding the application and a corresponding network communication mode, so that the network request of each application is carried out by the bound network communication mode;
step S2, selecting a required test application and domain name information thereof based on an interface, and confirming a network connection state of the required test application through a preset connected network test instruction;
the connected network test instruction is configured to execute a network communication mode bound by the required test application, and request a feedback parameter from the network corresponding to the domain name information.
More specifically, in this embodiment, the network communication mode is a network card device communication mode, and the method includes:
step S1, binding a plurality of applications with corresponding network cards respectively, so that all network requests made by each application are made through the bound network cards;
and S2, selecting domain name information and network card information of an application to be tested based on a graphical interface, and testing and confirming the network connection state of the application through a ping-I instruction, wherein the format corresponding to the ping-I instruction is a ping-I+domain name, and the-I is the name of the network card equipment.
Each step is described in detail below.
Step S1, binding a plurality of applications with corresponding network cards respectively, so that all network requests made by each application are made through the bound network cards.
In this embodiment, the operating system is an Android system, and realizes multi-network coexistence in the following manner:
when the system has a plurality of network cards at the same time or the system has a plurality of network cards through the virtual network card technology, the system creates a route for each network, and when the plurality of networks coexist, other networks do not need to be closed, and then a default network is selected for the system.
By the mode, the application is bound to the specific network, so that flexible networking of the application in the system is realized, and flexible tariffs are realized.
Further, the step S1 of the present invention further comprises the steps of:
step S11, obtaining network connection information of all networks;
step S12, selecting a corresponding network according to the name of the network card equipment;
step S13, selecting an application and binding the application to the network selected in the step S12.
The system has two or more networks at the same time, and judges different networks according to different services, such as marking the name of a network card, fixing an IP address, and the like.
The step S11 further includes the steps of:
and the application acquires all network Networks according to a getAllnetwork () method of an Android management class connectitymanager.
The application obtains the network connection information of each network according to the getNetworkInfo (Network) method of the Android management class connectitymanager, wherein the network connection information comprises network types, whether to connect or not and the like.
The step S12 further includes the steps of:
the application obtains attribute information of each network according to getLinkProperties (Network) method of Android management class connectitymanager, and the attribute information of each network includes network card device name information (interfaceName).
And selecting a corresponding network according to the network card device name (interfaceName).
For example, the application selects a network whose network card device name interfaceName is "eth 0".
The step S13 further includes the steps of:
if the selected network is connected, the selected application is bound to the network according to the bindProcessToNetwork (Network) method of the Android management class ConnectivityManager, so that all network requests made by the application are via the bound network card.
For example, if a network whose network card device name interfaceName is "eth0" is selected and connected, the application is bound to the network "eth0" according to the bindProcessToNetwork (Network) method of the Android management class ConnectivityManager, so that all network requests made by the application are made via the network card and routing of "eth0", i.e., the application is bound to the network.
FIG. 2 is a schematic diagram of a multi-network registration and application binding network according to an embodiment of the present invention, as shown in FIG. 2, an application 111 obtains a network 211 through a network connection service 300 and binds the corresponding network 211, where the network 211 is a network with a network card device name of "eth 0";
the application 112 obtains the network 212 through the network connection service 300 and binds the corresponding network 212, and the network 212 is a network with a network card device name of "eth 1".
The network 211 may be set as a default network through the following procedure, the ethernet management factory 400 receives the Android network daemon 500 to notify the network card eth0 to be on line, acquires an IP address through DHCP, receives the IP address change sent by the Android network daemon 500, completes the route setting, creates the proxy registration network 211, and sets as a default network.
The network 212 may be set as a default network through the following procedure, the ethernet management factory 400 receives the Android network daemon 500 to notify the network card eth1 to be on line, receives the IP address change sent by the Android network daemon 500 through the DHCP/fixed IP address, completes the route setting, creates the proxy registration network 212, and sets as a default network.
The network connection service (connectityservice) 300 provides a data connection management service, and obtains route configuration information by wifi, mobile data (mobile data), thering (VPN), or the like.
An ethernet network management factory (ethernet factory) 400 includes registration of various networks and interaction with a ConnectivityService service, mainly to notify a change in network status and a change in scoring mechanism.
Android network daemon (Netd) 500, daemon (daemon) program of the background responsible for network management and control, responsible for network conversion, network device binding, DNS information management, network service search and service resolution, etc.
And S2, selecting domain name information and network card information of the required test application on the graphical interface, and testing and confirming the network connection state of the application through a ping-I instruction, wherein the format corresponding to the ping-I instruction is a ping-I+domain name, and the-I is the name of the network card equipment.
Based on step S1, if it is to be determined whether the networks bound by the different applications are connectable, it can be confirmed by a ping-I instruction. Each application can judge whether the network can be connected or not by pinning the respective domain name through the network card which is correspondingly connected.
The user can instantly and intuitively judge the connection condition of each network by inputting or selecting the corresponding website through the graphical interface by utilizing the step S2 of the invention.
Fig. 3 is a schematic diagram of a testing process of a multi-network connection state according to an embodiment of the present invention, as shown in fig. 3, the android system 100 includes an application 111 and an application 112, and the network management module 200 includes a network 211 and a network 212.
The application 111 binds the network 211 and corresponds to the network card device name eth0;
the application 112 binds the network 212 and corresponds to the network card device name eth1;
the network card and the corresponding domain name are selected from the graphical interface 120 and the network status of the application is confirmed using ping-I instruction testing.
Preferably, the name eth0 of the network card device corresponding to the network 211 to which the application 111 is bound is preset and loaded to the graphical interface 120.
More preferably, the network card device name eth0 corresponding to the network 211 to which the application 111 is bound is provided by an after-sales or contact engineer for input.
For example, the application 111 is a cool-me music application, and for the cool-me music application, the ethernet card eth0 is connected, and the network connection state, for example, whether to connect to the network, can be determined by means of ping-eth0+ www.kuwo.com.
For example, the application 112 is a hundred-degree map application, and for the hundred-degree map application, the ethernet card eth1 is connected, and the network connection state, for example, whether networking is performed, may be determined by a ping-eth1+ www.baidu.com manner.
Further, the communication network test instruction in this embodiment is a ping-I instruction, configured to execute a network card device bound by the required test application, request a feedback parameter from a network corresponding to the domain name information, and the corresponding instruction format is:
ping-I-c-I-w+ domain name;
wherein, -I is the name of the network card device;
-c is the number of times the packet is sent;
-i is the packet frequency;
-w is a timeout time.
For example, in this embodiment, the ping-I instruction may be "ping-I eth0-c times-I0.2-w timeout+Domain name", where eth0 is the Ethernet card device name.
The number of times of packet sending, the frequency of packet sending and the time-out time are feedback parameters requested by the required test application to the network corresponding to the domain name information through the bound network card.
The number of times of packet sending can be 10, namely 10 packets are sent;
the packet sending frequency can be 0.2s, namely, the shortest frequency is adopted for 200ms transmission;
the timeout time timeout may be 2s.
In other embodiments, the network card device and its corresponding name may be wireless network card wlan0, ethernet card eth1, etc.
In the step S2, the network connection state of the required test application is confirmed through the ping-I instruction test, and the method further comprises the following steps:
s21, acquiring feedback parameters through a ping-I instruction, wherein the feedback parameters comprise the number of times of packet sending;
and S22, comparing the feedback parameters with preset packet sending times, judging and confirming the network connection state of the application, and displaying the network connection state on the graphical interface.
In this embodiment, the network connection state is divided into: normal, abnormal and connectionless.
If the feedback parameters are equal to the preset packet sending times, the packet loss is proved to be avoided, and the network connection state of the application is considered to be normal;
if the feedback parameter is more than 0 and less than the preset packet sending times, the applied network is considered to have packet loss, and the network connection state is abnormal;
and if the feedback parameter is 0, the network connection state of the application is considered to be connectionless.
Fig. 4 is a schematic diagram of a graphical interface of a multi-network connection state according to an embodiment of the present invention, and for an Android system, the system may be independently implemented as Service, packaged into apk, and integrated into a system, or may be placed on a setting (or engineering mode) interface to be independently listed as a column as a network test option. The type and method of specific packaging under the operating system of the present embodiment is not so limited.
The following takes embedding in the setting interface as a single option as an example, and the internal operation principle is as follows:
the system settings are opened and the "network test" option is selected.
In the opened interface, when the network card and the domain name are selected, a small keyboard pops up, and the networks to be tested of different applications are selected through direct input or a pull-down menu and other modes.
Preferably, the name and/or domain name information of the network card device under the drop-down menu is preset according to the application. Further, the network name is preset according to the network name to which the application is bound.
When the network needs to be tested, the network card equipment and the domain name connected with different applications can be preset or input after providing description by means of after-sales, contact engineering personnel and the like.
After the system is started, each application binds the corresponding network.
After the network card and the corresponding domain name are selected from the graphical interface and the test is started, the system performs connection test on the corresponding network according to the following ping-I instruction, and the network connection condition is judged:
"ping-I eth0-c times-I0.2-w timeout+Domain name".
In this embodiment, under the Android system, the implementation code of the visual test graphical interface of the multi-network connection state is as follows:
String pingCommand="ping"+"-I"+nic+"-c"+pingTimes+"-i 0.2"+"-w"+timeOut+""+ipAddress;
and carrying out network test on the input network card and domain name according to the ping-I instruction, comparing the feedback parameter with the preset packet sending times, and judging and confirming the network connection state of the application.
And outputting a network evaluation result on the graphical interface according to the network connection state result.
Further, the network connection state also includes excellent, good, poor, and the like.
If the network can be connected and the packet loss rate is low, the output network state is good, otherwise the network is bad.
Repeating the steps, continuously testing the network cards and domain names of other applications, evaluating the connection states of other networks, and diagnosing problems.
While, for purposes of simplicity of explanation, the methodologies are shown and described as a series of acts, it is to be understood and appreciated that the methodologies are not limited by the order of acts, as some acts may, in accordance with one or more embodiments, occur in different orders and/or concurrently with other acts from that shown and described herein or not shown and described herein, as would be understood and appreciated by those skilled in the art.
Fig. 5 is a schematic structural diagram of a visual testing device for multi-network connection status according to an embodiment of the invention. The visual testing device for multi-network connection status may include an internal communication bus 51, a processor (processor) 52, a Read Only Memory (ROM) 53, a Random Access Memory (RAM) 54, a communication port 55, and a hard disk 57. The internal communication bus 51 may enable data communication between components of the visual test device for multiple network connection status. Processor 52 may make the determination and issue a prompt. In some embodiments, processor 52 may be comprised of one or more processors.
Specifically, in the embodiment shown in fig. 5, a plurality of program modules are also stored in the hard disk 57, and the plurality of program modules are executed by the processor 52 and perform the following steps:
step S1, binding a plurality of applications with corresponding network cards respectively, so that all network requests in each application are networked through the bound network cards;
and S2, selecting domain name information and network card information of an application to be tested on a graphical interface, and testing and confirming the network state of the application through a ping-I instruction, wherein the format corresponding to the ping-I instruction is a ping-I+domain name, and the-I is the name of the network card equipment.
The communication port 55 can realize data transmission and communication between the visual testing device with multiple network connection states and external input/output equipment. In some embodiments, the visual testing device for multiple network connection status may send and receive information and data from the network through the communication port 55. In some embodiments, the visual testing apparatus for multiple network connection status may be in wired form for data transmission and communication with external input/output devices via the input/output 56.
The visual testing device of the multi-network connection status may also comprise program storage units of different forms as well as data storage units, such as a hard disk 57, a read-only memory (ROM) 53 and a Random Access Memory (RAM) 54, capable of storing various data files for computer processing and/or communication, and possible program instructions for execution by the processor 52. The processor 52 executes these instructions to carry out the main part of the method. The results of the processing by the processor 52 are transmitted to an external output device via the communication port 55 and displayed on a user graphical interface of the output device.
For example, the implementation process file of the multi-network connection state visualization test method may be a computer program, stored in the hard disk 57, and recorded into the processor 52 for execution, so as to implement the multi-network connection state visualization test method of the present application.
When the implementation process file of the multi-network connection state visualization test method is a computer program, the implementation process file can also be stored in a computer readable storage medium as an article of manufacture. For example, computer-readable storage media may include, but are not limited to, magnetic storage devices (e.g., hard disk, floppy disk, magnetic strips), optical disks (e.g., compact Disk (CD), digital Versatile Disk (DVD)), smart cards, and flash memory devices (e.g., electrically erasable programmable read-only memory (EPROM), cards, sticks, key drives). Moreover, various storage media described herein can represent one or more devices and/or other machine-readable media for storing information. The term "machine-readable medium" can include, without being limited to, wireless channels and various other media (and/or storage media) capable of storing, containing, and/or carrying code and/or instructions and/or data.
The visual testing method and device for the multi-network connection state provided by the invention have the following beneficial effects:
1) The multi-network connection state is judged in a visual mode, and the network connection state of a specific application can be intuitively and conveniently judged without log analysis;
2) The method can test and judge in real time when the network has problems, and can confirm the problem points conveniently and effectively.
As used in this application and in the claims, the terms "a," "an," "the," and/or "the" are not specific to the singular, but may include the plural, unless the context clearly dictates otherwise. In general, the terms "comprises" and "comprising" merely indicate that the steps and elements are explicitly identified, and they do not constitute an exclusive list, as other steps or elements may be included in a method or apparatus.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The various illustrative logical blocks, modules, and circuits described in connection with the embodiments disclosed herein may be implemented or performed with a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal.
The embodiments described above are intended to provide those skilled in the art with a full range of modifications and variations to the embodiments described above without departing from the inventive concept thereof, and therefore the scope of the invention is not limited by the embodiments described above, but is to be accorded the broadest scope consistent with the innovative features recited in the claims.

Claims (10)

1. The visual test method for the multi-network connection state is characterized by comprising the following steps of:
step S1, binding the application and a corresponding network communication mode, so that the network request of each application is carried out by the bound network communication mode;
step S2, selecting a required test application and domain name information thereof based on an interface, and confirming a network connection state of the required test application through a preset connected network test instruction;
the connected network test instruction is configured to execute a network communication mode bound by the required test application, and request a feedback parameter from the network corresponding to the domain name information.
2. The method for visualizing multiple network connection states as in claim 1, wherein the network communication mode is a network card device communication mode.
3. The method for visualizing multiple network connection states according to claim 2, wherein the device name of the network card device is preset or set according to input information.
4. The method for visualizing multiple network connection states as in claim 1, said step S1, further comprising the steps of:
according to the getLinkProperties (Network) method of the Android management type connection manager, the application acquires attribute information of each network and selects name information of a corresponding network communication mode.
5. The method for visualizing multiple network connection states as in claim 1, said step S1, further comprising the steps of:
the application acquires attribute information of each network and selects name information of a corresponding network communication mode;
if the selected network communication mode is connected, binding the selected application to the network communication mode according to the bindProcessToNetwork (Network) method of the Android management type connection manager, so that all network requests made by the application are made through the bound network communication mode.
6. The method according to claim 1, wherein the feedback parameters in step S2 include at least a packet count, a packet frequency, and a timeout period.
7. The method for visualizing multiple network connection states according to claim 1, wherein in the step S2, the network connection state of the required test application is confirmed by a preset connected network test instruction, and further comprising the steps of:
s21, acquiring feedback parameters through a preset communication network test instruction, wherein the feedback parameters comprise packet sending times;
and S22, comparing the feedback parameters with preset packet sending times, judging and confirming the network connection state of the application, and displaying the network connection state on the interface.
8. The method for visualizing multiple network connection states as in claim 7, said step S22, further comprising the steps of:
if the feedback parameter is equal to the preset packet sending times, the network connection state of the application is considered to be normal;
if the feedback parameter is greater than 0 and less than the preset packet sending times, the network connection state of the application is considered to be abnormal;
and if the feedback parameter is 0, the network connection state of the application is considered to be connectionless.
9. A multi-network connection state visualization test device, comprising a memory and a processor, wherein the memory further stores a plurality of program modules, and the plurality of program modules are executed by the processor and perform the multi-network connection state visualization test method according to any one of claims 1-8.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements a method for visualizing a multi-network connection state according to any one of claims 1-8.
CN202210088226.6A 2022-01-25 2022-01-25 Visual testing method and device for multi-network connection state Pending CN116546542A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210088226.6A CN116546542A (en) 2022-01-25 2022-01-25 Visual testing method and device for multi-network connection state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210088226.6A CN116546542A (en) 2022-01-25 2022-01-25 Visual testing method and device for multi-network connection state

Publications (1)

Publication Number Publication Date
CN116546542A true CN116546542A (en) 2023-08-04

Family

ID=87447620

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210088226.6A Pending CN116546542A (en) 2022-01-25 2022-01-25 Visual testing method and device for multi-network connection state

Country Status (1)

Country Link
CN (1) CN116546542A (en)

Similar Documents

Publication Publication Date Title
JP6876038B2 (en) Cloud-based systems and methods for managing test configurations of cable test devices
US8117301B2 (en) Determining connectivity status for unnumbered interfaces of a target network device
US7392046B2 (en) Method and apparatus for automatic diagnosis and resolution of wireless network malfunctions
US7440415B2 (en) Virtual network addresses
CN107528746B (en) Communication method and computer device
WO2015010229A1 (en) Fault diagnosis method and apparatus for wireless network
US20040236991A1 (en) System and method for on-line diagnosing of network interface cards
CN108449236B (en) Router function test system
US8432833B2 (en) Auto MEP ID assignment within CFM maintenance association
WO2007016830A1 (en) A method and client side for implementing the detection of dhcp service performance
JP6767479B2 (en) System and cloud-based computer server for matching cabling test results with cabling test configuration
JP2011015095A (en) Communication apparatus, address setting method, and address setting program
JP4793739B2 (en) Wireless LAN device, wireless LAN master / slave switching method, program for wireless LAN device
CN116546542A (en) Visual testing method and device for multi-network connection state
CN114268578A (en) Data transmission method, device and equipment for switching line and storage medium
KR100933251B1 (en) WLAN service failure and quality management system and method
CN104954187A (en) Method and device for determining state of CPE (customer premise equipment)
KR101685892B1 (en) Virtual device network system
CN113839815B (en) Method and device for configuring server network port, server and readable storage medium
CN111953565B (en) Method, system, device and medium for detecting bandwidth in virtualized environment
KR100514357B1 (en) Method and System for Examining Network by Using PDA
JP4411188B2 (en) Online system and communication method
CN117241313A (en) WiFi compatibility testing method, related device and medium
CN115811480A (en) File transmission performance testing method and device, electronic equipment and storage medium
JP5793405B2 (en) Equipment continuity diagram system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination