A kind of remote test method and system of terminal
Technical field
The present invention relates to terminal test field, a kind of remote test method more particularly to terminal based on local area network and
System.
Background technique
With the development of mobile Internet and mobile terminal industry, mobile terminal product increasingly enriches.And Android (peace
It is tall and erect) for system as the operating system of the mobile terminal of mainstream, the business men of corresponding mobile terminal is also increasing.Also, with
The prevalence of mobile terminal product, product iteration development and Android system development it is also more and more huger.Each android terminal
The manufacturer of production and application needs the test to android terminal also more and more in project development process.
Due to the generation of mobile terminal and the difference of application vendor, all respectively possess oneself test team and it is some from
Dynamicization test method.But automated testing method in the field at present is tested on a mobile terminal.
It is tested on a mobile terminal, certainly will need tester frequent to the testing progress and test result of terminal in this way
It is detected.In this way, being its more wasteful time for tester;For the efficiency of test and under relatively low
's.
Summary of the invention
In view of the foregoing deficiencies of prior art, the purpose of the present invention is to provide a kind of remote test methods of terminal
And system, for solving the problems, such as the automatic test labor intensive and inefficiency of mobile terminal in the prior art.
In order to achieve the above objects and other related objects, the present invention provides a kind of remote test method of terminal, and terminal is adopted
With Android operation system, remote testing, also, the HTTP server and wechat are carried out by controlling terminal and HTTP server
Public platform binding;The remote test method of the terminal includes: step S10, and the controlling terminal passes through the wechat public platform
Test instruction is assigned to the HTTP server;Wherein, the test instruction includes terminal identification information and test command;Step
S20, the test instruction of HTTP server described in terminal inquiry, and judge that the terminal identification information in the test instruction is with it
No matching: if matching, terminal executes test command, and test relevant information is fed back to the HTTP server.
In one embodiment of the invention, terminal identification information and terminal are corresponded.
In one embodiment of the invention, terminal identification information IMEI.
In one embodiment of the invention, the step S10 further include: the controlling terminal passes through the wechat public platform
Sending device inquiry instruction gets the terminal identification information and status information of all terminals from the HTTP server.
In one embodiment of the invention, terminal identification information and status information in the HTTP server are by terminal
It is sent to the HTTP server.
In one embodiment of the invention, the remote test method of the terminal further include: the controlling terminal passes through institute
It states wechat public platform and sends the test relevant information that test query instruction obtains all terminals from the HTTP server.
In one embodiment of the invention, the test relevant information includes test result and testing progress.
The invention also discloses a kind of remote test system of terminal, terminal uses Android operation system, eventually by control
End and HTTP server carry out remote testing, also, the HTTP server and wechat public platform are bound;The terminal it is long-range
Test macro includes: enquiry module, is located at the controlling terminal side, for by the wechat public platform from the HTTP service
The terminal identification information and status information and test relevant information of device inquiry terminal;Instruction issuing module is tested, is located at described
Controlling terminal side, the terminal identification information for being inquired according to the enquiry module, by the wechat public platform to described
HTTP server assigns test instruction;Wherein, the test instruction includes terminal identification information and test command;The HTTP clothes
Business device is used to save under the terminal identification information, status information and test relevant information and the controlling terminal of terminal transmission
The test instruction reached;Instructions query module is located at terminal side, refers to for inquiring the test from the HTTP server
It enables;Judgment module is located at terminal side, for judging whether terminal matches with the terminal identification information in the test instruction;It surveys
Execution module is tried, is located at terminal side for the judging result according to the judgment module and executes survey according to the test command
Examination;Uploading module is located at terminal side, for uploading terminal identification information and status information to the HTTP server and surveying
Try relevant information.
In one embodiment of the invention, terminal identification information and terminal are corresponded.
In one embodiment of the invention, the enquiry module by the wechat public platform sending device inquiry instruction from
The HTTP server gets the terminal identification information and status information of all terminals;Test query is sent to instruct from described
HTTP server obtains the test relevant information of all terminals.
As described above, the remote test method and system of a kind of terminal of the invention, borrow group at present using increasingly extensive
Wechat platform, bound using HTTP server, and by HTTP server and wechat public platform, by wechat public platform to HTTP
Server assigns the instruction of the test with terminal identification information, and terminal judges whether match with it by inquiry test instruction,
To further execute test.The remote test method and system of a kind of terminal of the invention, multiple terminals to be measured can be same
When executes relevant operation to HTTP server, and (upload terminal identification information, status information and test relevant information, inquiry test refer to
Enable), make it that can be performed simultaneously test, substantially increases testing efficiency, and controlling terminal passes through wechat public platform real time inspection
With the test relevant information of monitor terminal, more convenient monitoring is in the terminal in test, and cost of implementation is also cheaper.
Detailed description of the invention
Fig. 1 is shown as a kind of flow diagram of the remote test method of terminal disclosed by the embodiments of the present invention.
Fig. 2 is shown as a kind of structural schematic diagram of the remote test system of terminal disclosed by the embodiments of the present invention.
Component label instructions
S10~S20 step
210 enquiry modules
220 test instruction issuing modules
230 instructions query modules
240 judgment modules
250 testing execution modules
260 uploading modules
300 controlling terminals
400 HTTP servers
500 terminals
Specific embodiment
Illustrate embodiments of the present invention below by way of specific specific example, those skilled in the art can be by this specification
Other advantages and efficacy of the present invention can be easily understood for disclosed content.The present invention can also pass through in addition different specific realities
The mode of applying is embodied or practiced, the various details in this specification can also based on different viewpoints and application, without departing from
Various modifications or alterations are carried out under spirit of the invention.It should be noted that in the absence of conflict, following embodiment and implementation
Feature in example can be combined with each other.
Please refer to attached drawing.It should be noted that diagram provided in following embodiment only illustrates this hair in a schematic way
Bright basic conception, only shown in schema then with related component in the present invention rather than component count when according to actual implementation,
Shape and size are drawn, when actual implementation kenel, quantity and the ratio of each component can arbitrarily change for one kind, and its component
Being laid out kenel may also be increasingly complex.
Embodiment 1
Present embodiment discloses a kind of remote test methods of terminal, between terminal and controlling terminal by wechat platform and
HTTP server links together: HTTP server and a wechat public platform are bound, controlling terminal by wechat public platform and
The remote testing of HTTP server realization terminal.Also, the terminal in the present embodiment, communicated with HTTP server is one
Or it is multiple.
Wherein, terminal includes that memory, Memory Controller, one or more processors (CPU), interface circuit, RF (are penetrated
Frequently circuit, voicefrequency circuit, loudspeaker, microphone, input/output (I/O) subsystem, touch display screen, other outputs or control)
Equipment and outside port.These components are communicated by one or more communication bus or signal wire.Terminal, which can be, appoints
What portable electronic device, including but not limited to laptop, tablet computer, smart phone, multimedia player, a number
Word assistant (PDA) etc., it is also possible to including wherein two or multinomial combinations.It should be appreciated that the terminal enumerated in the present embodiment
The component of an only example of portable electronic device, the equipment can have more or fewer groups than what is provided in diagram
Part, or with different component Configurations.Various assemblies shown in figure can be with the combination of hardware, software or software and hardware come real
It is existing, including one or more signal processings and/or specific integrated circuit.In the present embodiment, the operating system of terminal is preferably
Android system.Also, in order to realize the present embodiment terminal remote testing, terminal must keep and HTTP server
Communication, can be communicated by wired communication mode with HTTP server, can also mode and HTTP server by wireless communication
Communication.
Controlling terminal includes that memory, Memory Controller, one or more processors (CPU), interface circuit, RF (are penetrated
Frequently circuit, input/output (I/O) subsystem, touch display screen, other outputs or control equipment and outside port).These
Component is communicated by one or more communication bus or signal wire.It can be any portable electronic device, including
But be not limited to laptop, tablet computer, smart phone, multimedia player, personal digital assistant (PDA) etc., may be used also
It can include wherein two or multinomial combinations.It should be appreciated that the terminal enumerated in the present embodiment is portable electronic device
The component of one example, the equipment can have more or fewer components than what is provided in diagram, or with different components
Configuration.Various assemblies shown in figure can be realized with the combination of hardware, software or software and hardware, including one or more signals
Processing and/or specific integrated circuit.Also, in order to realize the present embodiment terminal remote testing, controlling terminal must assure that
It is able to use wechat, i.e. the controlling terminal state that necessarily is in networking.Pass through in this way, tester just can use controlling terminal
Wechat public platform sends command adapted thereto.
As shown in Figure 1, the remote test method of the terminal of the present embodiment includes:
Step S10, the controlling terminal assign test instruction to the HTTP server by the wechat public platform;Its
In, the test instruction includes terminal identification information and test command:
Before the remote testing for carrying out terminal, it need to apply for a wechat public platform, and wechat public platform is tied to
HTTP server.When carrying out the remote testing of terminal, the follow the WeChat public platform in controlling terminal.Also, end to be measured
Terminal identification information and status information can be sent to HTTP server by end, in order to the inquiry of controlling terminal.
Further, controlling terminal is obtained by the wechat public platform sending device inquiry instruction from HTTP server all
The terminal identification information and status information communicated with HTTP server.
Wherein, terminal identification information is the unique identification of terminal, and a terminal only corresponds to a terminal identification information.?
In the present embodiment, terminal identification information is using IMEI (International Mobile Equipment Identity, the world
Mobile device mark).Certainly, the protection scope of terminal identification information of the invention might not be only limitted to IMEI mark, as long as
It is the information that can uniquely identify terminal.
Status information refers to the status of terminal, i.e., it is in test mode or non-test state.
Controlling terminal can select terminal in need of test according to the terminal identification information and status information inquired,
Assign corresponding test instruction, wherein for the ease of difference, test instruction includes but is not limited to test command and terminal iidentification letter
Breath.In this way, terminal, which can easily pass terminal identification information when obtaining test instruction, judges whether test instruction is the end
The test at end instructs.In the present embodiment, test instruction is " IMEI+ test command ".
Step S20, the test instruction of HTTP server described in terminal inquiry, and judge that terminal and the test instruct
Whether terminal identification information matches: if matching, terminal executes test command, and test relevant information is fed back to the HTTP
Server:
Terminal to be measured can periodically inquire the test instruction on HTTP server;
After obtaining test instruction, further judge whether the terminal identification information in test instruction is matching, i.e.,
Judge whether the test command in test instruction is directed to the terminal:
If matching, terminal executes test according to the test command in test instruction, and test relevant information is fed back to
HTTP server;
If it does not match, ignore the test instruction, waiting continue to inquire on HTTP server next time whether have it is new
Test instruction.
Wherein, test relevant information includes but is not limited to test result and testing progress.
It will be tested after relevant information feeds back to HTTP server in terminal, tester is public by wechat using controlling terminal
Many numbers send test query instruction, and the test relevant information of all terminals can be obtained from HTTP server.
The step of above method, divides, and is intended merely to describe clear, and when realization can be merged into a step or to certain
A little steps are split, and multiple steps are decomposed into, as long as comprising identical logical relation, within the protection scope of the present patent;
To adding inessential modification in algorithm or in process or introducing inessential design, but its algorithm and stream are not changed
The core design of journey is all in the protection scope of the patent.
Embodiment 2
Present embodiment discloses a kind of remote test systems of terminal, between terminal and controlling terminal by wechat platform and
HTTP server links together: HTTP server and a wechat public platform are bound, controlling terminal by wechat public platform and
The remote testing of HTTP server realization terminal.Also, the terminal in the present embodiment, communicated with HTTP server is one
Or it is multiple.
Wherein, terminal includes that memory, Memory Controller, one or more processors (CPU), interface circuit, RF (are penetrated
Frequently circuit, voicefrequency circuit, loudspeaker, microphone, input/output (I/O) subsystem, touch display screen, other outputs or control)
Equipment and outside port.These components are communicated by one or more communication bus or signal wire.Terminal, which can be, appoints
What portable electronic device, including but not limited to laptop, tablet computer, smart phone, multimedia player, a number
Word assistant (PDA) etc., it is also possible to including wherein two or multinomial combinations.It should be appreciated that the terminal enumerated in the present embodiment
The component of an only example of portable electronic device, the equipment can have more or fewer groups than what is provided in diagram
Part, or with different component Configurations.Various assemblies shown in figure can be with the combination of hardware, software or software and hardware come real
It is existing, including one or more signal processings and/or specific integrated circuit.In the present embodiment, the operating system of terminal is preferably
Android system.Also, in order to realize the present embodiment terminal remote testing, terminal must keep and HTTP server
Communication, can be communicated by wired communication mode with HTTP server, can also mode and HTTP server by wireless communication
Communication.
Controlling terminal includes that memory, Memory Controller, one or more processors (CPU), interface circuit, RF (are penetrated
Frequently circuit, input/output (I/O) subsystem, touch display screen, other outputs or control equipment and outside port).These
Component is communicated by one or more communication bus or signal wire.It can be any portable electronic device, including
But be not limited to laptop, tablet computer, smart phone, multimedia player, personal digital assistant (PDA) etc., may be used also
It can include wherein two or multinomial combinations.It should be appreciated that the terminal enumerated in the present embodiment is portable electronic device
The component of one example, the equipment can have more or fewer components than what is provided in diagram, or with different components
Configuration.Various assemblies shown in figure can be realized with the combination of hardware, software or software and hardware, including one or more signals
Processing and/or specific integrated circuit.Also, in order to realize the present embodiment terminal remote testing, controlling terminal must assure that
It is able to use wechat, i.e. the controlling terminal state that necessarily is in networking.Pass through in this way, tester just can use controlling terminal
Wechat public platform sends command adapted thereto.
As shown in Fig. 2, the remote test system of the terminal of the present embodiment includes:
Enquiry module 210 is located at the controlling terminal side 300, for being taken by the wechat public platform from the HTTP
The terminal identification information and status information and test relevant information for the inquiry terminal 500 of device 400 of being engaged in:
Enquiry module 210 passes through the wechat public platform sending device inquiry instruction.It is obtained from the HTTP server 400
To the terminal identification information and status information of all terminals 500;
Enquiry module 210 sends test query instruction by the wechat public platform, obtains from the HTTP server 400
The test relevant information of all terminals 500.
Instruction issuing module 220 is tested, 300 side of controlling terminal is located at, for being inquired according to the enquiry module 210
Terminal identification information, by the wechat public platform to the HTTP server 400 assign test instruction;Wherein, the survey
Examination instruction includes terminal identification information and test command;
The HTTP server 400, is communicated between controlling terminal 300 by wechat public platform, with terminal 500 it
Between direct communication, for save terminal 500 transmission terminal identification information, status information and test relevant information, in order to control
The test instruction that the inquiry of terminal 300 processed and controlling terminal 300 are assigned, periodically inquires test in order to terminal 500 and refers to
It enables.
Instructions query module 230 is located at 500 side of terminal, refers to for inquiring the test from the HTTP server 400
It enables;
Judgment module 240 is located at terminal side 500, for judging that the terminal iidentification in terminal 500 and the test instruction is believed
Whether breath matches;If it does, then continuing to execute test according to the test command in test instruction;If it does not match, ignoring
This tests instruction.
Testing execution module 250 is located at 500 side of terminal, for the judging result according to the judgment module 240, according to
The test command executes test;
Uploading module 260 is located at 500 side of terminal, for uploading terminal identification information and shape to the HTTP server 400
State information and test relevant information.
Also, it, will not be proposed by the invention with solution in the present embodiment in order to protrude innovative part of the invention
The less close unit module of technical problem relationship, but this does not indicate that there is no other modules in the present embodiment.
In addition, the present embodiment can be with the it is not difficult to find that the present embodiment is system embodiment corresponding to those in the first embodiment
One embodiment is worked in coordination implementation.The relevant technical details mentioned in first embodiment are still effective in the present embodiment, in order to
It reduces and repeats, which is not described herein again.Correspondingly, the relevant technical details mentioned in the present embodiment are also applicable in first embodiment
In.
In conclusion the remote test method and system of a kind of terminal of the invention, borrow group at present using increasingly extensive
Wechat platform, bound using HTTP server, and by HTTP server and wechat public platform, by wechat public platform to HTTP
Server assigns the instruction of the test with terminal identification information, and terminal judges whether match with it by inquiry test instruction,
To further execute test.The remote test method and system of a kind of terminal of the invention, multiple terminals to be measured can be same
When executes relevant operation to HTTP server, and (upload terminal identification information, status information and test relevant information, inquiry test refer to
Enable), make it that can be performed simultaneously test, substantially increases testing efficiency, and controlling terminal passes through wechat public platform real time inspection
With the test relevant information of monitor terminal, more convenient monitoring is in the terminal in test, and cost of implementation is also cheaper.Institute
With the present invention effectively overcomes various shortcoming in the prior art and has high industrial utilization value.
The above-described embodiments merely illustrate the principles and effects of the present invention, and is not intended to limit the present invention.It is any ripe
The personage for knowing this technology all without departing from the spirit and scope of the present invention, carries out modifications and changes to above-described embodiment.Cause
This, institute is complete without departing from the spirit and technical ideas disclosed in the present invention by those of ordinary skill in the art such as
At all equivalent modifications or change, should be covered by the claims of the present invention.