A kind of remote test method of terminal and system
Technical field
The present invention relates to terminal test field, particularly relate to a kind of remote test method and system of the terminal based on local area network (LAN).
Background technology
Along with the development of mobile Internet and mobile terminal industry, mobile terminal product day by day enriches.And Android (Android) system is as the operating system of the mobile terminal of main flow, the business men of the mobile terminal of its correspondence also day by day increases.Further, popular along with mobile terminal product, the iteration development of product and the development of Android system also more and more huger.Each android terminal is produced and the manufacturer of application needs also to get more and more to the test of android terminal in project development process.
Due to the generation of mobile terminal and the difference of application vendor, it has oneself test team and some automated testing methods all separately.But automated testing method is in the field all test on a mobile terminal at present.A mobile terminal is tested, tester certainly will be needed like this to detect frequently the testing progress of terminal and test result.So, to tester, compare its time of waste; To the efficiency of test, be also lower.
Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind of remote test method and system of terminal, for solving the automatic test labor intensive of mobile terminal in prior art and the problem of inefficiency.
For achieving the above object and other relevant objects, the invention provides a kind of remote test method of terminal, terminal adopts Android operation system, carry out remote testing, and described http server and micro-letter public number is bound by control terminal and http server; The remote test method of described terminal comprises: step S10, and described control terminal assigns test instruction by described micro-letter public number to described http server; Wherein, described test instruction comprises terminal identification information and test command; Step S20, the test instruction of http server described in terminal inquiry, and judge whether the terminal identification information in described test instruction mates with it: if mate, then terminal performs test command, and test relevant information is fed back to described http server.
In one embodiment of the invention, terminal identification information and terminal one_to_one corresponding.
In one embodiment of the invention, terminal identification information is IMEI.
In one embodiment of the invention, described step S10 also comprises: described control terminal gets terminal identification information and the state information of all terminals from described http server by described micro-letter public number transmitting apparatus query statement.
In one embodiment of the invention, the terminal identification information in described http server and state information are sent to described http server by terminal.
In one embodiment of the invention, the remote test method of described terminal also comprises: described control terminal obtains the described test relevant information of all terminals from described http server by the instruction of described micro-letter public number transmission test query.
In one embodiment of the invention, described test relevant information comprises test result and testing progress.
The invention also discloses a kind of remote test system of terminal, terminal adopts Android operation system, carry out remote testing, and described http server and micro-letter public number is bound by control terminal and http server; The remote test system of described terminal comprises: enquiry module, is positioned at described control terminal side, for by described micro-letter public number from the terminal identification information of described http server inquiry terminal and state information and test relevant information; Module is assigned in test instruction, is positioned at described control terminal side, for the terminal identification information of inquiring about according to described enquiry module, assigns test instruction by described micro-letter public number to described http server; Wherein, described test instruction comprises terminal identification information and test command; Terminal identification information, state information and test relevant information that described http server sends for preserving terminal, and the described test instruction that described control terminal is assigned; Instructions query module, is positioned at end side, for inquiring about described test instruction from described http server; Judge module, is positioned at end side, for judging whether terminal mates with the terminal identification information in described test instruction; Testing execution module, is positioned at end side, for the judged result according to described judge module, performs test according to described test command; Upper transmission module, is positioned at end side, for uploading terminal identification information and state information to described http server and testing relevant information.
In one embodiment of the invention, terminal identification information and terminal one_to_one corresponding.
In one embodiment of the invention, described enquiry module gets terminal identification information and the state information of all terminals from described http server by described micro-letter public number transmitting apparatus query statement; Send test query instruction obtains all terminals described test relevant information from described http server.
As mentioned above, the remote test method of a kind of terminal of the present invention and system, by means of group in applying increasingly extensive micro-letter platform at present, utilize http server, and http server and micro-letter public number are bound, assign test instruction with terminal identification information by micro-letter public number to http server, terminal is by inquiry test instruction, and judge whether mate with it, thus perform test further.The remote test method of a kind of terminal of the present invention and system, multiple terminal to be measured can perform associative operation to http server simultaneously (upload terminal identification information, state information and test relevant information, inquiry test instruction), make it can perform test simultaneously, substantially increase testing efficiency, and control terminal is by the test relevant information of micro-letter public number real time inspection and monitor terminal, and convenient monitoring is in the terminal in test, and it is also cheaper to realize cost.
Accompanying drawing explanation
Fig. 1 is shown as the schematic flow sheet of the remote test method of a kind of terminal disclosed in the embodiment of the present invention.
Fig. 2 is shown as the structural representation of the remote test system of a kind of terminal disclosed in the embodiment of the present invention.
Element numbers explanation
S10 ~ S20 step
210 enquiry modules
Module is assigned in 220 test instructions
230 instructions query modules
240 judge modules
250 testing execution module
Transmission module on 260
300 control terminals
400HTTP server
500 terminals
Embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art the content disclosed by this specification can understand other advantages of the present invention and effect easily.The present invention can also be implemented or be applied by embodiments different in addition, and the every details in this specification also can based on different viewpoints and application, carries out various modification or change not deviating under spirit of the present invention.It should be noted that, when not conflicting, the feature in following examples and embodiment can combine mutually.
Refer to accompanying drawing.It should be noted that, the diagram provided in following examples only illustrates basic conception of the present invention in a schematic way, then only the assembly relevant with the present invention is shown in graphic but not component count, shape and size when implementing according to reality is drawn, it is actual when implementing, and the kenel of each assembly, quantity and ratio can be a kind of change arbitrarily, and its assembly layout kenel also may be more complicated.
Embodiment 1
Present embodiment discloses a kind of remote test method of terminal, linked together by micro-letter platform and http server between terminal and control terminal: http server and a micro-letter public number are bound, control terminal realizes the remote testing of terminal by micro-letter public number and http server.Further, in the present embodiment, the terminal communicated with http server is one or more.
Wherein, terminal comprises memory, Memory Controller, one or more processor (CPU), interface circuit, RF (radio frequency) circuit, voicefrequency circuit, loud speaker, microphone, I/O (I/O) subsystem, touch display screen, other output or control appliances, and outside port.These assemblies are communicated by one or more communication bus or holding wire.Terminal can be any portable electric appts, includes but not limited to notebook computer, panel computer, smart mobile phone, multimedia player, personal digital assistant (PDA) etc., also may comprise wherein two or multinomial combination.Should be appreciated that the terminal enumerated in the present embodiment is an example of portable electric appts, the assembly of this equipment can have more or less assembly than what provide in diagram, or has different arrangement of components.Various assemblies shown in figure can realize with the combination of hardware, software or software and hardware, comprise one or more signal transacting and/or application-specific integrated circuit (ASIC).In the present embodiment, the operating system of terminal is preferably android system.Further, in order to realize the remote testing of the terminal of the present embodiment, terminal must keep the communication with http server, and namely it communicate with http server by wire communication mode, also communicates with http server by communication.
Control terminal comprises memory, Memory Controller, one or more processor (CPU), interface circuit, RF (radio frequency) circuit, I/O (I/O) subsystem, touch display screen, other output or control appliances, and outside port.These assemblies are communicated by one or more communication bus or holding wire.Namely it can be any portable electric appts, includes but not limited to notebook computer, panel computer, smart mobile phone, multimedia player, personal digital assistant (PDA) etc., also may comprise wherein two or multinomial combination.Should be appreciated that the terminal enumerated in the present embodiment is an example of portable electric appts, the assembly of this equipment can have more or less assembly than what provide in diagram, or has different arrangement of components.Various assemblies shown in figure can realize with the combination of hardware, software or software and hardware, comprise one or more signal transacting and/or application-specific integrated circuit (ASIC).Further, in order to realize the remote testing of the terminal of the present embodiment, control terminal must guarantee to use micro-letter, and namely control terminal must be in the state of networking.So, tester just can utilize control terminal to send command adapted thereto by micro-letter public number.
As shown in Figure 1, the remote test method of the terminal of the present embodiment comprises:
Step S10, described control terminal assigns test instruction by described micro-letter public number to described http server; Wherein, described test instruction comprises terminal identification information and test command:
Before the remote testing carrying out terminal, a micro-letter public number need be applied for, and micro-letter public number is tied to http server.When carrying out the remote testing of terminal, control terminal is paid close attention to this micro-letter public number.Further, terminal identification information and state information can be sent to http server by terminal to be measured, so that the inquiry of control terminal.
Further, control terminal obtains all terminal identification information of communicating with http server and state information by this micro-letter public number transmitting apparatus query statement from http server.
Wherein, terminal identification information is the unique identification of terminal, an a terminal only corresponding terminal identification information.In the present embodiment, terminal identification information adopts IMEI (InternationalMobileEquipmentIdentity, International Mobile Station Equipment Identification).Certainly, the protection range of terminal identification information of the present invention might not be only limitted to IMEI mark, as long as can the information of marking terminal uniquely.
State information refers to the status of terminal, and namely it is in test mode or non-test state.
Control terminal according to the terminal identification information inquired and state information, can be selected the terminal needing to carry out testing, assigns corresponding test instruction, and wherein, for the ease of difference, test instruction includes but not limited to test command and terminal identification information.Like this, terminal can easily pass terminal identification information and judges that whether test instruction is the test instruction of this terminal when obtaining test instruction.In the present embodiment, test instruction is " IMEI+ test command ".
Step S20, the test instruction of http server described in terminal inquiry, and judge whether terminal mates with the terminal identification information in described test instruction: if mate, then terminal performs test command, and test relevant information is fed back to described http server:
Terminal to be measured regularly can inquire about the test instruction on http server;
After obtaining test instruction, judge whether the terminal identification information in test instruction matches further, whether the test command that namely judges in test instruction is aimed at this terminal:
If coupling, then terminal performs test according to the test command in test instruction, and test relevant information is fed back to http server;
If do not mated, then ignoring this test instruction, waiting for and continuing on http server, inquire about whether there is new test instruction next time.
Wherein, test relevant information and include but not limited to test result and testing progress.
After test relevant information is fed back to http server by terminal, tester utilizes control terminal to send test query instruction by micro-letter public number, can obtain the test relevant information of all terminals from http server.
The step of method divides above, just in order to be described clearly, can merge into a step or splitting some step, being decomposed into multiple step, when realizing as long as comprise identical logical relation, all in the protection range of this patent; To adding inessential amendment in algorithm or in flow process or introducing inessential design, but the core design not changing its algorithm and flow process is all in the protection range of this patent.
Embodiment 2
Present embodiment discloses a kind of remote test system of terminal, linked together by micro-letter platform and http server between terminal and control terminal: http server and a micro-letter public number are bound, control terminal realizes the remote testing of terminal by micro-letter public number and http server.Further, in the present embodiment, the terminal communicated with http server is one or more.
Wherein, terminal comprises memory, Memory Controller, one or more processor (CPU), interface circuit, RF (radio frequency) circuit, voicefrequency circuit, loud speaker, microphone, I/O (I/O) subsystem, touch display screen, other output or control appliances, and outside port.These assemblies are communicated by one or more communication bus or holding wire.Terminal can be any portable electric appts, includes but not limited to notebook computer, panel computer, smart mobile phone, multimedia player, personal digital assistant (PDA) etc., also may comprise wherein two or multinomial combination.Should be appreciated that the terminal enumerated in the present embodiment is an example of portable electric appts, the assembly of this equipment can have more or less assembly than what provide in diagram, or has different arrangement of components.Various assemblies shown in figure can realize with the combination of hardware, software or software and hardware, comprise one or more signal transacting and/or application-specific integrated circuit (ASIC).In the present embodiment, the operating system of terminal is preferably android system.Further, in order to realize the remote testing of the terminal of the present embodiment, terminal must keep the communication with http server, and namely it communicate with http server by wire communication mode, also communicates with http server by communication.
Control terminal comprises memory, Memory Controller, one or more processor (CPU), interface circuit, RF (radio frequency) circuit, I/O (I/O) subsystem, touch display screen, other output or control appliances, and outside port.These assemblies are communicated by one or more communication bus or holding wire.Namely it can be any portable electric appts, includes but not limited to notebook computer, panel computer, smart mobile phone, multimedia player, personal digital assistant (PDA) etc., also may comprise wherein two or multinomial combination.Should be appreciated that the terminal enumerated in the present embodiment is an example of portable electric appts, the assembly of this equipment can have more or less assembly than what provide in diagram, or has different arrangement of components.Various assemblies shown in figure can realize with the combination of hardware, software or software and hardware, comprise one or more signal transacting and/or application-specific integrated circuit (ASIC).Further, in order to realize the remote testing of the terminal of the present embodiment, control terminal must guarantee to use micro-letter, and namely control terminal must be in the state of networking.So, tester just can utilize control terminal to send command adapted thereto by micro-letter public number.
As shown in Figure 2, the remote test system of the terminal of the present embodiment comprises:
Enquiry module 210, is positioned at described control terminal side 300, for by described micro-letter public number from the terminal identification information of described http server 400 inquiry terminal 500 and state information and test relevant information:
Enquiry module 210 is by described micro-letter public number transmitting apparatus query statement.Terminal identification information and the state information of all terminals 500 is got from described http server 400;
Enquiry module 210 sends test query instruction by described micro-letter public number, obtains the described test relevant information of all terminals 500 from described http server 400.
Module 220 is assigned in test instruction, is positioned at described control terminal 300 side, for the terminal identification information of inquiring about according to described enquiry module 210, assigns test instruction by described micro-letter public number to described http server 400; Wherein, described test instruction comprises terminal identification information and test command;
Described http server 400, communicated by micro-letter public number with between control terminal 300, and direct communication between terminal 500, for preserving terminal identification information, state information and test relevant information that terminal 500 sends, so that the inquiry of control terminal 300, and the test instruction that control terminal 300 is assigned, so that test instruction is inquired about in terminal 500 timing.
Instructions query module 230, is positioned at terminal 500 side, for inquiring about described test instruction from described http server 400;
Judge module 240, is positioned at end side 500, for judging whether terminal 500 mates with the terminal identification information in described test instruction; If coupling, then continue to perform test according to the test command in test instruction; If do not mated, then ignore this test instruction.
Testing execution module 250, is positioned at terminal 500 side, for the judged result according to described judge module 240, performs test according to described test command;
Upper transmission module 260, is positioned at terminal 500 side, for uploading terminal identification information and state information to described http server 400 and testing relevant information.
Further, in order to outstanding innovative part of the present invention, not by the unit module not too close with solving technical problem relation proposed by the invention in the present embodiment, but this does not show the module that there is not other in the present embodiment.
In addition, be not difficult to find, the present embodiment is system embodiment corresponding to those in the first embodiment, and the present embodiment can be worked in coordination with the first embodiment and be implemented.The relevant technical details mentioned in first embodiment is still effective in the present embodiment, in order to reduce repetition, repeats no more here.Correspondingly, the relevant technical details mentioned in the present embodiment also can be applicable in the first embodiment.
In sum, the remote test method of a kind of terminal of the present invention and system, by means of group in applying increasingly extensive micro-letter platform at present, utilize http server, and http server and micro-letter public number are bound, assign test instruction with terminal identification information by micro-letter public number to http server, terminal is by inquiry test instruction, and judge whether mate with it, thus perform test further.The remote test method of a kind of terminal of the present invention and system, multiple terminal to be measured can perform associative operation to http server simultaneously (upload terminal identification information, state information and test relevant information, inquiry test instruction), make it can perform test simultaneously, substantially increase testing efficiency, and control terminal is by the test relevant information of micro-letter public number real time inspection and monitor terminal, and convenient monitoring is in the terminal in test, and it is also cheaper to realize cost.So the present invention effectively overcomes various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.