CN104216823B - A kind of automated testing method and master control set - Google Patents

A kind of automated testing method and master control set Download PDF

Info

Publication number
CN104216823B
CN104216823B CN201310217731.7A CN201310217731A CN104216823B CN 104216823 B CN104216823 B CN 104216823B CN 201310217731 A CN201310217731 A CN 201310217731A CN 104216823 B CN104216823 B CN 104216823B
Authority
CN
China
Prior art keywords
test
equipment under
key information
under test
master control
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
CN201310217731.7A
Other languages
Chinese (zh)
Other versions
CN104216823A (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 a kind of automated testing method and master control set, this method is applied in master control set, and when master control set is connected with equipment under test, this method includes:The test key information being stored in the storage device of master control set is obtained based on a test instruction, and test key information is converted into QWERTY keyboard scan code;Outputting standard keyboard scancode is to equipment under test, so that equipment under test enters test mode;Obtain and store equipment under test and enter after test mode the test result generated.Automatization level to be present low to solve method of testing of the prior art for method and apparatus provided by the invention, the low technical problem of efficiency, the automatic technique effect tested is realized, and then effectively increases testing efficiency so that manpower needed for test and time all substantially reduce.

Description

A kind of automated testing method and master control set
Technical field
The present invention relates to electronic technology field, more particularly to a kind of automated testing method and master control set.
Background technology
For the production firm of computer, mobile phone and communication apparatus class product, it is required for carrying out largely before product export Test job, on the one hand can reject the product for not meeting requirement of dispatching from the factory, on the other hand can also detect overall steady of product Qualitative and reliability.
By taking relatively common BIOS tests and stability test as an example, during test, it is necessary to tester always Keep before equipment under test, according to the test process shown on equipment under test display, by manually knocking in key on keyboard, come Carry out BIOS refreshings or the operation such as restart, while tester also needs to real-time monitored equipment under test display in test process The test result shown, and the judgement for being tested whether to pass through according to the test result shown.
But present inventor has found above-mentioned technology extremely during inventive technique scheme in realizing the embodiment of the present application Following technical problem less be present:
Using above-mentioned manual testing's method, due to more artificial button operation in whole test process be present, and need Tester's real-time judge is tested whether by the way that therefore tester must keep by tested instrument always, cause very big manpower Taken with the time, i.e., method of testing of the prior art has that automatization level is low, the low technical problem of efficiency.
The content of the invention
The embodiment of the present application solves survey of the prior art by providing a kind of automated testing method and master control set Method for testing has that automatization level is low, the low technical problem of efficiency, realizes the automatic technique effect tested, Jin Eryou Effect improves testing efficiency so that manpower needed for test and time all substantially reduce.
On the one hand, the embodiment of the present application provides following technical scheme:
A kind of automated testing method, applied in master control set, when the master control set is connected with equipment under test, wrap Include following steps:
Obtained based on a test instruction and be stored in test key information in the storage device of the master control set, and by institute State test key information and be converted to QWERTY keyboard scan code;
The QWERTY keyboard scan code is exported to the equipment under test, so that the equipment under test enters test mode;
Obtain and store the equipment under test and enter after the test mode test result generated.
Optionally, it is described that the test button being stored in the storage device of the master control set is obtained based on a test instruction Before information, methods described further comprises:Carried out by responding based on default inputting interface on the master control set At least one input operation, and N number of test key information is obtained, wherein, the N is positive integer;And according to the first order It is corresponding in the storage device to store N number of test key information, wherein, first order is to make the quilt Measurement equipment enters after test mode, it is necessary to obtain and change the order of N number of test key information.
Optionally, it is described that the test button being stored in the storage device of the master control set is obtained based on a test instruction Information, it is specially:Based on default M acquisition time point in the test instruction, according to the described first order, from the storage N number of test key information is obtained in equipment, wherein, the M is the positive integer equal with the N, wherein, the M Individual acquisition time point is specifically, make the equipment under test enter after test mode, it is necessary to obtain and change N number of test M time point of key information.
Optionally, the test key information includes:In independent key, composite key or the lasting duration of each button One or more combinations.
Optionally, it is described that the test key information is converted into QWERTY keyboard scan code, be specially:The test is pressed Key information translation is converted to the keyboard output format identical with the equipment under test, the mark that can be identified by the equipment under test Quasi- keyboard scancode.
Optionally, it is described to obtain and store the equipment under test into the test result generated after the test mode, tool Body is:Default shooting time point in being instructed based on the test, the screen picture of the equipment under test is shot or records, according to The screen picture obtains and stores the test result.
Optionally, it is described obtain and store the equipment under test into the test result generated after the test mode it Afterwards, methods described also includes:After obtaining and being used to export a triggering information of the test result, based on the triggering information, Export the test result.
On the other hand, the embodiment of the present application additionally provides a kind of master control set, can be connected with equipment under test, including:
Keyboard simulator, for obtaining the test button being stored in master control set letter based on a test instruction Breath, and the test key information is converted into QWERTY keyboard scan code;The QWERTY keyboard scan code is exported to be tested to described Equipment, so that the equipment under test enters test mode;
Main control module, enter after the test mode test result generated for obtaining and storing the equipment under test.
Optionally, the main control module is additionally operable to, by response based on default inputting interface on the master control set and At least one input operation carried out, and obtains N number of test key information, wherein, the N is positive integer, and according to the One order is corresponding to store N number of test key information, wherein, first order is to enter the equipment under test , it is necessary to obtain and change the order of N number of test key information after test mode.
Optionally, the keyboard simulator was additionally operable to based on default M acquisition time point in the test instruction, According to the described first order, N number of test key information is obtained, wherein, the M is the positive integer equal with the N, Wherein, described M obtains time point specifically, making the equipment under test enter after test mode, it is necessary to obtain and change the N M time point of the individual test key information.
Optionally, the main control module be additionally operable to storage include independent key, composite key or each button it is lasting when The test key information of one or more combinations in length.
Optionally, keyboard simulator also includes:Translation unit, for the test key information translation to be converted to , can be by the QWERTY keyboard scan code of the tested instrument identification with the keyboard output format identical of the tested instrument;It is defeated Go out unit, for exporting the QWERTY keyboard scan code to the equipment under test.
Optionally, the main control module also includes:Image unit, for based on it is described test instruction in default shooting when Between point, shoot or record the screen picture of the equipment under test, the test result is obtained according to the screen picture;Storage is single Member, for storing the test result obtained according to the screen picture.
Optionally, the main control module also includes:
Output unit, for after the triggering information for exporting the test result is obtained, being believed based on the triggering Breath, exports the test result.
The one or more technical schemes provided in the embodiment of the present application, have at least the following technical effects or advantages:
1st, by the way that the test key information is converted into QWERTY keyboard scan code automatically, export to equipment under test, make survey Examination personnel need not keep always in test to come to tap keyboard by test process in equipment under test, solves of the prior art Method of testing has that automatization level is low, the low technical problem of efficiency, realizes the automatic technique effect tested, and then Effectively increase testing efficiency so that manpower needed for test and time all substantially reduce.
2nd, by after test starts, automatically obtaining and storing the test result of generation, tester is allow at any time Test result is recalled to check, it is not necessary to keep equipment under test come real-time judge test whether by, this makes it possible to solve work as When needing tester's real-time judge test result in whole test process, tester must keep by tested instrument always, The technical problem of very big manpower and time occupancy is caused, realizes and saves test shared manpower and the technique effect of time. Simultaneously as the test result generated in test process is stored, additionally it is possible to solve the test of tester's false judgment As a result after, it is difficult to the technical problem for going retrospect to correct, realize the retrospective technique effect of test result.
3rd, due to the test key information can be received by default inputting interface on the master control set, test is made Personnel can simply and easily edit the test key information, solve when testing scheme changes, it is understood that there may be test The difficult technical problem of key information editor, realize the technique effect of test key information editor's easy.
Brief description of the drawings
Fig. 1 is the flow chart of automated testing method in the embodiment of the present invention;
Fig. 2 is the structure chart of master control set in the embodiment of the present invention.
Embodiment
The embodiment of the present application solves survey of the prior art by providing a kind of automated testing method and master control set Method for testing has that automatization level is low, the low technical problem of efficiency, realizes the automatic technique effect tested, Jin Eryou Effect improves testing efficiency so that manpower needed for test and time all substantially reduce.
Low for the above-mentioned automatization level of solution, the low technical problem of efficiency, the embodiment of the present application provides technical scheme General thought is as follows:
The present invention provides a kind of automated testing method, applied in master control set, when the master control set is set with being tested During standby connection, comprise the following steps:
Obtained based on a test instruction and be stored in test key information in the storage device of the master control set, and by institute State test key information and be converted to QWERTY keyboard scan code;
The QWERTY keyboard scan code is exported to the equipment under test, so that the equipment under test enters test mode;
Obtain and store the equipment under test and enter after the test mode test result generated.
By the above as can be seen that by the way that the test key information is converted into QWERTY keyboard scan code automatically, Export to equipment under test, tester is kept always in test and come to press test process percussion key in equipment under test Disk, it is not required that keep and tested whether in equipment under test real-time judge of coming by solving method of testing of the prior art and depositing It is low in automatization level, the low technical problem of efficiency, the automatic technique effect tested is realized, and then effectively increase Testing efficiency so that manpower needed for test and time all substantially reduce.
By after test starts, automatically obtaining and storing the test result of generation, tester is set to adjust at any time Go out test result to check, it is not necessary to keep and test whether by the way that this makes it possible to solve when whole in equipment under test real-time judge of coming When tester's real-time judge test result is needed in individual test process, tester must keep by tested instrument always, make The technical problem taken into very big manpower and time, realizes and saves test shared manpower and the technique effect of time.Together When, due to being stored to the test result generated in test process, additionally it is possible to solve tester's false judgment test knot After fruit, it is difficult to the technical problem for going retrospect to correct, realize the retrospective technique effect of test result.
In order to be better understood from above-mentioned technical proposal, below in conjunction with Figure of description and specific embodiment to upper Technical scheme is stated to be described in detail.
Embodiment one:
A kind of automated testing method is provided in embodiment one, applied in master control set, when the master control set When being connected with equipment under test, wherein, the automated testing method can apply to BIOS tests, can also be applied to stability and survey Examination, will not enumerate in the embodiment of the present application.
Fig. 1 is refer to, Fig. 1 is the broad flow diagram of automated testing method in the embodiment of the present application one, and this method includes Following steps:
Step S101, the test button letter being stored in the storage device of the master control set is obtained based on a test instruction Breath;
Step S102, the test key information is converted into QWERTY keyboard scan code;
Step S103, the QWERTY keyboard scan code is exported to the equipment under test, is surveyed so that the equipment under test enters Examination state;
Step S104, obtain and store the equipment under test into the test result generated after the test mode.
In embodiments of the present invention, i.e., obtained in step S101 based on a test instruction and be stored in depositing for the master control set Before storing up the test key information in equipment, this method still further comprises:By response based on default on the master control set Inputting interface and at least one input operation for carrying out, and obtain N number of test key information, wherein, the N is just whole Number;And N number of test key information is stored according to the first order is corresponding in the storage device, wherein, described the One order is the equipment under test is entered after test mode, it is necessary to obtain and change N number of test key information Sequentially.
In specific implementation process, default inputting interface can be the figure shown by the display screen of master control set The inputting interface of shape, or the inputting interface of prompting-type.Illustrated, can shown on master control set with patterned inputting interface Show a keyboard image, tester is by the mouse, keyboard or touch control screen of master control set on the keyboard image of display Input test key information;Illustrated with the inputting interface of prompting-type, " key information 1 can be shown on master control set:", " press Key information 2:" etc. language, and the configuration information input frame behind language, tester pass through according to language Mouse, keyboard or the touch control screen of master control set input key testing information in corresponding information input frame.
Can be first by testing according to the corresponding storage test key information of the first order in specific implementation process The order of the QWERTY keyboard scan code, sequentially inputs test button corresponding to the button operation order that personnel input as required Information, then test key information is stored successively according to the sequencing of input by master control set, here with the graphical of keyboard type Illustrate exemplified by interface according to input sequencing the specific steps that store:
A, first pass through keyboard type interface and input the test key information of the first test point, then click on returning on keyboard type interface Car or other buttons submit the test key information of the first test point;
B, the test key information of the second test point is inputted by keyboard type interface again, then clicks on returning on keyboard type interface Car or other buttons submit the test key information of the second test point;
C, aforesaid operations are repeated, until first for obtaining as required and changing N number of test key information is suitable The whole test key information of sequence input;
D, the sequencing that master control set is submitted according to test key information input, that is, need to obtain and change described N number of The first sequential storage test key information of the test key information.
Can also be first by tester according to the prompting of master control set inputting interface come input test key information, then by Master control set stores test key information according to the default order of the prompting of inputting interface, here with information input frame Illustrate exemplified by prompting-type inputting interface according to preset order the specific steps that store:
A, in language, " the test button of the first test point of input is believed in the information input frame behind key information 1 " Breath, " the test key information of the second test point of input, repeats aforesaid operations in the information input frame behind key information 2 ", Until by the whole test key information of input;
B, whole test key informations of input are submitted;
C, master control set is according to default order in language, that is, needs to obtain and change N number of test and press The first sequential storage test key information of key information.
By taking the BIOS refresh testings during BIOS is tested as an example, the test is firstly the need of input " FLASHMARKER.BIN/c/ E/r/s " arrives equipment under test, to control BIOS to carry out refresh operation, after the completion of refresh operation, it is also necessary to input " Ctrl+Alt+ Del " arrives equipment under test, to carry out reboot operation.BIOS refresh testings are carried out when the method using the present embodiment, and work as master control When the inputting interface of device is the prompting-type inputting interface of information input frame, following step can be taken to input and store survey Try key information:
A, in language " key information 1:" behind information input frame in input the first test point test button letter Breath:" FLASH MARKER.BIN/c/e/r/s ", in " key information 2:" behind information input frame in input the second test point Test key information:“Ctrl+Alt+Del”;
B, input information is submitted;
C, master control set will need to obtain and change N number of test according to default order in language First order of key information stores the test key information of input.
By taking the stability test for needing repeatedly to restart as an example, the test need repeatedly restart equipment under test, to verify quilt Whether the system of measurement equipment is stablized, i.e. the test arrives equipment under test firstly the need of input " Ctrl+Alt+Del ", to carry out first Secondary reboot operation, after the completion of first time reboot operation, it is also necessary to input " Ctrl+Alt+Del " again and arrive equipment under test, come Secondary reboot operation is carried out, is repeated the above steps, until completing the reboot operation of specified quantity.When using the present embodiment Method carries out stability test, and when the inputting interface of master control set is the graphical Interface interface of keyboard type, can adopt Following step is taken to input and store test key information:
A, tester first passes through the test key information that the input of keyboard type interface is restarted for the first time:“Ctrl+Alt+ Del ", then carriage return on keyboard type interface or other buttons are clicked on to submit the test button of the first test point of input to believe Breath;
B, the test key information of the second test point is inputted by keyboard type interface again:" Ctrl+Alt+Del ", then click on The test key information of the second test point is submitted in carriage return or other buttons on keyboard type interface;
C, aforesaid operations are repeated, until input have submitted " Ctrl+Alt+Del " of specified quantity test key information;
D, the sequencing storage test key information that master control set is submitted according to test key information input.
In embodiments of the present invention, step S101 instructs acquisition to be stored in the storage of the master control set and set based on a test Test key information in standby, it is specially:
Based on default M acquisition time point in the test instruction, according to the described first order, from the storage device It is middle to obtain N number of test key information, wherein, the M is the positive integer equal with the N, wherein, the M are obtained Time point is taken specifically, making the equipment under test enter after test mode, it is necessary to obtain and change N number of test button M time point of information.
In specific implementation process, the acquisition time point in the test instruction of storage can be beforehand through on master control set Default graphical Interface interface or prompting-type inputting interface are inputted and stored.Wherein, it can be tool to obtain time point The time format of body such as " 10:00 ", or interval time form such as " 90s ", it is not another in the embodiment of the present application One enumerates.The concrete mode of input can be individually entered the acquisition time point tested in instructing or refer to test Acquisition time point in order is combined input with test key information, BIOS refresh testings in being tested separately below with BIOS and surely Exemplified by qualitative test, to illustrate to obtain the different input modes at time point in test instruction respectively:
Individually enter:By taking the BIOS refresh testings during BIOS is tested as an example, it is assumed that inputting interface is graphical for keyboard type Inputting interface, and need 12:00 proceeds by BIOS refresh testings, i.e., 12:00 input " FLASH MARKER.BIN/c/ E/r/s " arrives equipment under test, to control BIOS to carry out refresh operation, after the completion of refresh operation, i.e., 12:01 needs to input " Ctrl + Alt+Del " arrives equipment under test, during carrying out reboot operation, can take following step and be obtained to input and store in test instruction Take time point:A, first selection represents the button of time setting to tester on keyboard type interface;B, input first obtains the time Point:“12:00 ", then carriage return on keyboard type interface or other buttons are clicked on to submit for the first of input the acquisition time point;C、 Input second obtains time point:“12:01 ", then carriage return on keyboard type interface or other buttons are clicked on to submit the of input Two obtain time point;D, the sequencing that master control set is submitted according to input, the acquisition time point of input is preserved successively.
Binding test key information inputs:By taking stability test as an example, it is assumed that inputting interface is the inputting interface of prompting-type, And need to proceed by stability test after half an hour, i.e., input " Ctrl+Alt+Del " is arrived for the first time after half an hour Equipment under test, " Ctrl+Alt+Del " is inputted again to carry out reboot operation, and after the 150s of first time reboot operation to tested Equipment, to carry out second of reboot operation, repeat the above steps, until completing the reboot operation of specified quantity, can take down Step is stated to input and store the acquisition time point in test instruction:A, tester is in the language " time 1:" behind letter Cease input first in input frame and obtain time point:" 1800s ", in language " the information input behind input key information 1 " The test key information of first test point of inframe input:" Ctrl+Alt+Del ", in the language " information behind the time 2 " Input second obtains time point and the first time interval for obtaining time point in input frame:" 150s ", in language, " input is pressed The test key information of first test point of input in information input frame behind key information 2 ":“Ctrl+Alt+Del”;B, again " Ctrl+Alt+Del " of the multiple above-mentioned input mode until have input specified quantity test key information;C, input letter is submitted Breath;D, master control set will store acquisition time point and the test in test instruction respectively according to default order in language Key information.
In embodiments of the present invention, the test key information in step S101 includes:Independent key, composite key or each One or more combinations in the lasting duration of button.It can be similar independent of " A ", " Enter " to test key information Key, either " Ctrl+Alt+Del " similar composite key or the continuous independent key of " FLASH " class, or " A (6s) " The key with button duration of class, will not enumerate in the embodiment of the present application.
In embodiments of the present invention, step S102, the test key information is converted into QWERTY keyboard scan code, specifically Can be that the test key information translation is converted into keyboard output format identical with the equipment under test, can be by The QWERTY keyboard scan code of the equipment under test identification.
Specifically, by the translation processing unit in master control set test key information can be realized to QWERTY keyboard The conversion of scan code.Translate processing unit first to instruct according to test, obtain corresponding test key information, then pass through translation unit Internal single chip circuit, according to default translation rule will test key information be translated as it is defeated with the keyboard of the equipment under test Go out form identical, the QWERTY keyboard scan code that can be identified by the equipment under test, then pass through the output list in master control set Member exports the QWERTY keyboard scan code to the equipment under test so that the equipment under test into test mode be step S103。
In embodiments of the present invention, step S104 is obtained and stored after the equipment under test enters the test mode and generates Test result, be specifically as follows, based on default shooting time point in the test instruction, shoot or record described tested set Standby screen picture, obtained according to the screen picture and store the test result.Can also be specifically, master control set is based on Default shooting time point in the test instruction, send shooting instruction and cause equipment under test, equipment under test is based on shooting instruction and cut The screen picture of body is derived from, and the screen picture of interception is sent to master control set, master control set obtains according to the screen picture Obtain and store the test result.
In specific implementation process, shooting time point can be beforehand through default figure on master control set in test instruction Shape inputting interface or indicative inputting interface are inputted and stored.Wherein, shooting time point can be the specific time Form such as " 10:00 ", or interval time form such as " 90s ", will not enumerate in this embodiment of the present application. The concrete mode of input can be individually entered shooting time point or by shooting time point with testing the acquisition in instruction Time point, test key information combine input, BIOS refresh testings and stability test in being tested separately below using BIOS as Example, to illustrate the different input modes of shooting time point in test instruction respectively:
Individually enter shooting time point:By taking the BIOS refresh testings during BIOS is tested as an example, it is assumed that inputting interface is keyboard The graphical Interface interface of type, and need 12:00 proceeds by BIOS refresh testings, i.e., 12:00 input " FLASH MARKER.BIN/c/e/r/s " arrives equipment under test, to control BIOS to carry out refresh operation, after the completion of refresh operation, i.e., 12:01 Input " Ctrl+Alt+Del " is needed to arrive equipment under test, to carry out reboot operation, and after the completion of restarting, i.e., " 12:04 " shooting The screen picture of equipment under test, following step can be taken to individually enter and store the shooting time point in test instruction:A、 Selection represents the button of shooting time setting to tester on keyboard type interface again;B, shooting time point is inputted:“12:04 ", The carriage return on keyboard type interface or other buttons are clicked on again to submit the shooting time of input point;When C, if multiple shootings Between point, the sequencing that master control set is submitted according to input, preserve the shooting time point of input successively.After completing above-mentioned input, Master control set will be 12:The image unit that 04 control carries shoots or recorded the screen picture of the equipment under test, or 12: 04, which sends shooting instruction, causes equipment under test, equipment under test is carried out sectional drawing to itself screen and is sent to master control set.
Shooting time point, which combines, obtains time point and test key information input:By taking stability test as an example, it is assumed that input Interface is the prompting-type inputting interface of information input frame, and needs to proceed by stability test after half an hour, that is, is existed Equipment under test is arrived in input " Ctrl+Alt+Del " for the first time after half an hour, to carry out reboot operation, and it is defeated again every 150s Enter " Ctrl+Alt+Del " and arrive equipment under test, to repeat the reboot operation of stipulated number, and after each reboot operation 140s shoots the screen picture of equipment under test, and following step can be taken to combine and obtain time point and test key information to input With the shooting time point in storage test instruction:A, tester is in the language " time 1:" behind information input frame in it is defeated Entered for the first acquisition time point:" 1800s ", in language " the of input in the information input frame behind input key information 1 " The test key information of one test point:" Ctrl+Alt+Del ", in language " in the information input frame behind shooting time 1 " The shooting time point of input first:“1940s”;B, tester is in the language " time 2:" behind information input frame in input Second obtains time point and the first time interval for obtaining time point:" 150s ", in language " behind input key information 2 " Information input frame in input the first test point test key information:" Ctrl+Alt+Del ", in language " during shooting Between in information input frame behind 2 " the shooting time point of input second and the first shooting time point time interval:“150s”;C、 Repeat " Ctrl+Alt+Del " of the above-mentioned input mode until have input specified quantity test key information;D, input letter is submitted Breath;E, master control set will store shooting time point respectively, obtain time point and test according to default order in language Key information.
In embodiments of the present invention, obtained in step S104 and store the equipment under test into life after the test mode Into test result after, methods described also includes:After the triggering information for exporting the test result is obtained, it is based on The triggering information, exports the test result.
For how obtain be used for export the test result one triggering information after, it is defeated based on the triggering information Go out the test result, specific implementation process, which illustrates, is:When tester needs to check test result, master can be passed through Keyboard, mouse or the touch control keyboard of device are controlled, inputs a viewing command, then master control set can be by the test result of storage It is shown on its display screen, or test result is output in the external storage device of tester or display device;Test Personnel directly can also go to check or copy test result to the file of the default storage test result of master control set.
Embodiment two:
A kind of master control set is provided in embodiment two, can be connected with equipment under test.
Fig. 2 is refer to, is the structure chart of master control set in the embodiment of the present application two, the device 201 specifically includes:
Keyboard simulator 202, for obtained based on a test instruction be stored in test in the master control set by Key information, and the test key information is converted into QWERTY keyboard scan code;The QWERTY keyboard scan code is exported described in Equipment under test, so that the equipment under test enters test mode;
Main control module 203, enter after the test mode test knot generated for obtaining and storing the equipment under test Fruit.
In specific implementation process, main control module 203 is additionally operable to, by response based on default defeated on the master control set At least one input operation for entering interface and carrying out, and N number of test key information is obtained, wherein, the N is positive integer, And according to the corresponding storage N number of test key information of the first order, wherein, first order is to make described be tested Equipment enters after test mode, it is necessary to obtain and change the order of N number of test key information.
In specific implementation process, keyboard simulator 202 is additionally operable to obtain based on default M in the test instruction Time point is taken, according to the described first order, obtains N number of test key information, wherein, the M is equal with the N Positive integer, wherein, it is described M obtain time point specifically, make the equipment under test enter test mode after, it is necessary to obtain simultaneously Change M time point of N number of test key information.
In specific implementation process, main control module 203, which is additionally operable to storage, includes independent key, composite key or each button The test key information of one or more combinations in lasting duration.
In specific implementation process, keyboard simulator 202 also includes:Translation unit, for by the test button Information translation is converted to the keyboard output format identical with the tested instrument, can be by the standard of the tested instrument identification Keyboard scancode;Output unit, for exporting the QWERTY keyboard scan code to the equipment under test.
In specific implementation process, main control module 203 also includes:Image unit, for based on pre- in the test instruction If shooting time point, shoot or record the screen picture of the equipment under test, the test is obtained according to the screen picture As a result;Memory cell, for storing the test result obtained according to the screen picture.
In specific implementation process, main control module 203 also includes:Output unit, for obtaining for exporting the survey After one triggering information of test result, based on the triggering information, the test result is exported.
Master control set and foregoing automated testing method in the present embodiment are based on two sides under same inventive concept Face, above the implementation process of method is being described in detail, so those skilled in the art can be according to described above The structure and implementation process for the master control set being apparent from the present embodiment, it is succinct for specification, it is just no longer superfluous herein State.
Technical scheme in above-mentioned the embodiment of the present application, at least has the following technical effect that or advantage:
1st, by the way that the test key information is converted into QWERTY keyboard scan code automatically, export to equipment under test, make survey Examination personnel need not keep always in test to come to tap keyboard by test process in equipment under test, solves of the prior art Method of testing has that automatization level is low, the low technical problem of efficiency, realizes the automatic technique effect tested, and then Effectively increase testing efficiency so that manpower needed for test and time all substantially reduce.
2nd, by after test starts, automatically obtaining and storing the test result of generation, tester is allow at any time Test result is recalled to check, it is not necessary to keep equipment under test come real-time judge test whether by, this makes it possible to solve work as When needing tester's real-time judge test result in whole test process, tester must keep by tested instrument always, The technical problem of very big manpower and time occupancy is caused, realizes and saves test shared manpower and the technique effect of time. Simultaneously as the test result generated in test process is stored, additionally it is possible to solve the test of tester's false judgment As a result after, it is difficult to the technical problem for going retrospect to correct, realize the retrospective technique effect of test result.
3rd, due to the test key information can be received by default inputting interface on the master control set, test is made Personnel can simply and easily edit the test key information, solve when testing scheme changes, it is understood that there may be test The difficult technical problem of key information editor, realize the technique effect of test key information editor's easy.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more Install medium can be used(Including but not limited to disk erector, CD-ROM, optics erector etc.)The computer program production of upper implementation The form of product.
The present invention is with reference to method according to embodiments of the present invention, equipment(System)And the flow of computer program product Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which can be also arranged on, can guide computer or other programmable data processing devices with spy Determine in the computer-readable erector that mode works so that the instruction in the computer-readable erector, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these changes and modification.

Claims (10)

1. a kind of automated testing method, applied in master control set, when the master control set is connected with equipment under test, it is special Sign is that methods described includes:
By responding based on default inputting interface on the master control set at least one input operation for carrying out, and obtain N Individual test key information, wherein, the N is positive integer;
And corresponded to according to the first order in the storage device of the master control set and store N number of test key information, Wherein, first order is the equipment under test is entered after test mode, it is necessary to obtain and change N number of survey Try the order of key information;
At default M acquisition time point, according to the described first order, obtain institute from the storage device in being instructed based on test N number of test key information is stated, wherein, the M is the positive integer equal with the N, wherein, the M acquisition time point Specifically, the equipment under test is set to enter after test mode, it is necessary to obtain and change the M of N number of test key information Individual time point, the mode for obtaining time point are defeated beforehand through default graphical Interface interface or prompting-type on master control set Enter interface to input and store;
The test key information is converted into QWERTY keyboard scan code;
The QWERTY keyboard scan code is exported to the equipment under test, so that the equipment under test enters test mode;
Obtain and store the equipment under test and enter after the test mode test result generated.
2. the method as described in claim 1, it is characterised in that the test key information includes:
One or more combinations in independent key, composite key or the lasting duration of each button.
3. the method as described in claim 1, it is characterised in that described that the test key information is converted into standard key sweeping Code is retouched, is specially:
The test key information translation is converted into the keyboard output format identical with the equipment under test, can be described The QWERTY keyboard scan code of equipment under test identification.
4. the method as described in claim 1, it is characterised in that described to obtain and store the equipment under test and enter the test The test result generated after state, it is specially:
Default shooting time point in being instructed based on the test, the screen picture of the equipment under test is shot or records, according to The screen picture obtains and stores the test result.
5. the method as described in claim 1, it is characterised in that obtain described and store the equipment under test and enter the survey After the test result generated after examination state, methods described also includes:
After the triggering information for exporting the test result is obtained, based on the triggering information, the test knot is exported Fruit.
6. a kind of master control set, it can be connected with equipment under test, it is characterised in that described device includes:
Keyboard simulator, for test key information to be converted into QWERTY keyboard scan code;Export the standard key sweeping Code is retouched to the equipment under test, so that the equipment under test enters test mode;
Main control module, enter after the test mode test result generated for obtaining and storing the equipment under test;
The main control module is additionally operable to, by respond based on default inputting interface on the master control set and carry out at least one Individual input operation, and N number of test key information is obtained, wherein, the N is positive integer;And correspond to and deposit according to the first order N number of test key information is stored up, wherein, first order is after the equipment under test is entered test mode, to need Obtain and change the order of N number of test key information;
The keyboard simulator is additionally operable to, and default M acquisition time point, suitable according to described first in being instructed based on test Sequence, N number of test key information is obtained from storage device, wherein, the M is the positive integer equal with the N, its In, described M obtains time point specifically, making the equipment under test enter after test mode, it is necessary to obtain and change described N number of M time point of the test key information, the mode for obtaining time point are beforehand through default graphical on master control set Inputting interface or prompting-type inputting interface are inputted and stored.
7. device as claimed in claim 6, it is characterised in that the main control module, which is additionally operable to storage, to be included:Independent key, group Close key or the test key information of one or more combinations in the lasting duration of each button.
8. device as claimed in claim 6, it is characterised in that the keyboard simulator also includes:
Translation unit is identical with the keyboard output format of the equipment under test for the test key information translation to be converted to , the QWERTY keyboard scan code that can be identified by the equipment under test;
Output unit, for exporting the QWERTY keyboard scan code to the equipment under test.
9. device as claimed in claim 6, it is characterised in that the main control module also includes:
Image unit, for based on default shooting time point in the test instruction, shooting or recording the equipment under test Screen picture, the test result is obtained according to the screen picture;
Memory cell, for storing the test result obtained according to the screen picture.
10. device as claimed in claim 6, it is characterised in that the main control module also includes:
Output unit, for obtain be used for export the test result one triggering information after, it is defeated based on the triggering information Go out the 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 CN104216823A (en) 2014-12-17
CN104216823B true 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)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN106294159B (en) * 2016-08-12 2018-05-22 腾讯科技(深圳)有限公司 A kind of control method of screenshotss and screenshotss control device
CN112084082B (en) * 2020-08-28 2023-10-20 苏州富强科技有限公司 Keyboard detection method
CN112133072B (en) * 2020-09-23 2021-07-06 中国兵器工业集团第二一四研究所苏州研发中心 Test system and test method for LoRa wireless data acquisition device
CN113127348B (en) * 2021-04-19 2021-10-15 广州掌动智能科技有限公司 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

Also Published As

Publication number Publication date
CN104216823A (en) 2014-12-17

Similar Documents

Publication Publication Date Title
CN104216823B (en) A kind of automated testing method and master control set
CN106528395B (en) The generation method and device of test case
CN104679631B (en) Method of testing and system for the equipment based on android system
CN104461903B (en) The method and apparatus of test client based on browser
CN102141962B (en) Safety distributed test framework system and test method thereof
CN103530826B (en) BIM (Building Information Modeling)-based shield method tunnel construction management method
CN104123184B (en) A kind of method and system for being used to distribute resource for the task in building process
CN109857668A (en) UI automated function test method, test device, test equipment and storage medium
KR101195446B1 (en) A portable terminal providing maintenance guide based on augmented reality and the method of providing maintenance guide using the same
WO2018210257A1 (en) Method and system of practical trouble shooting training for ship navigation devices based on vr technology
CN104869203B (en) Method of testing, device and the test equipment of interim card
CN104505126B (en) A kind of dynamic memory test system and method
CN107423181A (en) The automated testing method and device of a kind of uniform storage device
CN108959059A (en) A kind of test method and test platform
CN111008135A (en) APP test method, device, equipment and storage medium
CN108508477B (en) Seismic data acquisition system and method
CN109977012A (en) Joint debugging test method, device, equipment and the computer readable storage medium of system
CN106326125A (en) Test case generating method
CN109426611A (en) A kind of method for testing software and device
CN106528429A (en) UI testing method and device
CN104977525A (en) Method for manually editing flying probe test file
CN108109580A (en) Parameter adaptation method, apparatus, equipment and the storage medium of LED display
CN106708736A (en) Production automation testing method and system for communication equipment
CN109388072A (en) A kind of building method of the analogue system based on hot rolling L2 Process Control System
CN109469962A (en) Air conditioner defrosting method and device 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