CN101247293A - Automatic test approach and system - Google Patents

Automatic test approach and system Download PDF

Info

Publication number
CN101247293A
CN101247293A CNA2008101016980A CN200810101698A CN101247293A CN 101247293 A CN101247293 A CN 101247293A CN A2008101016980 A CNA2008101016980 A CN A2008101016980A CN 200810101698 A CN200810101698 A CN 200810101698A CN 101247293 A CN101247293 A CN 101247293A
Authority
CN
China
Prior art keywords
test
equipment under
tester
module
under test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2008101016980A
Other languages
Chinese (zh)
Other versions
CN101247293B (en
Inventor
张锵
Original Assignee
Fujian Star Net Communication 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 Fujian Star Net Communication Co Ltd filed Critical Fujian Star Net Communication Co Ltd
Priority to CN2008101016980A priority Critical patent/CN101247293B/en
Publication of CN101247293A publication Critical patent/CN101247293A/en
Application granted granted Critical
Publication of CN101247293B publication Critical patent/CN101247293B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to an automatic test method and system. The automatic test method comprises: distributing a test module respectively for each tested equipment according to configuration files and loading configuration information in each test module respectively. The configuration file comprises: relative information of tested equipment; the test module configures the tested equipment corresponding to the test module according to configuration information and transmits configuration-finishing information to a main test module after finishing configuration; the main test module sets a test instrument and chooses corresponding port to the tested equipment on auxiliary equipment; the test instrument tests the tested equipment through the port under the control of main test module and transmits the test information to the test module corresponding to the tested equipment. The test information is processed by the test module to obtain the test result of the tested equipment. The invention realizes that multiple tested equipments share single test instrument simultaneously, which improves the resource utilization rate of the test instrument.

Description

Automatic test approach and system
Technical field
The present invention relates to field of automatic testing, especially a kind of automatic test approach and system.
Background technology
Generally, the automatic test of communication products generally need be to the corresponding automatic test platform of this tested communication products configuration.Promptly an automatic test platform can only be simultaneously to an equipment under test test, when needs are tested a plurality of equipment under tests simultaneously, when just needing correspondence a plurality of automatic test platforms are set, so not only will drop into great amount of manpower and material resources, nor be beneficial to the centralized management of test.Automatic test platform generally is made up of tester and script executing server.Because tester is generally relatively more expensive, if all be equipped with a tester for every equipment under test, the situation of inadequate resource will occur, thereby cause also corresponding elongation of test period, even can't finish test event on time.
In addition, existing automatic test course generally is linear, can only do something at synchronization, such as in the configuration equipment under test, not carrying out the setting of tester, promptly can only the order each testing procedure of execution, so just reduce the efficient that automation is carried out, elongated the automatic test time.And under this mode, the test record and the test report of the output of automatic test program are independently, the unified management that is unfavorable for test record with gather, between each product, carry out product differentiation relatively such as needs, just must increase a process that test record gathers.
Summary of the invention
The objective of the invention is provides a kind of automatic test approach and system at above-mentioned the deficiencies in the prior art, realizes many equipment under tests shared separate unit tester simultaneously, to improve the resource utilization of tester.
For achieving the above object, the invention provides a kind of automatic test approach, comprising:
Be respectively each equipment under test according to configuration file and distribute a test module, and load configuration information in each test module respectively, described configuration file comprises: the relevant information of equipment under test;
Test module is configured according to the equipment under test of described configuration information to this test module correspondence, and finishes message to main test module transmission configuration after configuration is finished;
Main test module is provided with tester and is selecting after the corresponding equipment under test corresponding port described port information to be issued tester on the auxiliary equipment;
Tester is tested corresponding equipment under test by described port under the control of main test module, and, test post is handled the test result that obtains this equipment under test by this test module by test post being sent to the test module of this equipment under test correspondence.
For achieving the above object, the present invention also provides a kind of Auto-Test System, comprising: script executing server, tester, auxiliary equipment and one or more equipment under test; Tester is connected with equipment under test by auxiliary equipment, and the script executing server is connected with tester, auxiliary equipment and equipment under test respectively;
The script executing server is used for being respectively each equipment under test according to the preset configuration file and distributes a test module, and load configuration information in each test module respectively; Described test module is used for being configured according to the equipment under test of described configuration information to this test module correspondence;
The script executing server also comprises main test module, is used for after message is finished in the configuration that receives the equipment under test that described test module returns tester being set, and selects corresponding equipment under test corresponding port on auxiliary equipment;
Auxiliary equipment is used to provide the port that connects equipment under test;
Tester, be used under the control of main test module, corresponding equipment under test being tested by described port, and test post sent to the test module of this equipment under test correspondence, and by this test module test post is handled, obtain the test result of this equipment under test.
More than automatic test approach provided by the invention and Auto-Test System, by introduce auxiliary equipment realized many equipment under tests simultaneously with the separate unit tester between be connected, realized that by introducing test module and main test module the separate unit tester can test many equipment under tests; In addition because many testing equipments are only used a tester, with existing tester and equipment under test one to one method of testing compare, improved the resource utilization of tester.
Description of drawings
Fig. 1 is the flow chart of automatic test approach embodiment one of the present invention;
Fig. 2 is the flow chart of automatic test approach embodiment two of the present invention;
Fig. 3 is the flow chart of automatic test approach embodiment three of the present invention;
Fig. 4 is the flow chart of automatic test approach embodiment four of the present invention;
Fig. 5 is the flow chart of automatic test approach embodiment five of the present invention;
Fig. 6 is the structural representation of Auto-Test System embodiment one of the present invention;
Fig. 7 is the structural representation of Auto-Test System embodiment two of the present invention.
Embodiment
Automatically test can be made up of dissimilar testing procedures, comprises the step of not using tested instrument, as the configuration equipment under test; The step that also comprises the use test instrument sends test data as tester to equipment under test and carries out test operation or catch the data that equipment under test sends and carry out test operation.Automatic test approach provided by the invention, the step of use test instrument is independent, adopt independent test module to control equipment under test; Simultaneously for tester can be shared between different equipment under tests, the present invention has introduced an auxiliary equipment, can realize being connected of tester and equipment under test to be tested by it.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Fig. 1 is the flow chart of automatic test approach embodiment one of the present invention.As shown in Figure 1, comprising:
Step 1, be respectively each equipment under test according to configuration file and distribute a test module, and load configuration information in each test module respectively; Described preset configuration file comprises: the relevant information of equipment under test.
When test product is networking products, test product is carried out automatic test be networking products are carried out automatic test.In actual test process, can use a kind of explanation type script Tool Command Language (Tool Command Language, abbreviation TCL) writes the control automatic test cases, by on the script executing server, moving automatic test script, come operational testing instrument, auxiliary equipment and equipment under test, comprise port switching on the auxiliary equipment etc.Described automatic test cases is meant under certain environment, equipment under test is carried out the set of sequence of operations for implementing once test, comprise the configuration equipment under test, tester is set, tester sends test data or tester to equipment under test and catches data that equipment under test sends etc., and each operation obtained measured result and expected results relatively, and return test result, export the process of test record and test report at last.
When moving the automatic test function by the script executing server, begin follow-up equipment disposition and test operation, at first according to the relevant information of the equipment under test in the configuration file, the identification information that comprises equipment under test, know that this time which testing equipment test need be these equipment under test allocation for test modules, load configuration information in these test modules then to, configuration information comprises but is not limited to the test case that needs are carried out, product test index and test result storing directory etc.The relevant information of equipment under test can also include but not limited to following information except the identification information that comprises equipment under test, as the model of equipment under test, version number etc.
Step 2, test module are configured according to the equipment under test of described configuration information to this test module correspondence, and finish message to main test module transmission configuration after configuration is finished.
Step 3, main test module are provided with tester.Comprise and inform tester need be tested which function point of which equipment under test.
Step 4, main test module are selected the port of corresponding equipment under test on auxiliary equipment.Tester and equipment under test carry out exchanges data by this port of selecting, carry out follow-up test process.
Step 5, tester are tested corresponding equipment under test by described port under the control of main test module, and test post are sent to the test module of this equipment under test correspondence.
Step 6, test module are handled the test result that obtains this equipment under test to test post.As comprising the test result storing directory in the configuration information that loads in the test module, then index can be deposited or set up to this test result according to this test result storing directory.
Step 3 among this embodiment is not limited to order shown in Figure 1 with the execution sequence of step 4, main test module is selected the port of corresponding equipment under test in can first execution in step 4 on auxiliary equipment, the step that main test module is provided with tester in the execution in step 3 also can two steps be carried out simultaneously again.
This embodiment, by introduce auxiliary equipment realized many equipment under tests simultaneously with the separate unit tester between be connected, realized that by introducing test module and main test module the separate unit tester can test many equipment under tests; In addition because many testing equipments are only used a tester, with existing tester and equipment under test one to one method of testing compare, improved the resource utilization of tester.
Fig. 2 implements two flow chart for automatic test approach of the present invention.As shown in Figure 2, the difference of this embodiment and embodiment one is, test module sends configuration to main test module and also comprises before finishing message after configuration is finished: confirm the step that configuration that equipment under test is carried out is whether correct.As shown in Figure 2, this embodiment comprises:
Step 1, be respectively each equipment under test according to configuration file and distribute a test module, and load configuration information in each test module respectively; Described preset configuration file comprises: the relevant information of equipment under test.
Step 21, test module are configured according to the equipment under test of described configuration information to this test module correspondence.
Whether the configuration that step 22, judgement are carried out equipment under test is correct, if correct, then execution in step 23, otherwise execution in step 21.
Step 23, test module send configuration to main test module and finish message.
Step 3, main test module are provided with tester.Comprise and inform tester need be tested which function point of which equipment under test.
Step 4, main test module are selected the port of corresponding equipment under test and described port information are issued tester on auxiliary equipment.Tester and equipment under test carry out exchanges data by this port of selecting, carry out follow-up test process.
Step 5, tester are tested corresponding equipment under test by described port under the control of main test module, and test post are sent to the test module of this equipment under test correspondence.
Step 6, test module are handled the test result that obtains this equipment under test to test post.As comprising the test result storing directory in the configuration information that loads in the test module, then index can be deposited or set up to this test result according to this test result storing directory.
This embodiment in carrying out the initial configuration process of test module, by the correctness of further checking initial configuration, has guaranteed the accuracy that subsequent operation is carried out.
Among the above embodiment, when tester is tested this equipment under test by described port, and by main test module test post is sent to test module simultaneously or also comprise afterwards or before: test module is deleted the configuration of this equipment under test.Receive the test post of equipment under test when test module after, delete in the test module configuration this moment about equipment under test, carry out the operation of next test case to vacate resource, be about to this test module and distribute to the next equipment under test that needs test, carrying out follow-up configuration information loads, and equipment under test is configured, the port on the auxiliary equipment is chosen and test operation.
What above embodiment one and embodiment two described is the process that a certain equipment under test is tested automatically.Below by automatic test approach embodiment three to five, with to three equipment under test A, B, C test automatically and are automatic test approach of the present invention to be described example.
Fig. 3 implements three flow chart for automatic test approach of the present invention.As shown in Figure 3, comprising:
Step 000, obtain configuration file; Specified in the configuration file equipment under test A, equipment under test B and equipment under test C test.
Step 100, be equipment under test allocation for test module according to configuration file.Described configuration file comprises: the relevant information of equipment under test, as having specified in the configuration file among this embodiment equipment under test A, equipment under test B and equipment under test C test.And the described configuration file of load configuration information comprises in test module: the relevant information of equipment under test.Be specially respectively when being applied to each equipment under test:
Step 110, distribute first test module for equipment under test A.
Step 120, distribute second test module for equipment under test B.
Step 130, distribute the 3rd test module for equipment under test C.
Step 200, load configuration information in test module respectively.Configuration information comprises but is not limited to the test case that needs are carried out, product test index and test result storing directory etc.Be specially respectively when being applied to each equipment under test:
Step 210, in the first test module load configuration information.
Step 220, in the second test module load configuration information.
Step 230, in the 3rd test module load configuration information.
Step 300, test module are configured equipment under test according to described configuration information, and after configuration is finished, finish message to main test module transmission configuration, send the function point to be measured of this equipment under test and the method for testing that changes function point correspondence to be measured to main test module simultaneously.Be specially respectively when being applied to each equipment under test:
Step 310, first test module are configured equipment under test A according to described configuration information, and after configuration is finished, finish message to main test module transmission configuration, send the function point to be measured of equipment under test A and the method for testing that changes function point correspondence to be measured to main test module simultaneously.
Step 320, second test module are configured equipment under test B according to described configuration information, and after configuration is finished, finish message to main test module transmission configuration, send the function point to be measured of equipment under test B and the method for testing that changes function point correspondence to be measured to main test module simultaneously.
Step 330, the 3rd test module are configured equipment under test C according to described configuration information, and after configuration is finished, finish message to main test module transmission configuration, send the function point to be measured of equipment under test C and the method for testing that changes function point correspondence to be measured to main test module simultaneously.
Main test module can be provided with tester at equipment under test respectively after having received that single test module receives that message is finished in the equipment under test configuration of the correspondence of transmission; Also can be after receiving that message is finished in configuration that all test modules return, main test module unification is provided with tester to all equipment under tests.Among this embodiment, main test module is provided with tester at equipment under test respectively after having received that single test module receives that message is finished in the equipment under test configuration of the correspondence of transmission.
Step 400, main test module are provided with tester.Be specially respectively when being applied to each equipment under test:
Step 410, main test module are provided with tester at equipment under test A, inform that tester need be to the function point of equipment under test A test and the method for testing of employing.
Step 420, main test module are provided with tester at equipment under test B, inform that tester need be to the function point of equipment under test B test and the method for testing of employing.
Step 430, main test module are provided with tester at equipment under test C, inform that tester need be to the function point of equipment under test C test and the method for testing of employing.
Step 500, main test module are selected the port of equipment under test on auxiliary equipment.Tester and equipment under test carry out exchanges data by this port of selecting, carry out follow-up test process.Be specially respectively when being applied to each equipment under test:
Step 510, main test module are selected the port of equipment under test A on auxiliary equipment.
Step 520, main test module are selected the port of equipment under test B on auxiliary equipment.
Step 530, main test module are selected the port of equipment under test C on auxiliary equipment.
Step 600, tester are tested this equipment under test by described port under the control of main test module.Be specially respectively when being applied to each equipment under test:
Step 610, the tester port by equipment under test A under the control of main test module is tested this equipment under test A;
Step 620, the tester port by equipment under test B under the control of main test module is tested this equipment under test B;
Step 630, the tester port by equipment under test C under the control of main test module is tested this equipment under test C;
Step 700, test post is sent to test module after equipment under test test finished.Be specially respectively when being applied to each equipment under test:
Step 710, test post is sent to first test module after equipment under test A test finished.
Step 720, test post is sent to second test module after equipment under test B test finished.
Step 730, test post is sent to the 3rd test module after equipment under test C test finished.
Step 800, test module are handled the test result that obtains this equipment under test to test post.Be specially respectively when being applied to each equipment under test:
Step 810, first test module are handled the test result that obtains equipment under test A to test post.
Step 820, second test module are handled the test result that obtains equipment under test B to test post.
Step 830, the 3rd test module are handled the test result that obtains equipment under test C to test post.
Step 900, test module are deleted the configuration of this equipment under test.Be specially respectively when being applied to each equipment under test:
The configuration that step 910, first test module are deleted this equipment under test A.
The configuration that step 920, second test module are deleted this equipment under test B.
The configuration that step 930, the 3rd test module are deleted this equipment under test C.
This embodiment is an example so that three equipment under tests are tested, illustrated when tester or equipment under test are ready for sending data, judge at first which port is this piece of data will send to, then by selecting the port connection on the auxiliary equipment that data are sent to corresponding port.Can realize that by this method a plurality of equipment under tests share a tester.Main test module is after the message of having received the configuration successful that certain single test module returns, at equipment under test tester is provided with respectively, because the independence of each test module, the step that each test module subtest instrument is tested each equipment under test is also separate.On tester, repeatedly be provided with, respectively equipment under test tested, realized " test respectively repeatedly is set ".
This embodiment is an example so that three equipment under tests are tested, illustrated when tester or equipment under test are ready for sending data, judge at first which port is this piece of data will send to, then by selecting the port connection on the auxiliary equipment that data are sent to corresponding port.Can realize that by this method a plurality of equipment under tests share a tester, in actual test process, in the time need carrying out the test of identical function point to different equipment under tests, because the present invention has independently gone out the relevant testing procedure of tester, only need on the test module of this equipment under test correspondence, load test case at this identical function point, on tester, once be provided with, can realize simultaneously a plurality of equipment under tests being carried out the test of identical function point, thereby realize tester " repeatedly test once is set "; In addition, because the independence of each test module, the step that each test module subtest instrument is tested each equipment under test is also separate, therefore on tester, once be provided with, can realize simultaneously the equipment under test that is assigned test module all being tested, thereby " whole tests once are set " of having realized tester.
Fig. 4 is the flow chart of automatic test approach embodiment four of the present invention.The difference of this embodiment and automatic test approach embodiment three is, among this embodiment, main test module is after having received that message is finished in configuration that all test modules return, and is unified again to all equipment under tests being provided with tester and selecting all equipment under test corresponding port on auxiliary equipment.As shown in Figure 4, step 400, the step 500 among the last embodiment is in this embodiment:
Step 401, main test module are after having received that message is finished in configuration that all test modules return, and be unified to all equipment under tests are provided with tester.Comprise and inform which method of testing tester need to which function point of equipment under test A, equipment under test B, equipment under test C adopt test.
Step 501, main test module are selected all equipment under test corresponding port on auxiliary equipment.
This embodiment, main test module is after the message of having received the configuration successful that all test modules return, unification is provided with tester, because the independence of each test module, the step that each test module subtest instrument is tested each equipment under test is also separate, therefore on tester, once be provided with, can realize simultaneously the equipment under test that is assigned test module all being tested, thereby " whole tests once are set " of having realized tester.
Fig. 5 is the flow chart of automatic test approach embodiment five of the present invention.The difference of this embodiment and automatic test approach embodiment four is, among this embodiment, main test module is after having received that message is finished in configuration that all test modules return, tester is also comprised before being configured: main test module is analyzed the function point to be measured of all equipment under tests and the method for testing of function point correspondence to be measured again, unifies to be provided with to having the equipment under test that identical function point to be measured and function point to be measured have a same test method in tester.As shown in Figure 5, the step 401 among the last embodiment is in this embodiment:
Step 402, main test module are after having received that message is finished in configuration that all test modules return, analyze the function point to be measured of all equipment under tests and the method for testing of function point correspondence to be measured, in tester, unify to be provided with having the equipment under test that identical function point to be measured and function point to be measured have a same test method.Identical as the function point to be measured of equipment under test A, equipment under test B and method of testing that function point to be measured adopts is identical, main test module is informed tester, when this function point of equipment under test A, equipment under test B is tested, can adopt the method for synchronism detection.This step, also can the function point to be measured of all equipment under tests and the method for testing of this function point correspondence to be measured be sent to tester for main test module, tester is analyzed the function point to be measured of all equipment under tests and the method for testing of function point correspondence to be measured, unifies to be provided with to having the equipment under test that identical function point to be measured and function point to be measured have a same test method in tester.
Simultaneously, at tester equipment under test is carried out in the test process, because the function point to be measured of equipment under test A and equipment under test B is identical and method of testing function point employing to be measured is identical, step 610 and step 620 among the last embodiment, in this embodiment, as shown in Figure 5, keeping independently also keeping simultaneously synchronized relation.
This embodiment has provided a kind of in actual test process, a kind of method of testing in the time need carrying out the test of identical function point to different equipment under tests.In tester, unify to be provided with to having the equipment under test that identical function point to be measured and function point to be measured have a same test method, can realize simultaneously a plurality of equipment under tests being carried out the test of identical function point, thereby realize tester " repeatedly test once is set "; In addition, because the independence of each test module, the step that each test module subtest instrument is tested each equipment under test is also separate, therefore on tester, once be provided with, can realize simultaneously the equipment under test that is assigned test module all being tested, thereby " whole tests once are set " of having realized tester.
Above embodiment also supports to add dynamically and remove the situation of equipment under test, if in test process, there is new equipment under test need add test process, perhaps existing equipment under test withdraws from test process, the information that only need revise equipment under test in configuration file gets final product, as increase or withdraw from the equipment under test of appointment in configuration file.When each test process begins to carry out, check at first whether the equipment under test that needs to carry out test increases or withdraw from, if change, then newly-increased or finish corresponding test module, newly-increased equipment under test is tested or stopped the equipment under test that withdraws from is tested.
Above embodiment, because each test module belongs to a script executing server, after each test module receives the content measurement that main test module sends, handle content measurement, after obtaining test result, test result can be stored in the test record storing directory of initial configuration of test module and go, in this manner, just the test record and the test report of each equipment under test that automatic test can be obtained are associated, help the unified management of test record and test report and gather, and need not additionally to increase the process that a test record gathers, thereby the otherness of conveniently carrying out between each test product compares again.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
Fig. 6 is the structural representation of Auto-Test System embodiment one of the present invention.As shown in Figure 6, comprising: script executing server 1000, tester 2000, auxiliary equipment 3000 and one or more equipment under test 4000; Tester 2000 is connected with equipment under test 4000 by auxiliary equipment 3000, and script executing server 1000 is connected with tester 2000, auxiliary equipment 3000 and equipment under test 4000 respectively.
Script executing server 1000 is used for being respectively each equipment under test 4000 according to the preset configuration file and distributes a test module 1100, and in test module 1100 load configuration information; Described test module 1100 is used for according to described configuration information equipment under test 4000 being configured.
Script executing server 1000 also comprises main test module 1200, is used to be provided with tester, and after message is finished in the configuration that receives equipment under test, selects the port 3100 of equipment under test 4000 on auxiliary equipment 3000.
Auxiliary equipment 3000 is used to provide the port that connects equipment under test.There are one or more physical ports that are used to connect equipment under test on the auxiliary equipment.When tester or equipment under test were ready for sending data, main test module judged at first which port is this piece of data will send to, and by selecting port on the auxiliary equipment to connect data was sent to corresponding port then.Can realize that by this method a plurality of equipment under tests share a tester.Auxiliary equipment does not change the data content that transmits between tester and the equipment under test, only is responsible for forwarding the data to corresponding ports.Auxiliary equipment can be the logical support port division of a Daepori and the switch of data penetration transmission, also can be other products of supporting this function.
Tester 2000, be used for testing by 3100 pairs of these equipment under tests of described port, and test post is sent to test module 1100 by main test module 1200, and handle by 1100 pairs of test posts of test module, obtain the test result of this equipment under test 4000.
Fig. 7 is the structural representation of Auto-Test System embodiment two of the present invention.As shown in Figure 7, the Auto-Test System among this embodiment is on the basis of a last embodiment, and script executing server 1000 also comprises: configuration file is provided with module 1300: be used to be provided with configuration file or revise configuration file.Script executing server 1000 can also cooperate the interpolation of dynamic execution equipment under test and shift out operation, if in test process, there is new equipment under test need add test process, perhaps existing equipment under test withdraws from test process, the information that only need revise equipment under test in configuration file gets final product, as increase or withdraw from the equipment under test of appointment in configuration file.When each test process begins to carry out, check at first whether the equipment under test that needs to carry out test in the configuration file increases or withdraw from, if change, then newly-increased or finish corresponding test module, newly-increased equipment under test is tested or stopped the equipment under test that withdraws from is tested.
Test module 1100 can also comprise judge module 1101, be used for sending configuration to main test module 1200 after finishing and confirming that the configuration that equipment under test is carried out is correct before finishing message in that equipment under test 4000 is configured, be used for also judging whether tester is tested the test post that the back produces to equipment under test correct.In carrying out the initial configuration process of test module,, guaranteed the accuracy that subsequent operation is carried out by verifying the correctness of initial configuration further.
Test module 1100 can also comprise removing module 1102, is used for after the test post that receives main test module 120 transmissions the configuration of deleting equipment under test 4000 in this test module 1100.Receive the test post of equipment under test when test module after, this moment by in the removing module deletion test module about the configuration of equipment under test, carry out the operation of next test case to vacate resource, be about to this test module and distribute to the next equipment under test that needs test, carrying out follow-up configuration information loads, and equipment under test is configured, the port on the auxiliary equipment is chosen and test operation.
Among the embodiment of above-mentioned Auto-Test System, because single automatic test platform can be tested many equipment under tests, the minimizing of automatic test platform quantity makes the input of automatic test project on the test execution personnel also reduce accordingly, therefore save human cost, shortened the product test cycle simultaneously; In addition because the minimizing of automatic test platform quantity, help the unified management of test record and test report and gather, and need not additionally to increase again the process that a test record gathers, the otherness of conveniently carrying out between each test product compares, and has saved the time of wasting because of switching and resource coordination between the different automation platforms.
When tester or equipment under test are ready for sending data, judge at first which port is this piece of data will send to, by selecting port on the auxiliary equipment to connect data are sent to corresponding port then.Can realize that by this method a plurality of equipment under tests share a tester, realize " test respectively repeatedly is set " of tester, the purpose of " repeatedly test once is set " or " whole tests once are set ".
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (12)

1, a kind of automatic test approach is characterized in that, comprising:
Be respectively each equipment under test according to configuration file and distribute a test module, and load configuration information in each test module respectively, described configuration file comprises: the relevant information of equipment under test;
Test module is configured according to the equipment under test of described configuration information to this test module correspondence, and finishes message to main test module transmission configuration after configuration is finished;
Main test module is provided with tester and selects corresponding equipment under test corresponding port on auxiliary equipment;
Tester is tested corresponding equipment under test by described port under the control of main test module, and test post sent to the test module of this equipment under test correspondence, test post is handled the test result that obtains this equipment under test by this test module.
2, automatic test approach according to claim 1, it is characterized in that, described test module when message is finished in main test module transmission configuration, also sends the function point to be measured of this equipment under test and the method for testing of this function point correspondence to be measured to main test module after configuration is finished.
3, automatic test approach according to claim 2, it is characterized in that, main test module is provided with tester and before selecting the equipment under test corresponding port on the auxiliary equipment, comprises: main test module has received that the configuration that all test modules return finishes message.
4, automatic test approach according to claim 3, it is characterized in that, main test module is provided with tester and specifically comprises: main test module is analyzed the function point to be measured of all equipment under tests and the method for testing of function point correspondence to be measured, unifies to be provided with to having the equipment under test that identical function point to be measured and function point to be measured have a same test method in tester;
Tester is tested equipment under test and is specially: tester carries out synchronism detection to the equipment under test that has identical function point to be measured and function point to be measured and have a same test method.
5, automatic test approach according to claim 3, it is characterized in that, main test module is provided with tester and specifically comprises: main test module is sent to tester with the function point to be measured of all equipment under tests and the method for testing of this function point correspondence to be measured, tester is analyzed the function point to be measured of all equipment under tests and the method for testing of function point correspondence to be measured, unifies to be provided with to having the equipment under test that identical function point to be measured and function point to be measured have a same test method in tester;
Tester is tested equipment under test and is specially: tester carries out synchronism detection to the equipment under test that has identical function point to be measured and function point to be measured and have a same test method.
6, automatic test approach according to claim 2, it is characterized in that main test module is provided with tester and specifically comprises: main test module is provided with equipment under test in tester respectively according to the function point to be measured of each equipment under test and the method for testing of function point to be measured;
Tester is tested equipment under test and is specially: tester is tested each equipment under test respectively.
According to the described arbitrary automatic test approach of claim 1-6, it is characterized in that 7, described test module also comprises after test post is handled the test result that obtains this equipment under test: test module is deleted the configuration of this equipment under test.
8, according to the described arbitrary automatic test approach of claim 1-6, it is characterized in that, when adding or shifting out equipment under test, also comprise: the relevant information of revising equipment under test in the configuration file.
9, according to the described arbitrary automatic test approach of claim 1-6, it is characterized in that load configuration information comprises in test module: test case, product test index and/or test result storing directory that needs are carried out.
10, a kind of Auto-Test System is characterized in that, comprising: script executing server, tester, auxiliary equipment and one or more equipment under test; Tester is connected with equipment under test by auxiliary equipment, and the script executing server is connected with tester, auxiliary equipment and equipment under test respectively;
The script executing server is used for being respectively each equipment under test according to the preset configuration file and distributes a test module, and load configuration information in each test module respectively; Described test module is used for being configured according to the equipment under test of described configuration information to this test module correspondence;
The script executing server also comprises main test module, is used for after message is finished in the configuration that receives the equipment under test that described test module returns tester being set, and selects corresponding equipment under test corresponding port on auxiliary equipment;
Auxiliary equipment is used to provide the port that connects equipment under test;
Tester, be used under the control of main test module, corresponding equipment under test being tested by described port, and test post sent to the test module of this equipment under test correspondence, and by this test module test post is handled, obtain the test result of this equipment under test.
11, Auto-Test System according to claim 10 is characterized in that, described script executing server also comprises: configuration file is provided with module, is used to be provided with configuration file or revises configuration file.
12, Auto-Test System according to claim 10, it is characterized in that, described test module also comprises removing module, is used for after described test module is handled the test result that obtains this equipment under test to test post the configuration of deleting equipment under test in this test module.
CN2008101016980A 2008-03-11 2008-03-11 Automatic test approach and system Expired - Fee Related CN101247293B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101016980A CN101247293B (en) 2008-03-11 2008-03-11 Automatic test approach and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101016980A CN101247293B (en) 2008-03-11 2008-03-11 Automatic test approach and system

Publications (2)

Publication Number Publication Date
CN101247293A true CN101247293A (en) 2008-08-20
CN101247293B CN101247293B (en) 2010-07-28

Family

ID=39947519

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101016980A Expired - Fee Related CN101247293B (en) 2008-03-11 2008-03-11 Automatic test approach and system

Country Status (1)

Country Link
CN (1) CN101247293B (en)

Cited By (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101976219A (en) * 2010-08-19 2011-02-16 北京星网锐捷网络技术有限公司 Method and system for debugging automatic testing script and agent device
CN101963930B (en) * 2009-07-21 2013-06-12 纬创资通股份有限公司 Automatic test device
CN103412758A (en) * 2013-08-19 2013-11-27 电子科技大学 Method for controlling thermal infrared imagers
CN103428051A (en) * 2013-08-29 2013-12-04 普联技术有限公司 System and method for testing communication devices
CN103761185A (en) * 2014-01-14 2014-04-30 烽火通信科技股份有限公司 Automated testing system and automated testing method
CN104090185A (en) * 2014-06-30 2014-10-08 深圳市英威腾电气股份有限公司 Testing system and method
CN104850495A (en) * 2015-05-14 2015-08-19 曙光信息产业(北京)有限公司 Automatic detection method and device
CN105376108A (en) * 2015-10-10 2016-03-02 普联技术有限公司 Parallel testing system and testing method
CN105471680A (en) * 2015-12-09 2016-04-06 上海斐讯数据通信技术有限公司 Network voice communication testing system and method
CN105607588A (en) * 2014-11-25 2016-05-25 迈普通信技术股份有限公司 Test control method, test control device and test system
CN105629948A (en) * 2015-12-24 2016-06-01 北京新能源汽车股份有限公司 Test case detection method and device
CN105679375A (en) * 2015-12-31 2016-06-15 浪潮(北京)电子信息产业有限公司 Automatic test system of storage equipment, and method thereof
CN105738723A (en) * 2016-01-29 2016-07-06 苏州佳世达电通有限公司 Production line automatic detection method and detection device
CN105827460A (en) * 2016-05-11 2016-08-03 深圳市共进电子股份有限公司 Automatic testing method, device and system of network device
CN106021043A (en) * 2016-05-10 2016-10-12 浪潮电子信息产业股份有限公司 Method and device for acquiring configuration information of server
CN106444723A (en) * 2016-11-21 2017-02-22 中车青岛四方车辆研究所有限公司 Testing system and testing method for electronic brake control unit
CN106646315A (en) * 2016-12-30 2017-05-10 福建利利普光电科技有限公司 Automatic testing system and automatic testing method for digital measuring instruments
CN106856439A (en) * 2016-12-07 2017-06-16 武汉斗鱼网络科技有限公司 The method and server of a kind of scheme test
CN107015906A (en) * 2016-06-23 2017-08-04 阿里巴巴集团控股有限公司 Method of testing and device, port generation method and port maker and test system
CN107515803A (en) * 2017-08-25 2017-12-26 郑州云海信息技术有限公司 A kind of storing performance testing method and device
CN107547309A (en) * 2017-08-21 2018-01-05 北京奇安信科技有限公司 A kind of automated testing method and device of security gateway performance
CN107632909A (en) * 2016-07-18 2018-01-26 北京北方华创微电子装备有限公司 Method and system for ATE function
WO2018049786A1 (en) * 2016-09-18 2018-03-22 中兴通讯股份有限公司 Testing device and testing method
CN110062251A (en) * 2019-04-19 2019-07-26 视联动力信息技术股份有限公司 A kind of live streaming dissemination method, system and device
CN110235393A (en) * 2018-01-05 2019-09-13 深圳市汇顶科技股份有限公司 Automated testing method and system
CN111897736A (en) * 2020-08-17 2020-11-06 深圳信息通信研究院 Cloud architecture-based automatic testing method and system for Internet of things information products
CN112051835A (en) * 2020-09-08 2020-12-08 浙江中控技术股份有限公司 DCS redundancy function testing method and device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103338132B (en) * 2013-06-21 2016-12-28 安科智慧城市技术(中国)有限公司 The verification method of a kind of equipment access-in management platform and system

Cited By (37)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101963930B (en) * 2009-07-21 2013-06-12 纬创资通股份有限公司 Automatic test device
CN101976219A (en) * 2010-08-19 2011-02-16 北京星网锐捷网络技术有限公司 Method and system for debugging automatic testing script and agent device
CN103412758B (en) * 2013-08-19 2016-12-28 电子科技大学 A kind of method controlling thermal infrared imager
CN103412758A (en) * 2013-08-19 2013-11-27 电子科技大学 Method for controlling thermal infrared imagers
CN103428051A (en) * 2013-08-29 2013-12-04 普联技术有限公司 System and method for testing communication devices
CN103761185A (en) * 2014-01-14 2014-04-30 烽火通信科技股份有限公司 Automated testing system and automated testing method
CN103761185B (en) * 2014-01-14 2016-06-22 烽火通信科技股份有限公司 A kind of automatization test system and method
CN104090185A (en) * 2014-06-30 2014-10-08 深圳市英威腾电气股份有限公司 Testing system and method
CN105607588A (en) * 2014-11-25 2016-05-25 迈普通信技术股份有限公司 Test control method, test control device and test system
CN104850495A (en) * 2015-05-14 2015-08-19 曙光信息产业(北京)有限公司 Automatic detection method and device
CN105376108A (en) * 2015-10-10 2016-03-02 普联技术有限公司 Parallel testing system and testing method
CN105376108B (en) * 2015-10-10 2018-11-27 普联技术有限公司 A kind of parallel test system and test method
CN105471680A (en) * 2015-12-09 2016-04-06 上海斐讯数据通信技术有限公司 Network voice communication testing system and method
CN105629948B (en) * 2015-12-24 2019-02-26 北京新能源汽车股份有限公司 Test case detection method and device
CN105629948A (en) * 2015-12-24 2016-06-01 北京新能源汽车股份有限公司 Test case detection method and device
CN105679375A (en) * 2015-12-31 2016-06-15 浪潮(北京)电子信息产业有限公司 Automatic test system of storage equipment, and method thereof
CN105738723A (en) * 2016-01-29 2016-07-06 苏州佳世达电通有限公司 Production line automatic detection method and detection device
CN106021043A (en) * 2016-05-10 2016-10-12 浪潮电子信息产业股份有限公司 Method and device for acquiring configuration information of server
CN105827460A (en) * 2016-05-11 2016-08-03 深圳市共进电子股份有限公司 Automatic testing method, device and system of network device
CN107015906B (en) * 2016-06-23 2020-12-04 创新先进技术有限公司 Test method and device, port generation method, port generator and test system
CN107015906A (en) * 2016-06-23 2017-08-04 阿里巴巴集团控股有限公司 Method of testing and device, port generation method and port maker and test system
CN107632909A (en) * 2016-07-18 2018-01-26 北京北方华创微电子装备有限公司 Method and system for ATE function
WO2018049786A1 (en) * 2016-09-18 2018-03-22 中兴通讯股份有限公司 Testing device and testing method
CN106444723A (en) * 2016-11-21 2017-02-22 中车青岛四方车辆研究所有限公司 Testing system and testing method for electronic brake control unit
CN106444723B (en) * 2016-11-21 2019-02-12 中车青岛四方车辆研究所有限公司 The test macro and its test method of electronic brake control unit
CN106856439A (en) * 2016-12-07 2017-06-16 武汉斗鱼网络科技有限公司 The method and server of a kind of scheme test
CN106856439B (en) * 2016-12-07 2019-08-02 武汉斗鱼网络科技有限公司 A kind of method and server of scheme test
CN106646315B (en) * 2016-12-30 2019-09-27 福建利利普光电科技有限公司 A kind of Auto-Test System and its test method of digital measuring instruments
CN106646315A (en) * 2016-12-30 2017-05-10 福建利利普光电科技有限公司 Automatic testing system and automatic testing method for digital measuring instruments
CN107547309A (en) * 2017-08-21 2018-01-05 北京奇安信科技有限公司 A kind of automated testing method and device of security gateway performance
CN107547309B (en) * 2017-08-21 2020-09-04 奇安信科技集团股份有限公司 Automatic testing method and device for security gateway performance
CN107515803A (en) * 2017-08-25 2017-12-26 郑州云海信息技术有限公司 A kind of storing performance testing method and device
CN110235393A (en) * 2018-01-05 2019-09-13 深圳市汇顶科技股份有限公司 Automated testing method and system
CN110062251A (en) * 2019-04-19 2019-07-26 视联动力信息技术股份有限公司 A kind of live streaming dissemination method, system and device
CN111897736A (en) * 2020-08-17 2020-11-06 深圳信息通信研究院 Cloud architecture-based automatic testing method and system for Internet of things information products
CN111897736B (en) * 2020-08-17 2023-08-04 深圳信息通信研究院 Automatic testing method and system for Internet of things information product based on cloud architecture
CN112051835A (en) * 2020-09-08 2020-12-08 浙江中控技术股份有限公司 DCS redundancy function testing method and device

Also Published As

Publication number Publication date
CN101247293B (en) 2010-07-28

Similar Documents

Publication Publication Date Title
CN101247293B (en) Automatic test approach and system
US9189374B2 (en) Automatic test system for distributed comprehensive service and method thereof
CN102214139B (en) Automatic test performance control and debugging method facing distributed system
CN111010316B (en) Flow playback method, device and system
CN101226502B (en) Automatization test method and system
CN101110734A (en) Automatization test approach and system
CN102323499A (en) Method for automatically testing relay protection equipment
CN102662846A (en) Testing method combining automatic tool and testing case
CN105512036A (en) Test template for automatically generating test case according to preset rules and test method
CN110309051A (en) Method, system, equipment and the storage medium of management of test cases
CN109871328B (en) Software testing method and device
CN110968509B (en) Method and system for batch customizing of variables
CN107193730A (en) A kind of interface test method of automation
CN101174237B (en) Automatic test method, system and test device
CN105337796A (en) WIFI router performance test method and system
CN104516809A (en) Automated testing system and method
CN103077135A (en) Test resource management method capable of supporting parallel tests
CN105260297B (en) A kind of test data management system and method
CN114238081A (en) Method and system suitable for small satellite batch test
CN104731702B (en) Test system and its service end
CN112051835A (en) DCS redundancy function testing method and device
CN102799526A (en) Distributed intelligent scheduling method
CN103902590A (en) Method and device for automated testing of terminal
CN105204994A (en) Automation test method and system
CN105094546B (en) Show the method, apparatus of mobile terminal desktop Apply Names and a kind of mobile terminal

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
ASS Succession or assignment of patent right

Owner name: PU NING

Free format text: FORMER OWNER: FUJIAN XINGWANGRUIJIE NETWORK CO., LTD.

Effective date: 20140603

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 350015 FUZHOU, FUJIAN PROVINCE TO: 518052 SHENZHEN, GUANGDONG PROVINCE

TR01 Transfer of patent right

Effective date of registration: 20140603

Address after: 518052 Guangdong city of Shenzhen province Nanshan District Nanshan digital and cultural industry base east tower room 407

Patentee after: Pu Ning

Address before: 350015 M9511 Industrial Park, fast road, Mawei District, Fujian, Fuzhou

Patentee before: Fujian Xingwangruijie Network Co., Ltd.

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20151229

Address after: 224500 Jiangsu Province, Yancheng City Binhai County Binhuai town head Zeng Village (Yancheng City coastal chemical industry park)

Patentee after: Jiangsu Jihua Chemical Co., Ltd.

Address before: 518052 Guangdong city of Shenzhen province Nanshan District Nanshan digital and cultural industry base east tower room 407

Patentee before: Pu Ning

TR01 Transfer of patent right

Effective date of registration: 20170829

Address after: 300000 Tianjin City, Hexi District Institute of South Jinli Street rich 21-608-610

Patentee after: Yang Bo

Address before: 224500 Jiangsu Province, Yancheng City Binhai County Binhuai town head Zeng Village (Yancheng City coastal chemical industry park)

Patentee before: Jiangsu Jihua Chemical Co., Ltd.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100728

Termination date: 20180311

CF01 Termination of patent right due to non-payment of annual fee