Summary of the invention
To overcome above-mentioned technical problem or at least being partially solved above-mentioned technical problem, spy proposes following technical scheme:
The embodiment of the present invention proposes the method that a kind of pair of multisystem terminal device executes test, comprising:
The dependence test setting option of testing and control device configuration terminal device to be measured, and obtain each system in terminal device
System related information;
The test assignment of system related information configuration corresponding system based on each system;
Corresponding system testing is executed to each system according to test assignment, one by one to generate test result.
Preferably, the dependence test setting option of terminal device to be measured is configured, comprising:
Terminal device to be measured is switched to and makes a reservation for first examining system, and configures terminal device to be measured and testing and control equipment
Test communication mode.
Optionally, this method further include:
Testing and control device request obtains the test permission to terminal device to be measured, and receives terminal device feedback to be measured
Authorization message.
Preferably, system related information includes system type, the corresponding system of system related information configuration based on each system
The test assignment of system, comprising:
When the system type of at least two systems in terminal device to be measured is identical, if configuration pin is at least two systems
In any system test assignment in need in terminal device to be measured multiple physical device interfaces execute test operation, then
Configuration pin does not execute the test operation to multiple physical device interfaces to the test assignment of the other systems at least two systems.
Preferably, system related information includes system kernel information, and the system related information based on each system configures phase
Answer the test assignment of system, comprising:
When the sharing same kernel of at least two systems in terminal device to be measured, if configuration pin is at least two systems
In any system test assignment in need in terminal device to be measured multiple physical device interfaces execute test operation, then
Configuration pin executes scan operation to multiple physical equipments in the other systems at least two systems.
Preferably, corresponding system testing is executed to each system according to test assignment one by one, to generate test result, packet
It includes:
When the sharing same kernel of at least two systems in terminal device to be measured, according to test assignment at least two
System executes corresponding system testing one by one, generates a test result of at least two systems that are directed to.
Another embodiment of the present invention proposes the testing and control equipment that a kind of pair of multisystem terminal device executes test, packet
It includes:
Configuration module is set, for configuring the dependence test setting option of terminal device to be measured, and is obtained each in terminal device
The system related information of a system;
Task configuration module, the test assignment for the system related information configuration corresponding system based on each system;
Test module, for executing corresponding system testing one by one to each system according to test assignment, to generate test
As a result.
Preferably, system related information includes system type, and task configuration module is used to work as in terminal device to be measured extremely
When the system type of few two systems is identical, if configuration pin in the test assignment of any system at least two systems to needing pair
The test operation that multiple physical device interfaces in terminal device to be measured execute, then configuration pin is to other at least two systems
The test assignment of system does not execute the test operation to multiple physical device interfaces.
Preferably, system related information includes system kernel information, and task configuration module is used for when in terminal device to be measured
When sharing same kernel of at least two systems, if configuration pin is in the test assignment of any system at least two systems
The test operation that need to be executed to multiple physical device interfaces in terminal device to be measured, then configuration pin is at least two systems
Scan operation is executed to multiple physical equipments in other systems.
Still another embodiment of the invention proposes the test console that a kind of pair of multisystem terminal device executes test, packet
It includes:
Configuration unit is set, for configuring the dependence test setting option of terminal device to be measured, and is obtained each in terminal device
The system related information of a system;
Task configuration unit, the test assignment for the system related information configuration corresponding system based on each system;
Test cell, for executing corresponding system testing one by one to each system according to test assignment, to generate test
As a result.
In the embodiment of the present invention, the scheme that a kind of pair of multisystem terminal device executes test is proposed, testing and control is set
The standby dependence test setting option for configuring terminal device to be measured, and the system related information of each system in terminal device is obtained, it is
It automatically configures the test assignment of each system and automatically switches to each system execution test operation and provide necessary premise
It ensures;The test assignment of system related information configuration corresponding system based on each system, realizes each system of automatic configuration
The test assignment of system avoids and test assignment manually is separately configured to each system, improves the allocative efficiency of test assignment, from
And reduce the human cost of test;Further, corresponding system testing is executed to each system according to test assignment one by one, with
Test result is generated, realizes and corresponding automatic test is executed to each system, avoid in test process manually to each
The situation that system executes switching or restarts, has greatly saved the testing time of multisystem terminal device, has improved testing efficiency.
The additional aspect of the present invention and advantage will be set forth in part in the description, these will become from the following description
Obviously, or practice through the invention is recognized.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, and for explaining only the invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one
It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in specification of the invention
Diction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition
Other one or more features, integer, step, operation, element, component and/or their group.It should be understood that when we claim member
Part is " connected " or when " coupled " to another element, it can be directly connected or coupled to other elements, or there may also be
Intermediary element.In addition, " connection " used herein or " coupling " may include being wirelessly connected or wirelessly coupling.It is used herein to arrange
Diction "and/or" includes one or more associated wholes for listing item or any cell and all combinations.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art
Language and scientific term), there is meaning identical with the general understanding of those of ordinary skill in fields of the present invention.Should also
Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art
The consistent meaning of meaning, and unless idealization or meaning too formal otherwise will not be used by specific definitions as here
To explain.
Fig. 1 is the flow chart of the method that test is executed to multisystem terminal device of one embodiment in the present invention.
In the embodiment of the present invention, Description of content performed by each step is as follows: step S110: testing and control device configuration
The dependence test setting option of terminal device to be measured, and obtain the system related information of each system in terminal device;Step S120:
The test assignment of system related information configuration corresponding system based on each system;Step S130: according to test assignment to each
System executes corresponding system testing one by one, to generate test result.
In the embodiment of the present invention, the method that a kind of pair of multisystem terminal device executes test is proposed, testing and control is set
The standby dependence test setting option for configuring terminal device to be measured, and the system related information of each system in terminal device is obtained, it is
It automatically configures the test assignment of each system and automatically switches to each system execution test operation and provide necessary premise
It ensures;The test assignment of system related information configuration corresponding system based on each system, realizes each system of automatic configuration
The test assignment of system avoids and test assignment manually is separately configured to each system, improves the allocative efficiency of test assignment, from
And reduce the human cost of test;Further, corresponding system testing is executed to each system according to test assignment one by one, with
Test result is generated, realizes and corresponding automatic test is executed to each system, avoid in test process manually to each
The situation that system executes switching or restarts, has greatly saved the testing time of multisystem terminal device, has improved testing efficiency.
Specific implementation below for each step is described further:
Step S110: the dependence test setting option of testing and control device configuration terminal device to be measured, and obtain terminal device
In each system system related information.
Specifically, by the dependence test setting option of testing and control device configuration terminal device to be measured, testing and control is set
It is standby to establish connection with terminal device to be measured, and testing and control equipment obtains the system related information of each system in terminal device.
Wherein, dependence test setting option includes but is not limited to that the internetwork connection mode of terminal device is arranged and terminal device is arranged and tests
Control the debud mode of equipment.
For example, terminal device A to be measured includes system OS1With system OS2, include system testing work in testing and control equipment B
Tool, such as CTS (Compatibility Test Suite, compatibility test) testing tool, passes through USB for terminal device A to be measured
Interface accesses testing and control equipment B, starts CTS testing tool in testing and control equipment B, currently locates in terminal device A to be measured
System in foreground is system OS1, system OS is then configured by the CTS testing tool in testing and control equipment B1WIFI
(WIreless-Fidelity, Wireless Fidelity) connection, and enable and USB debugging is carried out to system each in terminal device A to be measured
Function, can be by system OS in testing and control equipment B and terminal device A to be measured1Test connection, then, CTS are established by USB
Testing tool can get system OS in terminal device A1With system OS2System related information, such as system OS1Operating system
Type is Android operation system, system OS1Kernel be " Linux kernel ", system OS1System identification information be
“OS1- Android-Linux kernel ", system OS2OS Type be Android operation system, system OS2It is interior
Core is " Linux kernel ", system OS2System identification information be " OS2-Android-Linux kernel”。
It should be noted that those skilled in the art are it can be appreciated that CTS test is that the Android that Google is released is flat
Platform compatibility test is the test frame program of a set of test case for containing a automatic runnings up to ten thousand.It is mainly used to test
Whether the Android platform that OEM (Original Equipment Manufacturer, original equipment manufacturer) manufacturer realizes
Meet the api interface definition of Android, to realize that each application program provides better usage experience for user.Reality of the invention
It applies in example, each system in equipment to be tested can be setting with the creation of Linux container (container) virtualization technology
Container in operating system;Operating system can be traditional (SuSE) Linux OS or Unix operating system, can also
To be the android system being derived based on (SuSE) Linux OS, Ubuntu system or FireFox system etc., can also be
Windows system based on windows platform etc..In fact, each system in the present invention is not limited to aforementioned enumerate
Operating system, all operating systems that can be run in a reservoir can be covered, therefore, as the behaviour in the embodiment of the present invention
When to make system be android system, the system testing tool in testing and control equipment can be CTS testing tool, work as the present invention
Embodiment in operating system when not being android system, the system testing tool in testing and control equipment can be other
System testing tool, it is not limited here.
Preferably, the step of configuring the dependence test setting option of terminal device to be measured specifically includes: by terminal device to be measured
It switches to and makes a reservation for first examining system, and configure the test communication mode of terminal device to be measured Yu testing and control equipment.
For example, the first examining system that makes a reservation for of terminal device A to be measured is system OS2, by the foreground system of terminal device A to be measured
System switches to system OS2, enabled by the CTS testing tool in testing and control equipment B to the system OS in terminal device A to be measured2
The function of USB debugging is carried out, it can be by system OS in testing and control equipment B and terminal device A to be measured2It is established by USB interface
Test communicates to connect, and the CTS testing tool in subsequent testing and control equipment B scans the system kernel of terminal device A to be measured, such as
Linux kernel kernel, relevant device node and guide system start list, to inquire system in terminal device A to be measured
OS1And OS2Relevant information, so as to get system OS in terminal device A to be measured1And OS2System related information.
In a preferred embodiment, this method further includes step S140;Step S140: testing and control device request acquisition pair
The test permission of terminal device to be measured, and receive the authorization message of terminal device feedback to be measured.
For example, if system OS1 passes through USB interface foundation test communication link in testing and control equipment B and terminal device A to be measured
System OS of the CTS testing tool into terminal device A to be measured after connecing, in testing and control equipment B1It sends and obtains to terminal to be measured
The request of the test permission of system OS1 in equipment A, system OS1CTS test according to the request, into testing and control equipment B
Tool sends system OS1The authority information of administrator, then, CTS testing tool in testing and control equipment B is according to receiving
The system OS of terminal device A feedback to be measured1The authority information of administrator scans the system kernel of terminal device A to be measured, such as
Linux kernel kernel, relevant device node and guide system start list, to inquire system in terminal device A to be measured
OS1And OS2Relevant information, so as to get system OS in terminal device A to be measured1And OS2System related information.
Step S120: the test assignment of the system related information configuration corresponding system based on each system.
Specifically, the system related information based on each system in terminal device to be measured configures the survey of corresponding each system
Trial business.
For example, based on system OS in terminal device A to be measured is got1With system OS2System related information, from pre-stored
Test assignment library in extract the system OS to match with its respective system related information1Test assignment and system OS2Survey
Trial business.
Step S130: corresponding system testing is executed to each system according to test assignment one by one, to generate test result.
Specifically, according to the corresponding test assignment of each system, corresponding system is executed to each system one by one and is surveyed
Examination, to generate test result.
For example, according to system OS in terminal device A to be measured1With system OS2Test assignment, to system OS1With system OS2
Sequence is executed according to scheduled, the sequence such as successively executed, one by one to system OS1With system OS2Corresponding system testing is executed,
To generate test result.
In a preferred embodiment, when system related information includes system type, step S120 is based on each system
The test assignment of system relevant information configuration corresponding system specifically includes:
When the system type of at least two systems in terminal device to be measured is identical, if configuration pin is at least two systems
In any system test assignment in need in terminal device to be measured multiple physical device interfaces execute test operation, then
Configuration pin does not execute the test operation to multiple physical device interfaces to the test assignment of the other systems at least two systems.
For example, based on system OS in terminal device A to be measured is got1With system OS2System related information, judgement obtains
System OS1With system OS2System type be all Android operation system, if configuration pin is to system OS1Test assignment in, need
Bluetooth equipment interface and audio frequency apparatus interface to terminal device A to be measured and the function execution test behaviour to application program App1
Make, then configuration pin is to system OS2Test assignment in do not execute test operation to bluetooth equipment interface and audio frequency apparatus interface,
It executes to other physical device interfaces, such as the test operation of video device interface, and the function execution to application program App1
Test operation;Then according to system OS1With system OS2Corresponding test assignment executes sequence according to scheduled, such as successively
The sequence of execution, supporting that hot-swap mode is realized automatically in the case where each system shares same system kernel, between each system is
Switch between system, when end is to system OS1After executing test operation, without restarting system OS2, can earnestly shift to system OS2;?
In the case where the not shared same system kernel of each system, branch is cut between being restarted automatically switching mode automatic realizing system between each system
It changes, when end is to system OS1After executing test operation, it is restarted automatically system OS2, that is, can switch to system OS2;First to system
OS1The test operation of bluetooth equipment interface and audio frequency apparatus interface is executed, to generate system OS1Test result, then according to according to
The sequence of secondary execution automatically switches to system OS2, to system OS2Other physical device interfaces are executed, such as video device interface
Test operation, to generate system OS2Test result.In the case where each system smoothly completes and executes test operation, then it is directed to
System OS2The test operation of bluetooth equipment interface and audio frequency apparatus interface is executed, to generate system OS2Another test result,
Then again to system OS1The test operation of video device interface is executed, to generate system OS1Another test result.
Through this embodiment, the test assignment for realizing each system of automatic configuration avoids manually to each system
Test assignment is separately configured, meanwhile, it avoids and weight is performed a plurality of times to the same test target in terminal device in each system
The case where repetition measurement tries, improves the allocative efficiency of test assignment, to reduce the human cost of test.
It should be noted that accuracy in order to ensure the test results, also interchangeable system OS1With system OS2It is respectively corresponding
Test assignment, to carry out corresponding negative testing.
For example, based on system OS in terminal device A to be measured is got1With system OS2System related information, judgement obtains
System OS1With system OS2System type be all Android operation system, if configuration pin is to system OS1Test assignment in, need
Bluetooth equipment interface and audio frequency apparatus interface to terminal device A to be measured and the function execution test behaviour to application program App1
Make, configuration pin is to system OS2Test assignment in execute to the test operation of video device interface, and to application program App2
Function test operation;As complete paired systems OS1With system OS2Test assignment after, generate system OS1With system OS2Respectively
Test result, accuracy in order to ensure the test results, also interchangeable system OS1With system OS2Corresponding test is appointed
Business, to system OS2Test assignment in execute to the bluetooth equipment interface and audio frequency apparatus interface of terminal device A to be measured and right
The function of application program App2 executes test operation, to generate system OS2Another test result;Then to system OS1Survey
The test operation of the function to video device interface and to application program App1 is executed in trial business, to generate system OS1's
Another test result.In another example based on system OS in terminal device A to be measured is got1With system OS2System related information,
Judgement obtains system OS1With system OS2System type be all Android operation system, if configuration pin is to system OS1Test
In task, need to bluetooth equipment interface to terminal device A to be measured and audio frequency apparatus interface execute test operation, then configuration pin is to being
Unite OS2Test assignment in do not execute test operation to bluetooth equipment interface and audio frequency apparatus interface, execute to video equipment
The test operation of interface;Then according to system OS1With system OS2Corresponding test assignment executes sequence according to scheduled,
As the sequence successively executed supports hot-swap mode automatic in the case where each system shares same system kernel between each system
Intersystem handover is realized, first to system OS1Execute bluetooth equipment interface and audio frequency apparatus interface test operation, if to appoint
One system, such as system OS1During executing test operation, because system environments mistake, user force the uncertainties such as stopping, making
Paired systems OS1In the case that execution test operation is dropped by the wayside, it can configure and be directed to other systems, such as system OS2Test assignment
The middle test operation executed to bluetooth equipment interface, audio frequency apparatus interface and video device interface, when end is to system OS1It executes
After test operation, without restarting system OS2, can earnestly shift to system OS2, then to system OS2Execution bluetooth equipment interface,
The test operation of audio frequency apparatus interface and video device interface, to generate system OS2Test result, and generate system OS1Test
The correlation report of interrupt error.
In a preferred embodiment, when system related information includes system kernel information, step S120 is based on each system
System related information configuration corresponding system test assignment specifically include:
When the sharing same kernel of at least two systems in terminal device to be measured, if configuration pin is at least two systems
In any system test assignment in need in terminal device to be measured multiple physical device interfaces execute test operation, then
Configuration pin executes scan operation to multiple physical equipments in the other systems at least two systems.
For example, based on system OS in terminal device A to be measured is got1With system OS2System related information, judgement obtains
System OS1With system OS2Same Linux kernel kernel is shared, if configuration pin is to system OS1Test assignment in, need to treat
The bluetooth equipment interface and audio frequency apparatus interface for surveying terminal device A execute test operation, then configuration pin is to system OS2Test appoint
The sweep test to bluetooth equipment interface and audio frequency apparatus interface is executed in business to operate;Then according to system OS1With system OS2Respectively
Self-corresponding test assignment executes sequence according to scheduled, the sequence such as successively executed, supports hot-swap mode certainly between each system
It is dynamic to realize intersystem handover, first to system OS1The test operation of bluetooth equipment interface and audio frequency apparatus interface is executed, to generate
System OS1Test result, when terminate to system OS1After executing test operation, without restarting system OS2, can earnestly shift to and be
Unite OS2, then to system OS2The sweep test operation of bluetooth equipment interface and audio frequency apparatus interface is executed, to generate system OS2
Test result.
Through this embodiment, it realizes and corresponding automatic test is executed to each system, realized in test process and be
Automatic switchover between system avoids each system of shared same system kernel in net system switching process, manually to each system
The situation that system executes switching or restarts, has greatly saved the testing time of multisystem terminal device, has improved testing efficiency.
It should be noted that at least two systems in accuracy in order to ensure the test results, with terminal device to be measured
The identical situation of system type take similar operation, interchangeable system OS1With system OS2Corresponding test assignment, with
Corresponding negative testing is carried out, this will not be repeated here;If when occurring to any system, such as system OS1Execute test operation
In the process, because system environments mistake, user force the uncertainties such as stopping, paired systems OS is made1Test operation midway is executed to move back
In the case where out, also the situation identical as the system type of at least two systems in terminal device to be measured takes similar behaviour
Make, configuration pin is to other systems, such as system OS2Test assignment in execute system OS1Test assignment, also do not repeat them here herein.
In a preferred embodiment, when the sharing same kernel of at least two systems in terminal device to be measured, step
S130 is specifically included: being executed corresponding system testing one by one at least two systems according to test assignment, is generated and be directed at least two
One test result of a system.
For example, based on system OS in terminal device A to be measured is got1With system OS2System related information, judgement obtains
System OS1With system OS2Same Linux kernel kernel is shared, according to system OS1With system OS2Respective test assignment, according to
It is secondary successively to system OS1With system OS2The corresponding system testing of execution one by one, generate be directed to system OS1With system OS2It shares
A test result.
Fig. 2 is the structure of the testing and control equipment that test is executed to multisystem terminal device of another embodiment in the present invention
Schematic diagram.
In the embodiment of the present invention, Description of content performed by each module is as follows: setting 210 testing and control of configuration module is set
The standby dependence test setting option for configuring terminal device to be measured, and obtain the system related information of each system in terminal device;Appoint
The test assignment of system related information configuration corresponding system of the configuration module 220 of being engaged in based on each system;230 basis of test module
Test assignment executes corresponding system testing to each system one by one, to generate test result.
In the embodiment of the present invention, the testing and control equipment that a kind of pair of multisystem terminal device executes test is proposed, is surveyed
The dependence test setting option of examination control device configuration terminal device to be measured, and the system for obtaining each system in terminal device is related
Information provides necessity to automatically configure the test assignment of each system and automatically switching to each system execution test operation
Premise guarantee;The test assignment of system related information configuration corresponding system based on each system, realizes automatic configuration
The test assignment of each system avoids and test assignment manually is separately configured to each system, improves the configuration of test assignment
Efficiency, to reduce the human cost of test;Further, corresponding system is executed to each system according to test assignment one by one
Test realizes to generate test result and executes corresponding automatic test to each system, avoids artificial in test process
The situation for executing switching to each system or restarting, has greatly saved the testing time of multisystem terminal device, has improved survey
Try efficiency.Specific implementation below for modules is described further:
The dependence test setting option of 210 testing and control device configuration terminal device to be measured of configuration module is set, and obtains end
The system related information of each system in end equipment.
Specifically, by the dependence test setting option of testing and control device configuration terminal device to be measured, testing and control is set
It is standby to establish connection with terminal device to be measured, and testing and control equipment obtains the system related information of each system in terminal device.
Wherein, dependence test setting option includes but is not limited to that the internetwork connection mode of terminal device is arranged and terminal device is arranged and tests
Control the debud mode of equipment.
For example, terminal device A to be measured includes system OS1With system OS2, include system testing work in testing and control equipment B
Tool, such as CTS (Compatibility Test Suite, compatibility test) testing tool, passes through USB for terminal device A to be measured
Interface accesses testing and control equipment B, starts CTS testing tool in testing and control equipment B, currently locates in terminal device A to be measured
System in foreground is system OS1, system OS is then configured by the CTS testing tool in testing and control equipment B1WIFI
(WIreless-Fidelity, Wireless Fidelity) connection, and enable and USB debugging is carried out to system each in terminal device A to be measured
Function, can be by system OS in testing and control equipment B and terminal device A to be measured1Test connection, then, CTS are established by USB
Testing tool can get system OS in terminal device A1With system OS2System related information, such as system OS1Operating system
Type is Android operation system, system OS1Kernel be " Linux kernel ", system OS1System identification information be
“OS1- Android-Linux kernel ", system OS2OS Type be Android operation system, system OS2It is interior
Core is " Linux kernel ", system OS2System identification information be " OS2-Android-Linux kernel”。
It should be noted that those skilled in the art are it can be appreciated that CTS test is that the Android that Google is released is flat
Platform compatibility test is the test frame program of a set of test case for containing a automatic runnings up to ten thousand.It is mainly used to test
Whether the Android platform that OEM (Original Equipment Manufacturer, original equipment manufacturer) manufacturer realizes
Meet the api interface definition of Android, to realize that each application program provides better usage experience for user.Reality of the invention
It applies in example, each system in equipment to be tested can be setting with the creation of Linux container (container) virtualization technology
Container in operating system;Operating system can be traditional (SuSE) Linux OS or Unix operating system, can also
To be the android system being derived based on (SuSE) Linux OS, Ubuntu system or FireFox system etc., can also be
Windows system based on windows platform etc..In fact, each system in the present invention is not limited to aforementioned enumerate
Operating system, all operating systems that can be run in a reservoir can be covered, therefore, as the behaviour in the embodiment of the present invention
When to make system be android system, the system testing tool in testing and control equipment can be CTS testing tool, work as the present invention
Embodiment in operating system when not being android system, the system testing tool in testing and control equipment can be other
System testing tool, it is not limited here.
Preferably, setting configuration module 210 is specifically used for switching on terminal device to be measured making a reservation for first examining system, and
Configure the test communication mode of terminal device to be measured Yu testing and control equipment.
For example, the first examining system that makes a reservation for of terminal device A to be measured is system OS2, by the foreground system of terminal device A to be measured
System switches to system OS2, enabled by the CTS testing tool in testing and control equipment B to the system OS in terminal device A to be measured2
The function of USB debugging is carried out, it can be by system OS in testing and control equipment B and terminal device A to be measured2It is established by USB interface
Test communicates to connect, and the CTS testing tool in subsequent testing and control equipment B scans the system kernel of terminal device A to be measured, such as
Linux kernel kernel, relevant device node and guide system start list, to inquire system in terminal device A to be measured
OS1And OS2Relevant information, so as to get system OS in terminal device A to be measured1And OS2System related information.
In a preferred embodiment, which further includes request and receiving module;Request and receiving module are surveyed
Examination control device request obtains the test permission to terminal device to be measured, and receives the authorization letter of terminal device feedback to be measured
Breath.
For example, if system OS in testing and control equipment B and terminal device A to be measured1Test communication link is established by USB interface
System OS of the CTS testing tool into terminal device A to be measured after connecing, in testing and control equipment B1It sends and obtains to terminal to be measured
System OS in equipment A1Test permission request, system OS1CTS test according to the request, into testing and control equipment B
Tool sends system OS1The authority information of administrator, then, CTS testing tool in testing and control equipment B is according to receiving
The system OS of terminal device A feedback to be measured1The authority information of administrator scans the system kernel of terminal device A to be measured, such as
Linux kernel kernel, relevant device node and guide system start list, to inquire system in terminal device A to be measured
OS1And OS2Relevant information, so as to get system OS in terminal device A to be measured1And OS2System related information.
The test assignment of system related information configuration corresponding system of the task configuration module 220 based on each system.
Specifically, the system related information based on each system in terminal device to be measured configures the survey of corresponding each system
Trial business.
For example, based on system OS in terminal device A to be measured is got1With system OS2System related information, from pre-stored
Test assignment library in extract the system OS to match with its respective system related information1Test assignment and system OS2Survey
Trial business.
Test module 230 executes corresponding system testing to each system according to test assignment one by one, to generate test knot
Fruit.
Specifically, according to the corresponding test assignment of each system, corresponding system is executed to each system one by one and is surveyed
Examination, to generate test result.
For example, according to system OS in terminal device A to be measured1With system OS2Test assignment, to system OS1With system OS2
Sequence is executed according to scheduled, the sequence such as successively executed, one by one to system OS1With system OS2Corresponding system testing is executed,
To generate test result.
In a preferred embodiment, when system related information includes system type, task configuration module 220 is based on each system
The test assignment of the system related information configuration corresponding system of system specifically includes:
When the system type of at least two systems in terminal device to be measured is identical, if configuration pin is at least two systems
In any system test assignment in need in terminal device to be measured multiple physical device interfaces execute test operation, then
Configuration pin does not execute the test operation to multiple physical device interfaces to the test assignment of the other systems at least two systems.
For example, based on system OS in terminal device A to be measured is got1With system OS2System related information, judgement obtains
System OS1With system OS2System type be all Android operation system, if configuration pin is to system OS1Test assignment in, need
Bluetooth equipment interface and audio frequency apparatus interface to terminal device A to be measured and the function execution test behaviour to application program App1
Make, then configuration pin is to system OS2Test assignment in do not execute test operation to bluetooth equipment interface and audio frequency apparatus interface,
It executes to other physical device interfaces, such as the test operation of video device interface, and the function execution to application program App1
Test operation;Then according to system OS1With system OS2Corresponding test assignment executes sequence according to scheduled, such as successively
The sequence of execution, supporting that hot-swap mode is realized automatically in the case where each system shares same system kernel, between each system is
Switch between system, when end is to system OS1After executing test operation, without restarting system OS2, can earnestly shift to system OS2;?
In the case where the not shared same system kernel of each system, branch is cut between being restarted automatically switching mode automatic realizing system between each system
It changes, when end is to system OS1After executing test operation, it is restarted automatically system OS2, that is, can switch to system OS2;First to system
OS1The test operation of bluetooth equipment interface and audio frequency apparatus interface is executed, to generate system OS1Test result, then according to according to
The sequence of secondary execution automatically switches to system OS2, to system OS2Other physical device interfaces are executed, such as video device interface
Test operation, to generate system OS2Test result.In the case where each system smoothly completes and executes test operation, then it is directed to
System OS2The test operation of bluetooth equipment interface and audio frequency apparatus interface is executed, to generate system OS2Another test result,
Then again to system OS1The test operation of video device interface is executed, to generate system OS1Another test result.
Through this embodiment, the test assignment for realizing each system of automatic configuration avoids manually to each system
Test assignment is separately configured, meanwhile, it avoids and weight is performed a plurality of times to the same test target in terminal device in each system
The case where repetition measurement tries, improves the allocative efficiency of test assignment, to reduce the human cost of test.
It should be noted that accuracy in order to ensure the test results, also interchangeable system OS1With system OS2It is respectively corresponding
Test assignment, to carry out corresponding negative testing.
For example, based on system OS in terminal device A to be measured is got1With system OS2System related information, judgement obtains
System OS1With system OS2System type be all Android operation system, if configuration pin is to system OS1Test assignment in, need
Bluetooth equipment interface and audio frequency apparatus interface to terminal device A to be measured and the function execution test behaviour to application program App1
Make, configuration pin is to system OS2Test assignment in execute to the test operation of video device interface, and to application program App2
Function test operation;As complete paired systems OS1With system OS2Test assignment after, generate system OS1With system OS2Respectively
Test result, accuracy in order to ensure the test results, also interchangeable system OS1With system OS2Corresponding test is appointed
Business, to system OS2Test assignment in execute to the bluetooth equipment interface and audio frequency apparatus interface of terminal device A to be measured and right
The function of application program App2 executes test operation, to generate system OS2Another test result;Then to system OS1Survey
The test operation of the function to video device interface and to application program App1 is executed in trial business, to generate system OS1's
Another test result.In another example based on system OS in terminal device A to be measured is got1With system OS2System related information,
Judgement obtains system OS1With system OS2System type be all Android operation system, if configuration pin is to system OS1Test
In task, need to bluetooth equipment interface to terminal device A to be measured and audio frequency apparatus interface execute test operation, then configuration pin is to being
Unite OS2Test assignment in do not execute test operation to bluetooth equipment interface and audio frequency apparatus interface, execute to video equipment
The test operation of interface;Then according to system OS1With system OS2Corresponding test assignment executes sequence according to scheduled,
As the sequence successively executed supports hot-swap mode automatic in the case where each system shares same system kernel between each system
Intersystem handover is realized, first to system OS1Execute bluetooth equipment interface and audio frequency apparatus interface test operation, if to appoint
One system, such as system OS1During executing test operation, because system environments mistake, user force the uncertainties such as stopping, making
Paired systems OS1In the case that execution test operation is dropped by the wayside, it can configure and be directed to other systems, such as system OS2Test assignment
The middle test operation executed to bluetooth equipment interface, audio frequency apparatus interface and video device interface, when end is to system OS1It executes
After test operation, without restarting system OS2, can earnestly shift to system OS2, then to system OS2Execution bluetooth equipment interface,
The test operation of audio frequency apparatus interface and video device interface, to generate system OS2Test result, and generate system OS1Test
The correlation report of interrupt error.
In a preferred embodiment, when system related information includes system kernel information, task configuration module 220 is based on each
The test assignment of the system related information configuration corresponding system of a system specifically includes:
When the sharing same kernel of at least two systems in terminal device to be measured, if configuration pin is at least two systems
In any system test assignment in need in terminal device to be measured multiple physical device interfaces execute test operation, then
Configuration pin executes scan operation to multiple physical equipments in the other systems at least two systems.
For example, based on system OS in terminal device A to be measured is got1With system OS2System related information, judgement obtains
System OS1With system OS2Same Linux kernel kernel is shared, if configuration pin is to system OS1Test assignment in, need to treat
The bluetooth equipment interface and audio frequency apparatus interface for surveying terminal device A execute test operation, then configuration pin is to system OS2Test appoint
The sweep test to bluetooth equipment interface and audio frequency apparatus interface is executed in business to operate;Then according to system OS1With system OS2Respectively
Self-corresponding test assignment executes sequence according to scheduled, the sequence such as successively executed, supports hot-swap mode certainly between each system
It is dynamic to realize intersystem handover, first to system OS1The test operation of bluetooth equipment interface and audio frequency apparatus interface is executed, to generate
System OS1Test result, when terminate to system OS1After executing test operation, without restarting system OS2, can earnestly shift to and be
Unite OS2, then to system OS2The sweep test operation of bluetooth equipment interface and audio frequency apparatus interface is executed, to generate system OS2
Test result.
Through this embodiment, it realizes and corresponding automatic test is executed to each system, realized in test process and be
Automatic switchover between system avoids each system of shared same system kernel in net system switching process, manually to each system
The situation that system executes switching or restarts, has greatly saved the testing time of multisystem terminal device, has improved testing efficiency.
It should be noted that at least two systems in accuracy in order to ensure the test results, with terminal device to be measured
The identical situation of system type take similar operation, interchangeable system OS1With system OS2Corresponding test assignment, with
Corresponding negative testing is carried out, this will not be repeated here;If when occurring to any system, such as system OS1Execute test operation
In the process, because system environments mistake, user force the uncertainties such as stopping, paired systems OS is made1Test operation midway is executed to move back
In the case where out, also the situation identical as the system type of at least two systems in terminal device to be measured takes similar behaviour
Make, configuration pin is to other systems, such as system OS2Test assignment in execute system OS1Test assignment, also do not repeat them here herein.
In a preferred embodiment, when the sharing same kernel of at least two systems in terminal device to be measured, test
Module 230 is specifically used for executing corresponding system testing one by one at least two systems according to test assignment, generates at least
One test result of two systems.
For example, based on system OS in terminal device A to be measured is got1With system OS2System related information, judgement obtains
System OS1With system OS2Same Linux kernel kernel is shared, according to system OS1With system OS2Respective test assignment, according to
It is secondary successively to system OS1With system OS2The corresponding system testing of execution one by one, generate be directed to system OS1With system OS2It shares
A test result.
Fig. 3 is the structure of the test console that test is executed to multisystem terminal device of still another embodiment in the present invention
Schematic diagram.
In the embodiment of the present invention, Description of content performed by each unit is as follows: setting 310 testing and control of configuration unit is set
The standby dependence test setting option for configuring terminal device to be measured, and obtain the system related information of each system in terminal device;Appoint
The test assignment of system related information configuration corresponding system of the configuration unit 320 of being engaged in based on each system;330 basis of test cell
Test assignment executes corresponding system testing to each system one by one, to generate test result.
In the embodiment of the present invention, executed in setting configuration unit 310, task configuration unit 320 and test cell 330
Operation is held in setting configuration module 210, task configuration module 220 and test module 230 with testing and control equipment shown in Fig. 2
Capable operation is same or similar, and details are not described herein.
Those skilled in the art of the present technique are appreciated that the present invention includes being related to for executing in operation described herein
One or more equipment.These equipment can specially design and manufacture for required purpose, or also may include general
Known device in computer.These equipment have the computer program being stored in it, these computer programs are selectively
Activation or reconstruct.Such computer program can be stored in equipment (for example, computer) readable medium or be stored in
It e-command and is coupled in any kind of medium of bus respectively suitable for storage, the computer-readable medium includes but not
Be limited to any kind of disk (including floppy disk, hard disk, CD, CD-ROM and magneto-optic disk), ROM (Read-Only Memory, only
Read memory), RAM (Random Access Memory, immediately memory), EPROM (Erasable Programmable
Read-Only Memory, Erarable Programmable Read only Memory), EEPROM (Electrically Erasable
Programmable Read-Only Memory, Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or light card
Piece.It is, readable medium includes by equipment (for example, computer) with any Jie for the form storage or transmission information that can be read
Matter.
Those skilled in the art of the present technique be appreciated that can be realized with computer program instructions these structure charts and/or
The combination of each frame and these structure charts and/or the frame in block diagram and/or flow graph in block diagram and/or flow graph.This technology neck
Field technique personnel be appreciated that these computer program instructions can be supplied to general purpose computer, special purpose computer or other
The processor of programmable data processing method is realized, to pass through the processing of computer or other programmable data processing methods
The scheme specified in frame or multiple frames of the device to execute structure chart and/or block diagram and/or flow graph disclosed by the invention.
Those skilled in the art of the present technique have been appreciated that in the present invention the various operations crossed by discussion, method, in process
Steps, measures, and schemes can be replaced, changed, combined or be deleted.Further, each with having been crossed by discussion in the present invention
Kind of operation, method, other steps, measures, and schemes in process may also be alternated, changed, rearranged, decomposed, combined or deleted.
Further, in the prior art to have and the step in various operations, method disclosed in the present invention, process, measure, scheme
It may also be alternated, changed, rearranged, decomposed, combined or deleted.
The above is only some embodiments of the invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.