CN104216823A - Automatic testing method and master control device - Google Patents

Automatic testing method and master control device Download PDF

Info

Publication number
CN104216823A
CN104216823A CN201310217731.7A CN201310217731A CN104216823A CN 104216823 A CN104216823 A CN 104216823A CN 201310217731 A CN201310217731 A CN 201310217731A CN 104216823 A CN104216823 A CN 104216823A
Authority
CN
China
Prior art keywords
test
key information
equipment under
master control
under test
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
CN201310217731.7A
Other languages
Chinese (zh)
Other versions
CN104216823B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201310217731.7A priority Critical patent/CN104216823B/en
Publication of CN104216823A publication Critical patent/CN104216823A/en
Application granted granted Critical
Publication of CN104216823B publication Critical patent/CN104216823B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

The invention discloses an automatic testing method and a master control device. The automatic testing method is applied to the master control device. When the master control device is connected with a tested device, the automatic testing method comprises the steps that testing key information stored in a storage device in the master control device is obtained based on a testing order, and the testing key information is converted into a standard keyboard scanning code; the standard keyboard scanning code is output to the tested device, so that the tested device is in the tested state; a testing result which is generated after the tested device is in the tested state is obtained and stored. The automatic testing method and the master control device aim to solve the technical problems that in the prior art, the automation level is low and the efficiency is low, and automatic testing is achieved; therefore, the testing efficiency is improved, the needed testing labor is greatly reduced, and the needed testing time is greatly shortened.

Description

A kind of automated testing method and master control set
Technical field
The present invention relates to electronic technology field, particularly relate to a kind of automated testing method and master control set.
Background technology
Concerning the production firm of computer, mobile phone and communication apparatus series products, all need to carry out a large amount of test jobs before product export, the product not meeting and dispatch from the factory and require can be rejected on the one hand, also can detect stability and the reliability of Total Product on the other hand.
Test and stability test for more common BIOS, in the process of test, need tester to keep before equipment under test always, according to the test process that equipment under test display shows, by manually knocking in key on keyboard, the operation such as carry out BIOS refreshing or restart, simultaneously tester's test result of also needing real-time monitored equipment under test display to demonstrate in test process, and carry out according to the test result demonstrated testing the judgement whether passed through.
But present inventor is in the process realizing invention technical scheme in the embodiment of the present application, find that above-mentioned technology at least exists following technical matters:
Adopt above-mentioned manual testing's method, owing to there is more artificial button operation in whole test process, and need the test of tester's real-time judge whether to pass through, therefore tester must keep by tested instrument always, very large manpower and time is caused to take, namely to there is automatization level low for method of testing of the prior art, the technical matters of inefficiency.
Summary of the invention
The embodiment of the present application is by providing a kind of automated testing method and master control set, solving method of testing of the prior art, to there is automatization level low, the technical matters of inefficiency, achieve the technique effect automatically carrying out testing, and then effectively improve testing efficiency, make to test required manpower and the time reduces all greatly.
On the one hand, the embodiment of the present application provides following technical scheme:
A kind of automated testing method, is applied in master control set, when described master control set is connected with equipment under test, comprises the following steps:
Obtain the test key information be stored in the memory device of described master control set based on a test instruction, and described test key information is converted to QWERTY keyboard scan code;
Export described QWERTY keyboard scan code to described equipment under test, enter test mode to make described equipment under test;
Obtain and store the test result generated after described equipment under test enters described test mode.
Optionally, described obtain the test key information being stored in the memory device of described master control set based on a test instruction before, described method comprises further: at least one input operation carried out based on the inputting interface that described master control set is preset by response, and obtain N number of described test key information, wherein, described N is positive integer; And according to the first order N number of described test key information described in corresponding stored in described memory device, wherein, described first order is, after making described equipment under test enter test mode, needs obtain and change the order of described N number of described test key information.
Optionally, describedly obtain the test key information be stored in the memory device of described master control set based on a test instruction, be specially: based on M the acquisition time point preset in described test instruction, according to described first order, described N number of described test key information is obtained from described memory device, wherein, described M is the positive integer equal with described N, wherein, described M acquisition time point is specially, after making described equipment under test enter test mode, needs obtain and change M time point of described N number of described test key information.
Optionally, described test key information comprises: one or more the combination in the duration that independent key, composite key or each button continue.
Optionally, described described test key information is converted to QWERTY keyboard scan code, be specially: described test key information translation is converted to identical with the keyboard output format of described equipment under test, can by the QWERTY keyboard scan code of described equipment under test identification.
Optionally, described acquisition also stores the test result generated after described equipment under test enters described test mode, be specially: based on the shooting time point preset in described test instruction, take or record the screen picture of described equipment under test, obtain according to described screen picture and store described test result.
Optionally, in described acquisition and after storing the test result generated after described equipment under test enters described test mode, described method also comprises: after obtaining the trigger message for exporting described test result, based on described trigger message, export described test result.
On the other hand, the embodiment of the present application additionally provides a kind of master control set, can be connected, comprising with equipment under test:
Keyboard simulator, for obtaining the test key information be stored in described master control set based on a test instruction, and is converted to QWERTY keyboard scan code by described test key information; Export described QWERTY keyboard scan code to described equipment under test, enter test mode to make described equipment under test;
Main control module, for obtaining and storing the test result generated after described equipment under test enters described test mode.
Optionally, described main control module also for, by at least one input operation that response is carried out based on the inputting interface that described master control set is preset, and obtain N number of described test key information, wherein, described N is positive integer, and according to N number of described test key information described in the first order corresponding stored, wherein, described first order is, after making described equipment under test enter test mode, needs obtain and change the order of described N number of described test key information.
Optionally, described keyboard simulator also for based in described test instruction preset M acquisition time point, according to described first order, obtain described N number of described test key information, wherein, described M is the positive integer equal with described N, wherein, described M acquisition time point is specially, and after making described equipment under test enter test mode, needs obtain and change M time point of described N number of described test key information.
Optionally, described main control module is also for storing the test key information of one or more the combination comprised in duration that independent key, composite key or each button continue.
Optionally, keyboard simulator also comprises: translation unit, for described test key information translation is converted to identical with the keyboard output format of described tested instrument, and can by the QWERTY keyboard scan code of described tested instrument identification; Output unit, for exporting described QWERTY keyboard scan code to described equipment under test.
Optionally, described main control module also comprises: image unit, for based on the shooting time point preset in described test instruction, takes or records the screen picture of described equipment under test, obtain described test result according to described screen picture; Storage unit, for storing the described test result obtained according to described screen picture.
Optionally, described main control module also comprises:
Output unit, for after obtaining the trigger message for exporting described test result, based on described trigger message, exports described test result.
The one or more technical schemes provided in the embodiment of the present application, at least have following technique effect or advantage:
1, by automatically described test key information being converted to QWERTY keyboard scan code, export to equipment under test, tester is made not need to keep always come to knock keyboard by test process at equipment under test when testing, solving method of testing of the prior art, to there is automatization level low, the technical matters of inefficiency, achieve the technique effect automatically carrying out testing, and then effectively improve testing efficiency, make to test required manpower and the time reduces all greatly.
2, by after test starts, automatic acquisition also stores the test result generated, make tester can recall test result at any time to check, do not need to keep and whether pass through in equipment under test real-time judge test of coming, this makes it possible to solve when needing tester's real-time judge test result in whole test process, tester must keep by tested instrument always, causes the technical matters that very large manpower and time take, and realizes saving the manpower shared by test and the technique effect of time.Meanwhile, owing to storing the test result generated in test process, after tester's false judgment test result can also be solved, be difficult to the technical matters of reviewing correction, achieve the retrospective technique effect of test result.
3, due to described test key information can be received by the inputting interface that described master control set is preset, make tester can edit described test key information simply and easily, solve when testing scheme changes, the technical matters of the test key information editor difficulty that may exist, achieves the technique effect of test key information editor easy.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of automated testing method in the embodiment of the present invention;
Fig. 2 is the structural drawing of master control set in the embodiment of the present invention.
Embodiment
The embodiment of the present application is by providing a kind of automated testing method and master control set, solving method of testing of the prior art, to there is automatization level low, the technical matters of inefficiency, achieve the technique effect automatically carrying out testing, and then effectively improve testing efficiency, make to test required manpower and the time reduces all greatly.
Low for solving above-mentioned automatization level, the technical matters of inefficiency, the embodiment of the present application provides the general thought of technical scheme as follows:
The invention provides a kind of automated testing method, be applied in master control set, when described master control set is connected with equipment under test, comprise the following steps:
Obtain the test key information be stored in the memory device of described master control set based on a test instruction, and described test key information is converted to QWERTY keyboard scan code;
Export described QWERTY keyboard scan code to described equipment under test, enter test mode to make described equipment under test;
Obtain and store the test result generated after described equipment under test enters described test mode.
Can be found out by foregoing, by automatically described test key information being converted to QWERTY keyboard scan code, export to equipment under test, tester is made not need to keep always come to knock keyboard by test process at equipment under test when testing, do not need to keep and whether pass through in equipment under test real-time judge test of coming yet, solving method of testing of the prior art, to there is automatization level low, the technical matters of inefficiency, achieve the technique effect automatically carrying out testing, and then effectively improve testing efficiency, make to test required manpower and the time reduces all greatly.
By after test starts, automatic acquisition also stores the test result generated, make tester can recall test result at any time to check, do not need to keep and whether pass through in equipment under test real-time judge test of coming, this makes it possible to solve when needing tester's real-time judge test result in whole test process, tester must keep by tested instrument always, causes the technical matters that very large manpower and time take, and realizes saving the manpower shared by test and the technique effect of time.Meanwhile, owing to storing the test result generated in test process, after tester's false judgment test result can also be solved, be difficult to the technical matters of reviewing correction, achieve the retrospective technique effect of test result.
In order to better understand technique scheme, below in conjunction with Figure of description and concrete embodiment, technique scheme is described in detail.
Embodiment one:
In embodiment one, provide a kind of automated testing method, be applied in master control set, when described master control set is connected with equipment under test, wherein, this automated testing method can be applied to BIOS test, also can be applied to stability test, will not enumerate in the embodiment of the present application.
Please refer to Fig. 1, Fig. 1 is the main flow figure of automated testing method in the embodiment of the present application one, and the method comprises the following steps:
Step S101, obtains the test key information be stored in the memory device of described master control set based on a test instruction;
Step S102, is converted to QWERTY keyboard scan code by described test key information;
Step S103, exports described QWERTY keyboard scan code to described equipment under test, enters test mode to make described equipment under test;
Step S104, obtains and stores the test result generated after described equipment under test enters described test mode.
In embodiments of the present invention, namely before step S101 is stored in the test key information in the memory device of described master control set based on a test instruction acquisition, the method also comprises further: at least one input operation carried out based on the inputting interface that described master control set is preset by response, and obtain N number of described test key information, wherein, described N is positive integer; And according to the first order N number of described test key information described in corresponding stored in described memory device, wherein, described first order is, after making described equipment under test enter test mode, needs obtain and change the order of described N number of described test key information.
In specific implementation process, the inputting interface preset can be the patterned inputting interface shown by the display screen of master control set, or the inputting interface of prompting-type.Illustrate with patterned inputting interface, can show a keyboard image on master control set, tester is by the mouse of master control set, keyboard or touch control screen input test key information on the keyboard image of display; Illustrate with the inputting interface of prompting-type, the language such as " key information 1: ", " key information 2: " can be shown on master control set, and after language configuration information input frame, tester according to language, by the mouse of master control set, keyboard or touch control screen input key detecting information in the information input frame of correspondence.
In specific implementation process, key information is tested described in the first order corresponding stored, it can be the order of the described QWERTY keyboard scan code of the button operation order correspondence first inputted as required by tester, input test key information successively, again by the sequencing successively On-board test key information of master control set according to input, the concrete steps stored according to input sequencing are described here for the graphic interface of keyboard type:
A, first inputted the test key information of the first test point by keyboard type interface, then the carriage return clicked on keyboard type interface or other buttons submit the test key information of the first test point to;
B, inputted the test key information of the second test point again by keyboard type interface, then the carriage return clicked on keyboard type interface or other buttons submit the test key information of the second test point to;
C, repetition aforesaid operations, sequentially input whole test key informations until obtain as required and change first of described N number of described test key information;
D, master control set according to test key information input submit to sequencing, namely need to obtain and change described N number of described test key information first sequential storage test key information.
Also can be first carry out input test key information by tester according to the prompting of master control set inputting interface, carry out On-board test key information by master control set according to the default order of the prompting of inputting interface again, for the prompting-type inputting interface of information input frame, the concrete steps stored according to preset order be described here:
The test key information of input the first test point in A, information input frame after language " key information 1 ", the test key information of the second test point is inputted in information input frame after " key information 2 ", repeat aforesaid operations, until by inputting whole test key informations;
Whole test key informations of B, submission input;
C, master control set according in language preset order, namely need to obtain and change described N number of described test key information first sequential storage test key information.
For the BIOS refresh testing in BIOS test, first this test needs input " FLASHMARKER.BIN/c/e/r/s " to equipment under test, carry out control BIOS and carry out refresh operation, after refresh operation completes, also need input " Ctrl+Alt+Del " to equipment under test, carry out reboot operation.When adopting the method for the present embodiment to carry out BIOS refresh testing, and when the inputting interface of master control set is the prompting-type inputting interface of information input frame, following step can be taked input and On-board test key information:
The test key information of input the first test point in A, information input frame after language " key information 1: ": " FLASH MARKER.BIN/c/e/r/s ", the test key information of input the second test point information input frame after " key information 2: " in: " Ctrl+Alt+Del ";
B, submission input information;
C, master control set, by according to the order preset in language, namely need to obtain and change the test key information that first of described N number of described test key information sequentially stores input.
To need the stability test of repeatedly restarting, this test need repeatedly restart equipment under test, verify whether the system of equipment under test is stablized, namely first this test needs input " Ctrl+Alt+Del " to equipment under test, carries out primary reboot operation, after first time, reboot operation completed, also need again to input " Ctrl+Alt+Del " to equipment under test, carry out secondary reboot operation, repeat above-mentioned steps, until complete the reboot operation of specified quantity.When adopting the method for the present embodiment to carry out stability test, and when the inputting interface of master control set is the graphical Interface interface of keyboard type, following step can be taked input and On-board test key information:
A, tester are first by the keyboard type interface input first time test key information of restarting: " Ctrl+Alt+Del ", then the carriage return clicked on keyboard type interface or other buttons are to submit the test key information of the first test point of input to;
B, inputted the test key information of the second test point again by keyboard type interface: " Ctrl+Alt+Del ", then the carriage return clicked on keyboard type interface or other buttons submit the test key information of the second test point to;
C, repetition aforesaid operations, until input have submitted the test key information of " Ctrl+Alt+Del " of specified quantity;
The sequencing On-board test key information that D, master control set are submitted to according to the input of test key information.
In embodiments of the present invention, step S101 obtains the test key information be stored in the memory device of described master control set based on a test instruction, be specially:
Based on M the acquisition time point preset in described test instruction, according to described first order, described N number of described test key information is obtained from described memory device, wherein, described M is the positive integer equal with described N, and wherein, described M acquisition time point is specially, after making described equipment under test enter test mode, needs obtain and change M time point of described N number of described test key information.
In specific implementation process, the acquisition time point in the test instruction of storage can be inputted by graphical Interface interface default on master control set or prompting-type inputting interface and stored in advance.Wherein, acquisition time point can be concrete time format such as " 10:00 ", also can be form interval time such as " 90s ", will not enumerate in the embodiment of the present application.The concrete mode of input can be inputted separately by the acquisition time point in test instruction, also can be the acquisition time point in test instruction is combined with test key information input, below respectively for the BIOS refresh testing in BIOS test and stability test, the different input modes of acquisition time point in test instruction are described respectively:
Independent input: for the BIOS refresh testing in BIOS test, suppose that inputting interface is the graphical Interface interface of keyboard type, and need to start to carry out BIOS refresh testing at 12:00, namely " FLASH MARKER.BIN/c/e/r/s " is inputted to equipment under test at 12:00, carry out control BIOS and carry out refresh operation, after refresh operation completes, namely 12:01 needs input " Ctrl+Alt+Del " to equipment under test, when carrying out reboot operation, following step can be taked input and acquisition time point: A in On-board test instruction, tester first selects the button representing set of time on keyboard type interface, B, input the first acquisition time point: " 12:00 ", then the carriage return clicked on keyboard type interface or other buttons are to submit the first acquisition time point of input to, C, input the second acquisition time point: " 12:01 ", then the carriage return clicked on keyboard type interface or other buttons are to submit the second acquisition time point of input to, the sequencing that D, master control set are submitted to according to input, preserves the acquisition time point of input successively.
In conjunction with the input of test key information: for stability test, suppose that inputting interface is the inputting interface of prompting-type, and need to start to carry out stability test after half an hour, namely after half an hour, first time inputs " Ctrl+Alt+Del " to equipment under test, carry out reboot operation, and first time reboot operation 150s after again input " Ctrl+Alt+Del " to equipment under test, carry out second time reboot operation, repeat above-mentioned steps, until complete the reboot operation of specified quantity, following step can be taked input and the acquisition time point in On-board test instruction: A, the first acquisition time point is inputted: " 1800s " in the information input frame of tester after language " time 1: ", the test key information of the first test point of input in information input frame after language " input key information 1 ": " Ctrl+Alt+Del ", the time interval of the second acquisition time point and the first acquisition time point is inputted: " 150s " in information input frame after language " time 2 ", the test key information of the first test point of input in information input frame after language " input key information 2 ": " Ctrl+Alt+Del ", B, repeat above-mentioned input mode until have input the test key information of " Ctrl+Alt+Del " of specified quantity, C, submission input information, D, master control set will be distinguished the acquisition time point in On-board test instruction and test key information according to the order preset in language.
In embodiments of the present invention, the test key information in step S101 comprises: one or more the combination in the duration that independent key, composite key or each button continue.Namely testing key information can be the similar independent key of " A ", " Enter ", or the composite key that " Ctrl+Alt+Del " is similar, or the independent continuously key of " FLASH " class, or the key of the band button duration of " A (6s) " class, will not enumerate in the embodiment of the present application.
In embodiments of the present invention, step S102, is converted to QWERTY keyboard scan code by described test key information, is specifically as follows, described test key information translation is converted to identical with the keyboard output format of described equipment under test, can by the QWERTY keyboard scan code of described equipment under test identification.
Specifically, can be realized by the translation processing unit in master control set testing the conversion of key information to QWERTY keyboard scan code.Translation processing unit is first according to test instruction, obtain and test key information accordingly, again by the single chip circuit of translation unit inside, according to the translation rule preset, test key information is translated as identical with the keyboard output format of described equipment under test, can by the QWERTY keyboard scan code of described equipment under test identification, export described QWERTY keyboard scan code to described equipment under test by the output unit in master control set again, enter test mode and step S103 to make described equipment under test.
In embodiments of the present invention, step S104 obtains and stores the test result generated after described equipment under test enters described test mode, be specifically as follows, based on the shooting time point preset in described test instruction, take or record the screen picture of described equipment under test, obtain according to described screen picture and store described test result.Can also be specifically, master control set is based on the shooting time point preset in described test instruction, send shooting instruction and cause equipment under test, equipment under test is based on the screen picture of shooting command interception self, and the screen picture of intercepting is sent to master control set, master control set obtains according to described screen picture and stores described test result.
In specific implementation process, in test instruction, shooting time point can be inputted by graphical Interface interface default on master control set or indicative inputting interface and stored in advance.Wherein, shooting time point can be concrete time format such as " 10:00 ", also can be form interval time such as " 90s ", will not enumerate in this embodiment of the present application.The concrete mode of input can be input separately shooting time point, also can be that the acquisition time point of shooting time point in test instruction, test key information are combined input, below respectively for the BIOS refresh testing in BIOS test and stability test, the different input modes of shooting time point in test instruction are described respectively:
Independent input shooting time point: for the BIOS refresh testing in BIOS test, suppose that inputting interface is the graphical Interface interface of keyboard type, and need to start to carry out BIOS refresh testing at 12:00, namely " FLASH MARKER.BIN/c/e/r/s " is inputted to equipment under test at 12:00, carry out control BIOS and carry out refresh operation, after refresh operation completes, namely 12:01 needs input " Ctrl+Alt+Del " to equipment under test, carry out reboot operation, and after having restarted, namely " 12:04 " takes the screen picture of equipment under test, following step can be taked to input separately and the shooting time point in On-board test instruction: A, tester selects the button representing shooting time setting again on keyboard type interface, B, input shooting time point: " 12:04 ", then the carriage return clicked on keyboard type interface or other buttons are to submit the shooting time point of input to, if C has multiple shooting time point, the sequencing that master control set is submitted to according to input, preserves the shooting time point of input successively.After completing above-mentioned input, master control set is by the image unit controlling to carry at 12:04 shooting or the screen picture recording described equipment under test, or send shooting instruction at 12:04 and cause equipment under test, make equipment under test carry out sectional drawing to self screen and send to master control set.
Shooting time point is in conjunction with acquisition time point and the input of test key information: for stability test, suppose that inputting interface is the prompting-type inputting interface of information input frame, and need to start to carry out stability test after half an hour, namely after half an hour, first time inputs " Ctrl+Alt+Del " to equipment under test, carry out reboot operation, and again input " Ctrl+Alt+Del " to equipment under test every 150s, repeat the reboot operation of stipulated number, and the 140s after each reboot operation takes the screen picture of equipment under test, following step can be taked to input and the shooting time point in On-board test instruction: A in conjunction with acquisition time point and test key information, the first acquisition time point is inputted: " 1800s " in the information input frame of tester after language " time 1: ", the test key information of the first test point of input in information input frame after language " input key information 1 ": " Ctrl+Alt+Del ", the first shooting time point is inputted: " 1940s " in information input frame after language " shooting time 1 ", the time interval of the second acquisition time point and the first acquisition time point is inputted: " 150s " in B, the information input frame of tester after language " time 2: ", the test key information of the first test point of input in information input frame after language " input key information 2 ": " Ctrl+Alt+Del ", inputs the time interval that the second shooting time point and first takes time point: " 150s " in the information input frame after language " shooting time 2 ", C, repeat above-mentioned input mode until have input the test key information of " Ctrl+Alt+Del " of specified quantity, D, submission input information, E, master control set will store shooting time point, acquisition time point and test key information respectively according to the order preset in language.
In embodiments of the present invention, after step S104 obtains and stores the test result generated after described equipment under test enters described test mode, described method also comprises: after obtaining the trigger message for exporting described test result, based on described trigger message, export described test result.
For how after obtaining the trigger message for exporting described test result, based on described trigger message, export described test result, specific implementation process is illustrated as: when tester needs to check test result, can by the keyboard of master control set, mouse or touch control keyboard, input a viewing command, then the test result of storage can be presented on its display screen by master control set, or test result is outputted on the external memory device of tester or display device; The file of the store test results that tester also can directly preset to master control set goes to check or copy test result.
Embodiment two:
In embodiment two, provide a kind of master control set, can be connected with equipment under test.
Please refer to Fig. 2, be the structural drawing of master control set in the embodiment of the present application two, this device 201 specifically comprises:
Keyboard simulator 202, for obtaining the test key information be stored in described master control set based on a test instruction, and is converted to QWERTY keyboard scan code by described test key information; Export described QWERTY keyboard scan code to described equipment under test, enter test mode to make described equipment under test;
Main control module 203, for obtaining and storing the test result generated after described equipment under test enters described test mode.
In specific implementation process, main control module 203 also for, by at least one input operation that response is carried out based on the inputting interface that described master control set is preset, and obtain N number of described test key information, wherein, described N is positive integer, and according to N number of described test key information described in the first order corresponding stored, wherein, described first order is, after making described equipment under test enter test mode, needs obtain and change the order of described N number of described test key information.
In specific implementation process, keyboard simulator 202 also for based in described test instruction preset M acquisition time point, according to described first order, obtain described N number of described test key information, wherein, described M is the positive integer equal with described N, wherein, described M acquisition time point is specially, and after making described equipment under test enter test mode, needs obtain and change M time point of described N number of described test key information.
In specific implementation process, main control module 203 is also for storing the test key information of one or more the combination comprised in duration that independent key, composite key or each button continue.
In specific implementation process, keyboard simulator 202 also comprises: translation unit, for described test key information translation is converted to identical with the keyboard output format of described tested instrument, and can by the QWERTY keyboard scan code of described tested instrument identification; Output unit, for exporting described QWERTY keyboard scan code to described equipment under test.
In specific implementation process, main control module 203 also comprises: image unit, for based on the shooting time point preset in described test instruction, takes or records the screen picture of described equipment under test, obtain described test result according to described screen picture; Storage unit, for storing the described test result obtained according to described screen picture.
In specific implementation process, main control module 203 also comprises: output unit, for after obtaining the trigger message for exporting described test result, based on described trigger message, exports described test result.
Master control set in the present embodiment and aforementioned automated testing method are based on the aspect of two under same inventive concept, detailed description is done to the implementation process of method above, so those skilled in the art can according to the structure of the master control set in aforementioned understanding the present embodiment be described clearly and implementation process, succinct in order to instructions, has just repeated no more at this.
Technical scheme in above-mentioned the embodiment of the present application, at least has following technique effect or advantage:
1, by automatically described test key information being converted to QWERTY keyboard scan code, export to equipment under test, tester is made not need to keep always come to knock keyboard by test process at equipment under test when testing, solving method of testing of the prior art, to there is automatization level low, the technical matters of inefficiency, achieve the technique effect automatically carrying out testing, and then effectively improve testing efficiency, make to test required manpower and the time reduces all greatly.
2, by after test starts, automatic acquisition also stores the test result generated, make tester can recall test result at any time to check, do not need to keep and whether pass through in equipment under test real-time judge test of coming, this makes it possible to solve when needing tester's real-time judge test result in whole test process, tester must keep by tested instrument always, causes the technical matters that very large manpower and time take, and realizes saving the manpower shared by test and the technique effect of time.Meanwhile, owing to storing the test result generated in test process, after tester's false judgment test result can also be solved, be difficult to the technical matters of reviewing correction, achieve the retrospective technique effect of test result.
3, due to described test key information can be received by the inputting interface that described master control set is preset, make tester can edit described test key information simply and easily, solve when testing scheme changes, the technical matters of the test key information editor difficulty that may exist, achieves the technique effect of test key information editor easy.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt can by the form of installing the upper computer program implemented of medium (including but not limited to disk erector, CD-ROM, optics erector etc.) at one or more computing machine wherein including computer usable program code.
The present invention describes with reference to according to the process flow diagram of the method for the embodiment of the present invention, equipment (system) and computer program and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computing machine or other programmable data processing device produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be arranged on can in the computer-readable erector that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be arranged in this computer-readable erector produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make on computing machine or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computing machine or other programmable devices is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (14)

1. an automated testing method, is applied in master control set, and when described master control set is connected with equipment under test, it is characterized in that, described method comprises:
Obtain the test key information be stored in the memory device of described master control set based on a test instruction, and described test key information is converted to QWERTY keyboard scan code;
Export described QWERTY keyboard scan code to described equipment under test, enter test mode to make described equipment under test;
Obtain and store the test result generated after described equipment under test enters described test mode.
2. the method for claim 1, is characterized in that, described to obtain the test key information being stored in the memory device of described master control set based on a test instruction before, described method comprises further:
By at least one input operation that response is carried out based on the inputting interface that described master control set is preset, and obtain N number of described test key information, wherein, described N is positive integer;
And according to the first order N number of described test key information described in corresponding stored in described memory device, wherein, described first order is, after making described equipment under test enter test mode, needs obtain and change the order of described N number of described test key information.
3. the method as described in as arbitrary in claim 1 or 2, is characterized in that, describedly obtains the test key information be stored in the memory device of described master control set based on a test instruction, is specially:
Based on M the acquisition time point preset in described test instruction, according to described first order, described N number of described test key information is obtained from described memory device, wherein, described M is the positive integer equal with described N, and wherein, described M acquisition time point is specially, after making described equipment under test enter test mode, needs obtain and change M time point of described N number of described test key information.
4. the method for claim 1, is characterized in that, described test key information comprises:
One or more combination in the duration that independent key, composite key or each button continue.
5. the method for claim 1, is characterized in that, described described test key information is converted to QWERTY keyboard scan code, is specially:
Described test key information translation is converted to identical with the keyboard output format of described equipment under test, can by the QWERTY keyboard scan code of described equipment under test identification.
6. the method for claim 1, is characterized in that, described acquisition also stores the test result generated after described equipment under test enters described test mode, is specially:
Based on the shooting time point preset in described test instruction, take or record the screen picture of described equipment under test, obtain according to described screen picture and store described test result.
7. the method for claim 1, is characterized in that, in described acquisition and after storing the test result generated after described equipment under test enters described test mode, described method also comprises:
After obtaining the trigger message for exporting described test result, based on described trigger message, export described test result.
8. a master control set, can be connected with equipment under test, it is characterized in that, described device comprises:
Keyboard simulator, for obtaining the test key information be stored in described master control set based on a test instruction, and is converted to QWERTY keyboard scan code by described test key information; Export described QWERTY keyboard scan code to described equipment under test, enter test mode to make described equipment under test;
Main control module, for obtaining and storing the test result generated after described equipment under test enters described test mode.
9. device as claimed in claim 8, it is characterized in that, described main control module also for, by at least one input operation that response is carried out based on the inputting interface that described master control set is preset, and obtain N number of described test key information, wherein, described N is positive integer, and according to N number of described test key information described in the first order corresponding stored, wherein, described first order is, after making described equipment under test enter test mode, needs obtain and change the order of described N number of described test key information.
10. the device as described in as arbitrary in claim 8 or 9, it is characterized in that, described keyboard simulator also for, based in described test instruction preset M acquisition time point, according to described first order, obtain described N number of described test key information, wherein, described M is the positive integer equal with described N, wherein, described M acquisition time point is specially, and after making described equipment under test enter test mode, needs obtain and change M time point of described N number of described test key information.
11. devices as claimed in claim 8, is characterized in that, described main control module also comprises for storing: the test key information of one or more the combination in the duration that independent key, composite key or each button continue.
12. devices as claimed in claim 8, it is characterized in that, described keyboard simulator also comprises:
Translation unit, for described test key information translation is converted to identical with the keyboard output format of described tested instrument, can by the QWERTY keyboard scan code of described tested instrument identification;
Output unit, for exporting described QWERTY keyboard scan code to described equipment under test.
13. devices as claimed in claim 8, it is characterized in that, described main control module also comprises:
Image unit, for based on the shooting time point preset in described test instruction, takes or records the screen picture of described equipment under test, obtain described test result according to described screen picture;
Storage unit, for storing the described test result obtained according to described screen picture.
14. devices as claimed in claim 8, it is characterized in that, described main control module also comprises:
Output unit, for after obtaining the trigger message for exporting described test result, based on described trigger message, exports described test result.
CN201310217731.7A 2013-06-03 2013-06-03 A kind of automated testing method and master control set Active CN104216823B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310217731.7A CN104216823B (en) 2013-06-03 2013-06-03 A kind of automated testing method and master control set

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310217731.7A CN104216823B (en) 2013-06-03 2013-06-03 A kind of automated testing method and master control set

Publications (2)

Publication Number Publication Date
CN104216823A true CN104216823A (en) 2014-12-17
CN104216823B CN104216823B (en) 2017-12-29

Family

ID=52098339

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310217731.7A Active CN104216823B (en) 2013-06-03 2013-06-03 A kind of automated testing method and master control set

Country Status (1)

Country Link
CN (1) CN104216823B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468166A (en) * 2015-12-07 2016-04-06 北京奇虎科技有限公司 Method, device and system for recording information input by keyboard
CN105738723A (en) * 2016-01-29 2016-07-06 苏州佳世达电通有限公司 Production line automatic detection method and detection device
CN106294159A (en) * 2016-08-12 2017-01-04 腾讯科技(深圳)有限公司 A kind of method controlling screenshotss and screenshotss control device
CN112084082A (en) * 2020-08-28 2020-12-15 苏州富强科技有限公司 Keyboard detection method
CN112133072A (en) * 2020-09-23 2020-12-25 中国兵器工业集团第二一四研究所苏州研发中心 Test system and test method for LoRa wireless data acquisition device
CN113127348A (en) * 2021-04-19 2021-07-16 广州掌动智能科技有限公司 Method, system and storage medium for recording automatic test script of software

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1641592A (en) * 2004-01-07 2005-07-20 北京北阳电子技术有限公司 Method and system for measuring functions of electronic product with keyboard
CN101175284A (en) * 2006-11-01 2008-05-07 联想移动通信科技有限公司 Function testing method of portable electronic apparatus
CN101262681A (en) * 2008-04-16 2008-09-10 青岛海信移动通信技术股份有限公司 Automatic testing mobile terminal and its implementation method
CN102291595A (en) * 2011-07-08 2011-12-21 深圳创维数字技术股份有限公司 Testing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1641592A (en) * 2004-01-07 2005-07-20 北京北阳电子技术有限公司 Method and system for measuring functions of electronic product with keyboard
CN101175284A (en) * 2006-11-01 2008-05-07 联想移动通信科技有限公司 Function testing method of portable electronic apparatus
CN101262681A (en) * 2008-04-16 2008-09-10 青岛海信移动通信技术股份有限公司 Automatic testing mobile terminal and its implementation method
CN102291595A (en) * 2011-07-08 2011-12-21 深圳创维数字技术股份有限公司 Testing method and device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468166A (en) * 2015-12-07 2016-04-06 北京奇虎科技有限公司 Method, device and system for recording information input by keyboard
CN105468166B (en) * 2015-12-07 2019-04-23 北京奇虎科技有限公司 Record the method, apparatus and system of keyboard input information
CN105738723A (en) * 2016-01-29 2016-07-06 苏州佳世达电通有限公司 Production line automatic detection method and detection device
CN106294159A (en) * 2016-08-12 2017-01-04 腾讯科技(深圳)有限公司 A kind of method controlling screenshotss and screenshotss control device
CN106294159B (en) * 2016-08-12 2018-05-22 腾讯科技(深圳)有限公司 A kind of control method of screenshotss and screenshotss control device
CN112084082A (en) * 2020-08-28 2020-12-15 苏州富强科技有限公司 Keyboard detection method
CN112084082B (en) * 2020-08-28 2023-10-20 苏州富强科技有限公司 Keyboard detection method
CN112133072A (en) * 2020-09-23 2020-12-25 中国兵器工业集团第二一四研究所苏州研发中心 Test system and test method for LoRa wireless data acquisition device
CN112133072B (en) * 2020-09-23 2021-07-06 中国兵器工业集团第二一四研究所苏州研发中心 Test system and test method for LoRa wireless data acquisition device
CN113127348A (en) * 2021-04-19 2021-07-16 广州掌动智能科技有限公司 Method, system and storage medium for recording automatic test script of software
CN113127348B (en) * 2021-04-19 2021-10-15 广州掌动智能科技有限公司 Method, system and storage medium for recording automatic test script of software

Also Published As

Publication number Publication date
CN104216823B (en) 2017-12-29

Similar Documents

Publication Publication Date Title
CN104216823A (en) Automatic testing method and master control device
CN107562610B (en) Method, device, terminal and medium for acquiring page loading time
WO2020155777A1 (en) Ui automated function testing method, testing device, testing apparatus, and storage medium
CN107678935B (en) Data generation method, terminal and computer readable storage medium
CN111104341A (en) Automatic testing method, device, equipment and storage medium for intelligent household equipment
CN112711526B (en) UI test method, device, equipment and storage medium
CN102595184B (en) Intelligent television automation test method and system
US11074157B2 (en) Splicing screen debugging method, splicing screen and splicing wall
CN105100796A (en) Television test method, device and system
CN104375911A (en) Fast android whole machine function detection method based on android platform engineering mode
CN101262681A (en) Automatic testing mobile terminal and its implementation method
CN104375934A (en) Method for testing reliability of Android mobile phone software
CN104156305A (en) Application program testing method and device
CN105279092A (en) Software testing method and apparatus
CN105354138A (en) Method for determining specific control attribute of mobile phone page
CN103049374B (en) Automatic testing method and device
CN113268416A (en) Application program testing method and device, storage medium and terminal
CN104820676A (en) Method and device for judging magnitude of version number
CN106528429A (en) UI testing method and device
CN105260077A (en) Electronic device and detection method for capacitive touch screen of electronic device
CN106970870B (en) Webpage test platform, webpage test method and webpage test system
CN104977525A (en) Method for manually editing flying probe test file
US20200059798A1 (en) Configuration method of wireless network system, configuration terminal and configuration system
WO2021115314A1 (en) Method, apparatus, and device for implementing logic simulation of nuclear power plant onsite control objects
CN109739707B (en) Test processing method, mobile terminal and storage medium

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