CN105760307A - Testing method, device and system of intelligent terminal - Google Patents

Testing method, device and system of intelligent terminal Download PDF

Info

Publication number
CN105760307A
CN105760307A CN201610144601.9A CN201610144601A CN105760307A CN 105760307 A CN105760307 A CN 105760307A CN 201610144601 A CN201610144601 A CN 201610144601A CN 105760307 A CN105760307 A CN 105760307A
Authority
CN
China
Prior art keywords
virtual machine
test
intelligent terminal
testing
management system
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
Application number
CN201610144601.9A
Other languages
Chinese (zh)
Other versions
CN105760307B (en
Inventor
李振博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201610144601.9A priority Critical patent/CN105760307B/en
Publication of CN105760307A publication Critical patent/CN105760307A/en
Application granted granted Critical
Publication of CN105760307B publication Critical patent/CN105760307B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45591Monitoring or debugging support

Abstract

The embodiment of the invention discloses a testing method, device and system of an intelligent terminal. The testing method comprises the following steps: setting a virtual machine management system and at least one virtual machine in an entity machine; acquiring a testing task by the virtual machine management system, and transmitting the testing task to the virtual machine corresponding to the testing task; and receiving and executing the testing task by the virtual machine and acquiring a testing log. Therefore, in a testing process of the intelligent terminal, the virtual machine in the entity machine can be used for replacing an intelligent terminal to be tested for testing, and a phenomenon that testing current is not stable due to a plug wire when the intelligent terminal to be tested is connected with the entity machine for testing through the plug wire is avoided, so that the stability of a testing environment is guaranteed, and the testing accuracy is further improved.

Description

The method of testing of intelligent terminal, Apparatus and system
Technical field
The present invention relates to Internet technology, the method for testing of especially a kind of intelligent terminal, Apparatus and system.
Background technology
Along with the development of intelligent terminal's technology, smart terminal product is more and more abundanter, and function becomes increasingly complex, and the frequency of release is increasingly faster, causes that the R&D cycle shortens.In intelligent terminal's R&D process, it is necessary to intelligent terminal is carried out the test of each side, to ensure quality and the performance of intelligent terminal.
There is three digest journals android (Android), ios and windows in existing intelligent terminal market.Wherein, the intelligent terminal of Android system occupies the bigger market share in the market, and owing to its operating system is increased income, kind and the quantity of applying (application, referred to as APP) in Android system are various.For before being applied in and formally come into operation of the intelligent terminal such as mobile phone, panel computer exploitation, it is necessary to the performance of application is tested, and after otherwise application is issued, collapse accident is too many, and system is unstable, affects Consumer's Experience.
In the test process of intelligent terminal, intelligent terminal to be tested is connected by the physical machine of plug wire (such as USB connecting line) with test, in physical machine, storage has test assignment, realizes issuing and the acquisition of test result of test assignment by plug wire.But, in plug wire process, intelligent terminal and the electric current in physical machine are unstable, easily the test of intelligent terminal are interfered, affect the accuracy of test result.
It addition, in the test process of intelligent terminal, if crashing, then need manually to carry out restarting of intelligent terminal, the test of intelligent terminal needs to be equipped with manpower and safeguards at any time, and waste of manpower, testing cost is high, efficiency is low.
Therefore, how to improve the accuracy of intelligent terminal's test, and improve testing efficiency, reduce testing cost and become one of current problem demanding prompt solution.
Summary of the invention
One to be solved of the embodiment of the present invention technical problem is that: provides the method for testing of a kind of intelligent terminal, Apparatus and system, to improve the accuracy of intelligent terminal's test, and improves testing efficiency, reduces testing cost.
An aspect according to embodiments of the present invention, it is provided that the method for testing of a kind of intelligent terminal, including:
Virtual machine management system and at least one virtual machine are set in physical machine;
Described virtual machine management system obtains test assignment, and sends described test assignment to the virtual machine corresponding with described test assignment;
Described virtual machine receives and performs described test assignment, obtains test log.
Based in another embodiment of said method, after described virtual machine management system obtains test assignment, when described test assignment being sent to corresponding with described test assignment virtual machine, including:
Described test assignment is carried out abstract by described virtual machine management system, to obtain test frame;
Acquired test frame is carried out deformation process;
Test frame after deformation process is sent to the virtual machine corresponding with described test assignment.
Based in another embodiment of said method, after obtaining test log, the method for testing of described intelligent terminal also includes: send described test log to described virtual machine management system.
Based in another embodiment of said method, described virtual machine management system sends test assignment by Telescript to virtual machine each described;Described test log is sent to described virtual machine management system by described virtual machine by Telescript.
Based in another embodiment of said method, after by described test log transmission to described virtual machine management system, the method for testing of described intelligent terminal also includes: described test log is analyzed, and obtains test result.
Based in another embodiment of said method, described test result includes: coverage rate result, one or more execution in result and row test result.
Based in another embodiment of said method, the method for testing of described intelligent terminal also includes:
The running status of virtual machine each described is monitored by described virtual machine management system;
When described virtual machine is in deadlock state, described virtual machine management system triggers described virtual machine restarts.
Based in another embodiment of said method, the running status of virtual machine each described is monitored by described virtual management system by monitoring script.
Another aspect according to embodiments of the present invention, it is provided that the test device of a kind of intelligent terminal, including:
It is provided with Virtual Machine Manager unit and the physical machine of at least one virtual machine unit;
Described Virtual Machine Manager unit is used for obtaining test assignment, and sends described test assignment to the virtual machine unit corresponding with described test assignment;
Described virtual machine unit is used for receiving and performing described test assignment, obtains test log.
Another aspect according to embodiments of the present invention, it is provided that the test system of a kind of intelligent terminal, including the test device of at least one arbitrary intelligent terminal as above.
Based on the method for testing of intelligent terminal of the above embodiment of the present invention offer, Apparatus and system, virtual machine management system and at least one virtual machine are set in physical machine;Obtained test assignment by virtual machine management system, and test assignment is sent to the virtual machine corresponding with test assignment;Then virtual machine receives and performs test assignment, obtains test log.In the test process of intelligent terminal, first in physical machine, fictionalize the virtual machine identical with operating system in intelligent terminal to be tested, then pass through the virtual machine management system in physical machine and obtain the test assignment of each virtual machine, and test assignment is issued in the virtual machine corresponding with test assignment, virtual machine substitute intelligent terminal and test.Thus when avoiding being connected intelligent terminal to be tested by the physical machine of plug wire with test, the test electric current caused because of plug wire is unstable, it is ensured that stablizing of test environment, and then improves the accuracy of test.
Accompanying drawing explanation
The accompanying drawing constituting a part for description describes embodiments of the invention, and is used for explaining principles of the invention together with describing.
With reference to accompanying drawing, according to detailed description below, it is possible to be more clearly understood from the present invention, wherein:
Fig. 1 is the flow chart of one embodiment of method of testing of intelligent terminal of the present invention.
Fig. 2 is the flow chart of another embodiment of method of testing of intelligent terminal of the present invention.
Fig. 3 is the structural representation of test one embodiment of device of intelligent terminal of the present invention.
Fig. 4 is the structural representation of test another embodiment of device of intelligent terminal of the present invention.
Fig. 5 is the structural representation of test another embodiment of device of intelligent terminal of the present invention.
Detailed description of the invention
The various exemplary embodiments of the present invention are described in detail now with reference to accompanying drawing.It should also be noted that unless specifically stated otherwise, the parts otherwise set forth in these embodiments and positioned opposite, the numerical expression of step and numerical value do not limit the scope of the invention.
Simultaneously, it should be appreciated that for the ease of describing, the size of the various piece shown in accompanying drawing is not draw according to actual proportionate relationship.
Description only actually at least one exemplary embodiment is illustrative below, never as any restriction to the present invention and application or use.
The known technology of person of ordinary skill in the relevant, method and apparatus are likely to be not discussed in detail, but in the appropriate case, described technology, method and apparatus should be considered a part for description.
It should also be noted that similar label and letter below figure represent similar terms, therefore, once a certain Xiang Yi accompanying drawing is defined, then it need not be further discussed in accompanying drawing subsequently.
Existing when intelligent terminal is tested, intelligent terminal to be tested is connected by the physical machine of plug wire with test, storing in physical machine has test assignment, realizes issuing and the acquisition of test result of test assignment by plug wire.And in plug wire process, intelligent terminal and the electric current in physical machine are unstable, cause that the test environment of intelligent terminal is unstable, affect the accuracy of test result.And, in intelligent terminal's test process, if crashing, then needing manually to carry out restarting of intelligent terminal, the test of intelligent terminal needs to be equipped with manpower and safeguards at any time, and waste of manpower, testing cost is high, efficiency is low.Accordingly, it is desirable to provide effective manner goes to ensure the stability of intelligent terminal's test environment to improve the accuracy of intelligent terminal's test, reduce the testing cost of intelligent terminal.
Fig. 1 is the flow chart of one embodiment of method of testing of intelligent terminal of the present invention.As it is shown in figure 1, the method for testing of the intelligent terminal of this embodiment includes:
S102, arranges virtual machine management system and at least one virtual machine in physical machine;
S104, virtual machine management system obtains test assignment, and sends test assignment to the virtual machine corresponding with test assignment;
S106, virtual machine receives and performs test assignment, obtains test log.
Intel Virtualization Technology refers to and utilizes software and hardware to combine, and physical machine (being alternatively referred to as physical machine) is divided into the virtual machine of some isolation, operation program that can be independent on each virtual machine and be independent of each other.Intel Virtualization Technology makes physical resource accomplish more fine-grained division, so that physical server resource is utilized more fully, saves cost.
And, the operation of physical server hardware will be become software operation by Intel Virtualization Technology, make deployment, change, preparation etc. convenient, multiple application program is run compared to unit (such as intelligent terminal), use virtual machine, the environment that application program is seen is consistent with on physical server, uses and safeguards simpler.
In the present embodiment, the assembly method that the creation method of virtual machine is referred in prior art virtual machine, do not make in limited time at this and repeat.In physical machine, the operating system of virtual machine is identical with the operating system of intelligent terminal to be tested, to ensure effectiveness and the effect of test.
In the present embodiment, can need in physical machine, arrange one or more virtual machine according to test.It is also preferred that the left arrange multiple virtual machine in physical machine such that it is able to effectively utilize the physical resource of physical machine, improve testing efficiency, and reduce testing cost.
In the present embodiment, in physical machine, the operating system of virtual machine is Android system, and test assignment can be the test of application program (APP).
Based on the method for testing of the intelligent terminal that the above embodiment of the present invention provides, virtual machine management system and at least one virtual machine are set in physical machine;Obtained test assignment by virtual machine management system, and test assignment is sent to the virtual machine corresponding with test assignment;Then virtual machine receives and performs test assignment, obtains test log.When utilizing virtual machine replacement intelligent terminal to test, it is possible to the current interference that when avoiding the physical machine by intelligent terminal with test to be attached by plug wire, plug wire causes, it is ensured that the stability of test environment, and then improve the accuracy of test.
Based in another embodiment of said method, in above-mentioned steps S106, after virtual machine management system obtains test assignment, when test assignment is sent extremely corresponding with test assignment virtual machine, can farther include:
Test assignment is carried out abstract by virtual machine management system, to obtain test frame;
Acquired test frame is carried out deformation process;
Test frame after deformation process is sent to the virtual machine corresponding with test assignment.
The method of testing of intelligent terminal in the present embodiment, by carrying out abstract by test assignment, it is possible to similar test assignment is abstracted into a test frame;Then more acquired test frame is carried out deformation process, namely according to the different virtual machine that test assignment is corresponding, test frame is filled different test parameters, then the test frame after deformation process is sent to the virtual machine corresponding with test assignment.It can effectively reduce the workload in test assignment processing procedure, improves testing efficiency.Meanwhile, it is capable to the similar test assignment of convenient and simple acquisition is in test process, the different test parameter impacts on test result, it is beneficial to and follow-up test result is compared.
Based in another embodiment of said method, the method for testing of intelligent terminal also includes:
The running status of each virtual machine is monitored by virtual machine management system;
When virtual machine is in deadlock state, virtual machine management system triggers virtual machine restarts.
In the present embodiment, the running status of each virtual machine is monitored by virtual management system by monitoring script.When virtual machine is in deadlock state, virtual machine management system recovers script triggering virtual machine by starting shooting restarts.
In the present embodiment the method for testing of intelligent terminal can in detection physical machine the running status of each virtual machine, thus when virtual machine is in deadlock state, trigger virtual machine by virtual machine management system in time to restart, thus effectively reducing the manpower required for the test of intelligent terminal, reduce testing cost high, improve testing efficiency.
Fig. 2 is the flow chart of another embodiment of method of testing of intelligent terminal of the present invention.As in figure 2 it is shown, the method for testing of the intelligent terminal of this embodiment includes:
S202, arranges virtual machine management system and at least one virtual machine in physical machine;
S204, virtual machine management system obtains test assignment, and sends test assignment to the virtual machine corresponding with test assignment;
S206, virtual machine receives and performs test assignment, obtains test log;
S208, sends test log to virtual machine management system;
S210, is analyzed test log, obtains test result.
In the present embodiment, virtual machine management system sends test assignment by Telescript to each virtual machine;Test log is sent to virtual machine management system by virtual machine by Telescript.The transmission of data between virtual machine management system and virtual machine (test assignment, test log etc.) is realized by Telescript.
In the present embodiment, test result can include one or more in coverage rate result, execution result and row test result.
In test, Test coverage is the evaluation and test to test completeness.The covering that Test coverage is the covering by testing requirement and test case or executed code represents.
In the present embodiment coverage rate result can for test the quantity of application and the ratio of number of applications to be tested, so that it is determined that the quantity of the application tested cannot be carried out in virtual machine.In the present embodiment, coverage rate result can be also the quantity ratio with the quantity of pending code of executed code, so that it is determined that the ratio shared by code cannot be performed in virtual machine.
Test result can be the application tested in virtual machine and the application cannot tested in virtual machine.Again testing in intelligent terminal thus conveniently will be unable to the application of test in virtual machine, improving the integrity of test.
Row test result can be cannot the position of operation code, thus facilitating application developer code to do further modification and perfect.
In the present embodiment, the method for testing of intelligent terminal can obtain and analyze test log, carries out obtaining test result, makes the problem in intelligent terminal's test process definitely, be beneficial to the perfect of follow-up test process.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can be completed by the hardware that programmed instruction is relevant, aforesaid program can be stored in a computer read/write memory medium, this program upon execution, performs to include the step of said method embodiment;And aforesaid storage medium includes: the various media that can store program code such as ROM, RAM, magnetic disc or CDs.
Fig. 3 is the structural representation of test one embodiment of device of intelligent terminal of the present invention.As it is shown on figure 3, the test device of intelligent terminal includes in the present embodiment:
It is provided with the physical machine 1 of Virtual Machine Manager unit 10 and at least one virtual machine unit 20;
Virtual Machine Manager unit 10 is used for obtaining test assignment, and sends test assignment to the virtual machine unit 20 corresponding with test assignment;
Virtual machine unit 20 is used for receiving and performing test assignment, obtains test log.
In the present embodiment, the assembly method that the creation method of virtual machine unit 20 is referred in prior art virtual machine, do not make in limited time at this and repeat.In physical machine, the operating system of virtual machine unit 20 is identical with the operating system of intelligent terminal to be tested, to ensure effectiveness and the effect of test.
In the present embodiment, can need in physical machine 1, arrange one or more virtual machine unit 20 according to test.It is also preferred that the left arrange multiple virtual machine unit 20 in physical machine 1 such that it is able to effectively utilize the physical resource of physical machine, improve testing efficiency, and reduce testing cost.
In the present embodiment, in physical machine 1, the operating system of virtual machine unit 20 is Android system, and test assignment can be the test of application program (APP).
In the present embodiment, the operating system of virtual machine unit 20 is Android system, and test assignment is the test of application program.
Based on the test device of the intelligent terminal that the above embodiment of the present invention provides, Virtual Machine Manager unit 10 and at least one virtual machine unit 20 are set in physical machine 1;Virtual Machine Manager unit 10 is used for obtaining test assignment, and sends test assignment to the virtual machine unit 20 corresponding with test assignment;Virtual machine unit 20 is used for receiving and performing test assignment, obtains test log.Utilize virtual machine unit 20 substitute intelligent terminal test time, it is possible to avoid by intelligent terminal with test physical machine 1 be attached by plug wire time, the current interference that plug wire causes, it is ensured that the stability of test environment, so improve test accuracy.
Fig. 4 is the structural representation of test another embodiment of device of intelligent terminal of the present invention.It should be noted that for the convenience mapped, in Figure of description 4 corresponding in the present embodiment, in physical machine 1, Virtual Machine Manager unit 10 is only connected with a virtual machine unit 20.In practice, also can needing to be connected Virtual Machine Manager unit 10 with multiple virtual machine unit 20 according to test, its test philosophy is similar, and therefore not to repeat here.
As shown in Figure 4, compared with in Fig. 3, intelligent terminal tests device, in the present embodiment physical machine 1:
Virtual Machine Manager unit 10 farther includes task acquiring unit 101 and task processing unit 103.Task acquiring unit 101 is used for obtaining test assignment;Task processing unit 103 is for sending test assignment to the virtual machine unit corresponding with test assignment.
Virtual machine unit 20 farther includes task and receives unit 201 and task executing units 203.Task receives unit and is used for receiving test assignment;Task executing units 203 is used for performing test assignment, and obtains test log.
In the present embodiment the test device of intelligent terminal utilize virtual machine unit 20 substitute intelligent terminal test time, it can be avoided that when the physical machine 1 of intelligent terminal with test is attached by plug wire, the current interference that plug wire causes, test environment is stable, and test accuracy is high.
Based in another embodiment of said apparatus, task processing unit 103 can farther include:
Framework acquiring unit (not shown), for carrying out abstract to test assignment, to obtain test frame;
Frame deformation unit (not shown), for carrying out deformation process to acquired test frame;
Task transmitting element (not shown), for sending the test frame after deformation process to the virtual machine unit corresponding with test assignment.
The test device of intelligent terminal in the present embodiment, first passes through framework acquiring unit and test assignment is carried out abstract, and similar test assignment is abstracted into a test frame;Then pass through frame deformation unit and more acquired test frame is carried out deformation process, namely according to the different virtual machine unit that test assignment is corresponding, test frame is filled different test parameters, subsequently by task transmitting element, the test frame after deformation process is sent to the virtual machine unit corresponding with test assignment.It is thus possible to the workload effectively reduced in test assignment processing procedure, improve testing efficiency.Meanwhile, it is capable to the similar test assignment of convenient and simple acquisition is in test process, the different test parameter impacts on test result, it is beneficial to and follow-up test result is compared.
Based in another embodiment of Fig. 4 device, Virtual Machine Manager unit 10 also includes:
Condition monitoring unit (not shown), for being monitored the running status of each virtual machine unit;
Equipment restarts unit (not shown), for when virtual machine unit is in deadlock state, triggering virtual machine unit and restart.
In the present embodiment, the running status of each virtual machine unit can be monitored by condition monitoring unit by monitoring script.When virtual machine unit is in deadlock state, equipment is restarted unit and can be restarted by recovery script triggering virtual machine unit of starting shooting.
In the present embodiment, the test device of intelligent terminal can pass through the running status of each virtual machine unit of condition monitoring unit monitors, when virtual machine unit is in deadlock state, restart unit triggers virtual machine unit by equipment in time to restart, thus effectively reducing the manpower required for the test of intelligent terminal, reduce testing cost high, improve testing efficiency.
Fig. 5 is the structural representation of test another embodiment of device of intelligent terminal of the present invention.As it is shown in figure 5, compared with the test device of intelligent terminal in Fig. 4, in the test device of the present embodiment intelligent terminal:
Virtual machine unit 20, except including task and receiving unit 201 and task executing units 203, also includes daily record transmitting element 205, for sending test log to Virtual Machine Manager unit 10.
Virtual Machine Manager unit 10, except including task acquiring unit 101 and task processing unit 103, also includes:
Daily record receives unit 105, is used for receiving test log;
Log analysis unit 107, for test log is analyzed, obtains test result..
In the present embodiment, test assignment is sent to the virtual machine unit 20 corresponding with test assignment by Virtual Machine Manager unit 10 by Telescript;Test log is sent to daily record reception unit 105 by daily record transmitting element 205 by Telescript.The transmission of data (test assignment, test log etc.) between Virtual Machine Manager unit 10 and virtual machine unit 20 is realized by Telescript.
In the present embodiment, test result can include one or more in coverage rate result, execution result and row test result.
In the present embodiment coverage rate result can for test the quantity of application and the ratio of number of applications to be tested, so that it is determined that the quantity of the application tested cannot be carried out in virtual machine unit.In the present embodiment, coverage rate result can be also the quantity ratio with the quantity of pending code of executed code, so that it is determined that the ratio shared by code cannot be performed in virtual machine unit.
Test result can be the application tested in virtual machine unit and the application cannot tested in virtual machine unit.Again testing in intelligent terminal thus conveniently will be unable to the application of test in virtual machine unit, improving the integrity of test.
Row test result can be cannot the position of operation code, thus facilitating application developer code to do further modification and perfect.
In the present embodiment, the test device of intelligent terminal can obtain and analyze test log, and then obtains test result, makes the problem in intelligent terminal's test process definitely, is beneficial to the perfect of follow-up test process.
Another aspect according to embodiments of the present invention, it is provided that the test system of a kind of intelligent terminal, including the test device of at least one arbitrary intelligent terminal as above.
Due to the finiteness of physical machine physical resource, the limited amount of the virtual machine that can arrange in a physical machine.In order to ensure progress and the efficiency of test, the test system of the intelligent terminal of the test device including multiple intelligent terminal can be set, thus testing requirement when meeting intelligent terminal's substantial amounts to be tested.It is stable that the test system of this intelligent terminal still has test environment, and test accuracy is high, low cost and other advantages.
In this specification, each embodiment all adopts the mode gone forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, same or analogous part cross-reference between each embodiment.For system embodiment, owing to it is substantially corresponding with embodiment of the method, so what describe is fairly simple, relevant part illustrates referring to the part of embodiment of the method.
Embodiments provide techniques below scheme:
1, the method for testing of a kind of intelligent terminal, including:
Virtual machine management system and at least one virtual machine are set in physical machine;
Described virtual machine management system obtains test assignment, and sends described test assignment to the virtual machine corresponding with described test assignment;
Described virtual machine receives and performs described test assignment, obtains test log.
2, the method for testing according to the intelligent terminal described in 1, after described virtual machine management system obtains test assignment, when described test assignment is sent extremely corresponding with described test assignment virtual machine, including:
Described test assignment is carried out abstract by described virtual machine management system, to obtain test frame;
Acquired test frame is carried out deformation process;
Test frame after deformation process is sent to the virtual machine corresponding with described test assignment.
3, the method for testing according to the intelligent terminal described in 1, after obtaining test log, the method for testing of described intelligent terminal also includes: send described test log to described virtual machine management system.
4, the method for testing according to the intelligent terminal described in 3, described virtual machine management system sends test assignment by Telescript to virtual machine each described;Described test log is sent to described virtual machine management system by described virtual machine by Telescript.
5, the method for testing according to the intelligent terminal described in 3, after by described test log transmission to described virtual machine management system, the method for testing of described intelligent terminal also includes: described test log is analyzed, and obtains test result.
6, the method for testing according to the intelligent terminal described in 5, described test result includes: coverage rate result, one or more execution in result and row test result.
7, the method for testing according to the intelligent terminal described in 1, the method for testing of described intelligent terminal also includes:
The running status of virtual machine each described is monitored by described virtual machine management system;
When described virtual machine is in deadlock state, described virtual machine management system triggers described virtual machine restarts.
8, the method for testing according to the intelligent terminal described in 7, the running status of virtual machine each described is monitored by described virtual management system by monitoring script.
9, the method for testing according to the intelligent terminal described in 7, when described virtual machine is in deadlock state, described virtual machine management system recovers the script described virtual machine of triggering by starting shooting restarts.
10, the method for testing according to described intelligent terminal arbitrary in 1 to 9, the operating system of described virtual machine is Android system, and described test assignment is the test of application program.
11, the test device of a kind of intelligent terminal, including: it is provided with Virtual Machine Manager unit and the physical machine of at least one virtual machine unit;
Described Virtual Machine Manager unit is used for obtaining test assignment, and sends described test assignment to the virtual machine unit corresponding with described test assignment;
Described virtual machine unit is used for receiving and performing described test assignment, obtains test log.
12, the test device according to the intelligent terminal described in 11, described Virtual Machine Manager unit includes:
Task acquiring unit, is used for obtaining test assignment;
Task processing unit, for sending described test assignment to the virtual machine unit corresponding with described test assignment.
13, the test device according to the intelligent terminal described in 12, described task processing unit includes:
Framework acquiring unit, for carrying out abstract to described test assignment, to obtain test frame;
Frame deformation unit, for carrying out deformation process to acquired test frame;
Task transmitting element, for sending the test frame after deformation process to the virtual machine unit corresponding with described test assignment.
14, the test device according to the intelligent terminal described in 11, described virtual machine unit includes:
Task receives unit, is used for receiving described test assignment;
Task executing units, is used for performing described test assignment, and obtains test log.
15, the test device according to the intelligent terminal described in 14, described virtual machine unit also includes: daily record transmitting element, for sending described test log to described Virtual Machine Manager unit.
16, the test device according to the intelligent terminal described in 15, described Virtual Machine Manager unit also includes: daily record receives unit, is used for receiving described test log.
17, the test device according to the intelligent terminal described in 16, described test assignment is sent to the virtual machine unit corresponding with described test assignment by described Virtual Machine Manager unit by Telescript;Described test log is sent to described daily record reception unit by described daily record transmitting element by Telescript.
18, the test device according to the intelligent terminal described in 16, described Virtual Machine Manager unit also includes: log analysis unit, for described test log is analyzed, obtains test result.
19, the test device according to the intelligent terminal described in 18, described test result includes: coverage rate result, one or more execution in result and row test result.
20, the test device according to the intelligent terminal described in 14, described Virtual Machine Manager unit also includes:
Condition monitoring unit, for being monitored the running status of virtual machine unit each described;
Equipment restarts unit, for when described virtual machine unit is in deadlock state, triggering described virtual machine unit and restart.
21, the test device according to the intelligent terminal described in 20, the running status of virtual machine unit each described is monitored by described condition monitoring unit by monitoring script.
22, the test device according to the intelligent terminal described in 20, when described virtual machine unit is in deadlock state, described equipment is restarted unit and is restarted by the recovery script described virtual machine unit of triggering of starting shooting.
23, the test device according to described intelligent terminal arbitrary in 11 to 22, the operating system of described virtual machine unit is Android system, and described test assignment is the test of application program.
24, the test system of a kind of intelligent terminal, including at least one test device of arbitrary described intelligent terminal in 11 to 23.
It is likely to be achieved in many ways the methods, devices and systems of the present invention.Such as, can by software, hardware, firmware or software, hardware, firmware any combination realize the methods, devices and systems of the present invention.For the said sequence of step of described method merely to illustrate, the step of the method for the present invention is not limited to order described in detail above, unless specifically stated otherwise.Additionally, in certain embodiments, can being also record program in the recording medium by the invention process, these programs include the machine readable instructions for realizing the method according to the invention.Thus, the present invention also covers the record medium of the storage program for performing the method according to the invention.
Description of the invention provides for example with for the purpose of describing, and is not exhaustively or limit the invention to disclosed form.Many modifications and variations are obvious for the ordinary skill in the art.Selecting and describing embodiment is in order to principles of the invention and practical application are better described, and makes those of ordinary skill in the art it will be appreciated that the present invention is thus design is suitable to the various embodiments with various amendments of special-purpose.

Claims (10)

1. the method for testing of an intelligent terminal, it is characterised in that including:
Virtual machine management system and at least one virtual machine are set in physical machine;
Described virtual machine management system obtains test assignment, and sends described test assignment to the virtual machine corresponding with described test assignment;
Described virtual machine receives and performs described test assignment, obtains test log.
2. the method for testing of intelligent terminal according to claim 1, it is characterised in that after described virtual machine management system obtains test assignment, when described test assignment is sent extremely corresponding with described test assignment virtual machine, including:
Described test assignment is carried out abstract by described virtual machine management system, to obtain test frame;
Acquired test frame is carried out deformation process;
Test frame after deformation process is sent to the virtual machine corresponding with described test assignment.
3. the method for testing of intelligent terminal according to claim 1, it is characterised in that after obtaining test log, the method for testing of described intelligent terminal also includes: described test log is sent to described virtual machine management system.
4. the method for testing of intelligent terminal according to claim 3, it is characterised in that described virtual machine management system sends test assignment by Telescript to virtual machine each described;Described test log is sent to described virtual machine management system by described virtual machine by Telescript.
5. the method for testing of intelligent terminal according to claim 3, it is characterized in that, after by described test log transmission to described virtual machine management system, the method for testing of described intelligent terminal also includes: described test log is analyzed, and obtains test result.
6. the method for testing of intelligent terminal according to claim 5, it is characterised in that described test result includes: coverage rate result, one or more execution in result and row test result.
7. the method for testing of intelligent terminal according to claim 1, it is characterised in that the method for testing of described intelligent terminal also includes:
The running status of virtual machine each described is monitored by described virtual machine management system;
When described virtual machine is in deadlock state, described virtual machine management system triggers described virtual machine restarts.
8. the method for testing of intelligent terminal according to claim 7, it is characterised in that the running status of virtual machine each described is monitored by described virtual management system by monitoring script.
9. the test device of an intelligent terminal, it is characterised in that including: be provided with Virtual Machine Manager unit and the physical machine of at least one virtual machine unit;
Described Virtual Machine Manager unit is used for obtaining test assignment, and sends described test assignment to the virtual machine unit corresponding with described test assignment;
Described virtual machine unit is used for receiving and performing described test assignment, obtains test log.
10. the test system of an intelligent terminal, it is characterised in that include the test device of arbitrary described intelligent terminal at least one claim 11 to 23.
CN201610144601.9A 2016-03-14 2016-03-14 The test method of intelligent terminal, apparatus and system Active CN105760307B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610144601.9A CN105760307B (en) 2016-03-14 2016-03-14 The test method of intelligent terminal, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610144601.9A CN105760307B (en) 2016-03-14 2016-03-14 The test method of intelligent terminal, apparatus and system

Publications (2)

Publication Number Publication Date
CN105760307A true CN105760307A (en) 2016-07-13
CN105760307B CN105760307B (en) 2018-06-15

Family

ID=56333116

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610144601.9A Active CN105760307B (en) 2016-03-14 2016-03-14 The test method of intelligent terminal, apparatus and system

Country Status (1)

Country Link
CN (1) CN105760307B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107526661A (en) * 2017-08-21 2017-12-29 郑州云海信息技术有限公司 A kind of method of testing and system of magnetic disk of virtual machine performance
CN107729187A (en) * 2017-11-03 2018-02-23 郑州云海信息技术有限公司 A kind of test case management disaster recovery method and system based on virtual platform
CN107766239A (en) * 2017-09-28 2018-03-06 郑州云海信息技术有限公司 A kind of system mend bag method of testing and system
CN110838953A (en) * 2019-11-01 2020-02-25 北京字节跳动网络技术有限公司 Test method, test system, electronic equipment and storage medium
CN114286358A (en) * 2020-09-27 2022-04-05 大唐移动通信设备有限公司 Method, device and system for processing test data and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103345406A (en) * 2013-06-21 2013-10-09 中国科学院深圳先进技术研究院 System and method for achieving cloud virtual mobile terminal of intelligent mobile terminal
CN103455418A (en) * 2013-08-02 2013-12-18 深圳创维数字技术股份有限公司 Intelligent terminal testing method and intelligent terminal testing device
CN104063305A (en) * 2013-03-18 2014-09-24 腾讯科技(深圳)有限公司 Pressure testing method, device and system for intelligent terminal software

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063305A (en) * 2013-03-18 2014-09-24 腾讯科技(深圳)有限公司 Pressure testing method, device and system for intelligent terminal software
CN103345406A (en) * 2013-06-21 2013-10-09 中国科学院深圳先进技术研究院 System and method for achieving cloud virtual mobile terminal of intelligent mobile terminal
CN103455418A (en) * 2013-08-02 2013-12-18 深圳创维数字技术股份有限公司 Intelligent terminal testing method and intelligent terminal testing device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
周元哲: "《软件测试案例教程》", 30 June 2013, 北京:机械工业出版社 *
高凯等: "《Android智能手机软件开发教程》", 30 June 2012, 北京:国防工业出版社 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107526661A (en) * 2017-08-21 2017-12-29 郑州云海信息技术有限公司 A kind of method of testing and system of magnetic disk of virtual machine performance
CN107766239A (en) * 2017-09-28 2018-03-06 郑州云海信息技术有限公司 A kind of system mend bag method of testing and system
CN107729187A (en) * 2017-11-03 2018-02-23 郑州云海信息技术有限公司 A kind of test case management disaster recovery method and system based on virtual platform
CN110838953A (en) * 2019-11-01 2020-02-25 北京字节跳动网络技术有限公司 Test method, test system, electronic equipment and storage medium
CN114286358A (en) * 2020-09-27 2022-04-05 大唐移动通信设备有限公司 Method, device and system for processing test data and readable storage medium

Also Published As

Publication number Publication date
CN105760307B (en) 2018-06-15

Similar Documents

Publication Publication Date Title
CN109302522B (en) Test method, test device, computer system, and computer medium
CN105760307A (en) Testing method, device and system of intelligent terminal
CN110750458A (en) Big data platform testing method and device, readable storage medium and electronic equipment
CN103927255A (en) Software testing method based on cloud testing system, cloud testing system and client side of cloud testing system
CN103049371A (en) Testing method and testing device of Android application programs
CN103516559A (en) Method and system for testing application compatibility of intelligent terminal
CN104765678A (en) Method and device for testing applications on mobile terminal
CN110347085B (en) Automated test system, method, vehicle, and computer-readable medium
CN108241580B (en) Client program testing method and terminal
US10942837B2 (en) Analyzing time-series data in an automated application testing system
CN103838663A (en) Application testing method and device
JP6363152B2 (en) Apparatus, method, computer program, and storage medium for data flow analysis
WO2014088398A1 (en) Automated test environment deployment with metric recommender for performance testing on iaas cloud
CN106649057A (en) Method and device for testing server pressure
CN104268076A (en) Memory bandwidth automatically testing method applicable to various processor platforms
CN103455403B (en) Method of testing and device
US11256590B1 (en) Agent profiler to monitor activities and performance of software agents
CN104360921A (en) Method, device and system for monitoring performance of mobile terminal
CN111258913A (en) Automatic algorithm testing method and device, computer system and readable storage medium
CN105574416A (en) Detection method and device of browser bug
CN109543417B (en) Vulnerability mining method and device based on Qemu platform
CN105204986A (en) Automated product testing method, server and mobile equipment
CN112650676A (en) Software testing method, device, equipment and storage medium
CN104125504A (en) Deployment method, device and system based on continuous integration
CN103810086A (en) Method, device and system for processing website causing browser breakdown

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
TR01 Transfer of patent right

Effective date of registration: 20220715

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.