Network port management method and device, terminal equipment and storage medium

A technology of network ports and management methods, applied in the direction of software testing/debugging, which can solve the problems of cumbersome operation and long time-consuming

Inactive Publication Date: 2019-05-28
BEIJING CHENGSHI WANGLIN INFORMATION TECH CO LTD
View PDF2 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Embodiments of the present invention provide a network port management method, device, terminal equipment, and storage medium to solve the problem that the existing network port management needs to be manually adjusted and executed, and the operation is cumbersome and time-consuming

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Network port management method and device, terminal equipment and storage medium
  • Network port management method and device, terminal equipment and storage medium
  • Network port management method and device, terminal equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0060] A network port management method provided by an embodiment of the present invention is introduced in detail.

[0061] refer to figure 1 , shows a flowchart of steps of a network port management method in an embodiment of the present invention.

[0062] Step 110 , according to a preset automation script, detect whether the target port is occupied; wherein, the automation script is based on a socket service and is obtained by setting the target port.

[0063] As mentioned above, at present, the main method for detecting whether a certain port is occupied and releasing the occupied port is to use a manual method. For example, the default port number of appium's driver is 4723. The existing port management scheme generally does not detect whether the port is occupied before calling a certain port, but when calling the port, if the port is already Indicates that the port is occupied, then the relevant user will check the port manually. Taking the port corresponding to the...

Embodiment 2

[0095] A network port management method provided by an embodiment of the present invention is introduced in detail.

[0096] refer to Figure 4 , shows a flow chart of steps of another network port management method in an embodiment of the present invention.

[0097] Step 210, acquiring a network protocol between the terminal device corresponding to the target port and the target port; wherein the network protocol includes at least one of a network layer protocol, a transport layer protocol, and a socket type.

[0098] In practical applications, depending on the network protocol between the terminal device corresponding to the target port and the target port, the sockets that can be used for communication between the corresponding terminal device and the target port will also be different. Therefore, in the embodiment of the present invention, in order to determine the socket corresponding to the target port, the network protocol between the terminal device corresponding to t...

Embodiment 3

[0121] A network port management device provided by an embodiment of the present invention is introduced in detail.

[0122] refer to Figure 5 , shows a schematic structural diagram of a network port management device in an embodiment of the present invention.

[0123] The network port management device in the embodiment of the present invention includes: a port detection module 310 and a port release module 320 .

[0124] The functions of each module and the interaction between each module are introduced in detail below.

[0125] The port detection module 310 is used to detect whether the target port is occupied according to a preset automation script; wherein, the automation script is based on a socket service and is obtained by setting the target port;

[0126] The port release module 320 is configured to close the process currently occupying the target port if the target port is occupied, so as to release the target port.

[0127] Optionally, in the embodiment of the pre...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a network port management method and device, terminal equipment and a storage medium, and relates to the technical field of communication. The method comprises the steps of detecting whether a target port is occupied or not according to a preset automatic script; if the target port is occupied, closing a process which currently occupies the target port so as to release the target port; wherein the automatic script is obtained by setting the target port based on socket service. According to the method, whether the target port is occupied or not can be automatically detected through the automatic script, and under the condition that the target port is occupied, the process occupying the target port is automatically closed, so that the target port is released, and the network port management efficiency is improved.

Description

technical field [0001] The present invention relates to the technical field of communication, in particular to a network port management method, device, terminal equipment and storage medium. Background technique [0002] With the rapid development and popularization of Internet technology, automation tools, which mark the important progress of testing technology, are gradually using various tools to widen the gap between enterprises. Among them, UI (User Interface, user interface) automation has attracted the attention of testers because of its highly simulated testing method of real user scenarios. For example, many applications currently use the appium framework as daily UI automation online monitoring. After the application is connected to the terminal device, the appium driver service can be automatically started, but in the actual application process, when starting the driver There will be situations where the corresponding port is already occupied. [0003] For the ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
Inventor 周俊
Owner BEIJING CHENGSHI WANGLIN INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products