CN108536574B - Application program debugging method and device - Google Patents

Application program debugging method and device Download PDF

Info

Publication number
CN108536574B
CN108536574B CN201710117545.4A CN201710117545A CN108536574B CN 108536574 B CN108536574 B CN 108536574B CN 201710117545 A CN201710117545 A CN 201710117545A CN 108536574 B CN108536574 B CN 108536574B
Authority
CN
China
Prior art keywords
terminal
wireless connection
application program
server
information
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
CN201710117545.4A
Other languages
Chinese (zh)
Other versions
CN108536574A (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.)
Beijing Didi Infinity Technology and Development Co Ltd
Original Assignee
Beijing Didi Infinity Technology and Development 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 Beijing Didi Infinity Technology and Development Co Ltd filed Critical Beijing Didi Infinity Technology and Development Co Ltd
Priority to CN201710117545.4A priority Critical patent/CN108536574B/en
Publication of CN108536574A publication Critical patent/CN108536574A/en
Application granted granted Critical
Publication of CN108536574B publication Critical patent/CN108536574B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/133Protocols for remote procedure calls [RPC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Abstract

The embodiment of the invention provides a method and a device for debugging an application program, and relates to the technical field of computers. The method comprises the following steps: receiving a connection request sent by a first terminal of a target model; establishing a first wireless connection with the first terminal according to the connection request; and sending the information of the first wireless connection to a second terminal through a second wireless connection, wherein the information of the first wireless connection is used for the second terminal to remotely call the first terminal to debug the application program. According to the embodiment of the invention, the first wireless connection with the first terminal is established after the connection request sent by the first terminal with the target model is received, the second terminal can remotely call the first terminal to debug the application program according to the information of the wireless connection, and a large number of terminals do not need to be connected to the server through the USB in advance, so that the cost is greatly saved, and the system maintenance difficulty is reduced.

Description

Application program debugging method and device
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a method and a device for debugging an application program.
Background
With the continuous development of technology, mobile terminals represented by mobile phones are widely used by users. The application program installed on the mobile terminal needs to be compatible with different models and debugged on the mobile terminal of different models.
Different from the closure and the uniformity of the IOS of the mobile operating system of apple Inc., the android operating system has openness, and before the application program running on the android mobile terminal is officially released, the application program needs to be tested on various android devices, so that the application program can be compatible with the android devices. In an application development company, a tester needs to search a bug of a specific model, and a developer needs to search a bug of a specific model, so that the application development company needs to purchase various models of mobile phones to support the work, and high equipment purchase cost is generated.
In order to solve the problem of incomplete model, in the existing application program debugging method, a cloud test platform connects mobile terminals such as a mobile phone and the like to a server through a Universal Serial Bus (USB), a tester can remotely connect the mobile phone through a browser, and remotely debug the application program on the mobile phones of various models provided by the server. However, in the process of implementing the embodiment of the present invention, the inventor finds that in the existing application program debugging method, if a large number of mobile terminals of each model are connected to the server through the USB, a large maintenance cost is required.
Disclosure of Invention
Aiming at the defects of high cost and complex maintenance of the existing application program debugging method, the embodiment of the invention provides the following technical scheme:
in a first aspect, an embodiment of the present invention provides an application program debugging method, including:
receiving a connection request sent by a first terminal of a target model;
establishing a first wireless connection with the first terminal according to the connection request;
and sending the information of the first wireless connection to a second terminal through a second wireless connection, wherein the information of the first wireless connection is used for the second terminal to remotely call the first terminal to debug the application program.
Optionally, the connection request includes an IP address of the first terminal;
the establishing of the first wireless connection with the first terminal according to the connection request includes:
registering the IP address of the first terminal in a batch mobile equipment management control tool (STF) of a server;
and establishing a first wireless connection between the batch mobile equipment management control tool STF and the terminal of the target model.
Optionally, the method further comprises:
receiving a disconnection request sent by the first terminal;
and disconnecting the first wireless connection with the first terminal according to the disconnection request.
Optionally, the method further comprises:
and updating the terminal information table when receiving the owner change request sent by the first terminal.
Optionally, the method further comprises:
receiving a terminal information query request sent by the second terminal;
and returning the information of the first terminal to the second terminal according to the terminal information inquiry request.
In a second aspect, an embodiment of the present invention provides an application program debugging method, including:
establishing a second wireless connection with a second terminal;
after receiving a terminal sharing request sent by the second terminal based on the second wireless connection, sending a connection request to a server;
a first wireless connection is established with the server.
Optionally, the connection request includes: an IP address;
establishing a first wireless connection with the server comprises:
after the server registers the IP address in a bulk mobile device management control tool STF of the server, a first wireless connection with the bulk mobile device management control tool STF is established.
Optionally, the method further comprises:
and sending information of the first wireless connection to the second terminal based on the second wireless connection.
Optionally, the method further comprises:
receiving an application program debugging request sent by the server;
generating an application program debugging result according to the application program debugging request;
and sending the application program debugging result to the server.
Optionally, the method further comprises:
sending a disconnection request to the server;
disconnecting the first wireless connection with the server.
In a third aspect, an embodiment of the present invention provides an application program debugging method, including:
establishing a second wireless connection with the first terminal;
receiving information of the first wireless connection sent by the first terminal based on the second wireless connection;
establishing a remote connection with the first terminal according to the information of the first wireless connection;
remotely calling the first terminal to debug the application program;
wherein the first wireless connection is a connection established by the first terminal and a server.
Optionally, the establishing a remote connection with the first terminal according to the information of the first wireless connection includes:
and establishing remote connection with the first terminal through a batch mobile equipment management control tool STF of the server according to the information of the first wireless connection.
Optionally, the remotely invoking the first terminal to perform application program debugging includes:
sending an application program debugging request to a server so that the server sends the application program debugging request to the first terminal;
and receiving an application program debugging result returned by the server, wherein the application program debugging result is generated by the first terminal according to the application program debugging request.
In a fourth aspect, an embodiment of the present invention provides an application program debugging apparatus, including:
a connection request receiving unit, configured to receive a connection request sent by a first terminal of a target model;
a first wireless connection establishing unit, configured to establish a first wireless connection with the first terminal according to the connection request;
the first wireless connection information sending unit is used for sending the first wireless connection information to a second terminal, wherein the first wireless connection information is used for the second terminal to remotely call the first terminal to debug an application program.
Optionally, the connection request includes an IP address of the first terminal;
a first wireless connection establishing unit, further configured to register the IP address of the first terminal in a batch mobile device management control tool STF of a server; and establishing a first wireless connection between the batch mobile equipment management control tool STF and the terminal of the target model.
Optionally, the method further comprises:
a disconnection request receiving unit, configured to receive a disconnection request sent by the first terminal;
and the first wireless connection disconnection unit is used for disconnecting the first wireless connection with the first terminal according to the disconnection request.
Optionally, the method further comprises:
and a terminal information table updating unit configured to update the terminal information table when receiving the owner change request transmitted by the first terminal.
Optionally, the method further comprises:
a terminal information query request receiving unit, configured to receive a terminal information query request sent by the second terminal;
and the terminal information returning unit is used for returning the information of the first terminal to the second terminal according to the terminal information inquiry request.
An embodiment of the present invention provides an application program debugging apparatus, including:
a second wireless connection establishing unit for establishing a second wireless connection with the second terminal;
a connection request sending unit, configured to send a connection request to a server after receiving a terminal sharing request sent by the second terminal based on the second wireless connection;
and the first wireless connection establishing unit is used for establishing a first wireless connection with the server.
Optionally, the connection request includes: an IP address;
the first wireless connection establishing unit is further configured to:
after the server registers the IP address in a bulk mobile device management control tool STF of the server, a first wireless connection with the bulk mobile device management control tool STF is established.
Optionally, the method further comprises:
a first wireless connection information sending unit, configured to send information of the first wireless connection to the second terminal based on the second wireless connection.
Optionally, the method further comprises:
an application program debugging request receiving unit, configured to receive an application program debugging request sent by the server;
the application program debugging result generating unit is used for generating an application program debugging result according to the application program debugging request;
and the application program debugging result sending unit is used for sending the application program debugging result to the server.
Optionally, the method further comprises:
a disconnection request transmitting unit for transmitting a disconnection request to the server;
and the first wireless connection disconnection unit is used for disconnecting the first wireless connection with the server.
In a sixth aspect, an embodiment of the present invention provides an application program debugging apparatus, including:
a second wireless connection establishing unit configured to establish a second wireless connection with the first terminal;
a first wireless connection information receiving unit, configured to receive information of a first wireless connection sent by the first terminal based on the second wireless connection;
a remote connection establishing unit, configured to establish a remote connection with the first terminal according to the information of the first wireless connection;
the debugging unit is used for remotely calling the first terminal to debug the application program;
wherein the first wireless connection is a connection established by the first terminal and a server.
Optionally, the remote connection establishing unit is further configured to:
and establishing remote connection with the first terminal through a batch mobile equipment management control tool STF of the server according to the information of the first wireless connection.
Optionally, the debugging unit includes:
the application program debugging request sending module is used for sending an application program debugging request to a server so that the server sends the application program debugging request to the first terminal;
and the application program debugging result receiving module is used for receiving an application program debugging result returned by the server, wherein the application program debugging result is generated by the first terminal according to the application program debugging request.
In a seventh aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium storing computer instructions, which cause the computer to execute the above-mentioned method.
According to the technical scheme, the method and the device for debugging the application program, provided by the embodiment of the invention, receive the connection request sent by the first terminal of the target model; establishing a first wireless connection with the first terminal according to the connection request; and sending the information of the first wireless connection to a second terminal through a second wireless connection, wherein the information of the first wireless connection is used for the second terminal to remotely call the first terminal to debug the application program. According to the embodiment of the invention, the first wireless connection with the first terminal is established after the connection request sent by the first terminal with the target model is received, the second terminal can remotely call the first terminal to debug the application program according to the information of the wireless connection, and a large number of terminals do not need to be connected to the server through the USB in advance, so that the cost is greatly saved, and the system maintenance difficulty is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart illustrating an application program debugging method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for debugging an application according to another embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for debugging an application according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of an application program debugging apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an application program debugging apparatus according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of an application program debugging apparatus according to another embodiment of the present invention;
fig. 7 is a schematic physical structure diagram of a server according to an embodiment of the present invention;
fig. 8 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention;
fig. 9 is a schematic physical structure diagram of an electronic device according to another embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The first terminal mentioned in the embodiment of the present invention is a terminal of a target model, and the second terminal mentioned in the embodiment of the present invention is a terminal requiring debugging. The first terminal and the second terminal include, but are not limited to, a smart phone, a Personal Digital Assistant (PDA), a tablet computer, and a notebook computer.
In the embodiment of the present invention, the first wireless connection is a connection between the first terminal and the server, and the second wireless connection is a connection between the first terminal and the second terminal.
Fig. 1 is a flowchart illustrating an application program debugging method according to an embodiment of the present invention. As shown in fig. 1, the method of the embodiment of the present invention uses a server as an execution subject, and includes:
s11: receiving a connection request sent by a first terminal of a target model;
it should be noted that, an application developer debugs a specific application program at the second terminal, and needs to call the first terminal debugging application program of the target model. After the second terminal sends a terminal sharing request to the terminal of the target model, the first terminal sends a connection request to the server; the server receives a connection request sent by the first terminal.
S12: establishing a first wireless connection with the first terminal according to the connection request;
it should be noted that, in the embodiment of the present invention, it is not necessary to connect a large number of mobile terminals to the server through the USB in advance, but a wireless connection is established with the server according to the connection request sent by the first terminal.
S13: sending the information of the first wireless connection to a second terminal through a second wireless connection, wherein the information of the first wireless connection is used for the second terminal to remotely call the first terminal to debug an application program;
it should be noted that, in the embodiment of the present invention, the server transmits the information of the first wireless connection to the second terminal through the first terminal. Specifically, the server sends the information of the first wireless connection to the first terminal, and the first terminal sends the information of the first wireless connection to the second terminal through the second wireless connection. And the second terminal remotely calls the first terminal to debug the application program according to the information of the first wireless connection.
According to the method for debugging the application program, the first wireless connection with the first terminal is established after the connection request sent by the first terminal of the target model is received, the second terminal can remotely call the first terminal to debug the application program according to the information of the wireless connection, a large number of terminals do not need to be connected to a server through a USB in advance, the cost is greatly saved, and the system maintenance difficulty is reduced.
In an optional implementation manner of the embodiment of the present invention, the connection request includes an IP address of the first terminal;
the establishing of the first wireless connection with the first terminal according to the connection request includes:
registering the IP address of the first terminal in a batch mobile equipment management control tool (STF) of a server;
and establishing a first wireless connection between the batch mobile equipment management control tool STF and the terminal of the target model.
It should be noted that, in the embodiment of the present invention, the server runs a batch mobile device management control tool STF, where the STF is an open source item for controlling and managing the mobile device, and can share a terminal connected to the server through a browser, and a developer can remotely control the terminal connected to the server through the browser.
In practical application, the first terminal establishes a remote wireless connection with the STF through a connection command adb connect provided by the android system. And remotely connecting a development tool (such as Android Studio) to the first terminal through a remote debugging remote debug function provided by the STF, and operating the first terminal through a browser.
Further, the method further comprises:
receiving a disconnection request sent by the first terminal;
and disconnecting the first wireless connection with the first terminal according to the disconnection request.
Understandably, after the second terminal remotely calls the first terminal debugging application program, the first terminal sends a disconnection request to the server; the server disconnects the first wireless connection according to the disconnection request.
Further, the method further comprises:
and updating the terminal information table when receiving the owner change request sent by the first terminal.
In the embodiment of the present invention, the server stores a terminal information table in which information such as the model and the owner of the terminal is stored. The embodiment of the invention updates the terminal information table in real time, and is convenient for searching the holders of the terminals of various types so as to carry out subsequent terminal debugging and sharing.
In practical application, the embodiment of the invention flexibly mounts the mobile phone in the hands of the development tester to the server through the wireless fidelity wifi protocol, so that the existing mobile phone assets can be flexibly and conveniently reused in a team, and the aim of reducing the mobile phone purchasing cost and improving the development testing efficiency is fulfilled.
Further, the method further comprises:
receiving a terminal information query request sent by the second terminal;
and returning the information of the first terminal to the second terminal according to the terminal information inquiry request.
It can be understood that the second terminal sends a terminal information query request to the server, and the server queries the terminal information table according to the terminal information query request and returns information such as the holder of the first terminal to the second terminal.
In the prior art, mobile phones tested in enterprises, offices, teams and even teams are rarely circulated and reused, because mobile phone information and current holders are opaque. When discovering a bug, a developer/tester does not know whether the bug is available in the company or not, and if so, which team and employee. In practical application, a terminal information management application iBox may be developed, and the terminal information table in the server may be queried by the terminal information management application iBox to obtain information such as the owner of the first terminal.
Fig. 2 is a flowchart illustrating an application program debugging method according to another embodiment of the present invention. As shown in fig. 2, the method of the embodiment of the present invention uses a first terminal as an execution main body, and includes:
s21: establishing a second wireless connection with a second terminal;
it should be noted that, in the embodiment of the present invention, the first terminal and the second terminal establish the second wireless connection.
S22: after receiving a terminal sharing request sent by the second terminal based on the second wireless connection, sending a connection request to a server;
it should be noted that the second terminal sends a terminal sharing request to the first terminal based on the second wireless connection; and after receiving the terminal sharing request, the first terminal sends a connection request to the server.
S23: a first wireless connection is established with the server.
According to the method for debugging the application program, the first wireless connection with the first terminal is established after the connection request sent by the first terminal of the target model is received, the second terminal can remotely call the first terminal to debug the application program according to the information of the wireless connection, a large number of terminals do not need to be connected to a server through a USB in advance, the cost is greatly saved, and the system maintenance difficulty is reduced.
In an optional implementation manner of the embodiment of the present invention, the connection request includes: an IP address;
establishing a first wireless connection with the server comprises:
after the server registers the IP address in a bulk mobile device management control tool STF of the server, a first wireless connection with the bulk mobile device management control tool STF is established.
Further, the method further comprises:
and sending information of the first wireless connection to the second terminal based on the second wireless connection.
Further, the method further comprises:
receiving an application program debugging request sent by the server;
generating an application program debugging result according to the application program debugging request;
and sending the application program debugging result to the server.
It should be noted that, in the embodiment of the present invention, the second terminal sends an application program debugging request to the server; the server forwards the application program debugging request to the first terminal.
Further, the method further comprises:
sending a disconnection request to the server;
disconnecting the first wireless connection with the server.
Fig. 3 is a flowchart illustrating an application program debugging method according to another embodiment of the present invention. As shown in fig. 3, the method of the embodiment of the present invention uses the second terminal as an execution main body, and includes:
s31: establishing a second wireless connection with the first terminal;
s32: receiving information of the first wireless connection sent by the first terminal based on the second wireless connection;
it should be noted that the first wireless connection is a connection established between the first terminal and the server. In practical application, the second terminal can receive the information of the first wireless connection sent by the first terminal through communication tools such as short messages and WeChat.
S33: establishing a remote connection with the first terminal according to the information of the first wireless connection;
s34: and remotely calling the first terminal to debug the application program.
According to the method for debugging the application program, the first wireless connection with the first terminal is established after the connection request sent by the first terminal of the target model is received, the second terminal can remotely call the first terminal to debug the application program according to the information of the wireless connection, a large number of terminals do not need to be connected to a server through a USB in advance, the cost is greatly saved, and the system maintenance difficulty is reduced.
In an optional implementation manner of the present invention, the establishing a remote connection with the first terminal according to the information of the first wireless connection includes:
and establishing remote connection with the first terminal through a batch mobile equipment management control tool STF of the server according to the information of the first wireless connection.
Specifically, the remotely invoking the first terminal to debug the application program includes:
sending an application program debugging request to a server so that the server sends the application program debugging request to the first terminal;
and receiving an application program debugging result returned by the server, wherein the application program debugging result is generated by the first terminal according to the application program debugging request.
It should be noted that, in the embodiment of the present invention, the second terminal sends an application program debugging request to the server; the server forwards the application program debugging request to the first terminal; the first terminal debugs the application program according to the application program debugging request to generate an application program debugging result; and the first terminal sends the application program debugging result to the second terminal through the server.
Fig. 4 is a schematic structural diagram of an application program debugging apparatus according to an embodiment of the present invention. As shown in fig. 4, the apparatus of the embodiment of the present invention includes: the connection request receiving unit 41, the first wireless connection establishing unit 42, and the first wireless connection information transmitting unit 43 specifically:
a connection request receiving unit 41, configured to receive a connection request sent by a first terminal of a target model;
a first wireless connection establishing unit 42, configured to establish a first wireless connection with the first terminal according to the connection request;
a first wireless connection information sending unit 43, configured to send information of a first wireless connection to a second terminal, where the information of the first wireless connection is used for the second terminal to remotely invoke the first terminal to perform application program debugging.
According to the device for debugging the application program, the first wireless connection with the first terminal is established after the connection request sent by the first terminal of the target model is received, the second terminal can remotely call the first terminal to debug the application program according to the information of the wireless connection, and a large number of terminals do not need to be connected to a server through a USB in advance, so that the cost is greatly saved, and the system maintenance difficulty is reduced.
Optionally, the connection request includes an IP address of the first terminal;
a first wireless connection establishing unit 42, further configured to register the IP address of the first terminal in a batch mobile device management control tool STF of a server; and establishing a first wireless connection between the batch mobile equipment management control tool STF and the terminal of the target model.
Optionally, the method further comprises:
a disconnection request receiving unit, configured to receive a disconnection request sent by the first terminal;
and the first wireless connection disconnection unit is used for disconnecting the first wireless connection with the first terminal according to the disconnection request.
Optionally, the method further comprises:
and a terminal information table updating unit configured to update the terminal information table when receiving the owner change request transmitted by the first terminal.
Optionally, the method further comprises:
a terminal information query request receiving unit, configured to receive a terminal information query request sent by the second terminal;
and the terminal information returning unit is used for returning the information of the first terminal to the second terminal according to the terminal information inquiry request.
Fig. 5 is a schematic structural diagram of an application program debugging apparatus according to another embodiment of the present invention. As shown in fig. 5, the apparatus of the embodiment of the present invention includes:
a second wireless connection establishing unit 51 for establishing a second wireless connection with the second terminal;
a connection request sending unit 52, configured to send a connection request to a server after receiving a terminal sharing request sent by the second terminal based on the second wireless connection;
a first wireless connection establishing unit 53, configured to establish a first wireless connection with the server.
According to the device for debugging the application program, the first wireless connection with the first terminal is established after the connection request sent by the first terminal of the target model is received, the second terminal can remotely call the first terminal to debug the application program according to the information of the wireless connection, and a large number of terminals do not need to be connected to a server through a USB in advance, so that the cost is greatly saved, and the system maintenance difficulty is reduced.
Optionally, the connection request includes: an IP address;
the first wireless connection establishing unit 53 is further configured to:
after the server registers the IP address in a bulk mobile device management control tool STF of the server, a first wireless connection with the bulk mobile device management control tool STF is established.
Optionally, the method further comprises:
a first wireless connection information sending unit, configured to send information of the first wireless connection to the second terminal based on the second wireless connection.
Optionally, the method further comprises:
an application program debugging request receiving unit, configured to receive an application program debugging request sent by the server;
the application program debugging result generating unit is used for generating an application program debugging result according to the application program debugging request;
and the application program debugging result sending unit is used for sending the application program debugging result to the server.
Optionally, the method further comprises:
a disconnection request transmitting unit for transmitting a disconnection request to the server;
and the first wireless connection disconnection unit is used for disconnecting the first wireless connection with the server.
Fig. 6 is a schematic structural diagram of an application program debugging apparatus according to another embodiment of the present invention. As shown in fig. 6, the apparatus of the embodiment of the present invention includes: the second wireless connection establishing unit 61, the first wireless connection information receiving unit 62, the remote connection establishing unit 63, and the debugging unit 64 specifically:
a second wireless connection establishing unit 61 for establishing a second wireless connection with the first terminal;
a first wireless connection information receiving unit 62, configured to receive information of a first wireless connection sent by the first terminal based on the second wireless connection;
a remote connection establishing unit 63, configured to establish a remote connection with the first terminal according to the information of the first wireless connection;
the debugging unit 64 is used for remotely calling the first terminal to debug the application program;
wherein the first wireless connection is a connection established by the first terminal and a server.
According to the device for debugging the application program, the first wireless connection with the first terminal is established after the connection request sent by the first terminal of the target model is received, the second terminal can remotely call the first terminal to debug the application program according to the information of the wireless connection, and a large number of terminals do not need to be connected to a server through a USB in advance, so that the cost is greatly saved, and the system maintenance difficulty is reduced.
Optionally, the remote connection establishing unit 63 is further configured to:
and establishing remote connection with the first terminal through a batch mobile equipment management control tool STF of the server according to the information of the first wireless connection.
Optionally, the debugging unit 64 includes:
the application program debugging request sending module is used for sending an application program debugging request to a server so that the server sends the application program debugging request to the first terminal;
and the application program debugging result receiving module is used for receiving an application program debugging result returned by the server, wherein the application program debugging result is generated by the first terminal according to the application program debugging request.
The device for debugging an application program according to this embodiment may be used to implement the above method embodiments, and the principle and technical effect are similar, which are not described herein again.
Fig. 7 is a schematic entity structure diagram of a server according to an embodiment of the present invention.
Referring to fig. 7, the server includes: a first processor (processor)71, a first memory (memory)72, and a first bus 73; wherein the content of the first and second substances,
the first processor 71 and the first memory 72 are communicated with each other through a first bus 73;
the first processor 71 is used for calling the program instructions in the first memory 72 to execute the application program debugging method provided by the above-mentioned embodiments of the method.
In addition, the logic instructions in the first memory 72 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Fig. 8 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
Referring to fig. 8, the electronic device includes: a second processor (processor)81, a second memory (memory)82, and a second bus 83; wherein the content of the first and second substances,
the second processor 81 and the second memory 82 complete communication with each other through a second bus 83;
the second processor 81 is used for calling the program instructions in the second memory 82 to execute the application program debugging method provided by the above-mentioned embodiments of the methods.
In addition, the logic instructions in the second memory 82 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Fig. 9 is a schematic physical structure diagram of an electronic device according to another embodiment of the present invention.
Referring to fig. 9, the electronic device includes: a third processor (processor)91, a third memory (memory)92, and a third bus 93; wherein the content of the first and second substances,
the third processor 91 and the third memory 92 complete communication with each other through a third bus 93;
the third processor 91 is used for calling the program instructions in the third memory 92 to execute the application program debugging method provided by the above-mentioned embodiments of the methods.
In addition, the logic instructions in the third memory 92 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The present embodiments provide a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the methods provided by the above-described method embodiments.
The present embodiments provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the methods provided by the method embodiments described above.
According to the method and the device for debugging the application program, the first wireless connection with the first terminal is established after the connection request sent by the first terminal of the target model is received, the second terminal can remotely call the first terminal to debug the application program according to the information of the wireless connection, a large number of terminals do not need to be connected to a server through a USB in advance, the cost is greatly saved, and the system maintenance difficulty is reduced.
It should be noted that, in the respective components of the apparatus of the present invention, the components therein are logically divided according to the functions to be implemented, but the present invention is not limited thereto, and the respective components may be re-divided or combined as needed, for example, some components may be combined into a single component, or some components may be further decomposed into more sub-components.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components in an apparatus according to an embodiment of the invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware.
The above embodiments are only suitable for illustrating the present invention and not limiting the present invention, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention, so that all equivalent technical solutions also belong to the scope of the present invention, and the scope of the present invention should be defined by the claims.

Claims (19)

1. A method for application debugging, comprising:
receiving a connection request sent by a first terminal of a target model, wherein the connection request comprises an IP address of the first terminal;
registering the IP address of the first terminal in a batch mobile equipment management control tool (STF) of a server;
establishing a first wireless connection between the batch mobile equipment management control tool STF and the terminal of the target model;
the server sends the information of the first wireless connection to a second terminal through a second wireless connection, wherein the information of the first wireless connection is used for the second terminal to remotely call the first terminal to debug an application program, and the second wireless connection is the connection between the first terminal and the second terminal;
the server stores an information table of the first terminal, the model and holder information of each terminal are stored in the first terminal information table, and the first terminal information table is used for searching for the terminal for application debugging and sharing.
2. The method of claim 1, further comprising:
receiving a disconnection request sent by the first terminal;
and disconnecting the first wireless connection with the first terminal according to the disconnection request.
3. The method of claim 1, further comprising:
and updating the terminal information table when receiving the owner change request sent by the first terminal.
4. The method of claim 1, further comprising:
receiving a terminal information query request sent by the second terminal;
and returning the information of the first terminal to the second terminal according to the terminal information inquiry request.
5. A method for debugging an application program is applied to a first terminal, and is characterized by comprising the following steps:
establishing a second wireless connection with a second terminal;
after receiving a terminal sharing request sent by the second terminal based on the second wireless connection, sending a connection request to a server, wherein the connection request comprises: an IP address;
after the server registers the IP address in a batch mobile equipment management control tool STF of the server, establishing a first wireless connection with the batch mobile equipment management control tool STF;
sending information of the first wireless connection to the second terminal based on the second wireless connection;
the server stores an information table of the first terminal, the model and holder information of each terminal are stored in the first terminal information table, and the first terminal information table is used for searching for the terminal for application debugging and sharing.
6. The method of claim 5, further comprising:
receiving an application program debugging request sent by the server;
generating an application program debugging result according to the application program debugging request;
and sending the application program debugging result to the server.
7. The method of claim 5, further comprising:
sending a disconnection request to the server;
disconnecting the first wireless connection with the server.
8. A method for debugging an application program is applied to a second terminal, and is characterized by comprising the following steps:
establishing a second wireless connection with the first terminal;
receiving information of the first wireless connection sent by the first terminal based on the second wireless connection;
establishing remote connection with the first terminal through a batch mobile equipment management control tool (STF) of a server according to the information of the first wireless connection;
remotely calling the first terminal to debug the application program;
wherein the first wireless connection is a connection established by the first terminal and a server;
the server stores an information table of the first terminal, the model and holder information of each terminal are stored in the first terminal information table, and the first terminal information table is used for searching for the terminal for application debugging and sharing.
9. The method of claim 8, wherein remotely invoking the first terminal for application debugging comprises:
sending an application program debugging request to a server so that the server sends the application program debugging request to the first terminal;
and receiving an application program debugging result returned by the server, wherein the application program debugging result is generated by the first terminal according to the application program debugging request.
10. An apparatus for application debugging, comprising:
a connection request receiving unit, configured to receive a connection request sent by a first terminal of a target model, where the connection request includes an IP address of the first terminal;
a first wireless connection establishing unit, configured to establish a first wireless connection with the first terminal according to the connection request;
the first wireless connection information sending unit is used for sending first wireless connection information to a second terminal through a second connection, wherein the first wireless connection information is used for the second terminal to remotely call the first terminal to debug an application program, and the second connection is the connection between the first terminal and the second terminal;
a first wireless connection establishing unit, further configured to register the IP address of the first terminal in a batch mobile device management control tool STF of a server; establishing a first wireless connection between the batch mobile equipment management control tool STF and the terminal of the target model;
the server stores an information table of the first terminal, the model and holder information of each terminal are stored in the first terminal information table, and the first terminal information table is used for searching for the terminal for application debugging and sharing.
11. The apparatus of claim 10, further comprising:
a disconnection request receiving unit, configured to receive a disconnection request sent by the first terminal;
and the first wireless connection disconnection unit is used for disconnecting the first wireless connection with the first terminal according to the disconnection request.
12. The apparatus of claim 10, further comprising:
and a terminal information table updating unit configured to update the terminal information table when receiving the owner change request transmitted by the first terminal.
13. The apparatus of claim 10, further comprising:
a terminal information query request receiving unit, configured to receive a terminal information query request sent by the second terminal;
and the terminal information returning unit is used for returning the information of the first terminal to the second terminal according to the terminal information inquiry request.
14. An apparatus for debugging an application program, applied to a first terminal, comprising:
a second wireless connection establishing unit for establishing a second wireless connection with the second terminal;
a connection request sending unit, configured to send a connection request to a server after receiving, based on the second wireless connection, a terminal sharing request sent by the second terminal, where the connection request includes: an IP address;
a first wireless connection establishing unit, configured to establish a first wireless connection with the server;
the first wireless connection establishing unit is further configured to: after the server registers the IP address in a batch mobile equipment management control tool STF of the server, establishing a first wireless connection with the batch mobile equipment management control tool STF;
a first wireless connection information transmitting unit configured to transmit information of a first wireless connection to the second terminal based on the second wireless connection;
the server stores an information table of the first terminal, the model and holder information of each terminal are stored in the first terminal information table, and the first terminal information table is used for searching for the terminal for application debugging and sharing.
15. The apparatus of claim 14, further comprising:
an application program debugging request receiving unit, configured to receive an application program debugging request sent by the server;
the application program debugging result generating unit is used for generating an application program debugging result according to the application program debugging request;
and the application program debugging result sending unit is used for sending the application program debugging result to the server.
16. The apparatus of claim 14, further comprising:
a disconnection request transmitting unit for transmitting a disconnection request to the server;
and the first wireless connection disconnection unit is used for disconnecting the first wireless connection with the server.
17. An apparatus for debugging an application program, applied to a second terminal, comprising:
a second wireless connection establishing unit for establishing a second wireless connection with the first terminal;
a first wireless connection information receiving unit, configured to receive information of a first wireless connection sent by the first terminal based on the second wireless connection;
a remote connection establishing unit, configured to establish a remote connection with the first terminal according to the information of the first wireless connection;
the debugging unit is used for remotely calling the first terminal to debug the application program;
wherein the first wireless connection is a connection established by the first terminal and a server;
the remote connection establishment unit is further configured to: establishing remote connection with the first terminal through a batch mobile equipment management control tool (STF) of a server according to the information of the first wireless connection;
the server stores an information table of the first terminal, the model and holder information of each terminal are stored in the first terminal information table, and the first terminal information table is used for searching for the terminal for application debugging and sharing.
18. The apparatus of claim 17, wherein the debugging unit comprises:
the application program debugging request sending module is used for sending an application program debugging request to a server so that the server sends the application program debugging request to the first terminal;
and the application program debugging result receiving module is used for receiving an application program debugging result returned by the server, wherein the application program debugging result is generated by the first terminal according to the application program debugging request.
19. A non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the method of any of claims 1-9.
CN201710117545.4A 2017-03-01 2017-03-01 Application program debugging method and device Active CN108536574B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710117545.4A CN108536574B (en) 2017-03-01 2017-03-01 Application program debugging method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710117545.4A CN108536574B (en) 2017-03-01 2017-03-01 Application program debugging method and device

Publications (2)

Publication Number Publication Date
CN108536574A CN108536574A (en) 2018-09-14
CN108536574B true CN108536574B (en) 2022-03-11

Family

ID=63488438

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710117545.4A Active CN108536574B (en) 2017-03-01 2017-03-01 Application program debugging method and device

Country Status (1)

Country Link
CN (1) CN108536574B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110602187A (en) * 2019-08-29 2019-12-20 深圳市新系区块链技术有限公司 Terminal sharing method, device and equipment
CN112751897B (en) * 2019-10-31 2022-08-26 贵州白山云科技股份有限公司 Load balancing method, device, medium and equipment
CN112636966A (en) * 2020-12-18 2021-04-09 中国人民解放军国防科技大学 Application batch deployment method based on remote debugging protocol

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1650899A1 (en) * 2004-10-20 2006-04-26 Setcom Wireless Products GmbH Method and device for testing an application of a telecommunications terminal
CN103098540A (en) * 2010-09-07 2013-05-08 三星电子株式会社 Method and apparatus for sharing wireless data service
CN104660655A (en) * 2013-11-25 2015-05-27 腾讯科技(上海)有限公司 Method, device and system for controlling terminal
CN105915628A (en) * 2016-05-31 2016-08-31 珠海金山网络游戏科技有限公司 Mobile phone system remote-controlled debugging method, mobile phone system remote-controlled debugging system and mobile phone system remote-controlled debugging device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103338226B (en) * 2013-05-27 2016-08-10 上海华兴数字科技有限公司 The debugging of engineering machinery remote software and upgrade-system and method
CN104298591B (en) * 2013-07-18 2017-07-07 阿里巴巴集团控股有限公司 A kind of WebApp remote debugging methods and system
US9170922B1 (en) * 2014-01-27 2015-10-27 Google Inc. Remote application debugging
CN104320520A (en) * 2014-10-14 2015-01-28 小米科技有限责任公司 Terminal commissioning method and device
CN104750065A (en) * 2015-02-10 2015-07-01 浙江大学 STM32 based remote distributed programmable automatic control system and method
CN105306536B (en) * 2015-09-22 2019-07-05 上海斐讯数据通信技术有限公司 The method that intelligent terminal based on WiFi remotely executes service command
CN105808399B (en) * 2016-03-14 2020-01-21 百度在线网络技术(北京)有限公司 Remote debugging method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1650899A1 (en) * 2004-10-20 2006-04-26 Setcom Wireless Products GmbH Method and device for testing an application of a telecommunications terminal
CN103098540A (en) * 2010-09-07 2013-05-08 三星电子株式会社 Method and apparatus for sharing wireless data service
CN104660655A (en) * 2013-11-25 2015-05-27 腾讯科技(上海)有限公司 Method, device and system for controlling terminal
CN105915628A (en) * 2016-05-31 2016-08-31 珠海金山网络游戏科技有限公司 Mobile phone system remote-controlled debugging method, mobile phone system remote-controlled debugging system and mobile phone system remote-controlled debugging device

Also Published As

Publication number Publication date
CN108536574A (en) 2018-09-14

Similar Documents

Publication Publication Date Title
CN108880867B (en) Network equipment data acquisition method and system
CN107133180B (en) Dynamic page testing method, testing device and storage medium
CN108829378B (en) Application software development method and device and electronic equipment
CN104679659A (en) Testing method and testing device of application program as well as electronic equipment
CN108712485B (en) Resource subscription method and device for Internet of things equipment
WO2020228449A1 (en) Method and apparatus for node selection
CN108536574B (en) Application program debugging method and device
CN110032507B (en) Application program testing method, device and system, electronic equipment and storage medium
CN105357323A (en) HTML5 page debugging method and device in APP
CN109683997B (en) Method for accessing application program interface through sandbox, sandbox and sandbox equipment
CN111078539A (en) Test method, device, system and computer readable storage medium
CN104243429B (en) A kind of method, apparatus and system for realizing that browser bookmark is synchronous
CN111459835A (en) Service debugging method and device, electronic equipment and computer readable storage medium
CN102609409A (en) Online translation method, device, system and server
CN113722020A (en) Interface calling method, device and computer readable storage medium
CN110781089B (en) Method and device for automatically testing UI of equipment, electronic equipment and medium
WO2015184754A1 (en) Mobile terminal and method for exchanging calling cards between mobile terminals
CN107908565B (en) Test method and test equipment
CN104636249A (en) Generation system and method of debugging information of application program
CN109391658B (en) Account data synchronization method and equipment, storage medium and terminal thereof
CN109587197A (en) It is associated with the methods, devices and systems of reported data
CN111414154A (en) Method and device for front-end development, electronic equipment and storage medium
CN108874381B (en) Method and device for outputting page view controller and electronic equipment
CN110858175A (en) Test control method, master control equipment, controlled equipment and test system
US20210182176A1 (en) Integrated development environment terminal, platform server, and medium

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