CN103220186A - Communication equipment testing method and system - Google Patents

Communication equipment testing method and system Download PDF

Info

Publication number
CN103220186A
CN103220186A CN201310092634XA CN201310092634A CN103220186A CN 103220186 A CN103220186 A CN 103220186A CN 201310092634X A CN201310092634X A CN 201310092634XA CN 201310092634 A CN201310092634 A CN 201310092634A CN 103220186 A CN103220186 A CN 103220186A
Authority
CN
China
Prior art keywords
test
test case
case
automatic
platform
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.)
Pending
Application number
CN201310092634XA
Other languages
Chinese (zh)
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.)
DATANG LIANYI TECHNOLOGY Co Ltd
Original Assignee
DATANG LIANYI TECHNOLOGY 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 DATANG LIANYI TECHNOLOGY Co Ltd filed Critical DATANG LIANYI TECHNOLOGY Co Ltd
Priority to CN201310092634XA priority Critical patent/CN103220186A/en
Publication of CN103220186A publication Critical patent/CN103220186A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention provides a communication equipment testing method and system. The problem that existing automatic testing software is low in flexibility and can not meet the testing demands of a user is solved. The communication equipment testing method comprises the steps that an automatic testing platform is arranged in advance, and a testing case is edited, wherein the testing case provides a testing case interface, and the automatic testing platform provides an automatic testing platform interface; the automatic testing platform acquires the information of the testing case through the testing case interface and receives allocation information aiming at the testing case; and the automatic testing platform executes the testing case according to the allocation information, and the testing case outputs the testing executing information of the testing case through the automatic testing platform interface. According to the communication equipment testing method and system, a dynamic programming language is used for editing the testing case, editing can be conducted according to the demands of the user, so that the automatic testing platform is no longer limited to executing standard testing cases, flexibility is strong, and the testing demands of the user can be met.

Description

A kind of communication equipment method of testing and system
Technical field
The embodiment of the invention relates to communication technical field, particularly relates to a kind of communication equipment method of testing and system.
Background technology
In the production process of communication equipment, production firm can test communication equipment usually, to obtain some performance and the parameter of equipment.
At present, small part supplier provides automatic test software, when utilizing comprehensive test instrument that communication equipment is tested, a kind of test purpose and the preliminary treatment and the reprocessing of reaching this test purpose, be called a test case usually by automatic test software.The automatic test software vendor generally uses static programming language to design and develop test case, and is compiled as dynamic link library or is embedded in the executable file, is cured as the computer actuating code.
But the automatic test software vendor generally only provides the standard testing use-case of GB and rower, and in the test process of communication equipment, except standard performance is tested, also needs some specific function and the performance of equipment are tested usually.But, automatic test software does not provide the standard testing use-case at these specific functions and performance, therefore, utilize automatic test software to test at present to these specific functions and the performance of communication equipment, be that existing automatic test software flexibility is lower, can't satisfy user's testing requirement.
Therefore,, also need to finish, and the manual operation meeting causes testing efficiency and accuracy rating of tests lower by manual operation if above-mentioned specific function and performance are tested.
Summary of the invention
Embodiment of the invention technical problem to be solved provides a kind of communication equipment method of testing and system, and is lower to solve present automatic test software flexibility, can't satisfy the problem of user's testing requirement.
In order to address the above problem, the invention discloses a kind of communication equipment method of testing, it is characterized in that, comprising:
Set in advance automatic test platform, and editor's test case; Wherein, described test case provides the test case interface, and described automatic test platform provides the automatic test platform interface;
Automatic test platform obtains the information of test case by described test case interface, and receives the configuration information at described test case;
Automatic test platform is carried out described test case according to described configuration information, and test case is by the test execution information of described automatic test platform interface output test case.
Alternatively, the information of described test case comprises test case file, and the attribute of test case and parameter information,
Described automatic test platform obtains the information of test case by described test case interface, comprising:
Automatic test platform is by described test case interface dynamic load test case file;
Obtain and load successful test case, and the attribute of described test case and parameter information, and with described test case, and the attribute of described test case and parameter information record during test case tabulates.
Alternatively, described method also comprises:
At this test, from described test case tabulation, choose the test case that this test is used;
The test case of choosing is added in the cycle tests of this test, wherein, comprise one or more test cases in the described cycle tests.
Alternatively, described configuration information comprises: the value of the parameter of the test case that this test is used,
Described automatic test platform is carried out described test case according to described configuration information, comprising:
At this test, when carrying out a cycle tests, automatic test platform passes to the value of the parameter of test case in the described cycle tests by described test case interface the test case of correspondence;
Carry out test case in the described cycle tests successively according to the value of described parameter.
Alternatively, described test execution information comprises the execution result of test case, and described method also comprises:
Automatic test platform shows the execution result of described test case or is saved in file;
After the test case in the described cycle tests executes, the execution result of statistical test use-case, and generate test report, described test report is shown.
Alternatively, after editor's test case, also comprise:
Create the use-case library directory of automatic test platform, and described test case is saved under the described use-case library directory;
When needs refresh test use-case, automatic test platform obtains the test case of new edited by described test case interface, perhaps obtains the test case after the test case under the described use-case library directory made amendment;
The test case or the amended test case of described new edited are saved under the described use-case library directory.
Alternatively, described editor's test case comprises:
Use dynamic programming language editor test case.
On the other hand, the invention also discloses a kind of communication equipment test macro, it is characterized in that, comprising:
Module is set, is used to set in advance automatic test platform, and editor's test case; Wherein, described test case provides the test case interface, and described automatic test platform provides the automatic test platform interface;
The information acquisition module is used for obtaining by described test case interface the information of test case, and receives the configuration information at described test case;
Executive Module is used for carrying out described test case according to described configuration information, and the acceptance test use-case is by the test execution information of the test case of described automatic test platform interface output.
Alternatively, the information of described test case comprises test case file, and the attribute of test case and parameter information,
Described information acquisition module comprises:
Load submodule, be used for by described test case interface dynamic load test case file;
Obtain submodule, be used to obtain and load successful test case, and the attribute of described test case and parameter information, and with described test case, and the attribute of described test case and parameter information record during test case tabulates.
Alternatively, described system also comprises:
Choose module, be used for, from described test case tabulation, choose the test case that this test is used at this test;
Add module, be used for the test case of choosing is added to the cycle tests of this test, wherein, comprise one or more test cases in the described cycle tests.
Alternatively, described configuration information comprises: the value of the parameter of the test case that this test is used,
Described Executive Module comprises:
Transmit submodule, be used for, when carrying out a cycle tests, the value of the parameter of test case in the described cycle tests is passed to the test case of correspondence by described test case interface at this test;
Implementation sub-module is used for carrying out successively according to the value of described parameter the test case of described cycle tests.
Alternatively, described test execution information comprises the execution result of test case, and described system also comprises:
Display module is used for the execution result of described test case being shown or being saved in file;
Generation module is used for after the test case of described cycle tests executes, the execution result of statistical test use-case, and generate test report, described test report is shown.
Alternatively, described system also comprises:
Creation module is used for creating the use-case library directory of automatic test platform after editor's test case, and described test case is saved under the described use-case library directory;
The use-case acquisition module is used for when needs refresh test use-case, and automatic test platform obtains the test case of new edited by described test case interface, perhaps obtains the test case after the test case under the described use-case library directory made amendment;
Preserve module, be used for the test case or the amended test case of described new edited are saved under the described use-case library directory.
Compared with prior art, the embodiment of the invention comprises following advantage:
The embodiment of the invention can set in advance automatic test platform, and editor's test case of meeting consumers' demand, and, described test case provides the test case interface, described automatic test platform provides the automatic test platform interface, automatic test platform obtains the information of test case by described test case interface, and reception is at the configuration information of described test case, carry out described test case according to described configuration information, the last test use-case is by the test execution information of described automatic test platform interface output test case.Utilize the described test case of dynamic programming language editor in the embodiment of the invention, can edit according to user's demand, described automatic test platform can load described test case by the test case interface, therefore, the automatic test platform of the embodiment of the invention no longer is limited to the operative norm test case, flexibility is stronger, can satisfy user's testing requirement.
Description of drawings
Fig. 1 is the flow chart of the embodiment of the invention one described a kind of communication equipment method of testing;
Fig. 2 is the connection diagram of the embodiment of the invention one described automatic test platform and test case;
Fig. 3 is the flow chart of the embodiment of the invention two described a kind of communication equipment method of testings;
Fig. 4 is the initialization flowchart of the embodiment of the invention two described test cases;
Fig. 5 is the flow chart of the embodiment of the invention two described editor's cycle testss;
Fig. 6 is the flow chart of the embodiment of the invention two described automatic tests;
Fig. 7 is the structured flowchart of the embodiment of the invention three described a kind of communication equipment test macros.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
The embodiment of the invention is provided with test case interface and automatic test platform interface, automatic test platform and test case are undertaken alternately by described interface, wherein test case adopts dynamic programming language to edit, can be according to user's demand editor different test cases, automatic test platform is carried out described test case, thereby satisfies user's testing requirement.
Embodiment one:
The automatic test software vendor generally uses static programming language to design and develop test case, and (static programming language is a class programming language, can not directly be carried out by the code that static programming language is write by computer, but could carry out after need being compiled into binary machine language by compiler), and be compiled as dynamic link library (Dynamic Link Library, DLL) or be embedded in the executable file, be cured as the computer actuating code.
But automated software supplier generally only provides the standard testing use-case of GB and rower, and the standard testing use-case is to provide corresponding input to dut terminal, and obtains to be tested content of standard code.And to finish such test automatically, also need synchronously to carry out the preparation of some test environments and test condition, these work are not within standard, and the test environment of each production firm and test condition are all different, and the automatic test software vendor does not provide the function that test environment and test condition are set.
Therefore,, can only detect by manual operation, perhaps customize to automated software supplier at above-mentioned situation for device fabrication manufacturer.For example production firm requires the performance of testing equipment under different temperatures, and the standard testing use-case does not write down ambient temperature, and therefore the temperature that can not control environment may need to rely on Test Engineer manually control and record.And to finish the performance test of equipment under test in operating temperature range, the Test Engineer need expend a large amount of time and efforts and go to carry out and ambient temperature is set, waits for that ambient temperature reaches test condition, carries out test, and repetitive work like this such as record probe temperature.
And for automated software supplier, because this test case range of application is little, and need design and develop test case by revising code by special software engineer, development difficulty is big, the cycle is long, development cost is very high, therefore, automated software supplier may not develop power.
In a word, existing automatic test software flexibility is lower, can't satisfy user's testing requirement.
At the problems referred to above, the embodiment of the invention has proposed a kind of communication equipment method of testing, and this method is not limited to the operative norm test case, can also be according to demand editor's test case of user, and carry out described test case.
With reference to Fig. 1, show the flow chart of the described a kind of communication equipment method of testing of the embodiment of the invention, described method comprises:
Step 100 sets in advance automatic test platform, and editor's test case.
In the embodiment of the invention, at first automatic test platform can be set, and can edit test case, and no longer be limited to the standard testing use-case according to user's request, test case behind the editor can be saved in the file, automatic test platform can load described test case afterwards.
Wherein, can use dynamic programming language editor test case, so the user can be according to the demand editor's test case of oneself, and need not edit by software vendor again.
Need to prove that the user can also use a computer and edit test case automatically according to the edit file that sets in advance according to the needs editor test case of oneself in the embodiment of the invention, the embodiment of the invention is not limited this.
In the embodiment of the invention, described test case provides the test case interface, and described automatic test platform provides the automatic test platform interface.
As shown in Figure 2, be the connection diagram of automatic test platform in the embodiment of the invention and test case, wherein, test case can be edited as required, can edit according to the edit file that sets in advance by the user or by computer.As can be seen from Figure 2, can be undertaken alternately by described test case interface and automatic test platform interface between automatic test platform and the test case.
For example, automatic test platform can obtain the relevant information of test case by the test case interface, and by this interface the parameter of test case is set, and carries out test.Test case can be passed through the automatic test platform interface, the information (comprising test result etc.) that output test is relevant, and then automatic test platform be according to can carrying out relevant treatment to the relevant information of these tests, or the like.
Step 102, automatic test platform obtains the information of test case by described test case interface, and receives the configuration information at described test case.
In the embodiment of the invention, automatic test platform is when starting, can obtain the information of test case by described test case interface, and, when testing, can receive configuration information, and these configuration informations are passed to test case, test case is carried out required configuration by described test case interface at described test case.
Step 104, automatic test platform is carried out described test case according to described configuration information, and test case is by the test execution information of described automatic test platform interface output test case.
After the configuration information that receives at described test case, automatic test platform can be carried out described test case according to described configuration information, and the test execution information of test case by described automatic test platform interface output test case (for example test execution result etc.).
In the embodiment of the invention, just carried out simple description,, will introduce in detail in the following embodiments for concrete process for described communication equipment method of testing.
The embodiment of the invention can set in advance automatic test platform, and editor's test case of meeting consumers' demand, and, described test case provides the test case interface, described automatic test platform provides the automatic test platform interface, automatic test platform obtains the information of test case by described test case interface, and reception is at the configuration information of described test case, carry out described test case according to described configuration information, the last test use-case is by the test execution information of described automatic test platform interface output test case.Utilize the described test case of dynamic programming language editor in the embodiment of the invention, can edit according to user's demand, described automatic test platform can load described test case by the test case interface, therefore, the automatic test platform of the embodiment of the invention no longer is limited to the operative norm test case, flexibility is stronger, can satisfy user's testing requirement.
Embodiment two:
Below, be elaborated by two pairs of described communication equipment method of testings of present embodiment.
With reference to Fig. 3, show the flow chart of the embodiment of the invention two described a kind of communication equipment method of testings, described method can comprise:
Step 300 sets in advance automatic test platform, and editor's test case.
In the embodiment of the invention, at first automatic test platform can be set, and editor's test case, and, described test case provides the test case interface, described automatic test platform provides the automatic test platform interface, can be undertaken alternately by two interfaces between automatic test platform and the test case.
In the embodiment of the invention, can use dynamic programming language editor test case, dynamic programming language does not need to be compiled into binary machine language and just can be performed, and uses text edit software arbitrarily, just can revise test case or write new test case according to testing requirement.
In addition, the embodiment of the invention can also be created the use-case library directory of automatic test platform, and described test case is saved under the described use-case library directory, when the automatic test platform implementation of test cases, can under described use-case library directory, load test case.
When need testing, and during at present not at the test case of these performances, can edit new test case or revise original test case, promptly need the refresh test use-case some performance of communication equipment.At this moment, can edit file be set, can edit new test case, perhaps the test case under the described use-case library directory be made amendment according to these edit files at these performances to be tested.
Through above-mentioned editor or after revising, automatic test platform can obtain the test case of new edited by described test case interface, perhaps obtain the test case after the test case under the described use-case library directory made amendment, and the test case or the amended test case of described new edited is saved under the described use-case library directory.
Step 302, automatic test platform are obtained the information of test case by described test case interface.
Automatic test platform is being set, and after editor's test case, when starting automatic test platform, automatic test platform can obtain the information of test case by described test case interface.
Wherein, the information of described test case can comprise test case file (the corresponding test case file of each test case), and the attribute of test case and parameter information, attribute information can comprise title, date created, author, descriptor, the version information of test case, or the like, some parameters of using when parameter information mainly relates to test can be provided with the value of these parameters in test process when test.
This step 302 is mainly the initialization procedure of test case, as shown in Figure 4, be the initialization flowchart of test case, as can be seen according to Fig. 4, automatic test platform described in this step 302 obtains the information of test case by described test case interface, can comprise:
Substep a1, automatic test platform is by described test case interface dynamic load test case file;
This substep a1 is the process of the described dynamic load test case of Fig. 4.
Substep a2 obtains and loads successful test case, and the attribute of described test case and parameter information, and with described test case, and the attribute of described test case and parameter information record during test case tabulates.
This substep a2 is the described process that reads attribute and parameter information by the test case interface of Fig. 4.
Through after the initialization of test case, can obtain the test case tabulation, a plurality of test cases have been write down in the described test case tabulation, and attribute of described test case (for example title of test case) and parameter information, when carrying out test, can choose test case from described test case tabulation, and carry out selected test case.
Step 304 at this test, is chosen the test case that this test is used from described test case tabulation.
At this test, may only need the several test cases in the implementation of test cases tabulation, therefore, can from described test case tabulation, choose the test case that this test is used when testing at every turn.
Step 306 is added the test case of choosing in the cycle tests of this test.
Wherein, comprise one or more test cases in the described cycle tests.
In the embodiment of the invention, in test process, can carry out a plurality of test cases, these test cases can be added in the cycle tests, when carrying out test, can choose cycle tests, and carry out the test case in the cycle tests.
Step 308 receives the configuration information at described test case.
When this is tested, for pending test case, at first can be configured this test case, automatic test platform can be according to the configuration information implementation of test cases then.
For example, can receive the configuration information at described test case, described configuration information can comprise the value of the parameter of the test case that this test is used.Wherein, described configuration information can be the configuration information that is provided with according to user's demand, and automatic test platform receives after these configuration informations, described configuration information together can be stored with the test case in the corresponding cycle tests.
In the embodiment of the invention, above-mentioned steps 304-step 308 can be understood as the process of editor's cycle tests, as shown in Figure 5, is the flow chart of the described editor's cycle tests of the embodiment of the invention, according to Fig. 5 as can be seen, the process of the described editor's cycle tests of the embodiment of the invention can comprise:
B1, automatic test platform show the test case tabulation.
Among this step b1, automatic test platform can be shown to the user with described test case tabulation after getting access to the test case tabulation, and the user can be according to the test case of needs from wherein selecting this test to use of oneself.
B2, editor's cycle tests.
Among this step b2, the user gets access to the test case tabulation, can edit cycle tests according to demand.Concrete, can from described test case tabulation, choose the test case that this test is used, and the test case of choosing be added in the cycle tests of this test.
This step b2 is similar substantially to the process of above-mentioned step 304 and step 306, and the embodiment of the invention is discussed no longer in detail at this.
B3 is provided with the test case parameter in the cycle tests.
Among this step b3, after editor's cycle tests, the value of the parameter of the test case in the cycle tests can be set, can be in the test process according to the value implementation of test cases of these parameters.
This step b3 is similar substantially to the process of above-mentioned step 308, and the embodiment of the invention is discussed no longer in detail at this.
B4 preserves cycle tests (comprising test case parameter wherein).
Through above-mentioned setting, automatic test platform can be preserved the cycle tests that sets, and test case parameter wherein.For example, can be saved under the above-mentioned use-case library directory, the embodiment of the invention is not limited this.
Need to prove, though (for example the user edits cycle tests to have comprised the process that the user participates among the above-mentioned steps b1-b4, test case parameter in the cycle tests etc. is set), but do not represent these processes to carry out by the user, the embodiment of the invention is convenient to understand in this these processes that just make for example, automatic test platform can automatically perform above-mentioned process according to pre-configured information, the embodiment of the invention is not limited this.
Step 310, automatic test platform is carried out described test case according to described configuration information, and test case is by the test execution information of described automatic test platform interface output test case.
Wherein, the described automatic test platform process of carrying out described test case according to described configuration information can comprise:
Substep A, at this test, when carrying out a cycle tests, automatic test platform passes to the value of the parameter of test case in the described cycle tests by described test case interface the test case of correspondence;
Substep B carries out test case in the described cycle tests successively according to the value of described parameter.
When carrying out a cycle tests, all test cases in the execution cycle tests of automatic test platform meeting order, at first the value of editor's parameter of set test case during cycle tests can be passed to corresponding test case, begin implementation of test cases then.
In test process, test case can be by the test execution information of automatic test platform interface output test case, and described test execution information can comprise execution result, the test log of test case, or the like.
Step 312, automatic test platform show the execution result of described test case or are saved in file.
Automatic test platform receives after the test execution information of test case output by the automatic test platform interface, the execution result of test case can be shown, so that the user understands test case more intuitively, obtain the The performance test results of communication equipment, perhaps automatic test platform can be saved in file with the execution result of test case, carry out statistical disposition for follow-up execution result to described test case, or the like.
Step 314, after the test case in the described cycle tests executes, the execution result of statistical test use-case, and generate test report, described test report is shown.
After all test cases in executing cycle tests, automatic test platform gets final product the execution result of statistical test use-case, and generate test report according to the report form template of customization, thus the flow process of automatic test finished, and show described test report.
In the embodiment of the invention, above-mentioned steps 310-step 314 can be understood as the process of automatic test, as shown in Figure 6, is the flow chart of the described automatic test of the embodiment of the invention, according to Fig. 6 as can be seen, the process of the described automatic test of the embodiment of the invention can comprise:
C1, user move cycle tests (promptly selecting one of them cycle tests).
C2, automatic test platform is provided with parameter by described test case interface.
C3, automatic test platform is carried out test (promptly carrying out all test cases in the sequence successively).
C4, test case is by the test execution information of test case interface output test case.
Wherein, described test execution information can comprise execution result, the test log of test case, or the like.
C5, automatic test platform is shown to the user with the execution result of test case.
In the embodiment of the invention, automatic test platform can also be saved in the execution result of test case in the file, and the embodiment of the invention is not limited this.
C6, the execution result of automatic test platform statistical test use-case, and generate test report.
C7, automatic test platform is shown to the user with described test report.
Need to prove, though comprised the process (for example the user selects cycle tests etc.) that the user participates among the above-mentioned steps c1-c7, but do not represent these processes to carry out by the user, the embodiment of the invention is convenient to understand in this these processes that just make for example, automatic test platform can automatically perform above-mentioned process according to pre-configured information, the embodiment of the invention is not limited this.
Be provided with test case interface and automatic test platform interface in the embodiment of the invention, automatic test platform and test case are undertaken alternately by described interface, wherein test case adopts dynamic programming language to edit, can be according to user's demand editor different test cases, automatic test platform automatically performs described test case, thereby satisfies user's testing requirement.
Embodiment three:
With reference to Fig. 7, used the structured flowchart of the embodiment of the invention three described a kind of communication equipment test macros, described system can comprise: module 700, creation module 702, use-case acquisition module 704 are set, preserve module 706, information acquisition module 708, choose module 710, add module 712, Executive Module 714, display module 716 and generation module 718.
Wherein,
Module 700 is set, is used to set in advance automatic test platform, and editor's test case;
Wherein, described test case provides the test case interface, and described automatic test platform provides the automatic test platform interface.
In the embodiment of the invention, the described module 700 that is provided with can be used the described test case of dynamic programming language editor.
Creation module 702 is used for creating the use-case library directory of automatic test platform after editor's test case, and described test case is saved under the described use-case library directory;
Use-case acquisition module 704 is used for when needs refresh test use-case, and automatic test platform obtains the test case of new edited by described test case interface, perhaps obtains the test case after the test case under the described use-case library directory made amendment;
Preserve module 706, be used for the test case or the amended test case of described new edited are saved under the described use-case library directory;
Information acquisition module 708 is used for obtaining by described test case interface the information of test case, and receives the configuration information at described test case;
Wherein, the information of described test case comprises test case file, and the attribute of test case and parameter information, and described configuration information comprises the value of the parameter of the test case that this test is used.
Described information acquisition module 708 can comprise:
Load submodule, be used for by described test case interface dynamic load test case file;
Because in the embodiment of the invention described test case is kept under the use-case library directory, therefore, described loading submodule can load test case file under described use-case library directory.
Obtain submodule, be used to obtain and load successful test case, and the attribute of described test case and parameter information, and with described test case, and the attribute of described test case and parameter information record during test case tabulates.
Choose module 710, be used for, from described test case tabulation, choose the test case that this test is used at this test;
Add module 712, be used for the test case of choosing is added to the cycle tests of this test, wherein, comprise one or more test cases in the described cycle tests;
Executive Module 714 is used for carrying out described test case according to described configuration information, and the acceptance test use-case is by the test execution information of the test case of described automatic test platform interface output;
Described Executive Module 714 can comprise:
Transmit submodule, be used for, when carrying out a cycle tests, the value of the parameter of test case in the described cycle tests is passed to the test case of correspondence by described test case interface at this test;
Implementation sub-module is used for carrying out successively according to the value of described parameter the test case of described cycle tests.
Wherein, described test execution information comprises the execution result of test case, can also comprise information such as test log, and the embodiment of the invention is not limited this.
Display module 716 is used for the execution result of described test case being shown or being saved in file;
Generation module 718 is used for after the test case of described cycle tests executes, the execution result of statistical test use-case, and generate test report, described test report is shown.
Need to prove at last, above-mentioned creation module 702, use-case acquisition module 704, preserve module 706, information acquisition module 708, choose module 710, add module 712, Executive Module 714, display module 716 and generation module 718 and can be the module in the automatic test platform, finish the test process of communication equipment by automatic test platform.
The embodiment of the invention can set in advance automatic test platform, and editor's test case of meeting consumers' demand, and, described test case provides the test case interface, described automatic test platform provides the automatic test platform interface, automatic test platform obtains the information of test case by described test case interface, and reception is at the configuration information of described test case, carry out described test case according to described configuration information, the last test use-case is by the test execution information of described automatic test platform interface output test case.Utilize the described test case of dynamic programming language editor in the embodiment of the invention, can edit according to user's demand, described automatic test platform can load described test case by the test case interface, therefore, the automatic test platform of the embodiment of the invention no longer is limited to the operative norm test case, flexibility is stronger, can satisfy user's testing requirement.
For system embodiment, because it is similar substantially to method embodiment, so description is fairly simple, relevant part gets final product referring to the part explanation of method embodiment.
In sum, described communication equipment method of testing of the embodiment of the invention and system have the following advantages at least:
(1) utilizes dynamic programming language development and testing use-case, because easy and the ease for use of dynamic programming language make and can develop the test case that is applicable to various products fast, thereby carry out the test of specific objective;
(2) interface is simple, and test case interface and automatic test platform interface are provided, as long as abide by certain interface specification, just can realize between test case and the automatic test platform alternately;
(3) because dynamic programming language has with the same strong functions of static programming language, therefore can use dynamic programming language control subtest instrument and equipment, thereby realize real automatic test.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and what each embodiment stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.
The embodiment of the invention can be described in the general context of the computer executable instructions of being carried out by computer, for example program module.Usually, program module comprises the routine carrying out particular task or realize particular abstract, program, object, assembly, data structure or the like.Also can in distributed computing environment (DCE), put into practice the present invention, in these distributed computing environment (DCE), by by communication network connected teleprocessing equipment execute the task.In distributed computing environment (DCE), program module can be arranged in the local and remote computer-readable storage medium that comprises memory device.
For aforesaid each method embodiment, for simple description, so it all is expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not subjected to the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in the specification all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
At last, also need to prove, in this article, relational terms such as first and second grades only is used for an entity or operation are made a distinction with another entity or operation, and not necessarily requires or hint and have the relation of any this reality or in proper order between these entities or the operation.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby make and comprise that process, method, commodity or the equipment of a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or also be included as this process, method, commodity or equipment intrinsic key element.Do not having under the situation of more restrictions, the key element that limits by statement " comprising ... ", and be not precluded within process, method, commodity or the equipment that comprises described key element and also have other identical element.
More than to a kind of communication equipment method of testing provided by the present invention and system, be described in detail, used specific case herein principle of the present invention and execution mode 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 (13)

1. a communication equipment method of testing is characterized in that, comprising:
Set in advance automatic test platform, and editor's test case; Wherein, described test case provides the test case interface, and described automatic test platform provides the automatic test platform interface;
Automatic test platform obtains the information of test case by described test case interface, and receives the configuration information at described test case;
Automatic test platform is carried out described test case according to described configuration information, and test case is by the test execution information of described automatic test platform interface output test case.
2. method according to claim 1 is characterized in that the information of described test case comprises test case file, and the attribute of test case and parameter information,
Described automatic test platform obtains the information of test case by described test case interface, comprising:
Automatic test platform is by described test case interface dynamic load test case file;
Obtain and load successful test case, and the attribute of described test case and parameter information, and with described test case, and the attribute of described test case and parameter information record during test case tabulates.
3. method according to claim 2 is characterized in that, also comprises:
At this test, from described test case tabulation, choose the test case that this test is used;
The test case of choosing is added in the cycle tests of this test, wherein, comprise one or more test cases in the described cycle tests.
4. method according to claim 3 is characterized in that, described configuration information comprises: the value of the parameter of the test case that this test is used,
Described automatic test platform is carried out described test case according to described configuration information, comprising:
At this test, when carrying out a cycle tests, automatic test platform passes to the value of the parameter of test case in the described cycle tests by described test case interface the test case of correspondence;
Carry out test case in the described cycle tests successively according to the value of described parameter.
5. method according to claim 4 is characterized in that described test execution information comprises the execution result of test case, and described method also comprises:
Automatic test platform shows the execution result of described test case or is saved in file;
After the test case in the described cycle tests executes, the execution result of statistical test use-case, and generate test report, described test report is shown.
6. method according to claim 1 is characterized in that, after editor's test case, also comprises:
Create the use-case library directory of automatic test platform, and described test case is saved under the described use-case library directory;
When needs refresh test use-case, automatic test platform obtains the test case of new edited by described test case interface, perhaps obtains the test case after the test case under the described use-case library directory made amendment;
The test case or the amended test case of described new edited are saved under the described use-case library directory.
7. method according to claim 1 is characterized in that, described editor's test case comprises:
Use dynamic programming language editor test case.
8. a communication equipment test macro is characterized in that, comprising:
Module is set, is used to set in advance automatic test platform, and editor's test case; Wherein, described test case provides the test case interface, and described automatic test platform provides the automatic test platform interface;
The information acquisition module is used for obtaining by described test case interface the information of test case, and receives the configuration information at described test case;
Executive Module is used for carrying out described test case according to described configuration information, and the acceptance test use-case is by the test execution information of the test case of described automatic test platform interface output.
9. system according to claim 8 is characterized in that the information of described test case comprises test case file, and the attribute of test case and parameter information,
Described information acquisition module comprises:
Load submodule, be used for by described test case interface dynamic load test case file;
Obtain submodule, be used to obtain and load successful test case, and the attribute of described test case and parameter information, and with described test case, and the attribute of described test case and parameter information record during test case tabulates.
10. system according to claim 9 is characterized in that, also comprises:
Choose module, be used for, from described test case tabulation, choose the test case that this test is used at this test;
Add module, be used for the test case of choosing is added to the cycle tests of this test, wherein, comprise one or more test cases in the described cycle tests.
11. system according to claim 10 is characterized in that, described configuration information comprises: the value of the parameter of the test case that this test is used,
Described Executive Module comprises:
Transmit submodule, be used for, when carrying out a cycle tests, the value of the parameter of test case in the described cycle tests is passed to the test case of correspondence by described test case interface at this test;
Implementation sub-module is used for carrying out successively according to the value of described parameter the test case of described cycle tests.
12. system according to claim 11 is characterized in that, described test execution information comprises the execution result of test case, and described system also comprises:
Display module is used for the execution result of described test case being shown or being saved in file;
Generation module is used for after the test case of described cycle tests executes, the execution result of statistical test use-case, and generate test report, described test report is shown.
13. system according to claim 8 is characterized in that, also comprises:
Creation module is used for creating the use-case library directory of automatic test platform after editor's test case, and described test case is saved under the described use-case library directory;
The use-case acquisition module is used for when needs refresh test use-case, and automatic test platform obtains the test case of new edited by described test case interface, perhaps obtains the test case after the test case under the described use-case library directory made amendment;
Preserve module, be used for the test case or the amended test case of described new edited are saved under the described use-case library directory.
CN201310092634XA 2013-03-21 2013-03-21 Communication equipment testing method and system Pending CN103220186A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310092634XA CN103220186A (en) 2013-03-21 2013-03-21 Communication equipment testing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310092634XA CN103220186A (en) 2013-03-21 2013-03-21 Communication equipment testing method and system

Publications (1)

Publication Number Publication Date
CN103220186A true CN103220186A (en) 2013-07-24

Family

ID=48817670

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310092634XA Pending CN103220186A (en) 2013-03-21 2013-03-21 Communication equipment testing method and system

Country Status (1)

Country Link
CN (1) CN103220186A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105974297A (en) * 2016-04-12 2016-09-28 烽火通信科技股份有限公司 Virtual test instrument capable of realizing efficient testing and test method
CN107733743A (en) * 2017-11-10 2018-02-23 中国电子科技集团公司第四十研究所 Realize the method and system that industry ethernet data are tested automatically
CN109522213A (en) * 2018-10-09 2019-03-26 天维讯达(北京)科技有限公司 A kind of test method and device based on customized test script

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1777127A (en) * 2005-12-08 2006-05-24 中国移动通信集团公司 Protocol conformance measuring device and method
CN101739334A (en) * 2008-11-21 2010-06-16 上海科梁信息工程有限公司 Automatic testing method of embedded software
CN102014016A (en) * 2010-08-31 2011-04-13 北京邮电大学 System and method for testing defects of network protocol
CN102662828A (en) * 2012-03-14 2012-09-12 浪潮(北京)电子信息产业有限公司 A method and device for achieving software automatic testing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1777127A (en) * 2005-12-08 2006-05-24 中国移动通信集团公司 Protocol conformance measuring device and method
CN101739334A (en) * 2008-11-21 2010-06-16 上海科梁信息工程有限公司 Automatic testing method of embedded software
CN102014016A (en) * 2010-08-31 2011-04-13 北京邮电大学 System and method for testing defects of network protocol
CN102662828A (en) * 2012-03-14 2012-09-12 浪潮(北京)电子信息产业有限公司 A method and device for achieving software automatic testing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
毛颖: "测试用例自动生成系统研究与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》, 10 March 2007 (2007-03-10) *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105974297A (en) * 2016-04-12 2016-09-28 烽火通信科技股份有限公司 Virtual test instrument capable of realizing efficient testing and test method
CN105974297B (en) * 2016-04-12 2019-08-27 烽火通信科技股份有限公司 It is a kind of to realize the virtual test instrument and test method efficiently tested
CN107733743A (en) * 2017-11-10 2018-02-23 中国电子科技集团公司第四十研究所 Realize the method and system that industry ethernet data are tested automatically
CN109522213A (en) * 2018-10-09 2019-03-26 天维讯达(北京)科技有限公司 A kind of test method and device based on customized test script

Similar Documents

Publication Publication Date Title
CN107273286B (en) Scene automatic test platform and method for task application
CN107644286B (en) Workflow processing method and device
CN100377109C (en) Method for completing product automation test utilizing test kit
CN109670951B (en) Block chain intelligent contract debugging and publishing method and system
CN103186457A (en) Method and device for automatically generating test case
CN104679488A (en) Flow path customized development platform and method
CN112162915A (en) Test data generation method, device, equipment and storage medium
CN110990274A (en) Data processing method, device and system for generating test case
CN103631719A (en) Web automated testing method and device
CN108197024A (en) Built-in browser adjustment method, debugging terminal and computer readable storage medium
CN103220186A (en) Communication equipment testing method and system
CN101859246A (en) System and method for converting corresponding scripts according to different browsers
CN115114146A (en) Interface test method, device, equipment and storage medium
CN109284222B (en) Software unit, project testing method, device and equipment in data processing system
CN110069414A (en) Regression testing method and system
CN114764296A (en) Machine learning model training method and device, electronic equipment and storage medium
CN103186384A (en) Business-component-oriented software designing and analyzing system and using method thereof
CN114116664B (en) Database table-building sentence processing method, device, computer equipment and storage medium
CN104615539A (en) Measurement parameter processing method and system
Stempkovsky et al. Formal description of digital control system operation and its use in designing
CN111338966B (en) Big data processing detection method and device of data source table
CN115033434A (en) Kernel performance theoretical value calculation method and device and storage medium
CN114238072A (en) HIL requirement design method, HIL requirement design device, computer equipment and storage medium
CN113377368A (en) Project development method, device, server and storage medium
CN110968342B (en) Version comparison method, device and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20130724

RJ01 Rejection of invention patent application after publication