CN104239214B - A kind of method and apparatus of configuration testing script - Google Patents

A kind of method and apparatus of configuration testing script Download PDF

Info

Publication number
CN104239214B
CN104239214B CN201410513661.4A CN201410513661A CN104239214B CN 104239214 B CN104239214 B CN 104239214B CN 201410513661 A CN201410513661 A CN 201410513661A CN 104239214 B CN104239214 B CN 104239214B
Authority
CN
China
Prior art keywords
button
measured
cycle tests
checking
script
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
CN201410513661.4A
Other languages
Chinese (zh)
Other versions
CN104239214A (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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shiyuan Electronics Thecnology Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201410513661.4A priority Critical patent/CN104239214B/en
Publication of CN104239214A publication Critical patent/CN104239214A/en
Application granted granted Critical
Publication of CN104239214B publication Critical patent/CN104239214B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)
  • Testing Or Calibration Of Command Recording Devices (AREA)

Abstract

The embodiment of the invention discloses a kind of method and apparatus of configuration testing script, for automatically configuring key testing script.The embodiment of the present invention includes:Obtain the key information of button to be measured;Cycle tests is obtained according to the key information;Button to be measured is triggered successively according to the order in the cycle tests and carries out the first checking, if the cycle tests is verified by described first, preserves test object information on the basis of the output information after triggering the button to be measured;Generate test script.So as to other several information i.e. cycle tests, the reference information needed in automatically configuration testing script, so as to generate automatic test script.

Description

A kind of method and apparatus of configuration testing script
Technical field
The present invention relates to testing field, more particularly to a kind of method and apparatus of configuration testing script.
Background technology
With the development of electronic technology and printed board manufacturing technology, modern electronic product is increasingly sophisticated, the density of circuit board Increasingly increase, and the key testing work after circuit board volume production is also increasingly complicated.To lift testing efficiency, industrially introduce certainly Dynamic test system.
Entitled though " automatic ", Auto-Test System stills need to test information according to the testing requirement of product to configure it, Script in specially automatic test.In existing technology, this work is realized by manual operation.Due to human configuration Mode needs operating personnel to have corresponding higher Specialized Quality, therefore, on the one hand, needs to give worker training, this increase The cost of test.On the other hand, it is often more important that, the process of manual configuration is dependent on sight of the operating personnel to test information Survey, sampling, slightly neglect, configuration script is easy to error, will cause the great wasting of resources.
The content of the invention
Produced problem during to solve human configuration test script, first aspect present invention provide and can realize and match somebody with somebody automatically The script collocation method of the purpose of the script of key testing is put, including:
S1, the key information for obtaining button to be measured;
S2, according to the key information obtain cycle tests;
S3, button to be measured is triggered successively according to the order in the cycle tests and carries out the first checking, if the test Sequence is verified by described first, then preserves test object information on the basis of the output information after triggering the button to be measured;
S4, generation test script.
Preferably, described the step of obtaining cycle tests according to the key information, is specially:
Inquired about according to the key information in script bank with the presence or absence of corresponding cycle tests, if in the presence of, read or Generation includes the cycle tests of the button to be measured, into the step S3;
Methods described also includes:
If not verified in the cycle tests by described first, selected again in the cycle tests inquired Select, into S3 described in step.
Preferably, described the step of being inquired about according to the key information in script bank with the presence or absence of corresponding cycle tests Also include afterwards:
The button work(that whether there is the button is inquired about in the script bank according to the key information of the button to be measured Can member, if in the presence of, extract these keypress functions member trunk portion, new cycle tests is generated, into the step S3.
Preferably, it is described first checking be specially:
Respectively preserve test object button to be measured before activation after output information and determine whether difference, if so, then The button is verified by described first, if nothing, is not passed through.
Preferably, methods described also includes:Second checking and/or the 3rd checking are carried out to the test script of generation.
Preferably, second checking is identical with first checking.
Preferably, it is described 3rd checking be specially:
Trigger the button;
The output information for preserving test object is check information;
Judge whether the reference information of the check information and the button is variant, if nothing, the button passes through Three checkings, if so, then authentication failed.
Preferably, it is characterised in that
The test object is television board;
The television image that the output information is the television board and its television system exports.
Corresponding with this, second aspect of the present invention provides a kind of configuration testing script device, including:
First acquisition device, for obtaining the key information of button to be measured;
Second acquisition device, for obtaining cycle tests according to the key information, and it is sent to the first checking device;
The first checking device, for triggering button to be measured successively simultaneously to button according to the order in the cycle tests Carry out the first checking;
Save set, for preserving test object information on the basis of the output information after triggering the button to be measured;
Generating means, for generating test script.
Preferably, whether second acquisition device is specifically used for, inquired about and deposited in script bank according to the key information In corresponding cycle tests, if in the presence of reading or generation include the cycle tests of the button to be measured, be sent to described first Device is verified, if not verified in the cycle tests by described first, is selected again in the cycle tests inquired Select, be sent to the first checking device.
Preferably, in addition to:
3rd acquisition device, it whether there is for being inquired about according to the key information of the button to be measured in the script bank The keypress function member of the button, if in the presence of, the trunk portion of these keypress functions member is extracted, generates new cycle tests, And it is sent to the first checking device.
Preferably, in addition to:
Second checking device, for carrying out the second checking and/or the 3rd checking to the test script of generation.
In the embodiment of the present invention, be manually entered or the key information to be measured of automatic read test object after, automation Other several information i.e. cycle tests, the reference information needed in ground configuration testing script, so as to generate automatic test script, and It is artificial so as to greatly save by accurately verifying that the automatic test script for ensuring to be configured matches with test object The cost of resource and and ensure the correctness of configuration script.
Brief description of the drawings
Fig. 1 is method one embodiment schematic diagram of configuration testing script in the embodiment of the present invention;
Fig. 2 is another embodiment schematic diagram of the method for configuration testing script in the embodiment of the present invention;
Fig. 3 is another embodiment schematic diagram of the method for configuration testing script in the embodiment of the present invention;
Fig. 4 is another embodiment schematic diagram of the method for configuration testing script in the embodiment of the present invention;
Fig. 5 is another embodiment schematic diagram of the method for configuration testing script in the embodiment of the present invention;
Fig. 6 is to automatically configure key testing script device one embodiment schematic diagram in the embodiment of the present invention;
Fig. 7 is that key testing script device another embodiment schematic diagram is automatically configured in the embodiment of the present invention.
Embodiment
The embodiments of the invention provide a kind of method and apparatus of configuration testing script, for making automatic test script.
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people The every other embodiment that member is obtained under the premise of creative work is not made, it should all belong to the model that the present invention protects Enclose.
Term " first ", " second ", " the 3rd " " in description and claims of this specification and above-mentioned accompanying drawing Four " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so use Data can exchange in the appropriate case, so that the embodiments described herein can be with except illustrating or describing herein Order beyond appearance is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that covering is non-exclusive Include, be not necessarily limited to clearly arrange for example, containing the process of series of steps or unit, method, system, product or equipment Those steps or unit gone out, but may include not list clearly or consolidate for these processes, method, product or equipment The other steps or unit having.
Referring to Fig. 1, the method for configuration testing script includes in the embodiment of the present invention:
101st, the key information of button to be measured is obtained.
Key information refers mainly to the association attributes of keypress function element module title or keypress function member, according to setting for system It is fixed, can also be the other symbolic information pre-set.The keypress function member of one button defines the corresponding function of the button Module and the concrete function of its own.The acquisition modes of key information can be by being manually entered test system;Can also be Test system receives the product information transmitted, such as:Product concrete function demand, some the test information generated in itself by product Deng.The present embodiment is without limitation.
102nd, cycle tests is obtained according to the key information.
The output information that functional test needs to trigger button one by one and observe its caused test object is carried out to button Change.Cycle tests refers to product during automatic test, and test system is carried out to multiple buttons of measurand The order for triggering and being tested.In most cases, multiple buttons of test object are configured with certain hierarchical relationship, The level is defined in keypress function member.Button in lower-level then needs triggering in advance to exist to be active The button of last layer level defined in its keypress function member, so that the control system of test object enters the last layer level button Corresponding functional module, also it can play its function in triggering.If button is not in state of activation, to the button Test is invalid.In artificial tested, tester can voluntarily hold keystroke sequence, and in automatic test, then need The trigger sequence to button is first designed, to ensure sequentially allow each button in automatic test all in sharp according to this State living.
Cycle tests is probably existing cycle tests, or completely newly edited and obtained according to product, and the present embodiment is not It is limited.Auto-Test System obtains keypress function member according to key information, and then obtains cycle tests.
103rd, button to be measured is triggered successively according to the order in the cycle tests and carry out the first checking, if described to be measured Button is verified by described first, then preserves information on the basis of the output information after triggering the button to be measured.
The first checking in the present embodiment is not the test that test system is carried out to the keypress function of product, but in order to examine Test whether the cycle tests matches with test object, i.e. confirm that can the cycle tests ensure each button in triggering It has been active.The testing advanced button in cycle tests is verified one by one, is pressed if there is one or more Key can not be by representing that the cycle tests mismatches with test object in the first checking.
The qualified button of One function, the state change of set object to be measured can be triggered on triggering, produced in advance The output information of setting, the output information of the to be measured object that is triggered is tested its function after namely being triggered to the button Verified, therefore needed in automatic test script for one built in each button reference information for being used for verification.The present embodiment The output information of object to be measured after button is triggered on the premise of button is verified by first saves as said reference information.
It should be noted that the means of triggering button may be diversified, include simulation triggering, the machine of level input The means such as tool automatically clicking, the present invention are not limited.
104th, test script is generated.
Key information is specifically included in test script, to the cycle tests of button, the reference information of each button.At this certainly In the script auto-editing process of dynamic test system, key information is initially by being manually entered or test system is received and transmitted Obtained after product information.After obtaining cycle tests, generation reference information respectively by the above-mentioned steps in this method, The test script to the product can be generated.
The process of the above-mentioned acquisition cycle tests corresponding with test object is probably existing cycle tests, also may be used Can completely newly be edited and obtained according to product.Illustrate separately below.
Referring to Fig. 2, another embodiment provided by the invention includes:
201st, the key information of button to be measured is obtained.
It is automatic after test system or system loads product that its acquisition modes can be that test operator manually enters Read, the present embodiment is without limitation.
202nd, inquired about according to the key information in script bank with the presence or absence of corresponding cycle tests, if in the presence of reading The cycle tests for including the button to be measured is taken or generates, into the step 203;
Script bank is used to preserve the cycle tests and test script editted in advance.It is past in the practice of product test It is past to have the situation that the cycle tests of different products but its button share.Such as TV Control card, the electricity of different schemes There is the difference of part depending on the possible button of Control card, but in general can include the control buttons such as volume, direction, numeral.It is logical The cycle tests for including the button to be measured preserved can be inquired by crossing the keypress function member of a button to be measured.
, can be directly on this cycle tests if the cycle tests for including all buttons to be measured in script bank be present Edit test script.If inquiring several cycle tests and only including the part in button to be measured, it can be spliced Generation includes the cycle tests of all buttons to be measured, so as to be applied to test object.
This script bank can be deposited on test system local storage, can also be deposited in LAN server, this Place is not limited.
203rd, button to be measured is triggered successively according to the order in the cycle tests and carry out the first checking, if described to be measured Button is verified by described first, then preserves test object information on the basis of the output information after triggering the button to be measured, Into step 205, if not by into step 204.
It can ensure to should be by when triggering button as it was previously stated, the triggering of button to be measured needs to meet certain order Key is in the state being activated, and the test at this moment carried out to button is only effectively.And the test obtained is inquired about by button and patrolled Sequence is collected, although including all buttons of test object, testing sequence specified in it and may not meet test pair The particular requirement of elephant.For example, it is LEFT keys, MENU keys, RIGHT keys respectively if a test object has 3 buttons, And in the test object, the keypress function member of LEFT keys and RIGHT keys is defined among MENU modules, i.e. is only first touched After sending out MENU keys unlatching MENU modules, LEFT keys can be just made to be in the state being activated with RIGHT keys.
Inquired about according to key information in script bank, can the testing sequence of obtainable cycle tests be:
1. MENU key-LEFT key-RIGHT keys;
2. LEFT key-MENU key-RIGHT keys;
3. RIGHT key-LEFT key-MENU keys.
And as it was previously stated, cycle tests 2. in, because LEFT keys are not activated also by MENU keys, it is nothing to carry out test to it Effect.Similarly, test of the cycle tests 3. to RIGHT keys is also invalid.Therefore 2., 3. two cycle tests are in step 203 In all can not pass through first checking.
204th, reselected in the cycle tests inquired, into described in step 203.
System re-reads the cycle tests inquired, Zhi Daotong when the cycle tests read is not verified by first Cross above-mentioned steps and filter out cycle tests by the first checking, be i.e. 1. cycle tests in the example above, and preserves its benchmark Information.
205th, test script is generated.
This step has no difference with previous embodiment step 104, and here is omitted.
The present invention provides and further provides a kind of method of automatically brand-new editor's cycle tests.Referring to Fig. 3, Another embodiment provided by the invention includes:
301st, the key information of test object is obtained.
It is automatic after test system or system loads product that its acquisition modes can be that test operator manually enters Read, the present embodiment is without limitation.
302nd, inquired about according to the key information in script bank with the presence or absence of corresponding cycle tests, if in the presence of obtaining Wherein adaptable cycle tests is taken, into the step 304, if being not present, into step 303.
303rd, pressing with the presence or absence of the button is inquired about in the script bank according to the key information of the button to be measured Key Functional Unit, if in the presence of, extract these keypress functions member trunk portion, new cycle tests is generated, into the step 304。
For example, a test object has MENU functional modules, turned on into MENU keys, it is lower and has VOL (volume) With DIRECTION (direction) the two functional modules and its corresponding button, there is available volume enlargement key under VOL functional modules VOL+, volume, which reduce under key VOL-, DIRECTION functional module, available direction right button RIGHT, direction left button LEFT.Can See, in this test object, MENU keys are the button of highest level, and VOL keys and DIRECTION keys are the second level button, And VOL+ keys, VOL- keys are the third layer level button under VOL keys, RIGHT keys, LEFT keys are the third layer under DIRECTION keys Level button.Then when generating new cycle tests, MENU keys are placed in first as common highest level button, are followed by the The VOL keys or DIRECTION keys of two levels, then with thereafter be third layer level button belonging to second level, this second layer After level button and its affiliated third layer level key columns are complete, another remaining the second level button is only, and its affiliated the Three level buttons.For this test object, legal cycle tests is:
1. MEN U key-VOL key-VOL+ key-VOL- key-DIRECTION key-RIGHT key-LEFT keys;
2. MEN U key-DIRECTION key-RIGHT key-LEFT key-VOL key-VOL+ key-VOL- keys.
304th, button to be measured is triggered successively according to the order in the cycle tests and carry out the first checking, if described to be measured Button is verified by described first, then preserves test object information on the basis of the output information after triggering the button to be measured.
305th, test script is generated.
Step 304,305 are respectively with the step 103 in first embodiment, 104 identical, and here is omitted.
The first checking in the embodiment of the present invention can be set according to the characteristic of button to be measured in test.Preferably, First checking includes:Respectively preserve test object button to be measured before activation after output information information and determine whether difference It is different, if so, then the button is verified by described first, if nothing, do not pass through.
The step of embodiment of the present invention can also include verifying the test script generated.Referring to Fig. 4, this hair Another embodiment includes in bright embodiment:
401st, the key information of button to be measured is obtained.
402nd, cycle tests is obtained according to the key information.
403rd, button is triggered one by one according to the order in the cycle tests and carries out the first checking, if button passes through institute The first checking is stated, then preserves test object information on the basis of the output information after triggering the button.
404th, test script is generated.
Step 401 to 404 with first embodiment of the invention step 101 to 104 identical, here is omitted.
405th, the second checking and the 3rd checking are carried out to the test script of generation.
The test script for writing out needs to carry out certain checking in a small amount of test object first and confirms to be applicable Large batch of product can be applied to after test object, to prevent time, the waste in resource.Test script is tested The mode of card can have it is various, the present invention be not limited.
Preferably, the second checking is taken and the first foregoing checking identical verification method.
Preferably, the 3rd checking is to triggering the output information and test script of test object after a certain button in test script In the reference information of the button that has preserved be compared.If test script is qualified, this one or two of information should be identical. That is when to same test object retest flow, identical result should be produced by triggering each button.
The embodiment of one concrete application scene is provided again below.In the present embodiment, test object is specially television board, The television image that output information is television board and its television system exports.Refering to Fig. 5, the embodiment includes:
501st, the key information of television board is obtained.
Television board controls the image that television system exports, and the function of button thereon shows as changing whole or in part Become television system UI change.
Key information can be any symbolic information pre-set, as long as presetting in a test system, can be mapped in The keypress function member stored in test system.In general, be taken as keypress function element module title or keypress function member Association attributes.The acquisition modes of key information can be by being manually entered test system;Can also be that test system receives biography The product information for the television board passed.
502nd, inquired about according to the key information in script bank with the presence or absence of corresponding cycle tests, if in the presence of obtaining Wherein adaptable cycle tests is taken, if being not present into the step 504, into step 503
The keypress function member that test system stored is mapped in by key information, and energy is further inquired about in script bank Enough it is applied to the cycle tests of the television board., can if the cycle tests for including all buttons to be measured in script bank be present Directly to edit test script on this cycle tests.If inquire several cycle tests and only include in button to be measured A part, then can by splicing generation include the cycle tests of all buttons to be measured, so as to be applied to TV plate to be tested Card.
503rd, pressing with the presence or absence of the button is inquired about in the script bank according to the key information of the button to be measured Key Functional Unit, if in the presence of, extract these keypress functions member trunk portion, new cycle tests is generated, into the step 504。
The keypress function member of button to be measured is found in query script storehouse, proposes the master in these keypress function member tree constructions Stem portion, generation test logic sequence, and export cycle tests and enter step 504.
504th, button is triggered one by one according to the order in the cycle tests and carries out the first checking, if button passes through institute The first checking is stated, then is stored in information on the basis of the television image after triggering the button.
Receive the cycle tests acquired in previous step, proceeded as follows according to keystroke sequence therein:Preserve current Television image A, trigger button, preserve present image B, contrast images A and B, determine that A and B are variant, then the button passes through the One checking, and preserve the benchmark image that image B is the button.So each button to be measured is operated successively.
505th, test script is generated.
By key information, to the cycle tests of button, the reference information combination producing test script of each button.
506th, the second checking and the 3rd checking are carried out to the test script of generation.
Being pressed every time according to button must all be changed accordingly, it is possible to image C, button are gathered before button is pressed Image D is gathered after pressing, whether variant, if variant proof button is that have corresponding function if comparing C and D.It will collect Image D and the benchmark image B of the button locally preserved compare, if D and B are same images, the button script is surveyed Pinged, and ran test of the complete script completion to all buttons on television board.
Corresponding with foregoing method, present invention also offers automatically configure key testing script device.Refering to Fig. 6, sheet A kind of one embodiment of the device for automatically configuring key testing script provided in inventive embodiments includes:
First acquisition device 601, for obtaining the key information of button to be measured;
Second acquisition device 602, for obtaining cycle tests according to the key information, and it is sent to the first checking dress Put;
First checking device 603, for triggering button to be measured successively simultaneously to button according to the order in the cycle tests Carry out the first checking;
Save set 604, for preserving test object information on the basis of the output information after triggering the button to be measured;
Generating means 605, for generating test script.
The above is that each unit for automatically configuring key testing script device is described in detail.In the embodiment of the present invention The another kind of middle offer is automatically configured in one embodiment of key testing script device, and the second acquisition device 602 is more specifically For being inquired about according to the key information in script bank with the presence or absence of corresponding cycle tests, if in the presence of reading or generation The cycle tests of the button to be measured is included, the first checking device is sent to, if not by described in the cycle tests First checking, then reselect in the cycle tests inquired, is sent to the first checking device.
Refering to Fig. 7, the another kind provided in the embodiment of the present invention automatically configures a reality of the device of key testing script Applying example includes:
First acquisition device 701, for obtaining the key information of button to be measured;
Second acquisition device 702, for obtaining cycle tests according to the key information, and it is sent to the first checking dress Put;
3rd acquisition device 703, for according to the key information of the button to be measured inquired about in the script bank whether Exist the button keypress function member, if in the presence of, extract these keypress functions member trunk portion, generate new test sequence Row, and it is sent to the first checking device.
First checking device 704, for triggering button to be measured successively simultaneously to button according to the order in the cycle tests Carry out the first checking;
Save set 705, for preserving test object information on the basis of the output information after triggering the button to be measured;
Generating means 706, for generating test script.
Preferably, the key testing script device that automatically configures provided in the embodiment of the present invention can also be including one second Device is verified, for carrying out the second checking and/or the 3rd checking to the test script of generation.
The operation principle provided in an embodiment of the present invention automatically configured between key testing script device each unit, can be compareed The embodiment of the method for automatically configuring key testing script provided above understands, repeats no more.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with Realize by another way.For example, device embodiment described above is only schematical, for example, the unit Division, only a kind of division of logic function, can there is other dividing mode, such as multiple units or component when actually realizing Another system can be combined or be desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or The mutual coupling discussed or direct-coupling or communication connection can be the indirect couplings by some interfaces, device or unit Close or communicate to connect, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part to be contributed in other words to prior art or all or part of the technical scheme can be in the form of software products Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer Equipment (can be personal computer, server, or network equipment etc.) performs the complete of each embodiment methods described of the present invention Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
Described above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to before Embodiment is stated the present invention is described in detail, it will be understood by those within the art that:It still can be to preceding State the technical scheme described in each embodiment to modify, or equivalent substitution is carried out to which part technical characteristic;And these Modification is replaced, and the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (8)

  1. A kind of 1. method of configuration testing script, it is characterised in that including:
    S1, the key information for obtaining button to be measured;
    S2, the cycle tests with the presence or absence of corresponding to is inquired about in script bank according to the key information, if in the presence of reading or raw Into the cycle tests for including the button to be measured, into step S4, if the cycle tests is not verified by first, described Reselected in the cycle tests inquired, into step S4;
    S3, the button that whether there is the button to be measured is inquired about in the script bank according to the key information of the button to be measured Functional Unit, if in the presence of extracting the trunk portion of keypress function member, new cycle tests is generated, into the step S4;
    S4, button to be measured is triggered successively according to the order in the cycle tests and carries out the first checking, if the cycle tests Verified by described first, then preserve test object information on the basis of the output information after triggering the button to be measured;
    S5, generation test script.
  2. 2. according to the method for claim 1, it is characterised in that it is described first checking be specially:
    Respectively preserve test object the button to be measured before activation after output information and determine whether difference, if so, then The button to be measured is verified by described first, if nothing, is not passed through.
  3. 3. according to the method for claim 1, it is characterised in that methods described also includes:The test script of generation is carried out Second checking and/or the 3rd checking.
  4. 4. according to the method for claim 3, it is characterised in that second checking is identical with first checking.
  5. 5. according to the method described in claim 3 or claim 4, it is characterised in that it is described 3rd checking be specially:
    Trigger the button to be measured;
    The output information for preserving test object is check information;
    Judge whether the reference information of the check information and the button is variant, if nothing, the button to be measured passes through Three checkings, if so, then authentication failed.
  6. 6. according to the method for claim 1, it is characterised in that
    The test object is television board;
    The television image that the output information is the television board and its television system exports.
  7. A kind of 7. device of configuration testing script, it is characterised in that including:
    First acquisition device, for obtaining the key information of button to be measured;
    Second acquisition device, it whether there is corresponding cycle tests for being inquired about according to the key information in script bank, if In the presence of then reading or generation includes the cycle tests of the button to be measured, the first checking device is sent to, if the cycle tests Do not verify, then reselected in the cycle tests inquired by described first, be sent to the first checking device;
    The first checking device, tested for triggering button to be measured successively according to the order in the cycle tests and carrying out first Card;
    Save set, for preserving test object information on the basis of the output information after triggering the button to be measured;
    Generating means, for generating test script;
    3rd acquisition device, for being inquired about according to the key information of the button to be measured in the script bank with the presence or absence of described The keypress function member of button to be measured, if in the presence of, the trunk portion of the keypress function member is extracted, generates new cycle tests, And it is sent to the first checking device.
  8. 8. device according to claim 7, it is characterised in that also include:
    Second checking device, for carrying out the second checking and/or the 3rd checking to the test script of generation.
CN201410513661.4A 2014-09-29 2014-09-29 A kind of method and apparatus of configuration testing script Active CN104239214B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410513661.4A CN104239214B (en) 2014-09-29 2014-09-29 A kind of method and apparatus of configuration testing script

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410513661.4A CN104239214B (en) 2014-09-29 2014-09-29 A kind of method and apparatus of configuration testing script

Publications (2)

Publication Number Publication Date
CN104239214A CN104239214A (en) 2014-12-24
CN104239214B true CN104239214B (en) 2017-12-01

Family

ID=52227330

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410513661.4A Active CN104239214B (en) 2014-09-29 2014-09-29 A kind of method and apparatus of configuration testing script

Country Status (1)

Country Link
CN (1) CN104239214B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110019296B (en) * 2017-09-29 2021-04-23 北京国双科技有限公司 Database query script generation method and device, storage medium and processor
CN110830791B (en) * 2019-09-17 2021-10-15 广州朗国电子科技股份有限公司 Automatic testing method, device and system for software function of television complete machine

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101175284A (en) * 2006-11-01 2008-05-07 联想移动通信科技有限公司 Function testing method of portable electronic apparatus
CN103064781A (en) * 2011-10-18 2013-04-24 飞图科技(北京)有限公司 Mobile software automated testing method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101175284A (en) * 2006-11-01 2008-05-07 联想移动通信科技有限公司 Function testing method of portable electronic apparatus
CN103064781A (en) * 2011-10-18 2013-04-24 飞图科技(北京)有限公司 Mobile software automated testing method

Also Published As

Publication number Publication date
CN104239214A (en) 2014-12-24

Similar Documents

Publication Publication Date Title
CN103365779B (en) Method for testing software and system
CN104580519B (en) A kind of method of rapid deployment openstack cloud computing platforms
CN108052451A (en) Test method, system, test server, test terminal and storage medium
CN108959068A (en) Software interface test method, equipment and storage medium
CN107729230A (en) A kind of WEB automatic test devices and method of testing based under control scheme
CN106776349A (en) A kind of method to set up and system of interface testing process
CN102023861A (en) Method and system for generating test script and test suite
CN103336742A (en) Automation software black box testing system and method based on Android
CN109656597A (en) Firmware upgrade method, device and computer readable storage medium
CN106326108A (en) New application testing method and device
CN108228452B (en) Test method and test device based on simple factory mode
CN106528395A (en) Test case generation method and apparatus
CN103308846B (en) Method and device for detecting functional performance of integrated chip based on model identification
CN106339312A (en) API (application programming interface) testing method and system
CN106789202A (en) service management device and method
CN104182347B (en) A kind of testing requirement automatic analysis method based on automatic test platform
CN103530209B (en) A kind of code keypad automated testing method
CN106897216A (en) The method and apparatus of test software
CN103455338A (en) Method and device for acquiring data
US20200394554A1 (en) Techniques to generate network simulation scenarios
CN105760296A (en) Automation testing control method, device and terminal
CN106469215A (en) Data lead-in method based on page end and system
US7275231B2 (en) High level validation of designs and products
CN106646315A (en) Automatic testing system and automatic testing method for digital measuring instruments
CN104239214B (en) A kind of method and apparatus of configuration testing script

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