CN100437513C - Method and system for implementing automatic testing - Google Patents

Method and system for implementing automatic testing Download PDF

Info

Publication number
CN100437513C
CN100437513C CNB200610168092XA CN200610168092A CN100437513C CN 100437513 C CN100437513 C CN 100437513C CN B200610168092X A CNB200610168092X A CN B200610168092XA CN 200610168092 A CN200610168092 A CN 200610168092A CN 100437513 C CN100437513 C CN 100437513C
Authority
CN
China
Prior art keywords
physical equipment
logical device
unit
test
annexation
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.)
Expired - Fee Related
Application number
CNB200610168092XA
Other languages
Chinese (zh)
Other versions
CN1996265A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB200610168092XA priority Critical patent/CN100437513C/en
Publication of CN1996265A publication Critical patent/CN1996265A/en
Application granted granted Critical
Publication of CN100437513C publication Critical patent/CN100437513C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

An automatic testing method comprises creating testing logic equipment name, with the connection and testing of the said logic equipment starting with acquiring physical equipment name and the relationship between physical equipment, mapping the said logic with the said physical equipment, having physical equipment identifiable testing procedure and order format, sending out the testing procedure needed by the logic equipment to the said logic equipment mapping physical equipment with the physical equipment executing the said testing procedure. It also provides a system for realizing automatic testing that comprises input and output unit, seal unit, physical equipment storage unit, logic equipment storage unit, mapping unit and execution unit.

Description

Realize automatic test method and system
Technical field
The present invention relates to method of testing and system, relate in particular to a kind of realization automatic test method and system.
Background technology
Along with the continuous development of society, people are also more and more higher to the requirement of various product, and the quality of product is exactly a wherein very important aspect.Test is the committed step that guarantees product quality, and along with the develop rapidly of measuring technology, automatization testing technique becomes an important method of test gradually.Present automatic test mainly is to be undertaken by script, and what present stage, script paid close attention to is the realization means of robotization, realizes automatic test by writing of script.Automatic test has replaced manual test to a certain extent, has improved work efficiency.
The most frequently used a kind of script is TCL (TOOL COMMANDLANGUAGE) in the prior art, and TCL is a kind of explanation execution script language.It has an intrinsic core commands collection, also have simultaneously with the C/C++ class of languages like control structure, as if control, cycle control and switch control etc.; And the definition of supporting process and calling, also provide support to simple data structures such as array and character strings.
Realizing the test of robotization at present, mostly is by using this script of TCL that each test case is carried out writing of a script.But a lot of all public parts of test process are all carried out writing of a script to each test case so and are just made that the reuse of test script is low, and it is not high to write efficient.And the script of writing at each test case is too strong to the dependence of environment, can only test in the environment of script describing, and transplanting script needs expensive energy to the another one test environment.
On the other hand, owing to there is not unified format, everyone is unified inadequately when writing test script, causes the test case script the incomplete situation of information more or less can occur, has caused the readable relatively poor of script, and has been difficult to safeguard.
Consider that from the result of test this method does not provide unified, perfect test record, make the effect of test receive certain influence.
Summary of the invention
The invention provides a kind of realization automatic test method and system, can shield the difference between each equipment, and improve the portability and the utilization factor of test case script by physical equipment is encapsulated.
For solving the problems of the technologies described above, the objective of the invention is to be achieved through the following technical solutions:
Create test logical device title, connection between the described logical device and testing procedure;
Obtain the annexation between physical equipment title and the physical equipment;
Described logical device and described physical equipment are shone upon, obtain the command format of the discernible testing procedure of physical equipment;
The testing procedure that logical device will be realized is sent to the physical equipment that shines upon with this logical device, and physical equipment is carried out described testing procedure.
Wherein, use the logical device title in the establishment test, before the connection and testing procedure between the described logical device, different physical equipments is encapsulated, and the information of the physical equipment of configuration packages and annexation, and the logical device title and the logic connecting relation of described physical equipment correspondence.
Wherein, use the logical device title, before the connection and testing procedure between the described logical device, further testing procedure, comparison procedure, test report template are encapsulated in the establishment test;
Further comprise the instruction of exporting test report in the described testing procedure;
Physical equipment sends to system with the result after whenever executing a testing procedure, system compares physical equipment result who returns and the test result that presets by calling to the result of testing procedure encapsulation and to the result who compares the process encapsulation, according to result each testing procedure and comparative result are carried out record, generate test report the test report template encapsulation.
Wherein, information and annexation at the physical equipment of configuration packages, and the logical device title of described physical equipment correspondence is during with logic connecting relation, the mapping restriction relation of further configures physical device name, annexation and logical device title, annexation;
Further carry out the mapping of logical device in shining upon carrying out described logical device and described physical equipment to physical equipment according to the mapping restriction relation that presets.
Wherein, carry out described logical device and mapping that described physical equipment carries out and be specially one-to-one relationship by artificial craft and/or system match described logical device title automatically, logical device is connected to be connected with physical equipment title, physical equipment.
The present invention also provides a kind of system of test automatically that realizes, this system comprises: I/O unit, encapsulation unit, physical equipment storage unit, logical device storage unit, map unit, performance element;
What I/O unit was used to receive user's input comprises logical device title and the mapping directive that is connected, and will order be sent to each physical equipment by the corresponding relation of performance element feedback and the command format of each physical equipment needs;
Encapsulation unit is used for different physical equipments is encapsulated, and stores the command format that each physical equipment needs;
The physical equipment storage unit is used to store the information and the annexation of physical equipment;
The logical device storage unit is used for stored logic device name and annexation;
Logical device title, the annexation of storing in physical equipment information, annexation and the logical device storage unit that map unit is used for the physical equipment storage unit is stored are shone upon, form corresponding mutually relation, and relation that should correspondence is sent to performance element;
Performance element is used for the corresponding relation by physical equipment title, annexation and logical device title, annexation, correspondingly to the encapsulation unit find the command format that each physical equipment needs, and the command format of corresponding relation and each physical equipment needs is sent to I/O unit.
Wherein, this system further comprises: comparing unit, log unit;
I/O unit be used to receive user's input comprise the logical device title with the mapping directive that is connected or be used to receive include the logical device title and be connected, and the reception physical equipment whenever execute the result who returns behind the testing procedure and also this result who returns be sent to comparing unit; Also be used for the test report that the output journal unit generates;
Encapsulation unit is used for different physical equipments is encapsulated, and stores the command format that each physical equipment needs, and also is used for testing procedure, comparison procedure, test report template are encapsulated, and stores the test result that presets;
Comparing unit is used for behind the result that the physical equipment of receiving the I/O unit transmission returns, and by calling the testing procedure of storing in the encapsulation unit, the packaging information of comparison procedure, relatively receives the result and the test result that presets of physical equipment feedback.
Log unit is used for according to the result to the test report template encapsulation testing procedure and comparative result being carried out record, generates test report, and described test report is sent to I/O unit.
Wherein, this system further comprises: mapping constraint storage unit;
The mapping restriction relation that mapping constraint storage unit is used to store physical equipment, interface and logical device, interface;
The logical device title and the annexation of storing in physical equipment information, annexation and the logical device storage unit that map unit is used for the physical equipment storage unit is stored are shone upon, form corresponding mutually relation, and relation that should correspondence is sent to performance element; Also be used for shining upon and searching carrying out restriction relation that mapping process stores in further by mapping constraint storage unit.
Wherein, map unit further comprises independent map unit;
Separately map unit is used for after I/O unit receives described mapping directive, and the logical device of appointment in the order is mapped to physical equipment one by one.
Above technical scheme as can be seen, because physical equipment is encapsulated, shielded the difference between each equipment, will be with case script with after the actual physical test environment separates, finished the test case script by mapping function and just may operate on the new environment, improved the portability and the utilization factor of test case script, and improved the efficient of writing of script without any need for transplanting work, make the executive mode of script obtain enriching, the life cycle of script is more permanent.
Further the present invention is by encapsulating testing procedure, comparison procedure, test report, make the output of in carrying out the process of test command, carrying out test log automatically, make the user can access unified test record, can further improve the speed of user's compile script.
Description of drawings
Fig. 1 is the first embodiment of the invention process flow diagram;
Fig. 2 is the second embodiment of the invention process flow diagram;
Fig. 3 is the system schematic of first embodiment of the invention;
Fig. 4 is the system schematic of second embodiment of the invention.
Embodiment
The invention provides a kind of automatic test method and be used for the system of test automatically, the present invention is by encapsulating physical equipment, and will title, the annexation of title, annexation and the logical device of physical equipment be mapped by the method for mapping, make the test script and the test environment of reality be separated, and make and in the process of writing the test case script, can raise the efficiency, be convenient to transplant.
Specify implementation procedure of the present invention below by embodiment.
Before carrying out testing procedure, need do some preliminary works.
At first need inhomogeneous equipment is encapsulated, shield the difference between each equipment.
Said herein encapsulation is meant, configuration order, performance parameter between the different classes of product of data communications equipment are different, but on function, a lot of places are again identical, for script be may operate on the distinct device, encapsulate for some atomic commands commonly used on the one hand,, need 3 as on equipment, creating a port, 4 row configuration orders just can be finished, through encapsulation, become a script sentence, improve the script tempo of development greatly; On the other hand, by distinct device order identical functions is encapsulated, shield difference between each equipment, restart function as finishing equipment equally, the order difference of distinct device correspondence is by being packaged into identical statement, the script that reaches distinct device can be shared, and reuses.
Because of being encapsulated as the known content of prior art, be not described in detail at this.
Information and annexation with physical equipment is described and is stored in the system again.The concrete manifestation form of this part is the test envelope file, and test envelope file description one overlaps characteristic, access method and the link information between them of all devices in the test environment independently.A plurality of separate test environments are described with different test envelope files.
The test envelope file has and comprises following three aspects:
1. variable part: this part is used for describing the variable that changes according to test envelope in the test case, and as equipment under test type etc., these variablees can directly use in the test case script.
As [variable]
Var1=value1
2. device description part: describe each physical equipment information, comprise type, access path information, original configuration information, interface board or type of slots, interface list, physical equipment title etc.
As [DEBICE_NAME].
3. connect and describe part: describe the link information between physical equipment.Interface name can be used and write a Chinese character in simplified form, and system can come completion according to a predefined matching order automatically.The interface command of testing tool will meet the interface command standard of testing tool.
Secondly, the title and the annexation of logical device need be described and be stored in the system.The concrete manifestation form of this part is the logical topology file.The logical topology file is to describe some equipment that need use (interface) and link information between them in the cover test environment with logical name.Purpose is in order to solve test case topology (comprising logical device and interface) to be mapped to test envelope in the actual test environment, i.e. our physical equipment information above-mentioned and annexation.
In the further information of Storage Mapping constraint in some cases.The mapping constraint is in the annexation that further retrains on the basis of logical topology file between physical equipment and the logical device, for example specifically is mapped to which class interface of physical equipment or the like.After the information that this part mapping constraint has been arranged, just need in Topological Mapping, further detect the information of this mapping constraint in the process that follow-up realization is tested automatically, further logical device is matched physical equipment by the mapping constraint information.
In general shining upon restriction relation has following several:
1. the corresponding relation of specified portions logical device, annexation and physical equipment, annexation;
2. designated equipment type, support the plurality of devices type choose and without certain device type;
3. specify annexation, be the specified interface type, support the multiple interfaces type choose and without certain interface type;
4. the interface board type at specified interface place, specified interface type, encapsulated type, structure binding simultaneously.
More than finishing, just can begin after several preliminary works to realize having tested.
Referring to Fig. 1, for this law realizes the process of test automatically:
Step 101: user's input test order;
The relation and the testing procedure that include logical device title, connection in this order.
And both test script of test case of the concrete form of expression of described order.As follows, this script comprises three aspects: 1. test case essential information; 2. Topological Mapping; 3. test process is described.
#!!=====================================================
<TESTCASE_BEGIN>
<TESTCASE_HEADER_BEGIN>
<TITLE〉" title "
<INDEX〉" numbering "
<LEVEL〉" rank "
<MODULE〉" affiliated module "
<TYPE〉" type "
<AUTHOR〉" author "
<VERSION〉" version "
<DESIGN〉" Test Design "
<TESTCASE_HEADER_END>
<TESTCASE_DEVICE_MAP_BEGIN>
<MAP>
<TESTCASE_DEVICE_MAP_END>
<STEP〉" step 1 "
Configuration
Check
<STEP〉" step 2 "
Configuration
Check
<TESTCASE_END>
#!!=========================================================
1. the test case essential information partly is to describe the essential information of test case, comprise title, numbering, rank, affiliated module, type, author, version, be fit to condition, script dependence, Test Design or the like important test case topology information, be exactly above in institute's array structure from<TESTCASE_HEADER_BEGIN to<TESTCASE_HEADER_END part.
2. Topological Mapping.What describe in the test case essential information all is some essential informations, and during test case script actual motion, must correspond to logical device of using and annexation on the physical equipment and annexation of actual test environment in test process.The Topological Mapping of test case script is exactly to finish the function of mapping so, is about to content in the above-mentioned logical topology file and the content in the test envelope and shines upon.
The concrete manifestation form of Topological Mapping be in the said structure from<TESTCASE_DEVICE_MAP_BEGIN to<TESTCASE_DEVICE_MAP_END in the middle of content.
And Topological Mapping can realize by dual mode:
A kind of is the manual corresponding relation of specifying, and under this mode, the tester need specify logical device one by one and be connected to physical equipment and the corresponding relation that is connected.
Another is automatic coupling, and in this manner, system can map out satisfactory physical equipment and annexation automatically according to the demand of describing herein in actual environment.
When the with good grounds mapping constraint of demand is shone upon, so just the information that need retrain by the mapping of storage is in advance searched for.
3. test process is described.
Present most test process is all realized by operation and inspection, an operation and the synthetic testing procedure of inspection group, and therefore a test case is formed by one or more testing procedures.
The concrete manifestation form that test process is described is with reference to above-mentioned test case script, promptly
#!!=====================================================
<STEP〉" step 1 "
Configuration
Check
<STEP〉" step 2 "
Configuration
Check
#!!=====================================================
Each testing procedure is from<STEP〉statement, the end of a testing procedure is with the next one<STEP〉statement or<TESTCASE_END statement.<STEP〉parameter of back is description and the operation to this step.
Step 102: after system receives the test command of input,, logical device information, annexation and physical equipment information, annexation are shone upon according to the instruction of the Topological Mapping in the test command.
When being the finger prosthesis timing, then will manually specify logical device and annexation to shine upon one by one; When being when mating automatically, then system all carries out logical mappings with all logical device information, annexation.
And, need in the mapping restriction relation that presets, further map out the information and the annexation of physical equipment this moment so if when input test is with case script, specified the mapping constraint.
Step 103: the physical equipment information in the test environment that system obtains according to mapping function also searches out the command format of testing procedure corresponding to each physical equipment, described testing procedure is sent to the physical equipment that maps out.
Step 104: after physical equipment receives test command, carry out test action according to the test process of describing in the test case script.
For realizing above-mentioned method, the present invention also provides the system corresponding to this method.
Referring to Fig. 3, this system comprises: I/O unit 301, encapsulation unit 302, physical equipment storage unit 303, logical device storage unit 304, map unit 305, performance element 306;
What I/O unit 301 was used to receive user's input comprises logical device title and the mapping directive that is connected, and utilizes the corresponding relation of performance element feedback and the command format of each physical equipment needs that order is sent to each physical equipment;
Encapsulation unit 302 is used for different physical equipments is encapsulated, and stores the command format that each physical equipment needs;
Physical equipment storage unit 303 is used to store the title and the annexation of physical equipment;
Logical device storage unit 304 is used for stored logic device name and annexation;
Logical device title, the annexation of storing in physical equipment information, annexation and the logical device storage unit that map unit 305 is used for the physical equipment storage unit is stored are shone upon, form corresponding mutually relation, and this corresponding relation is sent to performance element;
Performance element 306 is used for physical equipment title, annexation and the logical device title that finds by map unit, the corresponding relation of annexation, correspondingly to the encapsulation unit find the command format that each physical equipment needs, and the command format of corresponding relation and each physical equipment needs is sent to I/O unit.
According to the content of describing in the method, if need shine upon constraint, native system also comprises mapping constraint storage unit 307 so;
The mapping restriction relation that mapping constraint storage unit 307 is used to store physical equipment information, interface and logical device, interface.
This mapping restriction relation comprises:
1. the corresponding relation of specified portions logical device, annexation and physical equipment, annexation;
2. designated equipment type, support the plurality of devices type choose and without certain device type;
3. specify annexation, be the specified interface type, support the multiple interfaces type choose and without certain interface type;
4. the interface board type at specified interface place, specified interface type, encapsulated type, structure binding simultaneously.
According to the content of describing in the method, when carrying out the craft mapping, native system also comprises independent map unit 308 except comprising I/O unit 301, encapsulation unit 302, physical equipment storage unit 303, logical device storage unit 304, map unit 305, performance element 306, mapping constraint storage unit 307;
Separately map unit 308 is used for after I/O unit receives described mapping directive, and the logical device of appointment in the order is mapped to physical equipment one by one.
Referring to Fig. 2 is another embodiment of the present invention process flow diagram.
In order better to embody the meaning of test, before carrying out testing procedure, except inhomogeneous equipment is encapsulated, shield outside the difference between each equipment, again test process is encapsulated, comprising testing procedure, comparison procedure, test report template are encapsulated, and store the test result that sets in advance, make and to export test report complete, standard when system tests automatically.
Testing procedure, comparison procedure, three kinds of encapsulation of test report template are all belonged to abstract to test process herein.The encapsulation of testing procedure is meant, in finishing a test process, and some steps of man-made division usually, per step is finished a function, and will distinguish these steps when forming test record, needs to skip certain testing procedure sometimes again, to the encapsulation of testing procedure, can be conveniently to its operation.The encapsulation of comparing process is meant, the comparison procedure of some test results commonly used is packaged into function, in the time of use, run into identical compare operation without everyone and all write the script of finishing similar functions, but directly from function library, call.The encapsulation of test report template is meant, the test report form is unified and formed canonical function, and the user more pays close attention to test, and does not spend the report spended time of making a living into specific format, only the data of needs output are filled up in the parameter as requested, report generates automatically.
Step 201: user's input test order;
Logical device title in this order in comprising embodiment 1 and the relation that is connected and some other information, also include the order of exporting test report.
The concrete manifestation form of this order the same with described in the embodiment 1 is not repeated at this.
Step 202: after system receives the test command of input,, logical device information, annexation and physical equipment information, annexation are shone upon according to the instruction of the Topological Mapping in the test command.
When being the finger prosthesis timing, then will manually specify logical device and annexation to shine upon one by one; When being when mating automatically, then system all carries out logical mappings with all logical device information, annexation.
And, need in the mapping restriction relation that presets, further map out the information and the annexation of physical equipment this moment so if when input test is with case script, required the mapping constraint.
Step 203: physical equipment information, annexation in the test environment that system obtains according to mapping function are sent to test command on the described physical equipment.
Step 204: physical equipment sends to system with the result after whenever executing a testing procedure, system by calling test process encapsulation and the encapsulation of comparison procedure physical equipment result who returns and the test result that presets are compared, test report template according to encapsulation in advance carries out record to each testing procedure and comparative result, generates test report.
Corresponding to this method, the present invention also provides a kind of system, referring to Fig. 4, this system comprises: I/O unit 401, encapsulation unit 402, physical equipment storage unit 403, logical device storage unit 404, map unit 405, performance element 406, log unit 409, comparing unit 410;
I/O unit 401 be used to receive user's input comprise the logical device title with the mapping directive that is connected or be used to receive include the logical device title and be connected, and the reception physical equipment whenever execute the result who returns behind the testing procedure and also this result who returns be sent to comparing unit; Also be used for the test report that the output journal unit generates;
Encapsulation unit 402 is used for different physical equipments is encapsulated, and stores the command format that each physical equipment needs, and also is used for testing procedure, comparison procedure, test report are encapsulated, and stores the test result that presets;
Physical equipment storage unit 403 is used to store the information and the annexation of physical equipment;
Logical device storage unit 404 is used for notional facility information of stored logic and annexation;
Logical device title, the annexation of storing in physical equipment information, annexation and the logical device storage unit that map unit 405 is used for the physical equipment storage unit is stored are shone upon, form corresponding mutually relation, and this corresponding relation is sent to performance element;
Performance element 406 is used for the physical equipment title that finds, annexation and the logical device title by map unit, the corresponding relation of annexation, correspondingly to the encapsulation unit find the command format that each physical equipment needs, and the command format of corresponding relation and each physical equipment needs is sent to I/O unit;
Comparing unit 410 is used for after receiving the physical equipment feedack that performance element sends, and by calling the testing procedure of storing in the encapsulation unit, the packaging information of comparison procedure, relatively receives physical equipment feedack and the test result of storing in advance.
Log unit 409 is used for according to the content of the test report template that encapsulates in advance testing procedure and comparative result being carried out record, generates test report, and described test report is sent to I/O unit.
According to the content of describing in the method, if need shine upon constraint, native system also comprises mapping constraint storage unit 407 so;
The mapping restriction relation that mapping constraint storage unit 407 is used to store physical equipment information, interface and logical device, interface.
This mapping restriction relation comprises:
1. the corresponding relation of specified portions logical device, annexation and physical equipment, annexation;
2. designated equipment type, support the plurality of devices type choose and without certain device type;
3. specify annexation, be the specified interface type, support the multiple interfaces type choose and without certain interface type;
4. the interface board type at specified interface place, specified interface type, encapsulated type, structure binding simultaneously.
According to the content of describing in the method, when carrying out the craft mapping, native system also comprises independent map unit 408 except comprising I/O unit 401, encapsulation unit 402, physical equipment storage unit 403, logical device storage unit 404, map unit 405, performance element 406, mapping constraint storage unit 407, log unit 409, comparing unit 410;
Separately map unit 408 is used for after I/O unit receives described mapping directive, and the logical device of appointment in the order is mapped to physical equipment one by one.
More than a kind of realization automatic test method provided by the present invention and system are described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (9)

1, a kind of realization automatic test method is characterized in that, this method comprises:
In advance different physical equipments is encapsulated;
Create test logical device title, connection between the described logical device and testing procedure;
Obtain the annexation between physical equipment title and the physical equipment;
Described logical device and described physical equipment are shone upon, obtain the command format of the discernible testing procedure of physical equipment;
The testing procedure that logical device will be realized is sent to the physical equipment that shines upon with this logical device, and physical equipment is carried out described testing procedure.
2, realization automatic test method according to claim 1, it is characterized in that, creating test logical device title, before the connection and testing procedure between the described logical device, after different physical equipments encapsulated, also comprise: the information of the physical equipment of configuration packages and annexation, and the logical device title and the logic connecting relation of described physical equipment correspondence.
3, realization automatic test method according to claim 1, it is characterized in that, after in advance different physical equipments being encapsulated, create test logical device title, before the connection and testing procedure between the described logical device, further testing procedure, comparison procedure, test report template are encapsulated;
Further comprise the instruction of exporting test report in the described testing procedure;
Physical equipment sends to system with the result after whenever executing a testing procedure, system compares physical equipment result who returns and the test result that presets by calling to the result of testing procedure encapsulation and to the result who compares the process encapsulation, according to result each testing procedure and comparative result are carried out record, generate test report the test report template encapsulation.
4, realization automatic test method according to claim 2, it is characterized in that, information and annexation at the physical equipment of configuration packages, and the logical device title of described physical equipment correspondence is during with logic connecting relation, the mapping restriction relation of further configures physical device name, annexation and logical device title, annexation;
Further carry out the mapping of logical device in shining upon carrying out described logical device and described physical equipment to physical equipment according to the mapping restriction relation that presets.
5, according to the arbitrary described realization automatic test method of claim 1 to 4, it is characterized in that, carry out described logical device and mapping that described physical equipment carries out and be specially one-to-one relationship by artificial craft and/or system match described logical device title automatically, logical device is connected to be connected with physical equipment title, physical equipment.
6, a kind of system of test automatically that realizes is characterized in that this system comprises: I/O unit, encapsulation unit, physical equipment storage unit, logical device storage unit, map unit, performance element;
What I/O unit was used to receive user's input comprises logical device title and the mapping directive that is connected, and utilizes the corresponding relation of performance element feedback and the command format of each physical equipment needs that order is sent to each physical equipment;
Encapsulation unit is used for different physical equipments is encapsulated, and stores the command format that each physical equipment needs;
The physical equipment storage unit is used to store the information and the annexation of physical equipment;
The logical device storage unit is used for stored logic device name and annexation;
Logical device title, the annexation of storing in physical equipment information, annexation and the logical device storage unit that map unit is used for the physical equipment storage unit is stored are shone upon, form corresponding mutually relation, and relation that should correspondence is sent to performance element;
Performance element is used for the corresponding relation by physical equipment title, annexation and logical device title, annexation, correspondingly to the encapsulation unit find the command format that each physical equipment needs, and the command format of corresponding relation and each physical equipment needs is sent to I/O unit.
7, the system of the automatic test of realization according to claim 6 is characterized in that this system further comprises: comparing unit, log unit;
I/O unit be used to receive user's input comprise the logical device title with the mapping directive that is connected or be used to receive include the logical device title and be connected, and the reception physical equipment whenever execute the result who returns behind the testing procedure and also this result who returns be sent to comparing unit; Also be used for the test report that the output journal unit generates;
Encapsulation unit is used for different physical equipments is encapsulated, and stores the command format that each physical equipment needs, and also is used for testing procedure, comparison procedure, test report template are encapsulated, and stores the test result that presets;
Comparing unit is used for behind the result that the physical equipment of receiving the I/O unit transmission returns, and by calling the testing procedure of storing in the encapsulation unit, the packaging information of comparison procedure, relatively receives the result and the test result that presets of physical equipment feedback;
Log unit is used for according to the result to the test report template encapsulation testing procedure and comparative result being carried out record, generates test report, and described test report is sent to I/O unit.
8, the system that tests automatically according to claim 6,7 arbitrary described realizations is characterized in that this system further comprises: mapping constraint storage unit;
The mapping restriction relation that mapping constraint storage unit is used to store physical equipment, interface and logical device, interface;
The logical device title and the annexation of storing in physical equipment information, annexation and the logical device storage unit that map unit is used for the physical equipment storage unit is stored are shone upon, form corresponding mutually relation, and relation that should correspondence is sent to performance element; Also be used for shining upon and searching carrying out restriction relation that mapping process stores in further by mapping constraint storage unit.
9, the system that tests automatically according to claim 6,7 arbitrary described realizations is characterized in that map unit further comprises independent map unit;
Separately map unit is used for after I/O unit receives described mapping directive, and the logical device of appointment in the order is mapped to physical equipment one by one.
CNB200610168092XA 2006-12-18 2006-12-18 Method and system for implementing automatic testing Expired - Fee Related CN100437513C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB200610168092XA CN100437513C (en) 2006-12-18 2006-12-18 Method and system for implementing automatic testing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB200610168092XA CN100437513C (en) 2006-12-18 2006-12-18 Method and system for implementing automatic testing

Publications (2)

Publication Number Publication Date
CN1996265A CN1996265A (en) 2007-07-11
CN100437513C true CN100437513C (en) 2008-11-26

Family

ID=38251363

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB200610168092XA Expired - Fee Related CN100437513C (en) 2006-12-18 2006-12-18 Method and system for implementing automatic testing

Country Status (1)

Country Link
CN (1) CN100437513C (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101330412B (en) * 2008-07-29 2011-01-19 中兴通讯股份有限公司 Automatization test approach and system based on topological discovery
CN102591773A (en) * 2011-12-23 2012-07-18 广东电网公司电力科学研究院 Automatic evaluation method for operation system security in classified protection evaluation and system thereof
EP2629164B1 (en) 2012-02-14 2014-12-17 Siemens Aktiengesellschaft Method and configuration component for allocating a station name to components of an industrial automation assembly
CN104778118B (en) * 2013-12-30 2018-08-28 深圳键桥通讯技术股份有限公司 The improved method of automatization testing technique
CN104360951B (en) * 2014-12-09 2017-09-29 迈普通信技术股份有限公司 A kind of script method of testing and device
CN107786382B (en) * 2016-08-29 2020-04-14 迈普通信技术股份有限公司 Interface selection method and device, test console and test system
CN107124326B (en) * 2017-04-05 2020-05-05 烽火通信科技股份有限公司 Automatic testing method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030126517A1 (en) * 2001-07-27 2003-07-03 Accordsqa Automated software testing and validation system
CN1529466A (en) * 2003-09-29 2004-09-15 港湾网络有限公司 Network device automatic measuring method
CN1731747A (en) * 2005-07-29 2006-02-08 杭州华为三康技术有限公司 Automatization testing frame system and method
CN1851666A (en) * 2005-11-01 2006-10-25 华为技术有限公司 Method and system for realizing software automatic test

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030126517A1 (en) * 2001-07-27 2003-07-03 Accordsqa Automated software testing and validation system
CN1529466A (en) * 2003-09-29 2004-09-15 港湾网络有限公司 Network device automatic measuring method
CN1731747A (en) * 2005-07-29 2006-02-08 杭州华为三康技术有限公司 Automatization testing frame system and method
CN1851666A (en) * 2005-11-01 2006-10-25 华为技术有限公司 Method and system for realizing software automatic test

Also Published As

Publication number Publication date
CN1996265A (en) 2007-07-11

Similar Documents

Publication Publication Date Title
CN100437513C (en) Method and system for implementing automatic testing
CN102118281B (en) Method, device and network equipment for automatic testing
CN102023861A (en) Method and system for generating test script and test suite
CN101867501B (en) Method and system for automatically testing consistence of SNMP (Simple Network Management Protocol) interface information model
CN103218402B (en) General database data structure and data mover system and method thereof
CN105068929A (en) Test script generation method, test script generation device, testing method, testing device and testing system
CN105094783A (en) Method and device for testing Android application stability
US10354031B2 (en) Information processing by interpenetrating signal transmission channel in design for testability of chip
CN102375778A (en) Method and system for automatically testing digital signal processor (DSP)
CN105117233A (en) API calling method and device
CN102622470A (en) General car code conversion method
CN106126528B (en) A kind of moonlet test basic information generation method based on platform model
CN109062777A (en) A kind of track traffic signal equipment general automation test macro
CN104699613B (en) A kind of spacecraft-testing demand automatic creation system and its method
CN104750606A (en) Reflection-based automated testing method
CN106648587A (en) Annotation-based Web application code generation method
CN103605606B (en) A kind of embedded software test use-case batch execution method that can automatically change
CN100375057C (en) Automatic test auxiliary system and corresponding software automatic test method
CN105760296A (en) Automation testing control method, device and terminal
CN104915297B (en) A kind of automated testing method of the APP power consumption of android equipment
CN107451060A (en) A kind of across mobile terminal automated test frame system
CN100561476C (en) A kind of code generating method based on the ASN type object
CN102486749B (en) Method and system for data driving test
CN108984393A (en) A kind of unit testing code automatic generation method and device
CN103984769A (en) Use-case data management and storage method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20081126

Termination date: 20121218