CN106412566A - Automated testing method and apparatus for smart television - Google Patents

Automated testing method and apparatus for smart television Download PDF

Info

Publication number
CN106412566A
CN106412566A CN201610803632.0A CN201610803632A CN106412566A CN 106412566 A CN106412566 A CN 106412566A CN 201610803632 A CN201610803632 A CN 201610803632A CN 106412566 A CN106412566 A CN 106412566A
Authority
CN
China
Prior art keywords
test
script
intelligent television
mark
parameter
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
CN201610803632.0A
Other languages
Chinese (zh)
Other versions
CN106412566B (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.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics 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 Shenzhen Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN201610803632.0A priority Critical patent/CN106412566B/en
Publication of CN106412566A publication Critical patent/CN106412566A/en
Application granted granted Critical
Publication of CN106412566B publication Critical patent/CN106412566B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/004Diagnosis, testing or measuring for television systems or their details for digital television systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

Disclosed is an automated testing method for a smart television, comprising: when a testing instruction of the smart television is received, acquiring a testing sample corresponding to the smart television, wherein the testing sample comprises a plurality of testing scripts and testing parameters corresponding to the testing scripts; when a testing actuator is in an idle state, acquiring testing identifiers of the testing scripts in sequence, and controlling the testing actuator to operate the testing scripts corresponding to the testing identifiers based on the testing parameters corresponding to the testing identifiers; and when operation of the testing scripts is completed, displaying testing results of the testing scripts. Also disclosed is an automated testing apparatus for a smart television. The present invention realizes automated testing for the smart television, avoids insufficient testing strength caused by influence of human factors during manual testing, and improves the testing efficiency and the testing effect, thereby improving the quality and reliability of the smart television.

Description

The automated testing method of intelligent television and device
Technical field
The present invention relates to technical field of measurement and test, more particularly, to a kind of automated testing method of intelligent television and device.
Background technology
With the continuous progress of ntelligent television technolog, people propose higher and higher to the q&r of communication products Require, therefore, intelligent television is proposed with higher quality and requires.
The operating system of current intelligent television has the different operating system such as linux, Android, in TV system software During exploitation, the hardware parameter configuration of different product television system, the configuration of system build-in function and individualized software etc. There is larger difference.At present, during different product television system is tested, tester is needed to be surveyed manually Examination.But, because the different test software of different product needed goes to test, easily it is subject to the shadow of manpower factor using manual testing Ring and cause test dynamics not enough, such as when testing different products, tester easily omits test item and leads to some Function is not tested or is tested not in place it is impossible to ensure the q&r of intelligent television.
Content of the invention
The present invention provides a kind of automated testing method of intelligent television and device it is intended to solve to adopt people in intelligent television Affected by manpower factor during work test and the technical problem of the q&r of intelligent television cannot be ensured.
For achieving the above object, the automated testing method of a kind of intelligent television that the present invention provides, described intelligent television Automated testing method comprise the following steps:
When the test receiving described intelligent television instructs, obtain the corresponding test sample of described intelligent television, wherein, Described test sample includes multiple test scripts and the corresponding test parameter of described test script;
When test executing device is in idle state, obtain the test mark of described test script successively, and control test Executor is based on the described test of the corresponding test parameter operation of described test mark and identifies corresponding test script;
When the operation of described test script completes, show the test result of described test script.
Preferably, after the described step obtaining the corresponding test sample of described intelligent television, described intelligent television Automated testing method also includes:
Test list is generated based on described test script, wherein, described test list includes the script of described test script Mark;
Described when test executing device is in idle state, obtain the test mark of described test script successively, and control Test executing device runs, based on the corresponding test parameter of described test mark, the step that described test identifies corresponding test script Including:When test executing device is in idle state, obtains the test mark in described test list successively, and control test to hold Row device is based on the described test of the corresponding test parameter operation of described test mark and identifies corresponding test script.
Preferably, described when test executing device is in idle state, obtain successively described test list in test mark Know, and control test executing device to be based on the described test of the corresponding test parameter operation of described test mark and identify corresponding test foot This step includes:
When test executing device is in idle state, successively the test mark in described test list is stored to test pond In;
Described test executing device is controlled to obtain the test mark in described test pond, and corresponding based on described test mark Test parameter runs described test and identifies corresponding test script.
Preferably, described when receiving the test request of described intelligent television, obtain the corresponding survey of described intelligent television This step of sample includes:
When receiving the test request of described intelligent television, obtain the test parameter of described intelligent television, wherein, described Test parameter includes hardware parameter and the systematic parameter of described intelligent television;
The corresponding test script of described intelligent television is obtained based on described test parameter.
Preferably, when the operation of described test script completes, after showing the step of test result of described test script, The automated testing method of described intelligent television also includes:
When the derivation receiving test result instructs, whether detection has currently connected External memory equipment;
In currently attached External memory equipment, described test result is stored to described External memory equipment.
Additionally, for achieving the above object, the present invention also provides a kind of automatic test device of intelligent television, described intelligence The automatic test device of TV includes:
First acquisition module, during for instructing in the test receiving described intelligent television, obtains described intelligent television pair The test sample answered, wherein, described test sample includes multiple test scripts and the corresponding test parameter of described test script;
Second acquisition module, for when test executing device is in idle state, obtaining the survey of described test script successively Test-object knowledge, and control test executing device to be based on the described test corresponding survey of mark of the corresponding test parameter operation of described test mark Training is originally;
Display module, for when the operation of described test script completes, showing the test result of described test script.
Preferably, the automatic test device of described intelligent television also includes:
Generation module, for generating test list based on described test script, wherein, described test list includes described survey This script mark of training;
Described second acquisition module is additionally operable to, when test executing device is in idle state, obtain described test list successively In test mark, and controlling test executing device to be based on the described test corresponding test parameter of mark, to run described test mark right The test script answered.
Preferably, described second acquisition module includes:
Memory element, for when test executing device is in idle state, successively by the test mark in described test list Know and store to test pond;
Control unit, for controlling described test executing device to obtain the test mark in described test pond, and based on described The corresponding test parameter of test mark runs described test and identifies corresponding test script.
Preferably, described first acquisition module includes:
First acquisition unit, for when receiving the test request of described intelligent television, obtaining described intelligent television Test parameter, wherein, described test parameter includes hardware parameter and the systematic parameter of described intelligent television;
Second acquisition unit, for obtaining the corresponding test script of described intelligent television based on described test parameter.
Preferably, the automatic test device of described intelligent television also includes:
Detection module, during for instructing in the derivation receiving test result, whether detection has currently connected external storage Equipment;
Memory module, in currently attached External memory equipment, described test result being stored to described outside Storage device.
The present invention passes through, when the test receiving described intelligent television instructs, to obtain the corresponding test of described intelligent television Sample, then when test executing device is in idle state, obtains the test mark of described test script successively, and controls test Executor is based on the described test of the corresponding test parameter operation of described test mark and identifies corresponding test script, finally described Test script runs when completing, and shows the test result of described test script it is achieved that the automatic test of intelligent television, it is to avoid Affected by manpower factor when being tested by the way of artificial and caused the not enough situation of test dynamics, improve test Efficiency and test effect, and then improve the q&r of intelligent television.
Brief description
Fig. 1 is the schematic flow sheet of the automated testing method first embodiment of intelligent television of the present invention;
Fig. 2 is for obtaining successively in the automated testing method second embodiment of intelligent television of the present invention in described test list Test mark, and control test executing device to be based on the described test corresponding test parameter of mark and run described test mark to correspond to Test script step refinement schematic flow sheet;
Fig. 3 is corresponding for obtaining described intelligent television in the automated testing method 3rd embodiment of intelligent television of the present invention The refinement schematic flow sheet of test sample step;
Fig. 4 is the schematic flow sheet of the automated testing method fourth embodiment of intelligent television of the present invention;
Fig. 5 is the high-level schematic functional block diagram of the automatic test device first embodiment of intelligent television of the present invention;
Fig. 6 is the refinement function of the second acquisition module in the automatic test device second embodiment of intelligent television of the present invention Module diagram;
Fig. 7 is the refinement function of the first acquisition module in the automatic test device 3rd embodiment of intelligent television of the present invention Module diagram;
Fig. 8 is the high-level schematic functional block diagram of the automatic test device fourth embodiment of intelligent television of the present invention.
The realization of the object of the invention, functional characteristics and advantage will be described further in conjunction with the embodiments referring to the drawings.
Specific embodiment
It should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
The present invention provides a kind of automated testing method of intelligent television.With reference to Fig. 1, Fig. 1 is intelligent television of the present invention The schematic flow sheet of automated testing method first embodiment.
In the present embodiment, the automated testing method of this intelligent television includes:
Step S10, when the test receiving described intelligent television instructs, obtains the corresponding test specimens of described intelligent television This, wherein, described test sample includes multiple test scripts and the corresponding test parameter of described test script;
In the present embodiment, when the test receiving described intelligent television instructs, obtain the movement of intelligent television, type, By the essential information of intelligent television, the essential informations such as Android version, confirm whether this intelligent television supports special test item Mesh, whether such as this intelligent television is supported external SD card, whether is carried photographic head, whether supports boot animation etc., in combination with intelligence The test item of the energy basic general utility functionss of TV, the dynamic test sample generating for this intelligent television, and dynamically generation one is surveyed Examination list.
Wherein, test parameter includes movement parameter, type parameter, Android Release parameter, sd card support parameter, mouse Support that parameter, handle support that parameter, keyboard support parameter etc.;Test script be for each of this intelligent television hardware and Test program corresponding to function.Test instruction can be sent to intelligent television by server or other equipment by tester Automatic test device, or testing button/button is provided with the automatic test device of intelligent television, for needing Will when trigger test instruction.
Above-mentioned test script at least includes one below:Type test script, MEMTEST script, subregion test script, Signature test script, System Privileges test script, font test script, keyboard test script, USB flash disk test script, mouse test Script, handle test script, boot animation test script and the test script that recovers to dispatch from the factory.Wherein, type test script, be for Automatically obtain in product and comprise movement, type, the test program of the essential information of system version number;MEMTEST script, is to use The test program of the functions such as the memory size that can use after test product memory size altogether, system are got up;Subregion is surveyed Training basis, is to whether there is for the subregion defined in test system, and whether in accordance with product calmly to guarantee the size of each subregion The test program of the design of justice;Signature test script, be for test current production be use system acquiescence signature or The self-defined signature of manufacturer;System Privileges test script, is whether the authority for major divisions in detecting system and catalogue meets The requirement of design, if lead to the test program of possible system security risk with the presence of the excessive authority of opening;Font tests foot This, be the test program for whether there being the self-defining general font of built-in product in detecting system;Recover to dispatch from the factory test script, Be reply for test product and dispatch from the factory after, and whether the relevant design of intelligent television reached the test journey of the requirement dispatched from the factory Sequence;Keyboard test script, is for the support situation detecting current production system for keyboard, needs user operation this when The test program of keyboard;USB flash disk test script, is the support feelings for detecting current production system for extraneous storage device USB flash disk Condition, is written and read to USB flash disk operating, and checks the test program altogether to the identification of USB flash disk, storage for the current system;Mouse test script, be For detecting the support situation to mouse for the current system, whether current system supports the test program of mouse;Handle test script, It is the support situation for detecting current system to different game paddles, if support the test program of main flow game paddle; Boot animation test script, be for detect current system to boot animation survey support situation, can support standard start move The test program drawn.
Step S20, when test executing device is in idle state, obtains the test mark of described test script successively, and Control test executing device to be based on the described test of the corresponding test parameter operation of described test mark and identify corresponding test script;
In the present embodiment, when test executing device leaves unused, according to test mark corresponding test parameter testing results successively Test in list identifies corresponding test script, to carry out dependence test, when the operation of test script each time completes, controls Test executing device runs next test and identifies corresponding test script, and then enables the test script tested in list complete Portion runs and completes.
Step S30, when the operation of described test script completes, shows the test result of described test script.
In the present embodiment, test result that test executing device is completed, logical between test executing device and program interaction UI The mode crossing readjustment obtains test result data, after program interaction layer UI receives test result data, to test result data Carry out unserializing and obtain data object, and the data object after unserializing is carried out with parsing obtaining test result, specifically, To the title of the test result read test script obtaining, the information such as test whether to pass through, with " test name:Test whether to lead to Cross " form be presented in UI interface, for not over test item, it will when all test scripts complete together Present to user, and represent simultaneously corresponding do not pass through reason, and test is by the standard having, and current test script The object information of each point test;Test result data includes comprising in the test result data of current test script:Whether Test is passed through, the test result situation of each of the examination criteria of current test script, current test script point.
Further, in other embodiments, after step slo, the automated testing method of this intelligent television also wraps Include:Test list is generated based on described test script, wherein, described test list includes the script mark of described test script;
In the present embodiment, test list is generated based on test script and refers to all surveys getting according to random order In sample basis, the script mark of test script stores to test list.
Step S20 includes, when test executing device is in idle state, obtaining the test mark in described test list successively Know, and control test executing device to be based on the described test of the corresponding test parameter operation of described test mark and identify corresponding test foot This;
In the present embodiment, when test executing device leaves unused, corresponding test parameter is identified according to the test in test list Test in testing results list identifies corresponding test script successively, to carry out dependence test, in the fortune of test script each time When row completes, control test executing device to run next test and identify corresponding test script, and then make in test list Test script can all run and complete.
In the present embodiment, during by instructing in the test receiving described intelligent television, obtaining described intelligent television and corresponding to Test sample, then when test executing device is in idle state, obtain the test mark of described test script successively, and control Test executing device processed is based on the described test of the corresponding test parameter operation of described test mark and identifies corresponding test script, finally When the operation of described test script completes, show the test result of described test script it is achieved that the automatization of intelligent television surveys Examination, it is to avoid affected by manpower factor when being tested by the way of artificial and cause the situation of test dynamics deficiency, carry High testing efficiency and test effect, and then improve the q&r of intelligent television.
The second embodiment of the automated testing method of intelligent television of the present invention is proposed based on first embodiment, with reference to Fig. 2, In the present embodiment, step S20 includes:
Step S21, when test executing device is in idle state, successively by the test mark storage in described test list To test pond;
In the present embodiment, the memory space that the test mark in test list is deposited in setting one is test pond, is used for facing Shi Cunfang test mark, to avoid program operation disorder in test process.
Step S22, controls described test executing device to obtain the test mark in described test pond, and based on described test mark Know corresponding test parameter and run the described test corresponding test script of mark.
Corresponding test script is identified according to the test in the test corresponding test parameter of mark successively testing results list, To carry out dependence test, when the operation of test script each time completes, the next test of test executing device operation is controlled to identify right The test script answered, and then so that the test script tested in list is all run and complete.
In implementing, to the test sample list confirming, take out each test item successively, to each taken out Test item is encapsulated in a test script, and wherein, concrete packaged type is:The name of test item is referred to as corresponding test foot This test name, will be incoming as parameter for the predetermined input data of test item, writes when the end to be tested such as test result Enter among test script;Test script comprises:The title of test script, test script need the parameter of transmission, test result number According to structure;The single test script of construction is added in test pond by way of registration interface;Note in test pond The test script entering, is sequentially allocated a thread, the thread of distribution wait a upper thread to terminate after i.e. at test executing device Execute when idle state.
For the test script being registered in test pond, having a thread management module in program is test controller, Test controller is responsible for the life cycle in thread pool, comprises:Thread starts, and thread executes, and thread terminates, and thread is eventually Only;Test controller takes out test script successively, distributes a thread to each test script taking out and tests, test During, each test script thread has different test modes, comprises:During test starts, test, test terminate, Test stops four states, and test script thread initially enters test beginning state, and expression will start to test, and test is carried out Afterwards, by the test name in test script, the test code in corresponding basic test script bank is called to be tested, now Test thread enters state in test, and after the completion of test, upper test result test result being written in test script is protected Deposit data, now enters test done state, and current test script test completes;Simultaneously for the p-wire in test process Journey, when run into user's active operation terminate current test, test controller will the test foot that is currently running of active termination This thread, the state now testing thread becomes test halted state;Test script for the test assignment that completed Test result, test controller will serialize to test script, and the data after seriation is saved in internal memory;Work as test After the completion of the execution of script tested controller, the data in internal memory for the serializing is returned and is given to program interaction layer UI, in program Alternation of bed UI carries out presenting of current test result.
In the present embodiment, by when test executing device is in idle state, successively by the test in described test list Mark stores to test pond, then controls described test executing device to obtain the test mark in described test pond, and is based on institute State the test corresponding test parameter of mark and run described test and identify corresponding test script it is achieved that the automatization of intelligent television Test, and by test pond it can be avoided that the disorderly situation of router in test process, further increase testing efficiency And test effect, and then improve the q&r of intelligent television.
The 3rd embodiment of the automated testing method of intelligent television of the present invention is proposed based on first embodiment, with reference to Fig. 3, In the present embodiment, step S10 includes:
Step S11, when receiving the test request of described intelligent television, obtains the test parameter of described intelligent television, Wherein, described test parameter includes hardware parameter and the systematic parameter of described intelligent television;
Specifically, test parameter includes movement parameter, type parameter, Android Release parameter, sd card support parameter, Mus Mark supports that parameter, handle support that parameter, keyboard support parameter etc..Test instruction can by tester pass through server or other Equipment sends to the automatic test device of intelligent television, or is provided with test on the automatic test device of intelligent television Buttons/keys, for triggering test instruction when needed.
Step S12, obtains the corresponding test script of described intelligent television based on described test parameter.
Wherein, test script at least includes one below:Type test script, MEMTEST script, subregion test script, Signature test script, System Privileges test script, font test script, keyboard test script, USB flash disk test script, mouse test Script, handle test script, boot animation test script and the test script that recovers to dispatch from the factory.
In the present embodiment, by when receiving the test request of described intelligent television, obtaining the survey of described intelligent television Examination parameter, is then based on described test parameter and obtains the corresponding test script of described intelligent television it is achieved that according to intelligent television Test parameter obtain test script, and then can accurately, completely obtain intelligent television needs test script, it can be avoided that Omit test item and lead to some functions not tested or test situation not in place, further increase testing efficiency and survey Examination effect, and then improve the q&r of intelligent television.
The fourth embodiment of the automated testing method of intelligent television of the present invention is proposed based on first embodiment, with reference to Fig. 4, In the present embodiment, after step S30, the automated testing method of intelligent television also includes:
Step S40, when the derivation receiving test result instructs, whether detection has currently connected External memory equipment;
In the present embodiment, can be in the test process of intelligent television or when the whole test of intelligent television completes, by institute Having test script to run the test result obtaining derives, and so that tester carries out subsequently further data processing, therefore exists Receive test result derivation instruction when, detection currently whether connected External memory equipment.
Step S50, in currently attached External memory equipment, described test result is stored and sets to described external storage Standby.
In the present embodiment, for test result each time, distinguish test name, the test result of read test script, To each item according to testing whether to pass through, test without passing through, be successively read not over project, and test passes through Examination criteria be written in specified file;When user needs to derive data, first judge whether user inserts outside and deposit Storage equipment, such as USB flash disk or SD card, if there are insertion storage device, then will preserve the file copy of data in storage device, and It is given to the path file catalogue that user's prompting is derived;Otherwise prompting user does not have external storage equipment, points out user insertion storage Equipment.
In the present embodiment, during by instructing in the derivation receiving test result, whether detection has currently connected outside is deposited Storage equipment;Then in currently attached External memory equipment, described test result is stored to described External memory equipment, real Show and derived test result to External memory equipment, in order to tester, follow-up data processing has been carried out to test result.
The present invention further provides a kind of automatic test device of intelligent television.With reference to Fig. 5, Fig. 5 is present invention intelligence The high-level schematic functional block diagram of the automatic test device first embodiment of TV.
In the present embodiment, the automatic test device of this intelligent television includes:
First acquisition module 10, during for instructing in the test receiving described intelligent television, obtains described intelligent television Corresponding test sample, wherein, described test sample includes multiple test scripts and the corresponding test parameter of described test script;
In the present embodiment, when the test receiving described intelligent television instructs, the first acquisition module 10 obtains intelligent electricity Depending on movement, type, the essential information such as Android version, whether this intelligent television is confirmed by the essential information of intelligent television Support special test event, whether such as this intelligent television is supported external SD card, whether carried photographic head, whether support boot animation Deng, in combination with the test item of the basic general utility functionss of intelligent television, the dynamic test sample generating for this intelligent television, and move State generates a test list.
Wherein, test parameter includes movement parameter, type parameter, Android Release parameter, sd card support parameter, mouse Support that parameter, handle support that parameter, keyboard support parameter etc.;Test script be for each of this intelligent television hardware and Test program corresponding to function.Test instruction can be sent to intelligent television by server or other equipment by tester Automatic test device, or testing button/button is provided with the automatic test device of intelligent television, for needing Will when trigger test instruction.
Above-mentioned test script at least includes one below:Type test script, MEMTEST script, subregion test script, Signature test script, System Privileges test script, font test script, keyboard test script, USB flash disk test script, mouse test Script, handle test script, boot animation test script and the test script that recovers to dispatch from the factory.Wherein, type test script, be for Automatically obtain in product and comprise movement, type, the test program of the essential information of system version number;MEMTEST script, is to use The test program of the functions such as the memory size that can use after test product memory size altogether, system are got up;Subregion is surveyed Training basis, is to whether there is for the subregion defined in test system, and whether in accordance with product calmly to guarantee the size of each subregion The test program of the design of justice;Signature test script, be for test current production be use system acquiescence signature or The self-defined signature of manufacturer;System Privileges test script, is whether the authority for major divisions in detecting system and catalogue meets The requirement of design, if lead to the test program of possible system security risk with the presence of the excessive authority of opening;Font tests foot This, be the test program for whether there being the self-defining general font of built-in product in detecting system;Recover to dispatch from the factory test script, Be reply for test product and dispatch from the factory after, and whether the relevant design of intelligent television reached the test journey of the requirement dispatched from the factory Sequence;Keyboard test script, is for the support situation detecting current production system for keyboard, needs user operation this when The test program of keyboard;USB flash disk test script, is the support feelings for detecting current production system for extraneous storage device USB flash disk Condition, is written and read to USB flash disk operating, and checks the test program altogether to the identification of USB flash disk, storage for the current system;Mouse test script, be For detecting the support situation to mouse for the current system, whether current system supports the test program of mouse;Handle test script, It is the support situation for detecting current system to different game paddles, if support the test program of main flow game paddle; Boot animation test script, be for detect current system to boot animation survey support situation, can support standard start move The test program drawn.
Second acquisition module 20, for when test executing device is in idle state, obtaining successively in described test list Test mark, and control test executing device to be based on the described test corresponding test parameter of mark and run described test mark to correspond to Test script;
In the present embodiment, when test executing device leaves unused, the second acquisition module 20 is according to test mark corresponding test ginseng The test counting in testing results list successively identifies corresponding test script, to carry out dependence test, in test script each time When operation completes, control test executing device to run next test and identify corresponding test script, and then make in test list Test script can all run and complete.
Display module 30, for when the operation of described test script completes, showing the test result of described test script.
In the present embodiment, test result that test executing device is completed, logical between test executing device and program interaction UI The mode crossing readjustment obtains test result data, after program interaction layer UI receives test result data, to test result data Carry out unserializing and obtain data object, and the data object after unserializing is carried out with parsing obtaining test result, specifically, To the title of the test result read test script obtaining, the information such as test whether to pass through, with " test name:Test whether to lead to Cross " form be presented in UI interface, for not over test item, it will when all test scripts complete together Present to user, and represent simultaneously corresponding do not pass through reason, and test is by the standard having, and current test script The object information of each point test;Test result data includes comprising in the test result data of current test script:Whether Test is passed through, the test result situation of each of the examination criteria of current test script, current test script point.
Further, in one embodiment, the automatic test device of this intelligent television also includes:Generation module, is used for Test list is generated based on described test script, wherein, described test list includes the script mark of described test script;
In the present embodiment, test list is generated based on test script and refers to all surveys getting according to random order In sample basis, the script mark of test script stores to test list.
Second acquisition module 20 is additionally operable to, when test executing device is in idle state, obtain successively in described test list Test mark, and control test executing device to be based on the described test corresponding test parameter of mark and run described test mark to correspond to Test script;
In the present embodiment, when test executing device leaves unused, the second acquisition module 20 is according to the test mark in test list Test in testing results list identifies corresponding test script, to carry out dependence test, every to corresponding test parameter successively Test script runs when completing, and controls test executing device to run next test and identifies corresponding test script, and then makes The test script in list must be tested can all run and complete.
In the present embodiment, during by instructing in the test receiving described intelligent television, the first acquisition module 10 obtains institute State the corresponding test sample of intelligent television, then when test executing device is in idle state, the second acquisition module 20 obtains successively The test taking test script identifies, and controls test executing device to be based on the corresponding test parameter described survey of operation of described test mark Corresponding test script is known in test-object, and finally when the operation of described test script completes, display module 30 shows described test script Test result it is achieved that the automatic test of intelligent television, it is to avoid when being tested by the way of artificial by manpower because The impact of element and cause the not enough situation of test dynamics, improve testing efficiency and test effect, and then improve intelligent electricity Depending on q&r.
The second embodiment of the automatic test device of intelligent television of the present invention is proposed based on first embodiment, with reference to Fig. 6, In the present embodiment, the second acquisition module 20 includes:
Memory element 21, for when test executing device is in idle state, successively by the test in described test list Mark stores to test pond;
In the present embodiment, the memory space that the test mark in test list is deposited in setting one is test pond, is used for facing Shi Cunfang test mark, to avoid program operation disorder in test process.
Control unit 22, for controlling described test executing device to obtain the test mark in described test pond, and is based on institute State the corresponding test parameter of test mark and run the described test corresponding test script of mark.
Control unit 22 corresponds to according to the test mark in the test corresponding test parameter of mark successively testing results list Test script, to carry out dependence test, test script each time run complete when, control test executing device to run next Test and identify corresponding test script, and then the test script tested in list is all run and complete.
In implementing, to the test sample list confirming, take out each test item successively, to each taken out Test item is encapsulated in a test script, and wherein, concrete packaged type is:The name of test item is referred to as corresponding test foot This test name, will be incoming as parameter for the predetermined input data of test item, writes when the end to be tested such as test result Enter among test script;Test script comprises:The title of test script, test script need the parameter of transmission, test result number According to structure;The single test script of construction is added in test pond by way of registration interface;Note in test pond The test script entering, is sequentially allocated a thread, the thread of distribution wait a upper thread to terminate after i.e. at test executing device Execute when idle state.
For the test script being registered in test pond, having a thread management module in program is test controller, Test controller is responsible for the life cycle in thread pool, comprises:Thread starts, and thread executes, and thread terminates, and thread is eventually Only;Test controller takes out test script successively, distributes a thread to each test script taking out and tests, test During, each test script thread has different test modes, comprises:During test starts, test, test terminate, Test stops four states, and test script thread initially enters test beginning state, and expression will start to test, and test is carried out Afterwards, by the test name in test script, the test code in corresponding basic test script bank is called to be tested, now Test thread enters state in test, and after the completion of test, upper test result test result being written in test script is protected Deposit data, now enters test done state, and current test script test completes;Simultaneously for the p-wire in test process Journey, when run into user's active operation terminate current test, test controller will the test foot that is currently running of active termination This thread, the state now testing thread becomes test halted state;Test script for the test assignment that completed Test result, test controller will serialize to test script, and the data after seriation is saved in internal memory;Work as test After the completion of the execution of script tested controller, the data in internal memory for the serializing is returned and is given to program interaction layer UI, in program Alternation of bed UI carries out presenting of current test result.
In the present embodiment, by when test executing device is in idle state, memory element 21 is successively by described tests column Test mark in table stores to test pond, and then control unit 22 controls described test executing device to obtain in described test pond Test mark, and described test run based on the described test corresponding test parameter of mark identify corresponding test script, real Show the automatic test of intelligent television, and by test pond it can be avoided that the disorderly situation of router in test process, Further increase testing efficiency and test effect, and then improve the q&r of intelligent television.
The 3rd embodiment of the automatic test device of intelligent television of the present invention is proposed based on first embodiment, with reference to Fig. 7, In the present embodiment, the first acquisition module 10 includes:
First acquisition unit 11, for when receiving the test request of described intelligent television, obtaining described intelligent television Test parameter, wherein, described test parameter includes hardware parameter and the systematic parameter of described intelligent television;
Specifically, test parameter includes movement parameter, type parameter, Android Release parameter, sd card support parameter, Mus Mark supports that parameter, handle support that parameter, keyboard support parameter etc..Test instruction can by tester pass through server or other Equipment sends to the automatic test device of intelligent television, or is provided with test on the automatic test device of intelligent television Buttons/keys, for triggering test instruction when needed.
Second acquisition unit 12, for obtaining the corresponding test script of described intelligent television based on described test parameter.
Wherein, test script at least includes one below:Type test script, MEMTEST script, subregion test script, Signature test script, System Privileges test script, font test script, keyboard test script, USB flash disk test script, mouse test Script, handle test script, boot animation test script and the test script that recovers to dispatch from the factory.
In the present embodiment, by when receiving the test request of described intelligent television, first acquisition unit 11 obtains institute State the test parameter of intelligent television, then second acquisition unit 12 is corresponding based on the described test parameter described intelligent television of acquisition Test script is it is achieved that obtain test script according to the test parameter of intelligent television, and then can accurately, completely obtain intelligence The test script that TV needs, it can be avoided that omitting test item and leading to some functions not tested or test feelings not in place Condition, further increases testing efficiency and test effect, and then improves the q&r of intelligent television.
The fourth embodiment of the automatic test device of intelligent television of the present invention is proposed based on first embodiment, with reference to Fig. 8, In the present embodiment, the automatic test device of intelligent television also includes:
Detection module 40, during for instructing in the derivation receiving test result, whether detection has currently connected outside is deposited Storage equipment;
In the present embodiment, can be in the test process of intelligent television or when the whole test of intelligent television completes, by institute Having test script to run the test result obtaining derives, and so that tester carries out subsequently further data processing, therefore exists Receive test result derivation instruction when, detection currently whether connected External memory equipment.
Memory module 50, in currently attached External memory equipment, described test result is stored to described outer Portion's storage device.
In the present embodiment, for test result each time, distinguish test name, the test result of read test script, To each item according to testing whether to pass through, test without passing through, be successively read not over project, and test passes through Examination criteria be written in specified file;When user needs to derive data, first judge whether user inserts outside and deposit Storage equipment, such as USB flash disk or SD card, if there are insertion storage device, then will preserve the file copy of data in storage device, and It is given to the path file catalogue that user's prompting is derived;Otherwise prompting user does not have external storage equipment, points out user insertion storage Equipment.
In the present embodiment, during by instructing in the derivation receiving test result, whether detection module 40 detect currently Connect External memory equipment;Then in currently attached External memory equipment, described test result is stored by memory module 50 To described External memory equipment it is achieved that deriving test result to External memory equipment, in order to tester to test knot Fruit carries out follow-up data processing.
These are only the preferred embodiments of the present invention, not thereby limit the present invention the scope of the claims, every using this Equivalent structure or equivalent flow conversion that bright description and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of automated testing method of intelligent television is it is characterised in that the automated testing method bag of described intelligent television Include following steps:
When the test receiving described intelligent television instructs, obtain the corresponding test sample of described intelligent television, wherein, described Test sample includes multiple test scripts and the corresponding test parameter of described test script;
When test executing device is in idle state, obtain the test mark of described test script successively, and control test execution Device is based on the described test of the corresponding test parameter operation of described test mark and identifies corresponding test script;
When the operation of described test script completes, show the test result of described test script.
2. the automated testing method of intelligent television as claimed in claim 1 is it is characterised in that obtain described intelligence described After the step of the corresponding test sample of TV, the automated testing method of described intelligent television also includes:
Test list is generated based on described test script, wherein, described test list includes the script mark of described test script;
Described when test executing device is in idle state, obtain the test mark of described test script successively, and control test Executor is included based on the step that the corresponding test parameter of described test mark runs the described test corresponding test script of mark: When test executing device is in idle state, obtains the test mark in described test list successively, and control test executing device Described test is run based on the corresponding test parameter of described test mark and identifies corresponding test script.
3. intelligent television as claimed in claim 2 automated testing method it is characterised in that described at test executing device When idle state, obtain the test mark in described test list successively, and control test executing device to be based on described test mark The step knowing the corresponding test parameter operation described test corresponding test script of mark includes:
When test executing device is in idle state, successively the test mark in described test list is stored to test pond;
Control described test executing device to obtain the test mark in described test pond, and corresponding test is identified based on described test Parameter is run described test and is identified corresponding test script.
4. the automated testing method of intelligent television as claimed in claim 1 is it is characterised in that described receiving described intelligence During the test request of energy TV, the step obtaining the corresponding test sample of described intelligent television includes:
When receiving the test request of described intelligent television, obtain the test parameter of described intelligent television, wherein, described test Parameter includes hardware parameter and the systematic parameter of described intelligent television;
The corresponding test script of described intelligent television is obtained based on described test parameter.
5. the automated testing method of the intelligent television as described in any one of Claims 1-4 is it is characterised in that in described survey When this operation of training completes, after showing the step of test result of described test script, the automatization of described intelligent television surveys Method for testing also includes:
When the derivation receiving test result instructs, whether detection has currently connected External memory equipment;
In currently attached External memory equipment, described test result is stored to described External memory equipment.
6. a kind of automatic test device of intelligent television is it is characterised in that the automatic test device bag of described intelligent television Include:
First acquisition module, during for instructing in the test receiving described intelligent television, obtains described intelligent television corresponding Test sample, wherein, described test sample includes multiple test scripts and the corresponding test parameter of described test script;
Second acquisition module, for when test executing device is in idle state, obtaining the test mark of described test script successively Know, and control test executing device to be based on the described test of the corresponding test parameter operation of described test mark and identify corresponding test foot This;
Display module, for when the operation of described test script completes, showing the test result of described test script.
7. intelligent television as claimed in claim 6 automatic test device it is characterised in that described intelligent television automatic Change test device also to include:
Generation module, for generating test list based on described test script, wherein, described test list includes described test foot This script mark;
Described second acquisition module is additionally operable to, when test executing device is in idle state, obtain successively in described test list Test mark, and it is corresponding to control test executing device to be based on the described test mark of the corresponding test parameter operation of described test mark Test script.
8. the automatic test device of intelligent television as claimed in claim 7 is it is characterised in that described second acquisition module bag Include:
Memory element, for when test executing device is in idle state, depositing the test mark in described test list successively Store up to test pond;
Control unit, for controlling described test executing device to obtain the test mark in described test pond, and is based on described test Identify corresponding test parameter and run the described test corresponding test script of mark.
9. the automatic test device of intelligent television as claimed in claim 6 is it is characterised in that described first acquisition module bag Include:
First acquisition unit, for when receiving the test request of described intelligent television, obtaining the test of described intelligent television Parameter, wherein, described test parameter includes hardware parameter and the systematic parameter of described intelligent television;
Second acquisition unit, for obtaining the corresponding test script of described intelligent television based on described test parameter.
10. the automatic test device of the intelligent television as described in any one of claim 6 to 9 is it is characterised in that described intelligence The automatic test device of TV also includes:
Detection module, during for instructing in the derivation receiving test result, whether detection has currently connected External memory equipment;
Memory module, in currently attached External memory equipment, described test result being stored to described external storage Equipment.
CN201610803632.0A 2016-09-06 2016-09-06 The automated testing method and device of smart television Active CN106412566B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610803632.0A CN106412566B (en) 2016-09-06 2016-09-06 The automated testing method and device of smart television

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610803632.0A CN106412566B (en) 2016-09-06 2016-09-06 The automated testing method and device of smart television

Publications (2)

Publication Number Publication Date
CN106412566A true CN106412566A (en) 2017-02-15
CN106412566B CN106412566B (en) 2018-11-23

Family

ID=57998474

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610803632.0A Active CN106412566B (en) 2016-09-06 2016-09-06 The automated testing method and device of smart television

Country Status (1)

Country Link
CN (1) CN106412566B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107590039A (en) * 2017-08-31 2018-01-16 郑州云海信息技术有限公司 A kind of continuous test method, device and storage medium
CN107592524A (en) * 2017-08-24 2018-01-16 康佳集团股份有限公司 Intelligent television automation test method, system and storage device based on matrix
CN108874696A (en) * 2017-12-29 2018-11-23 哈尔滨安天科技股份有限公司 Automatic test approach, device and the electronic equipment of more legal power safety storage equipment
CN109062817A (en) * 2018-10-15 2018-12-21 网宿科技股份有限公司 Automated testing method and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075789A (en) * 2010-12-31 2011-05-25 上海全景数字技术有限公司 Method and system for quickly testing set top box
CN102595184A (en) * 2012-01-19 2012-07-18 青岛海信传媒网络技术有限公司 Intelligent television automation test method and system
CN102685542A (en) * 2011-03-09 2012-09-19 鸿富锦精密工业(深圳)有限公司 High definition multimedia interface testing system and method
CN102833577A (en) * 2012-08-15 2012-12-19 深圳Tcl新技术有限公司 Method and device for automatically testing function of television
CN102892029A (en) * 2011-07-18 2013-01-23 深圳市龙视传媒有限公司 Digital television testing method, system and terminal testing equipment
CN103488562A (en) * 2013-08-30 2014-01-01 中国联合网络通信集团有限公司 Automated testing method and device
CN103823754A (en) * 2014-02-11 2014-05-28 深圳市同洲电子股份有限公司 Method and device for realizing automatic testing

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075789A (en) * 2010-12-31 2011-05-25 上海全景数字技术有限公司 Method and system for quickly testing set top box
CN102685542A (en) * 2011-03-09 2012-09-19 鸿富锦精密工业(深圳)有限公司 High definition multimedia interface testing system and method
CN102892029A (en) * 2011-07-18 2013-01-23 深圳市龙视传媒有限公司 Digital television testing method, system and terminal testing equipment
CN102595184A (en) * 2012-01-19 2012-07-18 青岛海信传媒网络技术有限公司 Intelligent television automation test method and system
CN102833577A (en) * 2012-08-15 2012-12-19 深圳Tcl新技术有限公司 Method and device for automatically testing function of television
CN103488562A (en) * 2013-08-30 2014-01-01 中国联合网络通信集团有限公司 Automated testing method and device
CN103823754A (en) * 2014-02-11 2014-05-28 深圳市同洲电子股份有限公司 Method and device for realizing automatic testing

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107592524A (en) * 2017-08-24 2018-01-16 康佳集团股份有限公司 Intelligent television automation test method, system and storage device based on matrix
CN107592524B (en) * 2017-08-24 2019-05-24 康佳集团股份有限公司 Intelligent television automation test method and system based on matrix
CN107590039A (en) * 2017-08-31 2018-01-16 郑州云海信息技术有限公司 A kind of continuous test method, device and storage medium
CN108874696A (en) * 2017-12-29 2018-11-23 哈尔滨安天科技股份有限公司 Automatic test approach, device and the electronic equipment of more legal power safety storage equipment
CN108874696B (en) * 2017-12-29 2022-09-30 安天科技集团股份有限公司 Automatic testing method and device for multi-authority safety storage equipment and electronic equipment
CN109062817A (en) * 2018-10-15 2018-12-21 网宿科技股份有限公司 Automated testing method and system
CN109062817B (en) * 2018-10-15 2022-06-03 网宿科技股份有限公司 Automatic testing method and system

Also Published As

Publication number Publication date
CN106412566B (en) 2018-11-23

Similar Documents

Publication Publication Date Title
CN103365779B (en) Method for testing software and system
CN106412566A (en) Automated testing method and apparatus for smart television
US11436125B2 (en) Game test automation device and method
CN104461855B (en) A kind of Web automated testing method, system and device
CN103744784B (en) Mobile phone application automated testing method and system
CN105608258B (en) A kind of Model-based diagnosis and information flow visual simulation system and method
CN108052451A (en) Test method, system, test server, test terminal and storage medium
CN108959068A (en) Software interface test method, equipment and storage medium
CN108763009B (en) Server stress test method, system, equipment and computer readable storage medium
CN107357724A (en) Automatic software test method and device in Android system
CN104007348A (en) Automated testing system and method thereof
CN103838654A (en) Multithreading and concurrency testing simulator and testing method thereof
CN104216823B (en) A kind of automated testing method and master control set
CN112433944A (en) Service testing method, device, computer equipment and storage medium
CN109992509A (en) The automated execution method, apparatus of test case, electronic equipment
CN111193638A (en) Linux platform based network card automatic testing method and device
CN108874649A (en) Generation method, device and its computer equipment of automatic test script
US20180217923A1 (en) Method and system for automated testing of a computer program code
CN111651368B (en) User graphical interface testing method and computer readable storage medium
CN106168924A (en) Software testing method and device and electronic equipment
CN210016474U (en) Distribution network test control equipment and system
CN107704376A (en) Game automated testing method and its system
CN116069334B (en) Cloud-protogenesis-based online development and code hosting method and system
CN110362471A (en) Test case processing method, system, terminal and storage medium
CN108681506A (en) A kind of method for testing pressure and device

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