Disclosure of Invention
In order to solve the above technical problems, an object of the present invention is to provide a method for installing a program to a remote mobile terminal.
Another object of the present invention is to provide a system for installing a program to a remote mobile terminal.
The technical scheme adopted by the invention is as follows: a method of installing a program to a remote mobile terminal, the method comprising an application installation step, the application installation step comprising:
when the central server detects that a new application installation request exists, the central server informs the sub-server where the selected mobile terminal is located to execute an application installation process, so that the sub-server pulls down an installation package of the application from the central server, and then the sub-server installs the application into the mobile terminal according to the installation package of the application.
Further, a mobile terminal selection step and/or an installation package uploading step are/is arranged before the application installation step.
Further, the mobile terminal selecting step includes:
connecting the mobile terminal to the sub-server;
when the sub-server monitors the connection of the mobile terminal, the sub-server sends a connection request for registering the mobile terminal to the central server and requests the unique identification code of the mobile terminal from the central server, so that the connection of the mobile terminal is registered, and the mobile terminal is displayed in a mobile terminal registration list;
and after a list request is initiated to acquire the mobile terminal registration list, selecting the mobile terminal needing to be subjected to the application test from the mobile terminal registration list.
Further, the installation package uploading step includes:
and uploading the installation package of the application to be tested to the central server.
Further, an installation result feedback step is provided after the application installation step, and the installation result feedback step includes:
and the sub-server returns the installation result to the central server and displays the installation result.
The other technical scheme adopted by the invention is as follows: a system for installing a program to a remote mobile terminal, the system comprising:
and the application installation unit is used for informing the sub server where the selected mobile terminal is located to execute the application installation process when the central server detects that a new application installation request exists, so that the sub server pulls down the installation package of the application from the central server, and then the sub server installs the application into the mobile terminal according to the installation package of the application.
Further, a mobile terminal selection unit and/or an installation package uploading unit are/is arranged in front of the application installation unit.
Further, the mobile terminal selection unit includes:
the communication connection module is used for connecting the mobile terminal to the sub-server;
the registration module is used for sending a connection request for registering the mobile terminal to the central server and requesting the unique identification code of the mobile terminal to the central server when the sub-server monitors the connection of the mobile terminal, so that the connection of the mobile terminal is registered, and the mobile terminal is displayed in a mobile terminal registration list;
and the selection module is used for selecting the mobile terminal needing to be subjected to the application test from the mobile terminal registration list after initiating the list request to obtain the mobile terminal registration list.
Further, the installation package uploading unit is specifically configured to upload the installation package of the application to be tested to the central server.
Further, an installation result feedback unit for the sub-server to return the installation result to the central server and display the installation result is arranged behind the application installation unit.
The invention has the beneficial effects that: by using the method of the invention, when the central server detects a new application installation request, the application installation can be automatically carried out on the selected remote mobile terminals, namely the testing machines, simultaneously, so that the workers do not need to install the application of a plurality of machine equipment needing to be tested one by one, the excessive redundant operation steps are greatly reduced, the working efficiency is improved, the workload of the workers can be reduced, the convenience of the testing operation is improved, and the operation experience is good.
The invention has the following beneficial effects: the system can automatically carry out application installation on a plurality of selected remote mobile terminals, namely the testing machines, when the central server detects that a new application installation request exists, so that a worker does not need to install a plurality of machine equipment needing to be tested one by one, redundant operation steps are reduced, the working efficiency and the testing operation convenience are improved, the workload of the worker can be greatly reduced, and the working time is shortened.
Detailed Description
A method of installing a program to a remote mobile terminal, the method comprising an application installation step, the application installation step comprising:
when the central server detects that a new application installation request exists, the central server informs the sub-server where the selected mobile terminal is located to execute an application installation process, so that the sub-server pulls down an installation package of the application from the central server, and then the sub-server installs the application into the mobile terminal according to the installation package of the application.
For the above new application installation request, it may be application installation request information sent by other terminals to the central server, application installation request information directly input on the central server, or it may be a step of uploading an installation package of an application to be tested to the central server as the issue of the application installation request, that is, for the step of detecting that there is a new application installation request by the central server, it may be equivalent to that the central server detects that there is a new application installation package to upload to the central server. In addition, the mobile terminal is a testing machine for testing software applications, and can be a smart phone, an IPAD, and other devices.
Further, as a preferred implementation manner of the embodiment of the method, a mobile terminal selecting step and/or an installation package uploading step are/is provided before the application installation step. The selected mobile terminal is selected by the mobile terminal selecting step.
Further as a preferred implementation of this embodiment of the method, the application installation step is followed by an installation result feedback step.
First embodiment of the method of the invention
As shown in fig. 1, a method for installing a program to a remote mobile terminal includes the following specific steps:
s101, a mobile terminal selection step, which specifically comprises:
connecting the mobile terminal to the sub-server through a data line;
when the sub-server monitors the connection of the mobile terminal, sending a connection request for registering the mobile terminal to the central server, namely registering the connection of the mobile terminal to the central server, and requesting the unique identification code of the mobile terminal to the central server so as to register the connection of the mobile terminal, wherein after the registration is successful, the mobile terminal can be displayed in a mobile terminal registration list;
a tester logs in a central server and initiates a list request to acquire the mobile terminal registration list, and then selects a mobile terminal needing application testing from the mobile terminal registration list; the login center server can log in by using another terminal app or can log in by using a PC or a mobile phone browser;
s102, uploading an installation package of the application to be tested to a central server;
s103, the central server detects whether there is a new application installation request, in this embodiment, the application installation request may be application installation request information sent to the central server by another terminal, application installation request information directly input on the central server, or the like;
s104, when the central server detects that a new application installation request exists, the central server informs a sub-server where the selected mobile terminal is located, namely the sub-server connected with the selected mobile terminal, executes an application installation process, so that the sub-server pulls down an installation package of the application from the central server, and then the sub-server installs the application into the mobile terminal according to the installation package of the application;
and S105, the sub-servers return the installation result to the central server and display the installation result.
In this embodiment, the step S102 may be set before the step S101.
Second embodiment of the method of the invention
As shown in fig. 2, a method for installing a program to a remote mobile terminal includes the following specific steps:
s201, a mobile terminal selection step, which specifically comprises:
connecting the mobile terminal to the sub-server through a data line;
when the sub-server monitors the connection of the mobile terminal, sending a connection request for registering the mobile terminal to the central server, namely registering the connection of the mobile terminal to the central server, and requesting the unique identification code of the mobile terminal to the central server so as to register the connection of the mobile terminal, wherein after the registration is successful, the mobile terminal can be displayed in a mobile terminal registration list;
a tester logs in a central server and initiates a list request to acquire the mobile terminal registration list, and then selects a mobile terminal needing application testing from the mobile terminal registration list; wherein, for the login center server, it can use another terminal to log in, or can use PC or mobile phone browser to log in;
s202, uploading an installation package of the application to be tested to a central server;
s203, when the installation package of the application to be tested is uploaded to the central server, namely the central server detects that a new application installation request exists, at the moment, the sub server where the selected mobile terminal is located, namely the sub server connected with the selected mobile terminal, is informed to execute an application installation process, so that the sub server pulls down the installation package of the application from the central server, and then the sub server installs the application to the mobile terminal according to the installation package of the application;
and S204, the sub-server returns the installation result to the central server, and displays the installation result in the next page state after the step S202 is completed.
As described above, in the present embodiment, the installation package of the application is uploaded to the central server and simultaneously serves as the application installation request, and the implementation of the application realizes the simultaneous installation of the applications on the plurality of selected mobile terminals, which is more intelligent and automatic than the first embodiment, and has greater operation convenience, better operation experience, further shortened working time, and greatly improved working efficiency. This embodiment is therefore the preferred embodiment.
For the scheme of installing the program to the remote mobile terminal in this embodiment, a specific application example is to install a WeChat development edition to a remote test machine, namely a millet 5 mobile phone, and the specific steps include:
the first step is as follows: connecting the millet 5 to a sub-server placed in a machine room through a data line;
the second step is that: when the sub-server monitors the connection of the millet 5, the connection of the millet 5 is registered with the central server, and the unique identification code of the tester, such as 0ead176b7d3e8332faa8828d7532abea, is requested from the central server, so that the connection registration of the millet 5 is realized, and the millet 5 is displayed in the registration table of the mobile terminal;
the third step: the tester logs in the central server and selects the millet 5;
the fourth step: uploading the WeChat development edition installation package to a central server;
the fifth step: after the uploading is finished, informing a sub server connected with the millet 5 to initiate application installation operation;
and a sixth step: the sub-server pulls down the WeChat development installation package from the central server;
the seventh step: the sub-server installs the WeChat development version to the millet 5 and feeds back the installation result to the page.
The technical features described in the above method embodiments are applicable to the following system embodiments.
The system established based on the method for installing the program to the remote mobile terminal is a system for installing the program to the remote mobile terminal, and comprises the following steps:
and the application installation unit is used for informing the sub server where the selected mobile terminal is located to execute the application installation process when the central server detects that a new application installation request exists, so that the sub server pulls down the installation package of the application from the central server, and then the sub server installs the application into the mobile terminal according to the installation package of the application.
As a preferred implementation manner of the embodiment of the system, a mobile terminal selection unit and/or an installation package uploading unit is/are arranged in front of the application installation unit.
As a preferred implementation of the embodiment of the present system, the mobile terminal selecting unit includes:
the communication connection module is used for connecting the mobile terminal to the sub-server;
the registration module is used for sending a connection request for registering the mobile terminal to the central server and requesting the unique identification code of the mobile terminal to the central server when the sub-server monitors the connection of the mobile terminal, so that the connection of the mobile terminal is registered, and the mobile terminal is displayed in a mobile terminal registration list;
and the selection module is used for selecting the mobile terminal needing to be subjected to the application test from the mobile terminal registration list after initiating the list request to obtain the mobile terminal registration list.
As a preferred implementation manner of the embodiment of the system, the installation package uploading unit is specifically configured to upload the installation package of the application to be tested to the central server.
As a preferred implementation manner of the embodiment of the system, an installation result feedback unit for the sub-server to return the installation result to the central server and display the installation result is arranged behind the application installation unit.
Therefore, by using the method and the system of the invention, when the central server detects that a new application installation request exists, the selected remote mobile terminals can be automatically and simultaneously installed, so that the workers do not need to install multiple machines, namely testing machines one by one, the excessive redundant operation steps are greatly reduced, the working efficiency is improved, the workload of the workers can be reduced, and the convenience of the testing operation is improved. That is, with the solution of the present invention, it is possible to manage all testers efficiently and simplify all application installation processes, and also as one of the essential parts for automated intelligent testing.
The above description is intended to illustrate the preferred embodiments of the present invention, but the present invention is not limited to the above embodiments, and those skilled in the art may make various equivalent modifications or substitutions without departing from the spirit of the present invention, and those skilled in the art may apply these equivalent modifications or substitutions and applications to the remote terminal installation program in other fields, which are included in the scope of the present invention as defined by the claims.