CN110098980B - Network debugging method and device, computer equipment and storage medium - Google Patents

Network debugging method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN110098980B
CN110098980B CN201910311814.XA CN201910311814A CN110098980B CN 110098980 B CN110098980 B CN 110098980B CN 201910311814 A CN201910311814 A CN 201910311814A CN 110098980 B CN110098980 B CN 110098980B
Authority
CN
China
Prior art keywords
network
debugging
parameters
interface
adjusted
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.)
Active
Application number
CN201910311814.XA
Other languages
Chinese (zh)
Other versions
CN110098980A (en
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.)
OneConnect Financial Technology Co Ltd Shanghai
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
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 OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Priority to CN201910311814.XA priority Critical patent/CN110098980B/en
Publication of CN110098980A publication Critical patent/CN110098980A/en
Application granted granted Critical
Publication of CN110098980B publication Critical patent/CN110098980B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Debugging And Monitoring (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application relates to a network debugging method, a network debugging device, computer equipment and a storage medium. The method relates to research and development management, and comprises the following steps: when the call-up instruction is detected, a network debugging interface of the application program of the debugging version installed in the terminal is called up, and each network request interface of the application program is displayed on the network debugging interface. When the network request interface to be debugged is determined from each network request interface, the network communication parameters and the network parameters of the network request interface to be debugged are displayed, the adjusted network parameters determined according to the network communication parameters are obtained, and the network debugging is carried out on the application program according to the adjusted network parameters. By adopting the method, the network debugging can be carried out on the application program on the terminal in real time according to the adjusted network parameters input by the network debugging interface, a packet capturing tool is not required to be additionally utilized, and a server is not required to wait for checking the related multi-terminal certificate, so that the efficiency of the network debugging work is further improved.

Description

Network debugging method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a network debugging method and apparatus, a computer device, and a storage medium.
Background
With the development of computer technology, mobile terminal devices such as smart phones and tablet computers are increasingly popularized in daily life of people, and in order to ensure that the mobile terminal devices can work normally and run reliably, data resources required by users can be obtained in time through a network and loaded on the mobile terminal devices and displayed to the users, the network and the system of the mobile terminal devices need to be frequently and strictly debugged, and the network debugging of network programs of application programs running on the mobile terminal devices is a very important part of the network debugging.
The traditional network debugging operation generally needs a packet grabbing tool for analysis, and for the normal operation of the packet grabbing tool, a certificate of the packet grabbing tool needs to be installed on a personal computer, a smart phone and the personal computer are bound, one of the personal computer or the smart phone is replaced, the certificate of the packet grabbing tool needs to be installed again, the operation is troublesome, and the efficiency is not high enough. Meanwhile, when a problem occurs in the network debugging request, that is, the network debugging request cannot be accurately obtained, the server needs to perform multi-end inspection, and whether the certificate of the packet capturing tool is mistakenly confirmed or not is determined, or when the network debugging work cannot capture the packet, the reason for the error cannot be timely located, and the network debugging work efficiency is low.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a network debugging method, device, computer device, and storage medium capable of improving the network debugging operation efficiency.
A method of network commissioning, the method comprising:
when a call-up instruction is detected, a network debugging interface of an application program of a debugging version installed in the terminal is called up;
displaying each network request interface of the application program on the network debugging interface;
when a network request interface to be debugged is determined from the network request interfaces, displaying network communication parameters and network parameters of the network request interface to be debugged;
acquiring adjusted network parameters determined according to the network communication parameters;
and performing network debugging on the application program according to the adjusted network parameters.
In one embodiment, the invoking a network debugging interface of a debugging version application installed in the terminal when the invoking instruction is detected includes:
acquiring an installation package of a debugging version of an application program to be debugged, and installing the installation package;
newly building a network debugging button on a display interface of the application program, and setting the network debugging button to be in a suspension state;
and when the triggering operation of the network debugging button is detected, acquiring a call instruction corresponding to the triggering operation, and calling a network debugging interface.
In one embodiment, the displaying the network communication parameters and the network parameters of the network request interface to be debugged when the network request interface to be debugged is determined from the network request interfaces includes:
acquiring network communication parameters of the network request interface to be debugged; the network communication parameters comprise the arrangement sequence of the network request interfaces to be debugged and the requests and replies corresponding to the network request interfaces to be debugged;
acquiring network parameters of the network request interface to be debugged; the network parameters comprise communication protocol type, data packet receiving/transmitting efficiency and data packet transmitting time interval;
and displaying the network communication parameters and the network parameters corresponding to the network request interface to be debugged at a terminal.
In one embodiment, the obtaining the adjusted network parameter determined according to the network communication parameter includes:
adjusting the communication protocol type according to the arrangement sequence of the network request interfaces;
adjusting the receiving/transmitting efficiency of the data packet and the transmitting time interval of the data packet according to the request and the reply corresponding to the network request interface to be debugged;
and obtaining the adjusted communication protocol type, the adjusted receiving/transmitting efficiency of the data packet and the adjusted transmitting time interval of the data packet to obtain the adjusted network parameters.
In one embodiment, the method further comprises:
acquiring an adjusted network request interface corresponding to the adjusted network parameter;
acquiring network communication data corresponding to the adjusted network request interface;
and performing network debugging on the application program according to the network communication data.
In one embodiment, the method further comprises:
generating a corresponding network debugging log according to the network communication parameters and the adjusted network parameters;
and storing the network debugging log into a database.
A network commissioning apparatus, the apparatus comprising:
the terminal comprises a calling module, a network debugging module and a calling module, wherein the calling module is used for calling a network debugging interface of an application program of a debugging version installed in the terminal when a calling instruction is detected;
the first display module is used for displaying each network request interface of the application program on the network debugging interface;
the second display module is used for displaying the network communication parameters and the network parameters of the network request interface to be debugged when the network request interface to be debugged is determined from the network request interfaces;
the acquisition module is used for acquiring the adjusted network parameters determined according to the network communication parameters;
and the network debugging module is used for carrying out network debugging on the application program according to the adjusted network parameters.
In one embodiment, the evoking module is further configured to:
acquiring an installation package of a debugging version of an application program to be debugged, and installing the installation package; newly building a network debugging button on a display interface of the application program, and setting the network debugging button to be in a suspension state; and when the triggering operation of the network debugging button is detected, acquiring a call-up instruction corresponding to the triggering operation, and calling up a network debugging interface.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
when a call-up instruction is detected, a network debugging interface of an application program of a debugging version installed in the terminal is called up;
displaying each network request interface of the application program on the network debugging interface;
when a network request interface to be debugged is determined from the network request interfaces, displaying network communication parameters and network parameters of the network request interface to be debugged;
acquiring adjusted network parameters determined according to the network communication parameters;
and carrying out network debugging on the application program according to the adjusted network parameters.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
when a call-up instruction is detected, a network debugging interface of an application program of a debugging version installed in the terminal is called up;
displaying each network request interface of the application program on the network debugging interface;
when a network request interface to be debugged is determined from the network request interfaces, displaying network communication parameters and network parameters of the network request interface to be debugged;
acquiring adjusted network parameters determined according to the network communication parameters;
and performing network debugging on the application program according to the adjusted network parameters.
According to the network debugging method, the network debugging device, the computer equipment and the storage medium, when the call instruction is detected, the network debugging interface of the application program of the debugging version installed in the terminal is called, each network request interface of the application program is displayed on the network debugging interface, the adjusted network parameters input on the network debugging interface are obtained, and the network debugging is carried out on the application program according to the adjusted network parameters. The network debugging method and the network debugging device can perform network debugging on the application program on the terminal in real time according to the adjusted network parameters input by the network debugging interface, do not need to additionally utilize a packet capturing tool, and do not need to wait for a server to check related multi-terminal certificates, thereby further improving the efficiency of network debugging work.
Drawings
FIG. 1 is a flow diagram illustrating a network debugging method according to an embodiment;
FIG. 2 is a flowchart illustrating steps of invoking a network debugging interface in one embodiment;
FIG. 3 is a block diagram showing the structure of a network debugging apparatus according to an embodiment;
FIG. 4 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The network debugging method provided by the application is a debugging terminal in the development process. When the call-up instruction is detected, a network debugging interface of the application program of the debugging version installed in the terminal is called up, and each network request interface of the application program is displayed on the network debugging interface. And when the terminal determines the network request interface to be debugged from each network request interface, displaying the network communication parameters and the network parameters of the network request interface to be debugged, acquiring the adjusted network parameters determined according to the network communication parameters, and performing network debugging on the application program according to the adjusted network parameters. The terminal may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
In an embodiment, as shown in fig. 1, a network debugging method is provided, which is described by taking the method as an example applied to a terminal, and includes the following steps:
and S102, when the call-out instruction is detected, calling out a network debugging interface of the application program of the debugging version installed in the terminal.
Specifically, the terminal obtains an installation package of a debugging version of the application program to be debugged from the server or the local database, installs the installation package on the terminal, newly establishes a network debugging button on a display interface of the application program, and sets the network debugging button to be in a suspension state and be suspended on the display interface of the application program of the debugging version. The user can trigger the network debugging button at any time to carry out network debugging. When the terminal detects the triggering operation of the network debugging request, the evoking instruction corresponding to the triggering operation is obtained according to the corresponding relation between the triggering operation and the evoking instruction, and the network debugging interface is evoked according to the evoking instruction.
The terminal can automatically detect whether a call-up instruction exists at present, and the call-up instruction is used for calling up a network debugging interface at the terminal. The method comprises the steps that a corresponding relation exists between a call-up instruction and a trigger operation, when a user needs to debug an application program of a debugging version installed on a terminal, a network debugging button is triggered, the call-up instruction corresponding to the trigger operation can be obtained according to the corresponding relation between the trigger operation and the call-up instruction, and a network debugging interface is called up.
And S104, displaying each network request interface of the application program on a network debugging interface.
Specifically, the network debugging interface can be called through the calling instruction and displayed on a terminal screen, and a plurality of network request interfaces corresponding to the application programs of the debugging version can be displayed on the network debugging interface. According to a preset ordering rule, the network request interfaces corresponding to the application program can be arranged according to a corresponding order. The preset ordering rule is used for ordering according to the attribute parameters of the network request interfaces, the attribute parameters comprise the transmission speed of the network request interfaces, connectable objects and the like, and the network request interfaces can be ordered according to the transmission speed of the network request interfaces.
S106, when the network request interface to be debugged is determined from the network request interfaces, the terminal displays the network communication parameters and the network parameters of the network request interface to be debugged.
Specifically, the terminal needs to acquire network communication parameters and network parameters of each network request interface, create a storage table for each network request interface, store the network communication parameters and network parameters of different network request interfaces into corresponding storage tables, acquire the network communication parameters and network parameters corresponding to the network request interface to be debugged from the storage tables when the network request interface to be debugged is acquired, and display the acquired network communication parameters and network parameters on the terminal.
The network communication parameters comprise the arrangement sequence of the network request interfaces to be debugged, and the requests and the replies corresponding to the network request interfaces to be debugged. The arrangement sequence of the network request interfaces to be debugged is obtained by arranging according to the corresponding ordering rule. The request of the network request interface to be debugged may be network data resources, including data type and data amount, that the terminal needs to acquire. The reply of the network request interface to be debugged represents a reply corresponding to the request, and the reply of the network data resource which needs to be acquired by the terminal in the embodiment can be represented as whether the network data resource of the corresponding data type exists in the database, if so, the data volume of the network data resource of the type is acquired, and when the data volume meets the requirement, the network data resource corresponding to the request is returned to the terminal.
The network parameters include the type of communication protocol, the packet reception/transmission efficiency, and the time interval between packet transmissions. The communication protocol, i.e. communication protocol, refers to the rules and conventions that must be followed by both entities to complete communication or service, and defines the format used by the data unit, the information and meaning that the information unit should contain, the connection mode, and the timing sequence of information transmission and reception, so as to ensure that the data in the network is smoothly transmitted to a certain place.
The common communication protocol includes a TCP/IP protocol, which further includes a plurality of sub-protocols, including TCP, IP, UDP, ARP, ICMP, etc., the TCP protocol refers to a transmission control protocol, and is a connection-oriented, reliable, byte stream-based transport layer communication protocol. The IP protocol is a protocol that connects a plurality of packet-switched networks for transmitting packets between a source address and a destination address, and also provides a function of reassembly of data size to accommodate the packet size requirements of different networks. The UDP protocol is a user datagram protocol, is used for processing data packets, and is a connectionless protocol. The ARP protocol, i.e. the address resolution protocol, may obtain a physical address from an IP address. The ICMP protocol refers to an Internet control message protocol, which is used to transmit control messages between an IP host and a router, where the control messages refer to messages of the network itself, such as network access failure, whether the host is reachable, and whether a route is available.
And S108, acquiring the adjusted network parameters determined according to the network communication parameters.
Specifically, adjusting the network parameter according to the network communication parameter, and determining the adjusted network parameter specifically includes: the communication protocol type is adjusted according to the arrangement sequence of the network request interface, and the receiving/transmitting efficiency and the transmitting time interval of the data packet are adjusted according to the request and the reply corresponding to the network request interface to be debugged. And further acquiring the adjusted communication protocol type, the adjusted receiving/transmitting efficiency of the data packet and the adjusted transmitting time interval of the data packet to obtain the adjusted network parameters.
And S110, performing network debugging on the application program of the debugging version installed on the terminal according to the adjusted network parameters.
Specifically, the terminal performs network debugging on the application program according to the network communication data by acquiring an adjusted network request interface corresponding to the adjusted network parameter and acquiring the network communication data corresponding to the adjusted network request interface.
The adjusted network parameters correspond to the adjusted network request interface, and after the network request interface to be debugged is adjusted, the network communication data corresponding to the adjusted network request interface is correspondingly adjusted. For example, before the network communication data is not adjusted, the data type, the data size, the data source and the like of the network communication data transmitted through the network request interface to be debugged are fixed, the same data type is obtained from the fixed cluster, and the size of the data size obtained at regular time is also consistent. After the adjustment, the network communication data passing through the adjusted network request interface may be of different data types or data amounts of different sizes, without limitation.
In the network debugging method, when the call instruction is detected, the network debugging interface of the application program of the debugging version installed in the terminal is called, each network request interface of the application program is displayed on the network debugging interface, and the network debugging is carried out on the application program by acquiring the adjusted network parameters input on the network debugging interface and according to the adjusted network parameters. The network debugging method and the network debugging device can perform network debugging on the application program on the terminal in real time according to the adjusted network parameters input by the network debugging interface, do not need to additionally utilize a packet capturing tool, do not need to wait for a server to check related multi-terminal certificates, and further improve the efficiency of network debugging work.
In one embodiment, as shown in fig. 2, the step of invoking the network debugging interface, that is, when an invocation instruction is detected, invoking the network debugging interface of the debugging version of the application installed in the terminal includes the following steps S202 to S206:
s202, the terminal obtains an installation package of the debugging version of the application program to be debugged and installs the installation package.
Specifically, different versions of the application program correspond to different installation packages, the formal version has a corresponding formal version installation package, the debugging version has a corresponding debugging version installation package, and the terminal needs to acquire the debugging version installation package of the application program from the server or the local database and install the debugging version installation package on the terminal.
And S204, newly building a network debugging button on the display interface of the application program, and setting the network debugging button to be in a suspension state.
S206, when the triggering operation of the network debugging button is detected, the terminal acquires a call-up instruction corresponding to the triggering operation and calls up the network debugging interface.
Specifically, after the installation package of the debugging version is installed, the terminal creates a network debugging button on the display interface of the application program, and the user can trigger the network debugging button at any time to perform network debugging. And setting the network debugging button to be in a suspension state, and suspending the network debugging button in a display interface of the application program of the debugging version. The user can trigger the network debugging button at any time to carry out network debugging. When the terminal detects the triggering operation of the network debugging request, the evoking instruction corresponding to the triggering operation is obtained according to the corresponding relation between the triggering operation and the evoking instruction, and the network debugging interface is evoked according to the evoking instruction.
The terminal can automatically detect whether a call-up instruction exists at present, and the call-up instruction is used for calling up a network debugging interface at the terminal. The method comprises the steps that a corresponding relation exists between a call-up instruction and a trigger operation, when a user needs to debug an application program of a debugging version installed on a terminal, a network debugging button is triggered, the call-up instruction corresponding to the trigger operation can be obtained according to the corresponding relation between the trigger operation and the call-up instruction, and a network debugging interface is called up.
In the step of invoking the network debugging interface, the terminal newly establishes the network debugging button on the display interface of the application program, sets the network debugging button to be in a suspended state, and when the triggering operation of the network debugging button is detected, the terminal acquires an invoking instruction corresponding to the triggering operation and invokes the network debugging interface. The network debugging button can be triggered in real time according to the requirements of users, a network debugging interface is called, network debugging of the application program is conveniently and quickly realized, an additional network debugging tool is not needed, and the efficiency of network debugging work is improved.
In one embodiment, a step of displaying network communication parameters and network parameters of a network request interface to be debugged when determining the network request interface to be debugged from among network request interfaces is provided, which includes:
the terminal acquires network communication parameters of the network request interface to be debugged, wherein the network communication parameters comprise the arrangement sequence of the network request interface to be debugged and a request and a reply corresponding to the network request interface to be debugged; acquiring network parameters of a network request interface to be debugged, wherein the network parameters comprise a communication protocol type, data packet receiving/transmitting efficiency and data packet transmitting time interval; and displaying the network communication parameters and the network parameters corresponding to the network request interface to be debugged at the terminal.
Specifically, the arrangement order of the network request interfaces to be debugged is obtained by arranging according to the corresponding ordering rule. The request of the network request interface to be debugged may be network data resources, including data type and data amount, that the terminal needs to acquire. The reply of the network request interface to be debugged represents a reply corresponding to the request, and the reply of the network data resource which needs to be acquired by the terminal in the embodiment can be represented as whether the network data resource of the corresponding data type exists in the database, if so, the data volume of the network data resource of the type is acquired, and when the data volume meets the requirement, the network data resource corresponding to the request is returned to the terminal.
The communication protocol, i.e. communication protocol, refers to the rules and conventions that must be followed by both entities to complete communication or service, and defines the format used by the data unit, the information and meaning that the information unit should contain, the connection mode, and the timing sequence of information transmission and reception, so as to ensure that the data in the network is smoothly transmitted to a certain place.
The common communication protocol includes a TCP/IP protocol, which further includes a plurality of sub-protocols, including TCP, IP, UDP, ARP, ICMP, etc., the TCP protocol refers to a transmission control protocol, and is a connection-oriented, reliable, byte stream-based transport layer communication protocol. The IP protocol is a protocol that connects a plurality of packet-switched networks for transmitting packets between a source address and a destination address, and also provides a function of reassembly of data size to accommodate the packet size requirements of different networks. The UDP protocol is a user datagram protocol, is used for processing data packets, and is a connectionless protocol. The ARP protocol, i.e. the address resolution protocol, may obtain a physical address from an IP address. The ICMP protocol is an Internet control message protocol, and is used to transmit control messages between an IP host and a router, where the control messages refer to messages of the network itself, such as network access failure, availability of the host, and availability of a route.
In the steps, the terminal acquires the network communication parameters and the network parameters of the network request interface to be debugged, displays the network communication parameters and the network parameters on the network debugging interface, can be checked by a user, can further adjust the network parameters according to the displayed network communication parameters, and provides convenience for adjusting the network parameters.
In one embodiment, there is provided a method for obtaining adjusted network parameters determined according to network communication parameters, comprising:
adjusting the communication protocol type according to the arrangement sequence of the network request interfaces; according to the request and reply corresponding to the network request interface to be debugged, the receiving/transmitting efficiency of the data packet and the transmitting time interval of the data packet are adjusted; and obtaining the adjusted communication protocol type, the adjusted receiving/transmitting efficiency of the data packet and the adjusted transmitting time interval of the data packet to obtain the adjusted network parameters.
Specifically, each network request interface to be debugged is obtained according to the sequence of the network request interfaces to be debugged, and communication protocol types corresponding to different network request interfaces to be debugged, including a TCP protocol, an IP protocol, a UDP protocol and the like, are obtained, so that communication protocols of different network request interfaces to be debugged are adjusted. The receiving/transmitting efficiency of the data packet is adjusted according to the request and the reply corresponding to the network request interface to be debugged, the receiving or transmitting efficiency of the data packet can be increased or decreased according to the data volume corresponding to the request and the reply, and the transmitting time interval of the data packet can be increased or decreased to meet the requirement.
In the above steps, the terminal adjusts the communication protocol type according to the arrangement sequence of the network request interface, adjusts the packet receiving/transmitting efficiency and the packet transmitting time interval according to the request and the reply corresponding to the network request interface to be debugged, obtains the adjusted communication protocol type, the adjusted packet receiving/transmitting efficiency and the packet transmitting time interval, and obtains the adjusted network parameter. The network parameter targeted adjustment is realized, the adjustment of certain parameters is avoided being omitted, and the network adjustment is better realized.
In one embodiment, a step of performing network debugging on an application according to adjusted network parameters is provided, which includes:
the terminal acquires an adjusted network request interface corresponding to the adjusted network parameters; acquiring network communication data corresponding to the adjusted network request interface; and performing network debugging on the application program according to the network communication data.
Specifically, the terminal performs network debugging on the application program according to the network communication data by acquiring an adjusted network request interface corresponding to the adjusted network parameter and acquiring network communication data corresponding to the adjusted network request interface.
The adjusted network parameters correspond to the adjusted network request interface, and after the network request interface to be debugged is adjusted, the network communication data corresponding to the adjusted network request interface is correspondingly adjusted. For example, before the network communication data is not adjusted, the data type, the data size, the data source and the like of the network communication data transmitted through the network request interface to be debugged are fixed, the same data type is obtained from the fixed cluster, and the size of the data size obtained at regular time is also consistent. After the adjustment, the network communication data passing through the adjusted network request interface may be of different data types or data amounts of different sizes, without limitation.
In the above steps, the terminal obtains the adjusted network request interface corresponding to the adjusted network parameter, obtains the network communication data corresponding to the adjusted network request interface, and performs network debugging on the application program according to the network communication data, so as to perform network debugging on the application program in real time, reduce the preparation time and improve the network debugging efficiency.
In one embodiment, a network debugging method is provided, further comprising:
generating a corresponding network debugging log according to the network communication parameters and the adjusted network parameters; and storing the network debugging log into a database.
Specifically, the generated network debugging log file can be sent to a developer according to the network communication parameters and the adjusted network parameters, the developer can obtain the sequence of the network requests and the times of the network requests according to the network debugging log, and the developer can further debug the network communication according to the sequence and times of the network requests, the corresponding request contents and the corresponding reply contents as the network communication parameters of the application program also include the request and reply contents corresponding to the network request interface to be debugged.
According to the network debugging method, the corresponding network debugging log is generated according to the network communication parameters and the adjusted network parameters, and the network debugging log is stored in the database, so that the corresponding network communication parameters and the adjusted network parameters can be acquired in time when further debugging is carried out later, and the network debugging efficiency is improved.
It should be understood that although the various steps in the flow charts of fig. 1-2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-2 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 3, there is provided a network debugging apparatus, including: a call-out module 302, a first presentation module 304, a second presentation module 306, an acquisition module 308, and a network debug module 310, wherein:
and the call-out module 302 is used for calling out the network debugging interface of the application program of the debugging version installed in the terminal when the call-out instruction is detected.
The first presentation module 304 is configured to present each network request interface of the application program on the network debugging interface.
The second display module 306 is configured to display the network communication parameters and the network parameters of the network request interface to be debugged when the network request interface to be debugged is determined from the network request interfaces.
An obtaining module 308, configured to obtain the adjusted network parameter determined according to the network communication parameter.
And the network debugging module 310 is configured to perform network debugging on the application program according to the adjusted network parameters.
When the network debugging device detects the call instruction, the network debugging interface of the application program of the debugging version installed in the terminal is called, each network request interface of the application program is displayed on the network debugging interface, the adjusted network parameters input on the network debugging interface are obtained, and the network debugging is carried out on the application program according to the adjusted network parameters. The network debugging method and the network debugging device can perform network debugging on the application program on the terminal in real time according to the adjusted network parameters input by the network debugging interface, do not need to additionally utilize a packet capturing tool, and do not need to wait for a server to check related multi-terminal certificates, thereby further improving the efficiency of network debugging work.
In one embodiment, a wake-up module is provided that is further configured to:
acquiring an installation package of a debugging version of an application program to be debugged, and installing the installation package; newly building a network debugging button on a display interface of an application program, and setting the network debugging button to be in a suspension state; when the triggering operation of the network debugging button is detected, a call-up instruction corresponding to the triggering operation is obtained, and a network debugging interface is called up.
In the calling module, the terminal establishes the network debugging button in the display interface of the application program, sets the network debugging button to be in a suspended state, and when the triggering operation of the network debugging button is detected, the terminal acquires a calling instruction corresponding to the triggering operation to call the network debugging interface. The network debugging button can be triggered in real time according to the requirements of users, a network debugging interface is called, network debugging of the application program is conveniently and quickly realized, an additional network debugging tool is not needed, and the efficiency of network debugging work is improved.
In one embodiment, a second display module is provided that is further configured to:
acquiring network communication parameters of a network request interface to be debugged; the network communication parameters comprise the arrangement sequence of the network request interfaces to be debugged and the requests and the replies corresponding to the network request interfaces to be debugged; acquiring network parameters of a network request interface to be debugged; the network parameters include the type of communication protocol, the receiving/transmitting efficiency of the data packet and the transmitting time interval of the data packet; and displaying the network communication parameters and the network parameters corresponding to the network request interface to be debugged at the terminal.
According to the second display module, the terminal obtains the network communication parameters and the network parameters of the network request interface to be debugged, displays the network communication parameters and the network parameters on the network debugging interface, so that a user can check the network communication parameters, and can further adjust the network parameters according to the displayed network communication parameters, so that convenience is provided for adjusting the network parameters.
In one embodiment, an obtaining module is provided and is further configured to:
adjusting the communication protocol type according to the arrangement sequence of the network request interfaces; according to the request and reply corresponding to the network request interface to be debugged, the receiving/transmitting efficiency of the data packet and the transmitting time interval of the data packet are adjusted; and obtaining the adjusted communication protocol type, the adjusted receiving/transmitting efficiency of the data packet and the adjusted transmitting time interval of the data packet to obtain the adjusted network parameters.
The terminal of the acquisition module adjusts the communication protocol type according to the arrangement sequence of the network request interfaces, adjusts the receiving/transmitting efficiency of the data packet and the transmitting time interval of the data packet according to the request and the reply corresponding to the network request interface to be debugged, acquires the adjusted communication protocol type, the adjusted receiving/transmitting efficiency of the data packet and the transmitting time interval of the data packet, and obtains the adjusted network parameters. The method realizes the targeted adjustment of the network parameters, avoids missing the adjustment of certain parameters, and better realizes the network adjustment.
In one embodiment, a network debug module is provided, further configured to:
acquiring an adjusted network request interface corresponding to the adjusted network parameter; acquiring network communication data corresponding to the adjusted network request interface; and performing network debugging on the application program according to the network communication data.
According to the network debugging module, the terminal acquires the adjusted network request interface corresponding to the adjusted network parameters, acquires the network communication data corresponding to the adjusted network request interface, performs network debugging on the application program according to the network communication data, performs network debugging on the application program in real time, reduces the preparation working time, and improves the network debugging efficiency.
In one embodiment, a network debugging apparatus is provided, further comprising a log storage module, configured to:
generating a corresponding network debugging log according to the network communication parameters and the adjusted network parameters; and storing the network debugging log into a database.
According to the network debugging device, the corresponding network debugging log is generated according to the network communication parameters and the adjusted network parameters, and the network debugging log is stored in the database, so that the corresponding network communication parameters and the adjusted network parameters can be obtained in time when further debugging is carried out later, and the network debugging efficiency is improved.
For specific limitations of the network debugging apparatus, reference may be made to the above limitations of the network debugging method, which is not described herein again. The modules in the network debugging device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 4. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a network debugging method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 4 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is provided a computer device comprising a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program:
when a call-out instruction is detected, a network debugging interface of an application program of a debugging version installed in the terminal is called out;
displaying each network request interface of the application program on a network debugging interface;
when a network request interface to be debugged is determined from each network request interface, displaying network communication parameters and network parameters of the network request interface to be debugged;
acquiring adjusted network parameters determined according to network communication parameters;
and performing network debugging on the application program according to the adjusted network parameters.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring an installation package of a debugging version of an application program to be debugged, and installing the installation package;
newly building a network debugging button on a display interface of an application program, and setting the network debugging button to be in a suspension state;
when the triggering operation of the network debugging button is detected, a call-up instruction corresponding to the triggering operation is obtained, and a network debugging interface is called up.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring network communication parameters of a network request interface to be debugged; the network communication parameters comprise the arrangement sequence of the network request interfaces to be debugged and the requests and the replies corresponding to the network request interfaces to be debugged;
acquiring network parameters of a network request interface to be debugged; the network parameters include the type of communication protocol, the receiving/transmitting efficiency of the data packet and the transmitting time interval of the data packet;
and displaying the network communication parameters and the network parameters corresponding to the network request interface to be debugged at the terminal.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
adjusting the type of the communication protocol according to the arrangement sequence of the network request interfaces;
according to the request and the reply corresponding to the network request interface to be debugged, the receiving/transmitting efficiency of the data packet and the transmitting time interval of the data packet are adjusted;
and obtaining the adjusted communication protocol type, the adjusted receiving/transmitting efficiency of the data packet and the adjusted transmitting time interval of the data packet to obtain the adjusted network parameters.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring an adjusted network request interface corresponding to the adjusted network parameter;
acquiring network communication data corresponding to the adjusted network request interface;
and performing network debugging on the application program according to the network communication data.
In one embodiment, the processor when executing the computer program further performs the steps of:
generating a corresponding network debugging log according to the network communication parameters and the adjusted network parameters;
and storing the network debugging log into a database.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
when a call-up instruction is detected, a network debugging interface of an application program of a debugging version installed in the terminal is called up;
displaying each network request interface of the application program on a network debugging interface;
when a network request interface to be debugged is determined from each network request interface, displaying network communication parameters and network parameters of the network request interface to be debugged;
acquiring adjusted network parameters determined according to network communication parameters;
and performing network debugging on the application program according to the adjusted network parameters.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring an installation package of a debugging version of an application program to be debugged, and installing the installation package;
newly building a network debugging button on a display interface of an application program, and setting the network debugging button to be in a suspension state;
when the triggering operation of the network debugging button is detected, a call-up instruction corresponding to the triggering operation is obtained, and a network debugging interface is called up.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring network communication parameters of a network request interface to be debugged; the network communication parameters comprise the arrangement sequence of the network request interfaces to be debugged and the requests and the replies corresponding to the network request interfaces to be debugged;
acquiring network parameters of a network request interface to be debugged; the network parameters include the type of communication protocol, the receiving/transmitting efficiency of the data packet and the transmitting time interval of the data packet;
and displaying the network communication parameters and the network parameters corresponding to the network request interface to be debugged at the terminal.
In one embodiment, the computer program when executed by the processor further performs the steps of:
adjusting the communication protocol type according to the arrangement sequence of the network request interfaces;
according to the request and reply corresponding to the network request interface to be debugged, the receiving/transmitting efficiency of the data packet and the transmitting time interval of the data packet are adjusted;
and obtaining the adjusted communication protocol type, the adjusted receiving/transmitting efficiency of the data packet and the adjusted transmitting time interval of the data packet to obtain the adjusted network parameters.
In one embodiment, the computer program when executed by the processor further performs the steps of:
performing network debugging on the application program according to the adjusted network parameters, wherein the network debugging comprises the following steps:
acquiring an adjusted network request interface corresponding to the adjusted network parameter;
acquiring network communication data corresponding to the adjusted network request interface;
and performing network debugging on the application program according to the network communication data.
In one embodiment, the computer program when executed by the processor further performs the steps of:
generating a corresponding network debugging log according to the network communication parameters and the adjusted network parameters;
and storing the network debugging log into a database.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus (Rambus) direct RAM (RDRAM), direct bused dynamic RAM (DRDRAM), and bused dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of network commissioning, the method comprising:
when a call-up instruction is detected, a network debugging interface of an application program of a debugging version installed in the terminal is called up;
displaying each network request interface of the application program on the network debugging interface;
when a network request interface to be debugged is determined from the network request interfaces, displaying network communication parameters and network parameters of the network request interface to be debugged;
acquiring adjusted network parameters determined according to the network communication parameters;
and performing network debugging on the application program according to the adjusted network parameters.
2. The method according to claim 1, wherein the step of invoking the network debugging interface of the debugging version application installed in the terminal when the invoking instruction is detected comprises the following steps:
acquiring an installation package of a debugging version of an application program to be debugged, and installing the installation package;
newly building a network debugging button on a display interface of the application program, and setting the network debugging button to be in a suspension state;
and when the triggering operation of the network debugging button is detected, acquiring a call-up instruction corresponding to the triggering operation, and calling up a network debugging interface.
3. The method according to claim 1, wherein when determining a network request interface to be debugged from among the network request interfaces, exposing network communication parameters and network parameters of the network request interface to be debugged, comprises:
acquiring network communication parameters of the network request interface to be debugged; the network communication parameters comprise the arrangement sequence of the network request interfaces to be debugged and the requests and the replies corresponding to the network request interfaces to be debugged;
acquiring network parameters of the network request interface to be debugged; the network parameters comprise communication protocol type, data packet receiving/transmitting efficiency and data packet transmitting time interval;
and displaying the network communication parameters and the network parameters corresponding to the network request interface to be debugged at a terminal.
4. The method of claim 3, wherein obtaining the adjusted network parameters determined according to the network communication parameters comprises:
adjusting the communication protocol type according to the arrangement sequence of the network request interfaces to be debugged;
adjusting the receiving/transmitting efficiency of the data packet and the transmitting time interval of the data packet according to the request and the reply corresponding to the network request interface to be debugged;
and obtaining the adjusted communication protocol type, the adjusted receiving/transmitting efficiency of the data packet and the adjusted transmitting time interval of the data packet to obtain the adjusted network parameters.
5. The method according to any one of claims 1 to 3, wherein the network debugging the application according to the adjusted network parameters comprises:
acquiring an adjusted network request interface corresponding to the adjusted network parameter; acquiring network communication data corresponding to the adjusted network request interface;
and performing network debugging on the application program according to the network communication data.
6. The method of any of claims 1 to 3, further comprising:
generating a corresponding network debugging log according to the network communication parameters and the adjusted network parameters;
and storing the network debugging log into a database.
7. A network debugging apparatus, characterized in that the apparatus comprises:
the terminal comprises a calling module, a network debugging module and a calling module, wherein the calling module is used for calling a network debugging interface of an application program of a debugging version installed in the terminal when a calling instruction is detected;
the first display module is used for displaying each network request interface of the application program on the network debugging interface;
the second display module is used for displaying the network communication parameters and the network parameters of the network request interface to be debugged when the network request interface to be debugged is determined from the network request interfaces;
the acquisition module is used for acquiring the adjusted network parameters determined according to the network communication parameters;
and the network debugging module is used for carrying out network debugging on the application program according to the adjusted network parameters.
8. The apparatus of claim 7, wherein the evoking module is further configured to:
acquiring an installation package of a debugging version of an application program to be debugged, and installing the installation package; newly building a network debugging button on a display interface of the application program, and setting the network debugging button to be in a suspension state; and when the triggering operation of the network debugging button is detected, acquiring a call-up instruction corresponding to the triggering operation, and calling up a network debugging interface.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN201910311814.XA 2019-04-18 2019-04-18 Network debugging method and device, computer equipment and storage medium Active CN110098980B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910311814.XA CN110098980B (en) 2019-04-18 2019-04-18 Network debugging method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910311814.XA CN110098980B (en) 2019-04-18 2019-04-18 Network debugging method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110098980A CN110098980A (en) 2019-08-06
CN110098980B true CN110098980B (en) 2022-06-14

Family

ID=67445169

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910311814.XA Active CN110098980B (en) 2019-04-18 2019-04-18 Network debugging method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110098980B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111338939A (en) * 2020-02-21 2020-06-26 网易传媒科技(北京)有限公司 Application program debugging method, medium, device and computing equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653448A (en) * 2015-12-25 2016-06-08 深圳中兴网信科技有限公司 Application debugging method, application debugging device and terminal
US9471466B1 (en) * 2015-05-28 2016-10-18 Sap Se End-to-end in-browser web-application debugging
CN108521444A (en) * 2018-03-19 2018-09-11 五八有限公司 A kind of Networked E-Journals method, apparatus and computer readable storage medium
CN108664395A (en) * 2018-04-26 2018-10-16 武汉斗鱼网络科技有限公司 Applied program testing method, device, equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10558555B2 (en) * 2016-04-22 2020-02-11 International Business Machines Corporation Debugging streaming applications using debug regions

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9471466B1 (en) * 2015-05-28 2016-10-18 Sap Se End-to-end in-browser web-application debugging
CN105653448A (en) * 2015-12-25 2016-06-08 深圳中兴网信科技有限公司 Application debugging method, application debugging device and terminal
CN108521444A (en) * 2018-03-19 2018-09-11 五八有限公司 A kind of Networked E-Journals method, apparatus and computer readable storage medium
CN108664395A (en) * 2018-04-26 2018-10-16 武汉斗鱼网络科技有限公司 Applied program testing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN110098980A (en) 2019-08-06

Similar Documents

Publication Publication Date Title
CN108965203B (en) Resource access method and server
US9531614B1 (en) Network aware distributed business transaction anomaly detection
US20150319221A1 (en) Tracing business transactions based on application frameworks
CN103942225A (en) Method and system for invoking resources of Hybrid App client and client
US20150067146A1 (en) Custom correlation of a distributed business transaction
EP3197122B1 (en) Method of forwarding in-application traffic on smart mobile terminal
US20150113122A1 (en) Automatic asynchronous handoff identification
US9535666B2 (en) Dynamic agent delivery
CN111193716A (en) Service data calling method and device, computer equipment and storage medium
CN109889468B (en) Network data transmission method, system, device, equipment and storage medium
US20140258891A1 (en) Electronic device, storage medium and method for processing information
CN113746856B (en) SSL selectable verification method and device, computer equipment and storage medium
CN103744699A (en) Method and device for software upgrading of intelligent electric equipment
CN110597709A (en) Interactive debugging method and device for mixed-mode mobile application and computer equipment
CN111475314B (en) Processing method, device, equipment and storage medium for network request
CN110098980B (en) Network debugging method and device, computer equipment and storage medium
US10025646B2 (en) Naming of nodes in NET framework
US10191844B2 (en) Automatic garbage collection thrashing monitoring
CN113923008B (en) Malicious website interception method, device, equipment and storage medium
US20120271881A1 (en) Systems and methods for updating computer memory and file locations within virtual computing environments
CN104570967B (en) Long-range control method and system based on android system
US9367512B2 (en) Systems and methods for dynamically updating virtual desktops or virtual applications in a standard computing environment
US9442741B2 (en) Method, terminal, server, and system for data processing
CN102148869A (en) Method and device for JAVA application to transfer information to local
US10216926B2 (en) Isolation of untrusted code in operating system without isolation capability

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
GR01 Patent grant
GR01 Patent grant