CN105357030A - Offline recovery method, device and system for terminal equipment on test platform - Google Patents
Offline recovery method, device and system for terminal equipment on test platform Download PDFInfo
- Publication number
- CN105357030A CN105357030A CN201510641131.2A CN201510641131A CN105357030A CN 105357030 A CN105357030 A CN 105357030A CN 201510641131 A CN201510641131 A CN 201510641131A CN 105357030 A CN105357030 A CN 105357030A
- Authority
- CN
- China
- Prior art keywords
- terminal equipment
- instruction
- virtual machine
- line
- monitor data
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0631—Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0659—Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities
- H04L41/0661—Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities by reconfiguring faulty entities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/08—Protocols specially adapted for terminal emulation, e.g. Telnet
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/131—Protocols for games, networked simulations or virtual reality
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses an offline recovery method, device and system for terminal equipment on a test platform. The method comprises the following steps: deploying a plurality of virtual machines on a PC machine, establishing connection between each virtual machine and one or more terminal equipment for completing a test task, and creating a corresponding connection snap shoot; monitoring the connection state of one or more connected terminal equipment by the virtual machine so as to obtain corresponding monitoring data; and obtaining an offline recovery instruction generated according to the monitoring data and aiming at the connected terminal equipment by the virtual machine, and recovering the connection snap shoot corresponding to the terminal equipment according to the offline recovery instruction. According to the technical scheme provided by the invention, by means of the manners of setting the virtual machine for the test platform, creating the connection snap shoot, monitoring the connection state of the tested equipment and recovering the corresponding connection snap shoot, the self-recovery capability of the test platform is enhanced for recovering connection of offline tested equipment; response is rapid in time; therefore, the operation efficiency is increased; furthermore, the automation degree in the scheme is high; and the manpower cost is saved.
Description
Technical field
The present invention relates to computer technology, be specifically related to terminal equipment off-line restoration methods, device and system on a kind of test platform.
Background technology
Along with the development of electronic information technology, the application software on the intelligent terminals such as mobile phone gets more and more, and for the ease of exploitation and the improvement of software, and judgment device is to the compatibility of software, needs to utilize test platform to test equipment application.But along with intelligent terminal kind, being on the increase of quantity, test platform scale is increasing, the number of devices of test and management is needed also to get more and more, when run into tested device fails disconnect enter off-line mode time, a large amount of manpowers is needed to go to safeguard, cost is higher, reacts also fast not prompt enough, the progress of impact test and quality.
Summary of the invention
In view of the above problems, the present invention is proposed to provide a kind of the terminal equipment off-line restoration methods, device and the system that overcome on the problems referred to above or a kind of test platform of solving the problem at least in part.
According to one aspect of the present invention, provide the off-line restoration methods of the terminal equipment on a kind of test platform, the method comprises:
At the multiple virtual machine of PC deploy, dispose each virtual machine and connect for the one or more terminal equipments completing test assignment, create corresponding connection snapshot;
The connection status of virtual machine to the one or more terminal equipments be connected is monitored, and obtains corresponding monitor data;
Virtual machine obtains the off-line for the terminal equipment self be connected produced according to monitor data and recovers instruction, recovers instruction recover connection snapshot corresponding to this terminal equipment according to this off-line.
Alternatively, the method comprises further:
In each terminal equipment deploy monitoring program;
The connection status of described monitoring program monitoring place terminal equipment, when monitoring this terminal equipment and being in off-line state, restarts the Android debugging bridge process operated on this terminal equipment.
Alternatively, virtual machine obtains and comprises according to the recovery of the off-line for the terminal equipment self the be connected instruction of monitor data generation:
Virtual machine is analyzed monitor data, determines that the terminal equipment that self is connected is in off-line state according to analysis result, and the off-line generating the terminal equipment be connected for self recovers instruction.
Alternatively, virtual machine obtains and comprises according to the recovery of the off-line for the terminal equipment self the be connected instruction of monitor data generation:
Monitor data is uploaded to central server by virtual machine;
The off-line of the terminal equipment corresponding for this virtual machine that virtual machine receiving center server produces according to monitor data recovers instruction.
Alternatively, the method comprises further:
At described PC deploy Telescript;
Described Telescript obtains monitor data from each virtual machine described PC and is sent to central server, and the off-line generated by central server recovers the virtual machine that instruction is transmitted to correspondence;
The execution result that described Telescript obtains described off-line recovery instruction corresponding from the virtual machine of correspondence feeds back to central server.
Alternatively, the method comprises further:
The task-performance instructions that described Telescript receiving center server issues also is forwarded to corresponding virtual machine;
Virtual machine performs corresponding task according to the task-performance instructions received on corresponding terminal equipment;
Wherein, described task-performance instructions comprises one or more as follows;
The application program comprising Android installation kit APK installs instruction;
The application program comprising APK download address installs instruction;
Restart the instruction of terminal equipment;
The instruction of the application program on discharging terminal equipment;
The instruction of the internal memory of cleaning terminal equipment;
Refresh the instruction of the plan of terminal equipment;
The instruction of the external memory space of cleaning terminal equipment;
The instruction of the journal file that the designated program on cleaning terminal equipment produces.
According to another aspect of the present invention, provide the off-line recovery device of the terminal equipment on a kind of test platform, this device comprises: multiple virtual machine unit;
Each virtual machine unit, is suitable for connecting with the one or more terminal equipments for completing test assignment, creates corresponding connection snapshot; The connection status of the one or more terminal equipments be connected is monitored, obtains corresponding monitor data; Obtain the off-line for the terminal equipment self be connected produced according to monitor data and recover instruction, recover instruction according to this off-line and recover connection snapshot corresponding to this terminal equipment.
Alternatively, this device comprises further: the monitoring unit being deployed in terminal equipment;
Monitoring unit, is suitable for the connection status of monitoring place terminal equipment, when monitoring this terminal equipment and being in off-line state, restarts the Android debugging bridge process operated on this terminal equipment.
Alternatively, each virtual machine unit, is suitable for analyzing monitor data, determines that the terminal equipment that self is connected is in off-line state according to analysis result, and the off-line generating the terminal equipment be connected for self recovers instruction.
Alternatively, each virtual machine unit, is suitable for monitor data to upload to central server; The off-line of the terminal equipment corresponding for this virtual machine unit that receiving center server produces according to monitor data recovers instruction.
Alternatively, this device comprises further:
Communication unit, is suitable for obtaining monitor data from each virtual machine unit and being sent to central server, and the off-line generated by central server recovers the virtual machine unit that instruction is transmitted to correspondence; The execution result obtaining described off-line recovery instruction corresponding from the virtual machine unit of correspondence feeds back to central server.
Alternatively, described communication unit, is further adapted for task-performance instructions that receiving center server issues and is forwarded to corresponding virtual machine unit;
Each virtual machine unit, the task-performance instructions be suitable for according to receiving performs corresponding task on corresponding terminal equipment;
Wherein, described task-performance instructions comprises one or more as follows;
The application program comprising Android installation kit APK installs instruction;
The application program comprising APK download address installs instruction;
Restart the instruction of terminal equipment;
The instruction of the application program on discharging terminal equipment;
The instruction of the internal memory of cleaning terminal equipment;
Refresh the instruction of the plan of terminal equipment;
The instruction of the external memory space of cleaning terminal equipment;
The instruction of the journal file that the designated program on cleaning terminal equipment produces.
According to another aspect of the present invention, provide the off-line recovery system of the terminal equipment on a kind of test platform, wherein, this system comprises: the off-line recovery device of the terminal equipment on central server and one or more test platform as described in above-mentioned any one;
Described device, is suitable for monitor data to be sent to central server;
Described central server, is suitable for showing monitor data and analyzing, and the off-line generated for terminal equipment recovers instruction and is handed down to described device;
Described device, is further adapted for and recovers according to the off-line received the connection status that instruction recovers counterpart terminal equipment.
Alternatively, described central server, be further adapted for receive and recover execution result corresponding to instruction with the off-line for terminal equipment issued, the warning channel when execution result represents that off-line recovers unsuccessfully by presetting sends warning message.
Alternatively, described central server, is further adapted for and issues task-performance instructions to described device;
Wherein, described task-performance instructions comprises one or more as follows;
The application program comprising Android installation kit APK installs instruction;
The application program comprising APK download address installs instruction;
Restart the instruction of terminal equipment;
The instruction of the application program on discharging terminal equipment;
The instruction of the internal memory of cleaning terminal equipment;
Refresh the instruction of the plan of terminal equipment;
The instruction of the external memory space of cleaning terminal equipment;
The instruction of the journal file that the designated program on cleaning terminal equipment produces.
Alternatively, described central server, is further adapted for and receives the task action result corresponding with the task-performance instructions issued, and sends warning message when task action result represents tasks carrying failure by the warning channel preset.
Alternatively, this system comprises further:
Deployment machine, is suitable for device described in Telnet, disposes a multiple virtual machine unit on such devices and starts, and dispose default Telescript on such devices and start.
From the above, technical scheme provided by the invention is passed through at the multiple virtual machine of PC deploy, create virtual machine and the connection between the terminal equipment for completing test assignment and corresponding connection snapshot, when monitoring terminal equipment and occurring off-line situation, the virtual off-line according to producing recovers instruction and recovers connection snapshot corresponding to this terminal equipment, can realize recovering the connection status of the offline terminal equipment on test platform; Wherein, the mode recovering this connection snapshot can reach and firmly plug close recovery effects, reverts to power high, ensure that the reliability of test platform to the off-line of terminal equipment; Virtual machine monitoring terminal equipment, and the off-line producing the terminal equipment be connected for self according to monitor data recovers instruction, the connection snapshot that instruction recovers correspondence is recovered according to this off-line, recover to connect, eliminate the work of staff to on-site supervision and process, improve the automaticity that test platform is safeguarded, save manpower.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of specification, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 shows the off-line restoration methods flow chart of the terminal equipment on a kind of according to an embodiment of the invention test platform;
Fig. 2 shows the schematic diagram of the off-line recovery device of the terminal equipment on a kind of according to an embodiment of the invention test platform;
Fig. 3 shows the schematic diagram of the off-line recovery device of the terminal equipment on a kind of in accordance with another embodiment of the present invention test platform;
Fig. 4 shows the schematic diagram of the off-line recovery system of the terminal equipment on a kind of according to an embodiment of the invention test platform;
Fig. 5 shows the schematic diagram of the off-line recovery system of the terminal equipment on a kind of in accordance with another embodiment of the present invention test platform.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
Fig. 1 shows the off-line restoration methods flow chart of the terminal equipment on a kind of according to an embodiment of the invention test platform, and as shown in Figure 1, the method comprises:
Step S110, at the multiple virtual machine of PC deploy, disposes each virtual machine and connects for the one or more terminal equipments completing test assignment, creates corresponding connection snapshot.
Step S120, the connection status of virtual machine to the one or more terminal equipments be connected is monitored, and obtains corresponding monitor data.
Step S130, virtual machine obtains the off-line for the terminal equipment self be connected produced according to monitor data and recovers instruction, recovers instruction recover connection snapshot corresponding to this terminal equipment according to this off-line.
Visible, method shown in Fig. 1 is passed through at the multiple virtual machine of PC deploy, create virtual machine and the connection between the terminal equipment for completing test assignment and corresponding connection snapshot, when monitoring terminal equipment and occurring off-line situation, the virtual off-line according to producing recovers instruction and recovers connection snapshot corresponding to this terminal equipment, can realize recovering the connection status of the offline terminal equipment on test platform; Wherein, the mode recovering this connection snapshot can reach and firmly plug close recovery effects, reverts to power high, ensure that the reliability of test platform to the off-line of terminal equipment; Virtual machine monitoring terminal equipment, and the off-line producing the terminal equipment be connected for self according to monitor data recovers instruction, the connection snapshot that instruction recovers correspondence is recovered according to this off-line, recover to connect, eliminate the work of staff to on-site supervision and process, improve the automaticity that test platform is safeguarded, save manpower.
Comprise at the multiple virtual machine of PC deploy: Telnet PC, start at the one or more virtual machine of PC deploy.
In one embodiment of the invention, the method shown in Fig. 1 comprises further:
Step S140, in each terminal equipment deploy monitoring program.
The connection status of step S150 monitoring program monitoring place terminal equipment, when monitoring this terminal equipment and being in off-line state, restarts the Android debugging bridge process operated on this terminal equipment.
Visible, the present embodiment is by disposing monitoring program APP on the terminal device, the connection state of this terminal equipment is monitored, when monitoring this terminal equipment and being in off-line state, restart the Android debugging bridge process operated on this terminal equipment, the autonomous recovery of terminal equipment off-line state can be realized, timely and convenient, do not need intervention that is artificial or other equipment.
In one embodiment of the invention, in method as shown in Figure 1, step S130, virtual machine obtains the recovery of the off-line for the terminal equipment self the be connected instruction produced according to monitor data and comprises: virtual machine is analyzed monitor data, determine that the terminal equipment that self is connected is in off-line state according to analysis result, the off-line generating the terminal equipment be connected for self recovers instruction; Or monitor data is uploaded to central server by virtual machine, the off-line of the terminal equipment corresponding for this virtual machine that virtual machine receiving center server produces according to monitor data recovers instruction.
Wherein, upload in the scheme of central server at above-mentioned virtual machine by monitor data, the communication between virtual machine and central server is realized by a Telescript, and particularly, the method shown in Fig. 1 comprises further:
Step S160, at PC deploy Telescript.
In this step, comprise at described PC deploy Telescript: Telnet PC, PC deploy preset Telescript and start; Particularly, this shell script is that Daemon program is guarded on the backstage of PC, can be run by Python script.
Step S170, Telescript obtains monitor data from each virtual machine described PC and is sent to central server, and the off-line generated by central server recovers the virtual machine that instruction is transmitted to correspondence.
Step S180, the execution result that Telescript obtains off-line recovery instruction corresponding from the virtual machine of correspondence feeds back to central server.
On the basis of the above, the method shown in Fig. 1 comprises further:
Step S190, the task-performance instructions that Telescript receiving center server issues also is forwarded to corresponding virtual machine.
Step S200, virtual machine performs corresponding task according to the task-performance instructions received on corresponding terminal equipment.
Wherein, described task-performance instructions comprises one or more as follows: the application program comprising Android installation kit APK installs instruction; The application program comprising APK download address installs instruction; Restart the instruction of terminal equipment; The instruction of the application program on discharging terminal equipment; The instruction of the internal memory of cleaning terminal equipment; Refresh the instruction of the plan of terminal equipment; The instruction of the external memory space of cleaning terminal equipment; The instruction of the journal file that the designated program on cleaning terminal equipment produces.
Visible, when off-line state appears in terminal equipment, the monitoring program that one side passage is deployed in terminal equipment restarts Android debugging bridge process, independently recovers connection status, on the other hand, monitor data is obtained by the virtual machine be connected with terminal equipment, the off-line of the terminal equipment be connected for self by virtual machine analysis monitoring data genaration recovers instruction, or utilize Telescript that monitor data is sent to central server, by centre server analyses monitor data, the off-line generated for terminal equipment corresponding to this virtual machine recovers instruction, instruction is recovered according to the off-line to terminal equipment produced, call corresponding virtual machine order, recover the connection snapshot of virtual machine and counterpart terminal equipment, recover the connection status of terminal equipment, reaction in time fast, do not need manual intervention, improve the automaticity to the terminal equipment off-line recovery process on test platform.
In addition, this programme utilizes Telescript to obtain off-line from the virtual machine of correspondence further to recover execution result corresponding to instruction and feed back to central server and carry out feedback display, when execution result Display Realization during the recovery of counterpart terminal equipment off-line state, can not be reported to the police by pre-set programs, otherwise, reported to the police by pre-set programs, inform the information such as the position of this offline terminal equipment of platform management personnel, IP address and model, be convenient to administrative staff and carry out manual reversion process, improve the reliability of platform.
Fig. 2 shows the schematic diagram of the off-line recovery device of the terminal equipment on a kind of according to an embodiment of the invention test platform, and as shown in Figure 2, the off-line recovery device 200 of the terminal equipment on this test platform comprises: multiple virtual machine unit 210.
Each virtual machine unit 210, is suitable for connecting with the one or more terminal equipments for completing test assignment, creates corresponding connection snapshot; The connection status of the one or more terminal equipments be connected is monitored, obtains corresponding monitor data; Obtain the off-line for the terminal equipment self be connected produced according to monitor data and recover instruction, recover instruction according to this off-line and recover connection snapshot corresponding to this terminal equipment.
Particularly, each virtual machine unit 210, is suitable for analyzing monitor data, determines that the terminal equipment that self is connected is in off-line state according to analysis result, and the off-line generating the terminal equipment be connected for self recovers instruction; Or each virtual machine unit 210, is suitable for monitor data to upload to central server; The off-line of the terminal equipment for this virtual machine unit 210 correspondence that receiving center server produces according to monitor data recovers instruction.
Fig. 3 shows the schematic diagram of the off-line recovery device of the terminal equipment on a kind of in accordance with another embodiment of the present invention test platform, the off-line recovery device 300 of the terminal equipment on this test platform comprises: multiple virtual machine unit 310, be deployed in the monitoring unit 320 of terminal equipment, and communication unit 330.
Virtual machine unit 310 is identical with virtual machine unit 210 function shown in Fig. 2, does not repeat them here.
Monitoring unit 320, is suitable for the connection status of monitoring place terminal equipment, when monitoring this terminal equipment and being in off-line state, restarts the Android debugging bridge process operated on this terminal equipment.
Communication unit 330, is suitable for obtaining monitor data from each virtual machine unit 310 and being sent to central server, and the off-line generated by central server recovers the virtual machine unit 310 that instruction is transmitted to correspondence; The execution result obtaining described off-line recovery instruction corresponding from the virtual machine unit 310 of correspondence feeds back to central server.
On this basis, communication unit 330, is further adapted for task-performance instructions that receiving center server issues and is forwarded to corresponding virtual machine unit 310.
Each virtual machine unit 310, the task-performance instructions be suitable for according to receiving performs corresponding task on corresponding terminal equipment.
Wherein, described task-performance instructions comprises one or more as follows: the application program comprising Android installation kit APK installs instruction; The application program comprising APK download address installs instruction; Restart the instruction of terminal equipment; The instruction of the application program on discharging terminal equipment; The instruction of the internal memory of cleaning terminal equipment; Refresh the instruction of the plan of terminal equipment; The instruction of the external memory space of cleaning terminal equipment; The instruction etc. of the journal file that the designated program on cleaning terminal equipment produces.
It should be noted that, each embodiment of Fig. 2 to Fig. 3 shown device is corresponding identical with each embodiment of method shown in Fig. 1 above, describes in detail above, does not repeat them here.
Fig. 4 shows the schematic diagram of the off-line recovery system of the terminal equipment on a kind of according to an embodiment of the invention test platform, as shown in Figure 4, the off-line recovery system 400 of the terminal equipment on this test platform comprises: the off-line recovery device 410 of the terminal equipment on central server 420 and one or more test platform, the off-line recovery device 410 of the terminal equipment on this test platform is identical with the off-line recovery device 200/300 of the terminal equipment on the test platform as above described in any one, does not repeat them here.
The off-line recovery device 410 of the terminal equipment on test platform, is suitable for monitor data to be sent to central server.
Central server 420, is suitable for showing monitor data and analyzing, and the off-line generated for terminal equipment recovers instruction and is handed down to the off-line recovery device 410 of the terminal equipment on test platform.
The off-line recovery device 410 of the terminal equipment on test platform, is further adapted for and recovers according to the off-line received the connection status that instruction recovers counterpart terminal equipment.
In one embodiment of the invention, central server 420, be further adapted for receive and recover execution result corresponding to instruction with the off-line for terminal equipment issued, warning channel when execution result represents that off-line recovers unsuccessfully by presetting sends warning message, the position of the terminal equipment of tasks carrying failure, IP address and model are described, fast and easy searches out this terminal equipment and processes.
In one embodiment of the invention, described central server 420, the off-line recovery device 410 be further adapted for the terminal equipment on test platform issues task-performance instructions.
Wherein, described task-performance instructions comprises one or more as follows: the application program comprising Android installation kit APK installs instruction; The application program comprising APK download address installs instruction; Restart the instruction of terminal equipment; The instruction of the application program on discharging terminal equipment; The instruction of the internal memory of cleaning terminal equipment; Refresh the instruction of the plan of terminal equipment; The instruction of the external memory space of cleaning terminal equipment; The instruction of the journal file that the designated program on cleaning terminal equipment produces.
On this basis, described central server 420, is further adapted for and receives the task action result corresponding with the task-performance instructions issued, and sends warning message when task action result represents tasks carrying failure by the warning channel preset.
Fig. 5 shows the schematic diagram of the off-line recovery system of the terminal equipment on a kind of in accordance with another embodiment of the present invention test platform, as shown in Figure 5, the off-line recovery system 500 of the terminal equipment on this test platform comprises: the off-line recovery device 510 of the terminal equipment on central server 520, one or more test platform and deployment machine 530.
The off-line recovery device 510 of the terminal equipment on test platform is identical with the off-line recovery device 200/300 of the terminal equipment on the test platform as above described in any one, does not repeat them here.
Deployment machine 530, be suitable for device 510 described in Telnet, the multiple virtual machine unit of off-line recovery device 510 deploy one of the terminal equipment on test platform also starts, and the Telescript preset of off-line recovery device 510 deploy of terminal equipment on test platform starting.
In sum, the present invention passes through at the multiple virtual machine of PC deploy, create virtual machine and the connection between the terminal equipment for completing test assignment and corresponding connection snapshot, when monitoring terminal equipment and occurring off-line situation, the virtual off-line according to producing recovers instruction and recovers connection snapshot corresponding to this terminal equipment, can realize recovering the connection status of the offline terminal equipment on test platform; And, dispose monitoring program on the terminal device, when monitoring this terminal equipment and being in off-line state, restart the Android debugging bridge process operated on this terminal equipment, recover the connection status of terminal equipment.The program has following beneficial effect: the connection snapshot 1, creating virtual machine and terminal equipment, the mode recovering this connection snapshot is equivalent to USB device again to do once connect, can reach and firmly plug close recovery effects, power being reverted to the off-line of terminal equipment high; 2, will the mode recovering to connect snapshot be utilized to combine with the mode of restarting Android in tested terminal equipment deploy monitoring program and debug bridge process, and execution result feedback element and alert program are set, ensure that test platform recovers promptness and the reliability of terminal equipment connection; 3, recover the connection status of tested terminal equipment by restarting Android debugging bridge and the mode recovering to be connected snapshot, automaticity is high, does not need human intervention, eliminates the work of staff to on-site supervision and process, saves manpower.
Technical scheme provided by the invention utilizes the multiple monitor nodes being distributed in diverse geographic location by simulation common netizen's behavior access appointed website system, obtaining the results of performance analysis of appointed website system again by analyzing the access result data returned, achieving the scheme of monitoring website systematic function.This programme reflects common netizen by the access situation of many monitor nodes to appointed website system and experiences for the access of this web station system, the abnormal conditions of each monitor node when accessing appointed website system can be found in real time, and then user (manager of web station system) can be helped timely and effectively to analyze the performance issue faced when this web station system node different in the whole nation conducts interviews, the access that assisting users improves this web station system is experienced.
It should be noted that:
Intrinsic not relevant to any certain computer, virtual bench or miscellaneous equipment with display at this algorithm provided.Various fexible unit also can with use based on together with this teaching.According to description above, the structure constructed required by this kind of device is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In specification provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary compound mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the some or all parts in the off-line recovery device of the terminal equipment on a kind of test platform of the embodiment of the present invention and system and system.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computer of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.
The invention discloses the off-line restoration methods of the terminal equipment on A1, a kind of test platform, wherein, the method comprises:
At the multiple virtual machine of PC deploy, dispose each virtual machine and connect for the one or more terminal equipments completing test assignment, create corresponding connection snapshot;
The connection status of virtual machine to the one or more terminal equipments be connected is monitored, and obtains corresponding monitor data;
Virtual machine obtains the off-line for the terminal equipment self be connected produced according to monitor data and recovers instruction, recovers instruction recover connection snapshot corresponding to this terminal equipment according to this off-line.
A2, method as described in A1, wherein, the method comprises further:
In each terminal equipment deploy monitoring program;
The connection status of described monitoring program monitoring place terminal equipment, when monitoring this terminal equipment and being in off-line state, restarts the Android debugging bridge process operated on this terminal equipment.
A3, method as described in A1 or A2, wherein, virtual machine obtains the off-line for the terminal equipment self be connected produced according to monitor data and recovers instruction and comprise:
Virtual machine is analyzed monitor data, determines that the terminal equipment that self is connected is in off-line state according to analysis result, and the off-line generating the terminal equipment be connected for self recovers instruction.
A4, method as described in A1 or A2, wherein, virtual machine obtains the off-line for the terminal equipment self be connected produced according to monitor data and recovers instruction and comprise:
Monitor data is uploaded to central server by virtual machine;
The off-line of the terminal equipment corresponding for this virtual machine that virtual machine receiving center server produces according to monitor data recovers instruction.
A5, method as described in A4, wherein, the method comprises further:
At described PC deploy Telescript;
Described Telescript obtains monitor data from each virtual machine described PC and is sent to central server, and the off-line generated by central server recovers the virtual machine that instruction is transmitted to correspondence;
The execution result that described Telescript obtains described off-line recovery instruction corresponding from the virtual machine of correspondence feeds back to central server.
A6, method as described in A5, wherein, the method comprises further:
The task-performance instructions that described Telescript receiving center server issues also is forwarded to corresponding virtual machine;
Virtual machine performs corresponding task according to the task-performance instructions received on corresponding terminal equipment;
Wherein, described task-performance instructions comprises one or more as follows;
The application program comprising Android installation kit APK installs instruction;
The application program comprising APK download address installs instruction;
Restart the instruction of terminal equipment;
The instruction of the application program on discharging terminal equipment;
The instruction of the internal memory of cleaning terminal equipment;
Refresh the instruction of the plan of terminal equipment;
The instruction of the external memory space of cleaning terminal equipment;
The instruction of the journal file that the designated program on cleaning terminal equipment produces.
The invention also discloses the off-line recovery device of the terminal equipment on B7, a kind of test platform, wherein, this device comprises: multiple virtual machine unit;
Each virtual machine unit, is suitable for connecting with the one or more terminal equipments for completing test assignment, creates corresponding connection snapshot; The connection status of the one or more terminal equipments be connected is monitored, obtains corresponding monitor data; Obtain the off-line for the terminal equipment self be connected produced according to monitor data and recover instruction, recover instruction according to this off-line and recover connection snapshot corresponding to this terminal equipment.
B8, device as described in B7, wherein, this device comprises further: the monitoring unit being deployed in terminal equipment;
Monitoring unit, is suitable for the connection status of monitoring place terminal equipment, when monitoring this terminal equipment and being in off-line state, restarts the Android debugging bridge process operated on this terminal equipment.
B9, device as described in B7 or B8, wherein,
Each virtual machine unit, is suitable for analyzing monitor data, determines that the terminal equipment that self is connected is in off-line state according to analysis result, and the off-line generating the terminal equipment be connected for self recovers instruction.
B10, device as described in B7 or B8, wherein,
Each virtual machine unit, is suitable for monitor data to upload to central server; The off-line of the terminal equipment corresponding for this virtual machine unit that receiving center server produces according to monitor data recovers instruction.
B11, device as described in B10, wherein, this device comprises further:
Communication unit, is suitable for obtaining monitor data from each virtual machine unit and being sent to central server, and the off-line generated by central server recovers the virtual machine unit that instruction is transmitted to correspondence; The execution result obtaining described off-line recovery instruction corresponding from the virtual machine unit of correspondence feeds back to central server.
B12, device as described in B11, wherein,
Described communication unit, is further adapted for task-performance instructions that receiving center server issues and is forwarded to corresponding virtual machine unit;
Each virtual machine unit, the task-performance instructions be suitable for according to receiving performs corresponding task on corresponding terminal equipment;
Wherein, described task-performance instructions comprises one or more as follows;
The application program comprising Android installation kit APK installs instruction;
The application program comprising APK download address installs instruction;
Restart the instruction of terminal equipment;
The instruction of the application program on discharging terminal equipment;
The instruction of the internal memory of cleaning terminal equipment;
Refresh the instruction of the plan of terminal equipment;
The instruction of the external memory space of cleaning terminal equipment;
The instruction of the journal file that the designated program on cleaning terminal equipment produces.
The invention also discloses the off-line recovery system of the terminal equipment on C13, a kind of test platform, wherein, this system comprises: the off-line recovery device of the terminal equipment on central server and one or more test platform according to any one of B7-B12;
Described device, is suitable for monitor data to be sent to central server;
Described central server, is suitable for showing monitor data and analyzing, and the off-line generated for terminal equipment recovers instruction and is handed down to described device;
Described device, is further adapted for and recovers according to the off-line received the connection status that instruction recovers counterpart terminal equipment.
C14, system as described in C13, wherein,
Described central server, be further adapted for receive and recover execution result corresponding to instruction with the off-line for terminal equipment issued, the warning channel when execution result represents that off-line recovers unsuccessfully by presetting sends warning message.
C15, system as described in C13, wherein, described central server, is further adapted for and issues task-performance instructions to described device;
Wherein, described task-performance instructions comprises one or more as follows;
The application program comprising Android installation kit APK installs instruction;
The application program comprising APK download address installs instruction;
Restart the instruction of terminal equipment;
The instruction of the application program on discharging terminal equipment;
The instruction of the internal memory of cleaning terminal equipment;
Refresh the instruction of the plan of terminal equipment;
The instruction of the external memory space of cleaning terminal equipment;
The instruction of the journal file that the designated program on cleaning terminal equipment produces.
C16, system as described in C15, wherein, described central server, is further adapted for and receives the task action result corresponding with the task-performance instructions issued, and sends warning message when task action result represents tasks carrying failure by default warning channel.
C17, system as described in C13, wherein, this system comprises further:
Deployment machine, is suitable for device described in Telnet, disposes one or more virtual machine unit on such devices and starts, and dispose default Telescript on such devices and start.
Claims (10)
1. an off-line restoration methods for the terminal equipment on test platform, wherein, the method comprises:
At the multiple virtual machine of PC deploy, dispose each virtual machine and connect for the one or more terminal equipments completing test assignment, create corresponding connection snapshot;
The connection status of virtual machine to the one or more terminal equipments be connected is monitored, and obtains corresponding monitor data;
Virtual machine obtains the off-line for the terminal equipment self be connected produced according to monitor data and recovers instruction, recovers instruction recover connection snapshot corresponding to this terminal equipment according to this off-line.
2. the method for claim 1, wherein the method comprises further:
In each terminal equipment deploy monitoring program;
The connection status of described monitoring program monitoring place terminal equipment, when monitoring this terminal equipment and being in off-line state, restarts the Android debugging bridge process operated on this terminal equipment.
3. method as claimed in claim 1 or 2, wherein, virtual machine obtains the recovery of the off-line for the terminal equipment self the be connected instruction produced according to monitor data and comprises:
Virtual machine is analyzed monitor data, determines that the terminal equipment that self is connected is in off-line state according to analysis result, and the off-line generating the terminal equipment be connected for self recovers instruction.
4. method as claimed in claim 1 or 2, wherein, virtual machine obtains the recovery of the off-line for the terminal equipment self the be connected instruction produced according to monitor data and comprises:
Monitor data is uploaded to central server by virtual machine;
The off-line of the terminal equipment corresponding for this virtual machine that virtual machine receiving center server produces according to monitor data recovers instruction.
5. method as claimed in claim 4, wherein, the method comprises further:
At described PC deploy Telescript;
Described Telescript obtains monitor data from each virtual machine described PC and is sent to central server, and the off-line generated by central server recovers the virtual machine that instruction is transmitted to correspondence;
The execution result that described Telescript obtains described off-line recovery instruction corresponding from the virtual machine of correspondence feeds back to central server.
6. method as claimed in claim 5, wherein, the method comprises further:
The task-performance instructions that described Telescript receiving center server issues also is forwarded to corresponding virtual machine;
Virtual machine performs corresponding task according to the task-performance instructions received on corresponding terminal equipment;
Wherein, described task-performance instructions comprises one or more as follows;
The application program comprising Android installation kit APK installs instruction;
The application program comprising APK download address installs instruction;
Restart the instruction of terminal equipment;
The instruction of the application program on discharging terminal equipment;
The instruction of the internal memory of cleaning terminal equipment;
Refresh the instruction of the plan of terminal equipment;
The instruction of the external memory space of cleaning terminal equipment;
The instruction of the journal file that the designated program on cleaning terminal equipment produces.
7. an off-line recovery device for the terminal equipment on test platform, wherein, this device comprises: multiple virtual machine unit;
Each virtual machine unit, is suitable for connecting with the one or more terminal equipments for completing test assignment, creates corresponding connection snapshot; The connection status of the one or more terminal equipments be connected is monitored, obtains corresponding monitor data; Obtain the off-line for the terminal equipment self be connected produced according to monitor data and recover instruction, recover instruction according to this off-line and recover connection snapshot corresponding to this terminal equipment.
8. device as claimed in claim 7, wherein, this device comprises further: the monitoring unit being deployed in terminal equipment;
Monitoring unit, is suitable for the connection status of monitoring place terminal equipment, when monitoring this terminal equipment and being in off-line state, restarts the Android debugging bridge process operated on this terminal equipment.
9. device as claimed in claim 7 or 8, wherein,
Each virtual machine unit, is suitable for analyzing monitor data, determines that the terminal equipment that self is connected is in off-line state according to analysis result, and the off-line generating the terminal equipment be connected for self recovers instruction.
10. an off-line recovery system for the terminal equipment on test platform, wherein, this system comprises: the off-line recovery device of the terminal equipment on central server and one or more test platform as claimed in any one of claims 7-9;
Described device, is suitable for monitor data to be sent to central server;
Described central server, is suitable for showing monitor data and analyzing, and the off-line generated for terminal equipment recovers instruction and is handed down to described device;
Described device, is further adapted for and recovers according to the off-line received the connection status that instruction recovers counterpart terminal equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510641131.2A CN105357030B (en) | 2015-09-30 | 2015-09-30 | Offline restoration methods, the device and system of a kind of terminal device on test platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510641131.2A CN105357030B (en) | 2015-09-30 | 2015-09-30 | Offline restoration methods, the device and system of a kind of terminal device on test platform |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105357030A true CN105357030A (en) | 2016-02-24 |
CN105357030B CN105357030B (en) | 2019-02-22 |
Family
ID=55332907
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510641131.2A Active CN105357030B (en) | 2015-09-30 | 2015-09-30 | Offline restoration methods, the device and system of a kind of terminal device on test platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105357030B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107272031A (en) * | 2017-06-02 | 2017-10-20 | 广东侍卫长卫星应用安全股份公司 | Remote monitoring system and its line off instruction processing method based on BDS/GPS |
CN108092839A (en) * | 2016-11-23 | 2018-05-29 | 杭州海康威视数字技术股份有限公司 | A kind of method and apparatus for establishing network connection |
CN111382048A (en) * | 2018-12-28 | 2020-07-07 | 北京奇虎科技有限公司 | Method and device for managing mobile equipment on real machine testing platform |
CN113918397A (en) * | 2021-10-28 | 2022-01-11 | 浪潮(山东)计算机科技有限公司 | Pressure testing method, device, equipment and storage medium |
CN113971059A (en) * | 2020-07-22 | 2022-01-25 | 北京奇虎科技有限公司 | Method, device, equipment and storage medium for recovering equipment connection state |
CN114968456A (en) * | 2022-05-07 | 2022-08-30 | 麒麟合盛网络技术股份有限公司 | Method and device for controlling terminal |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101754187A (en) * | 2009-12-30 | 2010-06-23 | 中兴通讯股份有限公司 | Management method for connection setting and terminal thereof |
CN101986280A (en) * | 2010-11-29 | 2011-03-16 | 浙江大学 | Automatic testing platform for virtual computing system |
CN101996107A (en) * | 2009-08-31 | 2011-03-30 | 中国工商银行股份有限公司 | Operation interruption automatic recovering system and method |
US20130091390A1 (en) * | 2011-03-15 | 2013-04-11 | Hyundai Motor Company | Communication test apparatus and method |
CN103049383A (en) * | 2012-12-31 | 2013-04-17 | 博彦科技(上海)有限公司 | Development and testing cloud system |
-
2015
- 2015-09-30 CN CN201510641131.2A patent/CN105357030B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101996107A (en) * | 2009-08-31 | 2011-03-30 | 中国工商银行股份有限公司 | Operation interruption automatic recovering system and method |
CN101754187A (en) * | 2009-12-30 | 2010-06-23 | 中兴通讯股份有限公司 | Management method for connection setting and terminal thereof |
CN101986280A (en) * | 2010-11-29 | 2011-03-16 | 浙江大学 | Automatic testing platform for virtual computing system |
US20130091390A1 (en) * | 2011-03-15 | 2013-04-11 | Hyundai Motor Company | Communication test apparatus and method |
CN103049383A (en) * | 2012-12-31 | 2013-04-17 | 博彦科技(上海)有限公司 | Development and testing cloud system |
Non-Patent Citations (1)
Title |
---|
孙戈等: "《Android微博应用开发实践》", 30 April 2014 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108092839A (en) * | 2016-11-23 | 2018-05-29 | 杭州海康威视数字技术股份有限公司 | A kind of method and apparatus for establishing network connection |
CN107272031A (en) * | 2017-06-02 | 2017-10-20 | 广东侍卫长卫星应用安全股份公司 | Remote monitoring system and its line off instruction processing method based on BDS/GPS |
CN111382048A (en) * | 2018-12-28 | 2020-07-07 | 北京奇虎科技有限公司 | Method and device for managing mobile equipment on real machine testing platform |
CN111382048B (en) * | 2018-12-28 | 2023-10-20 | 三六零科技集团有限公司 | Management method and device for mobile equipment on true machine test platform |
CN113971059A (en) * | 2020-07-22 | 2022-01-25 | 北京奇虎科技有限公司 | Method, device, equipment and storage medium for recovering equipment connection state |
CN113918397A (en) * | 2021-10-28 | 2022-01-11 | 浪潮(山东)计算机科技有限公司 | Pressure testing method, device, equipment and storage medium |
CN114968456A (en) * | 2022-05-07 | 2022-08-30 | 麒麟合盛网络技术股份有限公司 | Method and device for controlling terminal |
CN114968456B (en) * | 2022-05-07 | 2024-03-08 | 麒麟合盛网络技术股份有限公司 | Method and device for controlling terminal |
Also Published As
Publication number | Publication date |
---|---|
CN105357030B (en) | 2019-02-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105357030A (en) | Offline recovery method, device and system for terminal equipment on test platform | |
CN105243016A (en) | Method, apparatus and system for monitoring terminal device on test platform | |
CN103051496B (en) | The monitoring method of a kind of monitoring point server and device | |
CN104679659A (en) | Testing method and testing device of application program as well as electronic equipment | |
CN106776320A (en) | Android intelligent terminal automatization test system and method | |
CN110825985B (en) | Data acquisition system, method, device, control equipment and proxy equipment | |
CN113110864B (en) | Application program updating method and device and storage medium | |
CN107678949B (en) | Automatic testing method for realizing different communication modes of embedded equipment | |
WO2019173100A1 (en) | Automated application testing system | |
CN104539487A (en) | Method for testing system based on cloud platform and evaluating reliability | |
CN105868109B (en) | A kind of improved mobile terminal application testing method and system | |
CN105512015A (en) | Android target application crash calculation method and device | |
CN110196804B (en) | Service testing method and device, storage medium and electronic device | |
CN102571498A (en) | Fault injection control method and device | |
CN104125504A (en) | Deployment method, device and system based on continuous integration | |
CN105468393A (en) | Module version upgrading method and terminal apparatus | |
CN111026581A (en) | Application program repairing method, device, system, storage medium and electronic device | |
CN105095046A (en) | Method and device for task monitoring | |
CN109543417A (en) | A kind of bug excavation method and device based on Qemu platform | |
CN104268041A (en) | Automatic closed loop test method for frequent startup and shutdown of vehicle-mounted display | |
CN110413437B (en) | Network namespace exception handling method, device and equipment and readable storage medium | |
CN110932886A (en) | Method and system for automatically testing network performance of server and SOL testing device | |
CN115185489B (en) | Time sequence data algorithm configuration system and method | |
CN115509545A (en) | IOS application packaging construction method and device | |
CN115220974A (en) | Dynamic checking system, method, device and medium for network information of operating system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220706 Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co.,Ltd. |
|
TR01 | Transfer of patent right |