CN106412566B - The automated testing method and device of smart television - Google Patents

The automated testing method and device of smart television Download PDF

Info

Publication number
CN106412566B
CN106412566B CN201610803632.0A CN201610803632A CN106412566B CN 106412566 B CN106412566 B CN 106412566B CN 201610803632 A CN201610803632 A CN 201610803632A CN 106412566 B CN106412566 B CN 106412566B
Authority
CN
China
Prior art keywords
test
script
smart television
parameter
mark
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.)
Active
Application number
CN201610803632.0A
Other languages
Chinese (zh)
Other versions
CN106412566A (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

The invention discloses a kind of automated testing methods of smart television, including:In the test instruction for receiving the smart television, the corresponding test sample of the smart television is obtained, wherein the test sample includes multiple test scripts and the corresponding test parameter of the test script;When test executing device is in idle state, the test mark of the test script is successively obtained, and controls test executing device and is based on the corresponding test script of the test mark corresponding test parameter operation test mark;When the test script runs completion, the test result of the test script is shown.The invention also discloses a kind of automatic test devices of smart television.The present invention realizes the automatic test of smart television, avoiding is influenced by manpower factor when being tested by the way of artificial and causes the insufficient situation of test dynamics, testing efficiency and test effect are improved, and then improves the q&r of smart television.

Description

The automated testing method and device of smart television
Technical field
The present invention relates to the field of test technology more particularly to the automated testing methods and device of a kind of smart television.
Background technique
With being constantly progressive for ntelligent television technolog, people propose the q&r of communication products higher and higher It is required that therefore, proposing higher quality requirement to smart television.
The operating system that the operating system of current smart television has linux, Android etc. different, in TV system software During exploitation, hardware parameter configuration, the configuration of system build-in function and individualized software of different product television system etc. There are larger differences.Currently, needing tester to survey manually during testing different product television system Examination.But since different products needs different test softwares to go to test, the shadow by manpower factor is easy using manual testing It rings and causes test dynamics insufficient, for example when testing different products, tester is easy to omit test item and cause certain Function is not tested or tests not in place, not can guarantee the q&r of smart television.
Summary of the invention
The present invention provides the automated testing method and device of a kind of smart television, it is intended to solve to use people in smart television The technical issues of work is influenced by manpower factor when testing and not can guarantee the q&r of smart television.
To achieve the above object, the automated testing method of a kind of smart television provided by the invention, the smart television Automated testing method include the following steps:
In the test instruction for receiving the smart television, the corresponding test sample of the smart television is obtained, wherein The test sample includes multiple test scripts and the corresponding test parameter of the test script;
When test executing device is in idle state, the test mark of the test script is successively obtained, and controls test Actuator is based on the corresponding test parameter of test mark and runs the corresponding test script of the test mark;
When the test script runs completion, the test result of the test script is shown.
Preferably, after described the step of obtaining the smart television corresponding test sample, the smart television Automated testing method further includes:
Test list is generated based on the test script, wherein the test list includes the script of the test script Mark;
It is described successively to obtain the test mark of the test script when test executing device is in idle state, and control Test executing device is based on the test and identifies the step of corresponding test parameter runs the test mark corresponding test script Including:When test executing device is in idle state, the test mark in the test list is successively obtained, and control test and hold Row device is based on the corresponding test parameter of test mark and runs the corresponding test script of the test mark.
Preferably, described when test executing device is in idle state, successively obtain the test mark in the test list Know, and controls test executing device and be based on the corresponding test foot of the test mark corresponding test parameter operation test mark This step of includes:
When test executing device is in idle state, successively the test mark in the test list is stored to test pond In;
It controls the test that the test executing device obtains in the test pond to identify, and corresponding based on test mark Test parameter runs the test and identifies corresponding test script.
Preferably, described when receiving the test request of the smart television, obtain the corresponding survey of the smart television This step of of sample includes:
When receiving the test request of the smart television, the test parameter of the smart television is obtained, wherein described Test parameter includes the hardware parameter and system parameter of the smart television;
The corresponding test script of the smart television is obtained based on the test parameter.
Preferably, the test script run complete when, after the step of showing the test result of the test script, The automated testing method of the smart television further includes:
In the export instruction for receiving test result, whether detection currently has connected External memory equipment;
In currently attached External memory equipment, the test result is stored to the External memory equipment.
In addition, to achieve the above object, the present invention also provides a kind of automatic test device of smart television, the intelligence The automatic test device of TV includes:
First obtains module, for obtaining the smart television pair in the test instruction for receiving the smart television The test sample answered, wherein the test sample includes multiple test scripts and the corresponding test parameter of the test script;
Second obtains module, for successively obtaining the survey of the test script when test executing device is in idle state Test-object is known, and controls test executing device and be based on the corresponding survey of the test mark corresponding test parameter operation test mark Training sheet;
Display module, for showing the test result of the test script when the test script runs completion.
Preferably, the automatic test device of the smart television further includes:
Generation module, for generating test list based on the test script, wherein the test list includes the survey The script of training sheet identifies;
The second acquisition module is also used to successively obtain the test list when test executing device is in idle state In test mark, and control test executing device and be based on the test and identify corresponding test parameter and run the test to identify pair The test script answered.
Preferably, the second acquisition module includes:
Storage unit is used for when test executing device is in idle state, successively by the test mark in the test list Knowledge is stored into test pond;
Control unit obtains test mark in the test pond for controlling the test executing device, and based on described Test identifies corresponding test parameter and runs the corresponding test script of the test mark.
Preferably, the first acquisition module includes:
First acquisition unit, for obtaining the smart television when receiving the test request of the smart television Test parameter, wherein the test parameter includes the hardware parameter and system parameter of the smart television;
Second acquisition unit, for obtaining the corresponding test script of the smart television based on the test parameter.
Preferably, the automatic test device of the smart television further includes:
Detection module, in the export instruction for receiving test result, whether detection currently to have connected external storage Equipment;
Memory module, in currently attached External memory equipment, the test result to be stored to the outside Store equipment.
The present invention is by obtaining the corresponding test of the smart television when the test for receiving the smart television instructs Sample successively obtains the test mark of the test script then when test executing device is in idle state, and controls test Actuator is based on the corresponding test parameter of test mark and runs the corresponding test script of the test mark, finally described When test script operation is completed, shows the test result of the test script, realize the automatic test of smart television, avoid It is influenced by manpower factor when being tested by the way of artificial and causes the insufficient situation of test dynamics, improve test Efficiency and test effect, and then improve the q&r of smart television.
Detailed description of the invention
Fig. 1 is the flow diagram of the automated testing method first embodiment of smart television of the present invention;
Fig. 2 be smart television of the present invention automated testing method second embodiment in successively obtain in the test list Test mark, and control test executing device and be based on the test and identify corresponding test parameter and run the test to identify correspondence Test script step refinement flow diagram;
Fig. 3 is corresponding to obtain the smart television in the automated testing method 3rd embodiment of smart television of the present invention The refinement flow diagram of test sample step;
Fig. 4 is the flow diagram of the automated testing method fourth embodiment of smart television of the present invention;
Fig. 5 is the functional block diagram of the automatic test device first embodiment of smart television of the present invention;
Fig. 6 is the second refinement function of obtaining module in the automatic test device second embodiment of smart television of the present invention Module diagram;
Fig. 7 is the first refinement function of obtaining module in the automatic test device 3rd embodiment of smart television of the present invention Module diagram;
Fig. 8 is the functional block diagram of the automatic test device fourth embodiment of smart television of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of automated testing method of smart television.Referring to Fig.1, Fig. 1 is smart television of the present invention The flow diagram of automated testing method first embodiment.
In the present embodiment, the automated testing method of the smart television includes:
Step S10 obtains the corresponding test specimens of the smart television in the test instruction for receiving the smart television This, wherein the test sample includes multiple test scripts and the corresponding test parameter of the test script;
In the present embodiment, in the test instruction for receiving the smart television, obtain the machine core of smart television, type, The essential informations such as Android version confirm whether the smart television supports special test item by the essential information of smart television Whether mesh, such as the smart television support external SD card, whether carry camera, whether support boot animation, in combination with intelligence The test item of the energy basic general utility functions of TV, dynamic generation are directed to the test sample of the smart television, and dynamic generation one survey Try list.
Wherein, test parameter includes machine core parameter, type parameter, Android Release parameter, sd card support parameter, mouse Support parameter, handle that parameter, keyboard is supported to support parameter etc.;Test script be for the smart television each hardware and Test program corresponding to function.Test instruction can be sent to smart television by server or other equipment by tester Automatic test device, or testing button/key is provided on the automatic test device of smart television, for needing Triggering test instruction when wanting.
Above-mentioned test script includes at least following one:Type test script, memory test script, subregion test script, Signature test script, system permission test script, font test script, keyboard test script, USB flash disk test script, mouse test Script, handle test script, boot animation test script and recovery factory test script.Wherein, type test script is to be used for Automatic obtain includes machine core, type, the test program of the essential information of system version number in product;Memory test script is to use The test program of the functions such as the memory size that can be used after test product memory size in total, system are got up;Subregion is surveyed Training sheet is to whether there is for subregion defined in test macro, and ensure whether the size of each subregion is fixed in accordance with product The test program of the design of justice;Sign test script, be for test current production be using system default signature or The customized signature of manufacturer;Whether system permission test script is met for the permission of major divisions in detection system and catalogue The requirement of design, if lead to the test program of possible system security risk with the presence of open excessive permission;Font tests foot This, is the test program for whether there is the customized general font of built-in product in detection system;Restore factory test script, Be for test product reply factory after and smart television relevant design whether reached factory requirement test journey Sequence;Keyboard test script is the support situation for detecting current production system for keyboard, needs user's operation this when The test program of keyboard;USB flash disk test script is for detecting current production system for the support feelings of extraneous storage equipment USB flash disk Condition is written and read USB flash disk, checks current system altogether to the test program of the identification of USB flash disk, storage;Mouse test script is For detecting current system to the support situation of mouse, 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 mainstream game paddle; Can boot animation test script be to survey support situation to boot animation for detecting current system, support the booting of standard dynamic The test program of picture.
Step S20 successively obtains the test mark of the test script when test executing device is in idle state, and It controls test executing device and is based on the corresponding test script of the test mark corresponding test parameter operation test mark;
In the present embodiment, when test executing device leaves unused, corresponding test parameter is identified according to test and successively runs test Test in list identifies corresponding test script, to carry out dependence test, when test script each time runs completion, and control Test executing device runs next test and identifies corresponding test script, so that the test script in test list can be complete Portion's operation is completed.
Step S30 shows the test result of the test script when the test script runs completion.
In the present embodiment, for the test result that test executing device is completed, lead between test executing device and program interaction UI The mode for crossing readjustment obtains test result data, after program interaction layer UI receives test result data, to test result data It carries out unserializing and obtains data object, and parsing is carried out to the data object after unserializing and obtains test result, specifically, To the title of the test result read test script of acquisition, test whether by etc. information, with " test name:It tests whether to lead to Cross " form be presented in the interface UI, for not over test item, it will all test scripts complete when together It is presented to the user, and shows simultaneously corresponding not by reason, and test passes through the standard having and current test script The result information of each point test;Test result data include current test script test result data in include:Whether The test result situation that test passes through, each in the examination criteria of current test script, current test script is put.
Further, in other embodiments, after step slo, the automated testing method of the smart television also wraps It includes:Test list is generated based on the test script, wherein the test list includes the script mark of the test script;
In the present embodiment, test list is generated based on test script and refers to all surveys that will acquire according to random order The script mark of test script is stored into test list in sample sheet.
When step S20 is included in test executing device and is in idle state, the test mark in the test list is successively obtained Know, and controls test executing device and be based on the corresponding test foot of the test mark corresponding test parameter operation test mark This;
In the present embodiment, when test executing device leaves unused, corresponding test parameter is identified according to the test in test list Successively the test in operation test list identifies corresponding test script, to carry out dependence test, transports in test script each time When row is completed, control test executing device runs next test and identifies corresponding test script, so that in test list Test script can all run completion.
In the present embodiment, by the way that it is corresponding to obtain the smart television when the test for receiving the smart television instructs Test sample successively obtain the test mark of the test script then when test executing device is in idle state, and control Test executing device processed is based on the corresponding test parameter of test mark and runs the corresponding test script of the test mark, finally When the test script runs completion, the test result of the test script is shown, the automation for realizing smart television is surveyed Examination, avoiding is influenced by manpower factor when being tested by the way of artificial and causes the insufficient situation of test dynamics, is mentioned High testing efficiency and test effect, and then improve the q&r of smart television.
The second embodiment of automated testing method based on first embodiment proposition smart television of the present invention, reference Fig. 2, In the present embodiment, step S20 includes:
Test in the test list is successively identified storage when test executing device is in idle state by step S21 Into test pond;
In the present embodiment, the memory space i.e. test pond of the test mark in a storage test list is set, for facing Shi Cunfang test mark, to avoid occurring program operation disorder in test process.
Step S22 is controlled the test that the test executing device obtains in the test pond and identified, and marked based on the test Know corresponding test parameter and runs the corresponding test script of the test mark.
Corresponding test parameter, which is identified, according to test successively runs the corresponding test script of test mark tested in list, To carry out dependence test, when test script each time runs completion, control test executing device runs next test mark pair The test script answered, so that the test script in test list can all run completion.
In the concrete realization, to the test sample list of confirmation, each test item is successively taken out, to each of taking-up Test item is encapsulated in a test script, wherein specifically packaged type is:The name of test item is referred to as corresponding test foot This test name, the predetermined input data of test item is passed to as parameter, and the end to be tested such as test result when is write Enter among test script;Test script includes:Parameter that the title of test script, test script need to transmit, test result number According to structural body;The single test script of construction is added in test pond by way of registration interface;For being infused in test pond The test script entered is sequentially allocated a thread, is at test executing device after the upper thread of thread waiting of distribution It is executed when idle state.
For the test script being registered in test pond, there is a thread management module, that is, test controller in program, Test controller is responsible for the life cycle in thread pool, includes:Thread starts, and thread executes, and thread terminates, and thread is whole Only;Test controller successively takes out test script, distributes a thread to each test script of taking-up and tests, tests During, each test script thread has different test modes, includes:Test start, test in, test terminate, Test stops four states, and test script thread initially enters test beginning state, and expression will start to test, and test carries out Afterwards, by the test name in test script, the test code in corresponding basic test script bank is called to be tested, at this time Test thread enters state in test, after the completion of test, test result is written to the upper test result in test script and is protected Deposit data, enters test end state at this time, and current test script test is completed;Simultaneously for p-wire during the test Journey terminates current test when encountering user's active operation, and test controller will the test foot that is currently running of active termination This thread, the state for testing thread at this time become to test halted state;For the test script of the test assignment completed Test result, test controller will serialize test script, and the data after seriation save in memory;Work as test Script is tested after the completion of controller execution, program interaction layer UI is given to data return of the serializing into memory, in program Alternation of bed UI carries out the presentation of current test result.
In the present embodiment, by when test executing device is in idle state, successively by the test in the test list Mark is stored into test pond, is then controlled the test that the test executing device obtains in the test pond and is identified, and is based on institute It states the corresponding test parameter of test mark and runs the corresponding test script of the test mark, realize the automation of smart television Test, and the case where misprogramming is sent in test process, can be avoided by test pond, further improve testing efficiency And test effect, and then improve the q&r of smart television.
The 3rd embodiment of automated testing method based on first embodiment proposition smart television of the present invention, reference Fig. 3, In the present embodiment, step S10 includes:
Step S11 obtains the test parameter of the smart television when receiving the test request of the smart television, Wherein, the test parameter includes the hardware parameter and system parameter of the smart television;
Specifically, test parameter includes machine core parameter, type parameter, Android Release parameter, sd card support parameter, mouse Mark supports parameter, handle that parameter, keyboard is supported to support parameter etc..Test instruction can by tester by server or other Equipment is sent to the automatic test device of smart television, or test is provided on the automatic test device of smart television Buttons/keys, for the instruction of triggering test when needed.
Step S12 obtains the corresponding test script of the smart television based on the test parameter.
Wherein, test script includes at least following one:Type test script, memory test script, subregion test script, Signature test script, system permission test script, font test script, keyboard test script, USB flash disk test script, mouse test Script, handle test script, boot animation test script and recovery factory test script.
In the present embodiment, by obtaining the survey of the smart television when receiving the test request of the smart television Parameter is tried, the corresponding test script of the smart television is then obtained based on the test parameter, is realized according to smart television Test parameter obtain test script, and then can accurately, completely obtain smart television needs test script, can be avoided It omits test item and certain functions is caused not test or test situation not in place, further improve testing efficiency and survey Effect is tried, and then improves the q&r of smart television.
The fourth embodiment of automated testing method based on first embodiment proposition smart television of the present invention, reference Fig. 4, In the present embodiment, after step S30, the automated testing method of smart television further includes:
Step S40, in the export instruction for receiving test result, whether detection currently has connected External memory equipment;
It, can be in the test process of smart television or when smart television all tests completion, by institute in the present embodiment The test result export for thering is test script to run, for the subsequent further data processing of tester's progress, therefore When receiving the export instruction of test result, whether detection currently has connected External memory equipment.
The test result is stored to the external storage and is set in currently attached External memory equipment by step S50 It is standby.
In the present embodiment, for test result each time, test name, the test result of read test script are distinguished, To each single item according to testing whether to pass through, if test not over, be successively read not over project, and test passes through Examination criteria be written in specified file;When user needs to export data, first judge whether user is inserted into outside and deposits Equipment is stored up, such as USB flash disk or SD card, if there is insertion stores equipment, then will save the file copies of data into storage equipment, and It is given to user and prompts derived path file catalogue;Otherwise prompt user does not have external storage equipment, and user is prompted to be inserted into storage Equipment.
In the present embodiment, by the way that when the export for receiving test result instructs, whether detection, which currently has connected outside, is deposited Store up equipment;Then in currently attached External memory equipment, the test result is stored to the External memory equipment, it is real Show and exported test result to External memory equipment, in order to which tester carries out subsequent data processing to test result.
The present invention further provides a kind of automatic test devices of smart television.It is present invention intelligence referring to Fig. 5, Fig. 5 The functional block diagram of the automatic test device first embodiment of TV.
In the present embodiment, the automatic test device of the smart television includes:
First obtains module 10, for obtaining the smart television in the test instruction for receiving the smart television Corresponding test sample, wherein the test sample includes multiple test scripts and the corresponding test parameter of the test script;
In the present embodiment, in the test instruction for receiving the smart television, the first acquisition module 10 obtains intelligent electricity Depending on the essential informations such as machine core, type, Android version, whether which is confirmed by the essential information of smart television Special test item is supported, as whether the smart television support external SD card, whether carries camera, whether supports boot animation Deng in combination with the test item of the basic general utility functions of smart television, dynamic generation is directed to the test sample of the smart television, and moves State generates a test list.
Wherein, test parameter includes machine core parameter, type parameter, Android Release parameter, sd card support parameter, mouse Support parameter, handle that parameter, keyboard is supported to support parameter etc.;Test script be for the smart television each hardware and Test program corresponding to function.Test instruction can be sent to smart television by server or other equipment by tester Automatic test device, or testing button/key is provided on the automatic test device of smart television, for needing Triggering test instruction when wanting.
Above-mentioned test script includes at least following one:Type test script, memory test script, subregion test script, Signature test script, system permission test script, font test script, keyboard test script, USB flash disk test script, mouse test Script, handle test script, boot animation test script and recovery factory test script.Wherein, type test script is to be used for Automatic obtain includes machine core, type, the test program of the essential information of system version number in product;Memory test script is to use The test program of the functions such as the memory size that can be used after test product memory size in total, system are got up;Subregion is surveyed Training sheet is to whether there is for subregion defined in test macro, and ensure whether the size of each subregion is fixed in accordance with product The test program of the design of justice;Sign test script, be for test current production be using system default signature or The customized signature of manufacturer;Whether system permission test script is met for the permission of major divisions in detection system and catalogue The requirement of design, if lead to the test program of possible system security risk with the presence of open excessive permission;Font tests foot This, is the test program for whether there is the customized general font of built-in product in detection system;Restore factory test script, Be for test product reply factory after and smart television relevant design whether reached factory requirement test journey Sequence;Keyboard test script is the support situation for detecting current production system for keyboard, needs user's operation this when The test program of keyboard;USB flash disk test script is for detecting current production system for the support feelings of extraneous storage equipment USB flash disk Condition is written and read USB flash disk, checks current system altogether to the test program of the identification of USB flash disk, storage;Mouse test script is For detecting current system to the support situation of mouse, 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 mainstream game paddle; Can boot animation test script be to survey support situation to boot animation for detecting current system, support the booting of standard dynamic The test program of picture.
Second obtains module 20, for successively obtaining in the test list when test executing device is in idle state Test mark, and control test executing device and be based on the test and identify corresponding test parameter and run the test to identify correspondence Test script;
In the present embodiment, when test executing device leaves unused, second, which obtains module 20, identifies corresponding test ginseng according to test The number test that successively operation is tested in list identifies corresponding test script, to carry out dependence test, in test script each time When operation is completed, control test executing device runs next test and identifies corresponding test script, so that in test list Test script can all run completion.
Display module 30, for showing the test result of the test script when the test script runs completion.
In the present embodiment, for the test result that test executing device is completed, lead between test executing device and program interaction UI The mode for crossing readjustment obtains test result data, after program interaction layer UI receives test result data, to test result data It carries out unserializing and obtains data object, and parsing is carried out to the data object after unserializing and obtains test result, specifically, To the title of the test result read test script of acquisition, test whether by etc. information, with " test name:It tests whether to lead to Cross " form be presented in the interface UI, for not over test item, it will all test scripts complete when together It is presented to the user, and shows simultaneously corresponding not by reason, and test passes through the standard having and current test script The result information of each point test;Test result data include current test script test result data in include:Whether The test result situation that test passes through, each in the examination criteria of current test script, current test script is put.
Further, in one embodiment, the automatic test device of the smart television further includes:Generation module is used for Test list is generated based on the test script, wherein the test list includes the script mark of the test script;
In the present embodiment, test list is generated based on test script and refers to all surveys that will acquire according to random order The script mark of test script is stored into test list in sample sheet.
Second acquisition module 20 is also used to successively obtain in the test list when test executing device is in idle state Test mark, and control test executing device and be based on the test and identify corresponding test parameter and run the test to identify correspondence Test script;
In the present embodiment, when test executing device leaves unused, second obtains module 20 identifies according to the test in test list The test that corresponding test parameter is successively run in test list identifies corresponding test script, to carry out dependence test, every When test script operation is completed, control test executing device runs next test and identifies corresponding test script, and then makes The test script that must be tested in list can all run completion.
In the present embodiment, institute is obtained by the way that when the test for receiving the smart television instructs, first obtains module 10 The corresponding test sample of smart television is stated, then when test executing device is in idle state, the second acquisition module 20 is successively obtained It takes the test of test script to identify, and controls test executing device and be based on the test mark corresponding test parameter operation survey Corresponding test script is known in test-object, and finally when the test script runs completion, display module 30 shows the test script Test result, realize the automatic test of smart television, avoid when being tested by the way of artificial by manpower because Element influence and cause the insufficient situation of test dynamics, improve testing efficiency and test effect, and then improve intelligent electricity Depending on q&r.
The second embodiment of automatic test device based on first embodiment proposition smart television of the present invention, reference Fig. 6, In the present embodiment, the second acquisition module 20 includes:
Storage unit 21 is used for when test executing device is in idle state, successively by the test in the test list Mark is stored into test pond;
In the present embodiment, the memory space i.e. test pond of the test mark in a storage test list is set, for facing Shi Cunfang test mark, to avoid occurring program operation disorder in test process.
Control unit 22, for control the test executing device obtain in the test pond test mark, and be based on institute It states the corresponding test parameter of test mark and runs the corresponding test script of the test mark.
Control unit 22 identifies corresponding test parameter according to test and successively runs the test mark correspondence tested in list Test script, to carry out dependence test, test script each time run complete when, control test executing device operation it is next Test identifies corresponding test script, so that the test script in test list can all run completion.
In the concrete realization, to the test sample list of confirmation, each test item is successively taken out, to each of taking-up Test item is encapsulated in a test script, wherein specifically packaged type is:The name of test item is referred to as corresponding test foot This test name, the predetermined input data of test item is passed to as parameter, and the end to be tested such as test result when is write Enter among test script;Test script includes:Parameter that the title of test script, test script need to transmit, test result number According to structural body;The single test script of construction is added in test pond by way of registration interface;For being infused in test pond The test script entered is sequentially allocated a thread, is at test executing device after the upper thread of thread waiting of distribution It is executed when idle state.
For the test script being registered in test pond, there is a thread management module, that is, test controller in program, Test controller is responsible for the life cycle in thread pool, includes:Thread starts, and thread executes, and thread terminates, and thread is whole Only;Test controller successively takes out test script, distributes a thread to each test script of taking-up and tests, tests During, each test script thread has different test modes, includes:Test start, test in, test terminate, Test stops four states, and test script thread initially enters test beginning state, and expression will start to test, and test carries out Afterwards, by the test name in test script, the test code in corresponding basic test script bank is called to be tested, at this time Test thread enters state in test, after the completion of test, test result is written to the upper test result in test script and is protected Deposit data, enters test end state at this time, and current test script test is completed;Simultaneously for p-wire during the test Journey terminates current test when encountering user's active operation, and test controller will the test foot that is currently running of active termination This thread, the state for testing thread at this time become to test halted state;For the test script of the test assignment completed Test result, test controller will serialize test script, and the data after seriation save in memory;Work as test Script is tested after the completion of controller execution, program interaction layer UI is given to data return of the serializing into memory, in program Alternation of bed UI carries out the presentation of current test result.
In the present embodiment, by the way that when test executing device is in idle state, storage unit 21 is successively by the tests column Test mark in table is stored into test pond, and then control unit 22 controls the test executing device and obtains in the test pond Test mark, and corresponding test parameter is identified based on the test and runs the corresponding test script of the test mark, in fact Show the automatic test of smart television, and the case where sending misprogramming in test process can be avoided by test pond, Testing efficiency and test effect are further improved, and then improves the q&r of smart television.
The 3rd embodiment of automatic test device based on first embodiment proposition smart television of the present invention, reference Fig. 7, In the present embodiment, the first acquisition module 10 includes:
First acquisition unit 11, for obtaining the smart television when receiving the test request of the smart television Test parameter, wherein the test parameter includes the hardware parameter and system parameter of the smart television;
Specifically, test parameter includes machine core parameter, type parameter, Android Release parameter, sd card support parameter, mouse Mark supports parameter, handle that parameter, keyboard is supported to support parameter etc..Test instruction can by tester by server or other Equipment is sent to the automatic test device of smart television, or test is provided on the automatic test device of smart television Buttons/keys, for the instruction of triggering test when needed.
Second acquisition unit 12, for obtaining the corresponding test script of the smart television based on the test parameter.
Wherein, test script includes at least following one:Type test script, memory test script, subregion test script, Signature test script, system permission test script, font test script, keyboard test script, USB flash disk test script, mouse test Script, handle test script, boot animation test script and recovery factory test script.
In the present embodiment, by the way that when receiving the test request of the smart television, first acquisition unit 11 obtains institute The test parameter of smart television is stated, then it is corresponding to be based on the test parameter acquisition smart television for second acquisition unit 12 Test script, realize according to the test parameter of smart television obtain test script, and then can accurately, completely obtain intelligence The test script that TV needs can be avoided and omit test item and certain functions be caused not test or test feelings not in place Condition further improves testing efficiency and test effect, and then improves the q&r of smart television.
The fourth embodiment of automatic test device based on first embodiment proposition smart television of the present invention, reference Fig. 8, In the present embodiment, the automatic test device of smart television further includes:
Detection module 40, in the export instruction for receiving test result, whether detection, which currently has connected outside, to be deposited Store up equipment;
It, can be in the test process of smart television or when smart television all tests completion, by institute in the present embodiment The test result export for thering is test script to run, for the subsequent further data processing of tester's progress, therefore When receiving the export instruction of test result, whether detection currently has connected External memory equipment.
Memory module 50, in currently attached External memory equipment, the test result to be stored to described outer Portion stores equipment.
In the present embodiment, for test result each time, test name, the test result of read test script are distinguished, To each single item according to testing whether to pass through, if test not over, be successively read not over project, and test passes through Examination criteria be written in specified file;When user needs to export data, first judge whether user is inserted into outside and deposits Equipment is stored up, such as USB flash disk or SD card, if there is insertion stores equipment, then will save the file copies of data into storage equipment, and It is given to user and prompts derived path file catalogue;Otherwise prompt user does not have external storage equipment, and user is prompted to be inserted into storage Equipment.
In the present embodiment, by the way that when the export for receiving test result instructs, whether detection module 40 detected currently Connect External memory equipment;Then in currently attached External memory equipment, memory module 50 stores the test result It to the External memory equipment, realizes and exports test result to External memory equipment, in order to which tester ties test Fruit carries out subsequent data processing.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (6)

1. a kind of automated testing method of smart television, which is characterized in that the automated testing method packet of the smart television Include following steps:
In the test instruction for receiving the smart television, the corresponding test sample of the smart television is obtained, wherein described Test sample includes multiple test scripts and the corresponding test parameter of the test script, and the test script is for the intelligence Test program corresponding to each hardware and function of energy TV;
When test executing device is in idle state, the test mark of the test script is successively obtained, and controls test execution Device is based on the corresponding test parameter of test mark and runs the corresponding test script of the test mark;
When the test script runs completion, the test result of the test script is shown, wherein test executing device and program Test result data is obtained by way of readjustment between interaction UI, it is right after program interaction layer UI receives test result data Test result data carries out unserializing and obtains data object, and carries out parsing to the data object after unserializing and obtain test As a result;
Wherein, after described the step of obtaining the smart television corresponding test sample, the automation of the smart television Test method further includes:
Test list is generated based on the test script, wherein the test list includes the script mark of the test script;
It is described successively to obtain the test mark of the test script when test executing device is in idle state, and control test Actuator identifies the step of corresponding test parameter runs the test mark corresponding test script based on the test: When test executing device is in idle state, the test mark in the test list is successively obtained, and control test executing device Corresponding test parameter, which is identified, based on the test runs the corresponding test script of the test mark;
Wherein, described when test executing device is in idle state, the test mark in the test list is successively obtained, and control Test executing device processed identifies corresponding test parameter based on the test and runs the step that the test identifies corresponding test script Suddenly include:
When test executing device is in idle state, successively the test mark in the test list is stored into test pond;
It controls the test that the test executing device obtains in the test pond to identify, and corresponding test is identified based on the test Parameter runs the test and identifies corresponding test script.
2. the automated testing method of smart television as described in claim 1, which is characterized in that described to receive the intelligence Can TV test instruction when, the step of obtaining the smart television corresponding test sample includes:
In the test instruction for receiving the smart television, the test parameter of the smart television is obtained, wherein the test Parameter includes the hardware parameter and system parameter of the smart television;
The corresponding test script of the smart television is obtained based on the test parameter.
3. such as the automated testing method of the described in any item smart televisions of claim 1 to 2, which is characterized in that in the survey When this operation of training is completed, after the step of showing the test result of the test script, the automation of the smart television is surveyed Method for testing further includes:
In the export instruction for receiving test result, whether detection currently has connected External memory equipment;
In currently attached External memory equipment, the test result is stored to the External memory equipment.
4. a kind of automatic test device of smart television, which is characterized in that the automatic test device packet of the smart television It includes:
First obtains module, for it is corresponding to obtain the smart television in the test instruction for receiving the smart television Test sample, wherein the test sample includes multiple test scripts and the corresponding test parameter of the test script, the survey Training originally be for the smart television each hardware and function corresponding to test program;
Second obtains module, for successively obtaining the test mark of the test script when test executing device is in idle state Know, and controls test executing device and be based on the corresponding test foot of the test mark corresponding test parameter operation test mark This;
Display module, for showing the test result of the test script when the test script runs completion, wherein survey Test result data is obtained by way of readjustment between examination actuator and program interaction UI, program interaction layer UI receives test After result data, to test result data carry out unserializing obtain data object, and to the data object after unserializing into Row parsing obtains test result;
The automatic test device of the smart television further includes:
Generation module, for generating test list based on the test script, wherein the test list includes the test foot This script mark;
The second acquisition module is also used to successively obtain in the test list when test executing device is in idle state Test mark, and it is corresponding based on the test mark corresponding test parameter operation test mark to control test executing device Test script;
Wherein, the second acquisition module includes:
Storage unit, for successively depositing the test mark in the test list when test executing device is in idle state Storage is into test pond;
Control unit, for control the test executing device obtain in the test pond test mark, and be based on the test It identifies corresponding test parameter and runs the corresponding test script of the test mark.
5. the automatic test device of smart television as claimed in claim 4, which is characterized in that described first obtains module packet It includes:
First acquisition unit, for obtaining the test of the smart television in the test instruction for receiving the smart television Parameter, wherein the test parameter includes the hardware parameter and system parameter of the smart television;
Second acquisition unit, for obtaining the corresponding test script of the smart television based on the test parameter.
6. such as the automatic test device of the described in any item smart televisions of claim 4 to 5, which is characterized in that the intelligence The automatic test device of TV further includes:
Detection module, in the export instruction for receiving test result, whether detection currently to have connected External memory equipment;
Memory module, in currently attached External memory equipment, the test result to be stored to the 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 CN106412566A (en) 2017-02-15
CN106412566B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN108874696B (en) * 2017-12-29 2022-09-30 安天科技集团股份有限公司 Automatic testing method and device for multi-authority safety storage equipment and electronic equipment
CN109062817B (en) * 2018-10-15 2022-06-03 网宿科技股份有限公司 Automatic 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

Also Published As

Publication number Publication date
CN106412566A (en) 2017-02-15

Similar Documents

Publication Publication Date Title
CN106412566B (en) The automated testing method and device of smart television
CN103365779B (en) Method for testing software and system
CN104461855B (en) A kind of Web automated testing method, system and device
CN108052451A (en) Test method, system, test server, test terminal and storage medium
CN105608258B (en) A kind of Model-based diagnosis and information flow visual simulation system and method
CN104820640B (en) A kind of webpage test method and device
CN106445811B (en) A kind of automatization test system and method based on SecureCRT
CN104794057B (en) A kind of crossing event automated testing method and device
CN104834595A (en) Visual automatic test method and system
WO2018036531A1 (en) Test case generation method
CN103838654A (en) Multithreading and concurrency testing simulator and testing method thereof
WO2013054975A1 (en) Method and system for automating a scene-based test
CN101246448A (en) Automatized script implementing method
CN108874649A (en) Generation method, device and its computer equipment of automatic test script
CN1952818A (en) Testing method of program unit with capability of checking test result automatically
CN104780407A (en) Automatic testing method and automatic testing system for set top box
CN102486749B (en) Method and system for data driving test
CN110446028A (en) Set-top box production test method and system
US20090144625A1 (en) Sequence detection and automation for complex portal environments
CN106484609A (en) Page method of testing and device
CN108763056A (en) A kind of automatic test bullet frame processing method and terminal
CN109992509A (en) The automated execution method, apparatus of test case, electronic equipment
CN106528429A (en) UI testing method and device
CN103186459A (en) JAVA graphical user interface automatic test method based on scripts
CN107704376A (en) Game automated testing method and its system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant