CN1909481A - Method for realizing separation of testing appliance and its interface with engine - Google Patents

Method for realizing separation of testing appliance and its interface with engine Download PDF

Info

Publication number
CN1909481A
CN1909481A CN 200510036327 CN200510036327A CN1909481A CN 1909481 A CN1909481 A CN 1909481A CN 200510036327 CN200510036327 CN 200510036327 CN 200510036327 A CN200510036327 A CN 200510036327A CN 1909481 A CN1909481 A CN 1909481A
Authority
CN
China
Prior art keywords
testing tool
interface
module
engine
testing
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
CN 200510036327
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN 200510036327 priority Critical patent/CN1909481A/en
Publication of CN1909481A publication Critical patent/CN1909481A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention relates to a method for separating testing tool, interface and engine, which comprises: a testing tool interface, a testing tool engine and relative setting document, wherein the function modules of testing tool relative to the testing are dynamically loaded, which can be set by the user demand, without developed independently, to shorten the develop period; the operation of testing function units are controlled and managed by interface program, with superior language; the testing tool engine is realized by general script technique, which can extend and transplant on the testing system.

Description

The implementation method that separate with engine at a kind of testing tool and interface thereof
Technical field
The present invention relates to the network communication apparatus measuring technology, in particular, a kind of method that is used for realizing the network communication apparatus test macro.
Background technology
The tool kind that network communication apparatus test is adopted is a lot, and the interface of instrument is substantially similar, but funtion part difference to some extent.It all is specific purpose tool basically that present network communication apparatus is tested employed commercial testing tool, and its fixing interface and test function is arranged, and the user could grasp its use main points through training or after learning.When a new function need be tested, commercial testing tool manufacturer can release a kind of new testing tool again, and the user ancillary cost time is learnt new software interface characteristic again.
Also often use the universal test instrument in the test of network communication apparatus, such testing tool can expand test function by compile script.User's GPRS the technology of writing of script, just can develop the script that oneself needs, and satisfy the test of difference in functionality to a certain extent.But other parts of such script and testing tool are combined closely, so can be subject to many limitations, for example certain producer of testing software is exclusive often for its script syntax format, therefore do not have good transplantability and autgmentability.
Also popular a kind of technology is exactly to adopt script to realize the automatization test system of network communication apparatus in the network communication apparatus field tests, these class methods adopt Perl usually, generic script language such as Python, the key function used in the test process expanded function with script is realized, utilize statements such as the branch of script and circulation to realize each test cases then, an automatic test external member is formed in the set of a plurality of test cases, move this automatic test external member by order line or simple GUI mode then, reach the purpose of test.This method is eager to excel than said method aspect autgmentability, but script is more weak aspect the realization interface, make a good operation interface big difficulty is arranged, and because some limitation of script itself, more weak etc. as not supporting multithreading or degree of support, adopt this method to realize the control of script and move dumb by the interface.
Therefore, there is defective in prior art, and awaits improving and development.High-level language (as C/C++, VB, C#, Delphi etc.) is relatively having superiority aspect the development interface program, and utilize script to realize that test function unit (the minimum component units of testing tool test function) is more convenient, so method that adopts testing tool interface and testing engine to be separated, utilize the general interface program part of high-level language exploitation, utilize script to come the testing engine part of implementation tool, the method can not only shorten the construction cycle of testing tool, and helps the rapid expansion of testing tool test function.
Summary of the invention
The implementation method that the object of the present invention is to provide a kind of testing tool and interface thereof and engine to be separated.
A kind of testing tool, it comprises: a testing tool interface, a testing tool engine and a configuration file;
Described testing tool interface includes: main interface, configuration module, administration module and internal communication module;
Described main interface is used for fixing and shows the General Purpose Interface part;
Described configuration module is used for according to described configuration file dynamic module being carried out dynamic load;
Described administration module is used to finish the management of test function unit, the operation of test function unit, and the management function of each module of testing tool software inhouse;
Described internal communication module is used for inner each module of testing tool and the data communication of inter-module and the function of information exchange.
Described testing tool, wherein, described testing tool engine comprises: testing engine module and test function module;
Described testing engine module is used for finishing the key characteristic function of test process, comprises the value-added tax function of required various resources banks in the test process, and the control hardware interface sends and accept test data function, test data statistical function;
Described test function module is made up of a plurality of relevant test function unit, and described test function unit is used to finish a test function of testing tool.
Described testing tool, wherein, described main interface comprises: main viewing area, main menu, mother-tool bar and status bar.
Described testing tool, wherein, described configuration module comprises: dynamic menu, dynamic tool bar and dynamic dialog box.
The implementation method that a kind of interface of testing tool and engine are separated, it may further comprise the steps:
A), adopt high-level language to realize the testing tool interface;
B), the function interface with testing tool engine key characteristic function is extended to the script command form in script;
C), adopt script to realize test function unit and test function module;
D), write the testing tool configuration file according to user's demand;
E), adopt multithreading and cross-thread mechanics of communication etc. to be combined together in testing tool interface and testing engine.
The implementation method that the interface of described testing tool and engine are separated, wherein, the testing tool master interface at described testing tool interface adopts high-level language to realize.
The implementation method that the interface of described testing tool and engine are separated, wherein, the configuration module at described testing tool interface adopts high-level language to realize.
The implementation method that the interface of described testing tool and engine are separated, wherein, the administration module at described testing tool interface adopts high-level language to realize.
The implementation method that the interface of described testing tool and engine are separated, wherein, the internal communication module at described testing tool interface adopts high-level language to realize.
Effect of the present invention is as follows: functional module relevant with test in the testing tool all is a dynamic load, can not need to develop separately more easily according to the user's request customization, has shortened the new function development cycle.Secondly test function unit and operation thereof are controlled and management by interface program, and realize that this part function is to adopt the high-level language mode, and the script mode is many flexibly compared with using.The last test engine partly realized by the generic script technology, so be easy to test macro is expanded and transplanted.
Description of drawings
Fig. 1 is testing tool of the present invention and interface and engine isolating construction schematic diagram;
Fig. 2 is the schematic flow sheet of the present invention according to dynamic modules such as configuration file loading dynamic menus;
Communication schematic diagram when Fig. 3 is testing tool of the present invention operation.
Embodiment
Below in conjunction with accompanying drawing, comparatively detailed explanation is carried out in preferred embodiment of the present invention.
The method that separate with engine at testing tool of the present invention and interface thereof, use script technology development and testing engine modules and test function module earlier, use high-level language development and testing tools interfaces then, by module dynamic load technology, multithreading and cross-thread mechanics of communication etc. both are combined together at last.
Testing tool of the present invention, it comprises: a testing tool interface, a testing tool engine and a configuration file; Described testing tool interface includes: main interface, configuration module, administration module and internal communication module; Described testing tool engine comprises: testing engine module and test function module.
Be described in further detail below in conjunction with the enforcement of accompanying drawing technical scheme of the present invention:
As shown in Figure 1, testing tool of the present invention and interface thereof and engine isolating construction comprise two parts, testing tool interface and testing tool engine:
At first adopt high-level language (is example with VC) to realize the main interface at testing tool interface, it is used for fixing and shows the General Purpose Interface part, and main interface comprises following basic element:
1. main viewing area, log information that produces in the display routine running and test function unit information;
2. main menu, the menu option that testing tool is commonly used, the part that changes with test function not is as menus commonly used such as file, editor, view and windows.
3. the mother-tool bar is corresponding with the function of main menu, belongs to the basic function part of testing tool, does not also change with test function.
4. status bar shows the state that present procedure moves, and belongs to the basic function part of testing tool, and its content displayed changes with the state of program running.
Described testing tool, wherein, described configuration module comprises: dynamic menu, dynamic tool bar and dynamic dialog box.
Configuration module can be called after finishing initial work in main interface, according to described configuration file dynamic module is carried out dynamic load, to finish the loading work of each module relevant, as shown in Figure 2 with test function:
Step 1: reading configuration file information, comprised the information relevant in the configuration file with test function, as the attribute of the required interface that passes through interface operation of test function etc., the testing tool interface program can generate corresponding dynamic menu items and dynamic tool bar etc. according to these information;
Step 2: when running into that configuration file does not exist or when reading the situation of failure, interface program then enters abort branch, the prompting user imports Profile Path and filename, and the user reloads the module relevant with test function after determining, otherwise quits a program;
Step 3: the initialization procedure that just enters the testing engine module after the dynamic menu at interface and dynamic tool bar load successfully, this process comprises and is written into needed all resources in the test process, if initialization is failed then entered abort branch, allow the user select testing engine module and test function module;
Step 4: after testing engine module and the success of test function module loading, the testing tool interface shows information such as test function unit title and the description of test function unit according to the test function module in the interface display district;
Step 5: in elected during a test function unit and when hit testing parameter configuration menu or tool bar, interface program can be automatically dynamically produces corresponding the configuration dialog box according to the specifying information of this test function unit.
Described administration module is used to finish the management of test function unit, the operation of test function unit, and the management function of each module of testing tool software inhouse.
Described internal communication module is used to finish inner each module of testing tool and the data communication of inter-module and the function of information exchange.
Described testing engine module is used for finishing the key characteristic function of test process, comprises the value-added tax function of required various resources banks in the test process, and the control hardware interface sends and accept test data function, test data statistical function.
Described test function module is made up of a plurality of relevant test function unit, and described test function unit is used to finish a test function of testing tool.
Testing engine module in the testing tool engine and test function unit are to adopt the generic script technology to realize, are example with TCL (Tool Command Language) language below, roughly are divided into following three steps:
Step 1: the interface function of testing engine module key characteristic function is extended to command forms in the TCL language;
Step 2: according to being write test script, finish the cycle tests of a function point with the TCL language, i.e. a test function unit by the test request of brake;
Step 3: a plurality of test functions unit is organized into the test function module according to certain mode, and sets up index.
What testing tool adopted on stream is isolation technics, but be a complete system when submitting to the end user and using, so the technology that interface and engine partial fusion are got up also is the requisite part of the present invention, the step of fusion is as follows:
Step 1: in interface program, call the Windows function creation and carry out subprocess, and in carrying out subprocess, call the TCL interpreter program and carry out test script;
Step 2: in interface program, call a plurality of threads of Windows function creation, finish by the Windows pipe-line communication and carry out subprocess and the interregional information interaction of interface display;
Step 3: adopt the windows messaging communication mechanism that each running state information of carrying out subprocess is passed to main interface processing.
Internal communication schematic diagram in the testing tool running is controlled the internal communication module by the viewing area at main interface as shown in Figure 3, with the test function unit in the operation test function module; The result that the test function unit is moved is by the viewing area of internal communication module feedback at main interface.
The implementation method that a kind of interface of testing tool and engine are separated, it may further comprise the steps:
A), adopt high-level language to realize the testing tool interface;
B), the function interface with testing tool engine key characteristic function is extended to the script command form in script;
C), adopt script to realize test function unit and test function module;
D), write the testing tool configuration file according to user's demand;
E), adopt multithreading and cross-thread mechanics of communication etc. to be combined together in testing tool interface and testing engine.
The implementation method that the interface of described testing tool and engine are separated, wherein, the testing tool master interface at described testing tool interface adopts high-level language to realize.
The implementation method that the interface of described testing tool and engine are separated, wherein, the configuration module at described testing tool interface adopts high-level language to realize.
The implementation method that the interface of described testing tool and engine are separated, wherein, the administration module at described testing tool interface adopts high-level language to realize.
The implementation method that the interface of described testing tool and engine are separated, wherein, the internal communication module at described testing tool interface adopts high-level language to realize.
In the middle of actual test process, the hardware interface of testing tool will be set up physical connection by modes such as netting twine, optical fiber or telephone wire and tested network communication apparatus, move the testing tool that the present invention describes then, carry out relevant test function and finish corresponding test assignment.
The above only is preferred embodiment of the present invention; be not to be used for limiting the present invention; any people who is familiar with present technique and field thereof; in not breaking away from spirit of the present invention and category; may make various modifications or change, so protection scope of the present invention should be as the criterion with claims scope required for protection.

Claims (9)

1, a kind of testing tool is characterized in that, comprising: a testing tool interface, a testing tool engine and a configuration file;
Described testing tool interface includes: main interface, configuration module, administration module and internal communication module;
Described main interface is used for fixing and shows the General Purpose Interface part;
Described configuration module is used for according to described configuration file dynamic module being carried out dynamic load;
Described administration module is used to finish the management of test function unit, the operation of test function unit, and the management function of each module of testing tool software inhouse;
Described internal communication module is used for inner each module of testing tool and the data communication of inter-module and the function of information exchange.
2, testing tool according to claim 1 is characterized in that, described testing tool engine comprises: testing engine module and test function module;
Described testing engine module is used for finishing the key characteristic function of test process, comprises the value-added tax function of required various resources banks in the test process, and the control hardware interface sends and accept test data function, test data statistical function;
Described test function module is made up of a plurality of relevant test function unit, and described test function unit is used to finish a test function of testing tool.
3, testing tool according to claim 1 is characterized in that, described main interface comprises: main viewing area, main menu, mother-tool bar and status bar.
4, testing tool according to claim 1 is characterized in that, described configuration module comprises: dynamic menu, dynamic tool bar and dynamic dialog box.
5, the implementation method that is separated of a kind of interface of testing tool and engine, it may further comprise the steps:
A), adopt high-level language to realize the testing tool interface;
B), the function interface with testing tool engine key characteristic function is extended to the script command form in script;
C), adopt script to realize test function unit and test function module;
D), write the testing tool configuration file according to user's demand;
E), adopt multithreading and cross-thread mechanics of communication etc. to be combined together in testing tool interface and testing engine.
6, the implementation method that is separated of the interface of testing tool according to claim 5 and engine is characterized in that, the testing tool master interface at described testing tool interface adopts high-level language to realize.
7, the implementation method that is separated of the interface of testing tool according to claim 5 and engine is characterized in that, the configuration module at described testing tool interface adopts high-level language to realize.
8, the implementation method that is separated of the interface of testing tool according to claim 5 and engine is characterized in that, the administration module at described testing tool interface adopts high-level language to realize.
9, the implementation method that is separated of the interface of testing tool according to claim 5 and engine is characterized in that, the internal communication module at described testing tool interface adopts high-level language to realize.
CN 200510036327 2005-08-05 2005-08-05 Method for realizing separation of testing appliance and its interface with engine Pending CN1909481A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200510036327 CN1909481A (en) 2005-08-05 2005-08-05 Method for realizing separation of testing appliance and its interface with engine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200510036327 CN1909481A (en) 2005-08-05 2005-08-05 Method for realizing separation of testing appliance and its interface with engine

Publications (1)

Publication Number Publication Date
CN1909481A true CN1909481A (en) 2007-02-07

Family

ID=37700476

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200510036327 Pending CN1909481A (en) 2005-08-05 2005-08-05 Method for realizing separation of testing appliance and its interface with engine

Country Status (1)

Country Link
CN (1) CN1909481A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101833465A (en) * 2010-04-23 2010-09-15 中国科学院声学研究所 Embedded system supporting dynamic loading operation of application programs
CN101398778B (en) * 2007-09-29 2011-09-21 中兴通讯股份有限公司 Automatic integration test method
CN111104154A (en) * 2018-10-25 2020-05-05 长沙博为软件技术股份有限公司 Method for realizing script function extension and customization of big data acquisition system based on data processing service
CN112069007A (en) * 2020-08-31 2020-12-11 武汉市豪迈电力自动化技术有限责任公司 QML (quality metric language) -based implementation method and device of handheld universal test system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101398778B (en) * 2007-09-29 2011-09-21 中兴通讯股份有限公司 Automatic integration test method
CN101833465A (en) * 2010-04-23 2010-09-15 中国科学院声学研究所 Embedded system supporting dynamic loading operation of application programs
CN101833465B (en) * 2010-04-23 2013-03-13 中国科学院声学研究所 Embedded system supporting dynamic loading operation of application programs
CN111104154A (en) * 2018-10-25 2020-05-05 长沙博为软件技术股份有限公司 Method for realizing script function extension and customization of big data acquisition system based on data processing service
CN112069007A (en) * 2020-08-31 2020-12-11 武汉市豪迈电力自动化技术有限责任公司 QML (quality metric language) -based implementation method and device of handheld universal test system

Similar Documents

Publication Publication Date Title
CN1304941C (en) Apparatus and method for autonomic hardware assisted thread stack tracking
CN100401265C (en) Keyword-driven automatic testing system and method
CN101221530B (en) Method for automatically leading in test cases
CN1254879A (en) Back-and-forth method and device for software design
CN101266570B (en) Software system test method and apparatus
CN1702653A (en) Query to task mapping
CN106648682B (en) A kind of dynamic data general framework of embedded system exploitation
CN1877543A (en) Data-driven automatic testing system and method
CN1949185A (en) Parallel adjusting and performance analyzing method of supporting multi-language multi-platform under isomerized environment
CN1909481A (en) Method for realizing separation of testing appliance and its interface with engine
CN112148788A (en) Data synchronization method and system for heterogeneous data source
CN101951529A (en) Method and system for testing functions of set top box
CN1641601A (en) Software unit measuring method
CN106055325A (en) Establishing method of service for supporting concurrent operation of multiple systems
CN107092559A (en) Test platform middleware, test system and method based on Jmeter
US20070100632A1 (en) Speaker-dependent voice recognition method and voice recognition system
CN1879027A (en) Test apparatus and testing method
CN102446167B (en) A kind of logic-based template is to the method and apparatus of complex characters string logical process
CN100346315C (en) Three dimension mode construction software automatic testing method based on script
CN1976320A (en) Data access control method and system
CN1912848A (en) Method of automatic positioning for error in compiler
CN1788534A (en) Component mounting sequence optimizing method, component mounting device, program for executing component mounting sequence optimizing method, and recording medium in which the program is recorded
CN1945527A (en) SERVER edition code generation system capable of realizing code reutilizization
CN1851695A (en) Central database establishing method for keyword driving
CN106293862B (en) A kind of analysis method and device of expandable mark language XML data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication