CN101251824B - Method for testing public objects request proxy structure and tools - Google Patents

Method for testing public objects request proxy structure and tools Download PDF

Info

Publication number
CN101251824B
CN101251824B CN2008100880877A CN200810088087A CN101251824B CN 101251824 B CN101251824 B CN 101251824B CN 2008100880877 A CN2008100880877 A CN 2008100880877A CN 200810088087 A CN200810088087 A CN 200810088087A CN 101251824 B CN101251824 B CN 101251824B
Authority
CN
China
Prior art keywords
measurand
testing tool
testing
test
idl
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN2008100880877A
Other languages
Chinese (zh)
Other versions
CN101251824A (en
Inventor
徐振良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN2008100880877A priority Critical patent/CN101251824B/en
Publication of CN101251824A publication Critical patent/CN101251824A/en
Application granted granted Critical
Publication of CN101251824B publication Critical patent/CN101251824B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method for testing a common object request broker structure, comprising the following steps that: step S102, a testing tool sets a compile option to select an interface definition language file of a tested object to be compiled; step S104, the testing tool compiles the selected interface definition language file, connects a naming service of the tested object and logs on the tested object; step S106, the testing tool acquires an administrator supported by the tested object, and inputs a corresponding test parameter to the tested object to test the tested object according to the acquired administrator; step S108, a result verification module receives a testing output of the tested object, and compares the testing output with reference data to generate a testing result. Moreover, the invention also discloses the testing tool for testing the common object request broker structure. Through the technical proposal of the invention, the testing efficiency and a testing coverage rate can be effectively improved, cost in a testing and management can be reduced, and the testing can be more directly and flexibly assembled.

Description

The method and the testing tool of test Common Object Request Broker Architecture
Technical field
The present invention relates to the communications field, and especially, relate to a kind of method and testing tool of testing Common Object Request Broker Architecture.
Background technology
(Common Object Request BrokerArchitecture CORBA) introduces for the realization Distributed Calculation Common Object Request Broker Architecture.CORBA provides unified standard for the exploitation distributed object system, and this standard has nothing to do with concrete platform, language and manufacturer.
The CORBA inner structure is divided into three parts, that is, core Object Request Broker (Object Request Broker, ORB), the client realizes that (IDL Stub) and object realize (IDL Skeleton).ORB is a kind of mechanism that client applications can call the far-end object method.IDL (IDL (Interface Definition Language)) Stub (stake) and IDL Skeleton (skeleton) compile generation by IDL (Interface Definition Language) compiler (IDL Complier) automatically according to defined IDL.
IDL is another key concept in the CORBA system.ORB can make CORBA accomplish and platform independence, and IDL accomplishes CORBA and language independent.The core of IDL is that object is realized being separated with object interface, between using, sets up by client's application and service device the descriptive language of a standard, that may cause when operation that object type, object interface, the object that being described in needs in the application program to use supported and operation is unusual, with concrete implementation language and platform independence.
At present, the main method of testing of CORBA is the interface detection instrument in the client write specialized, and the accuracy of corba interface information is tested, and main means of testing is a manual test.Because it is very huge to get access to the quantity of information of corba interface from the interface detection instrument, test loaded down with trivial details and be very easy to make mistakes, there is certain test for leaks.
There is following shortcoming in above-mentioned existing method of testing: the first, and test input parameter modification process complexity is unfavorable for various combination parameters are tested, and testing efficiency is lower; The second, the method for IDL definition is more usually, and the client neither one is to the traversal presentation mode of all define methods, and test coverage is difficult to be guaranteed; The 3rd, test process and test result are difficult to preserve, because the desk checking test result that contains much information very easily makes mistakes, are unfavorable for realizing the robotization of testing; The 4th, because client can't represent the function structure that defines among the IDL, make the system testing personnel deep inadequately to definition and the interface known of IDL.At present, the technical scheme that can address the above problem is proposed as yet.
Summary of the invention
Consider the problems referred to above and make the present invention, for this reason, fundamental purpose of the present invention is to provide a kind of method and testing tool of testing Common Object Request Broker Architecture, and the existing testing efficiency of method of testing that has CORBA in the correlation technique now is lower, test coverage is poor, can't realize and test inadequately problem intuitively automatically to solve.
According to one embodiment of present invention, provide a kind of method of testing Common Object Request Broker Architecture, be used for realizing test measurand by testing tool, verification module as a result.
This method comprises: step S102, and testing tool is provided with compile option, with the IDL (Interface Definition Language) file to be compiled of selected measurand; Step S104, testing tool compiles selected IDL (Interface Definition Language) file, connects the name service of measurand and lands measurand; Step S106, testing tool obtain the supvr that measurand is supported, and according to the supvr who obtains corresponding test parameter are inputed to measurand so that measurand is tested; Step S108, verification module as a result receives the test output of measurand, and will test output and compare with the generation test result with reference data.
In addition, this method step S102 further comprises: the interface repository of configuration testing instrument, and the compiler that compile option, IDL (Interface Definition Language) file and docking port definitional language file compile is set in the browser of interface repository.
Wherein, in step S104, the processing that testing tool lands measurand is specially: testing tool is to measurand input validation information; Under the situation that measurand is passed through according to the authorization information judgement checking of input, testing tool lands measurand.
In addition, further comprise among the step S106: testing tool is handled carrying out parametrization to the test input of measurand input, obtains test parameter; The supvr that testing tool obtains obtains the function under the supvr, and call function is carried out test parameter so that measurand is tested.
In addition, in step S106, before test parameter is inputed to measurand, further comprise: testing tool presents the architecture of IDL (Interface Definition Language) of the function that the supvr supported of the measurand of obtaining.
According to another embodiment of the invention, provide a kind of testing tool of testing Common Object Request Broker Architecture.This testing tool comprises: driver module is used to be provided with compile option, selected IDL (Interface Definition Language) file is compiled, connects the name service of measurand and lands measurand; Present module, the architecture of the IDL (Interface Definition Language) that be used to obtain function that supvr that measurand supports and supvr support, presents function and the test parameter input format of definite function; Execution module is used to read the test parameter of input and calls respective function, obtains and call the result.
In addition, driver module can also be provided with compile option, and the compiler that compiles of selected IDL (Interface Definition Language) file and docking port definitional language file in the browser of the interface repository of the testing tool that pre-sets.
Wherein, driver module is to measurand input validation information; Under the situation that measurand is passed through according to the authorization information judgement checking of input, driver module lands measurand.
By technique scheme of the present invention, can effectively improve testing efficiency and test coverage, reduction test and handling cost, test more intuitively be reached flexibly can join.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the process flow diagram according to the method for the test Common Object Request Broker Architecture of the inventive method embodiment;
Fig. 2 is the block diagram of realization according to the test macro of the method for the test Common Object Request Broker Architecture of the inventive method embodiment;
Fig. 3 is the process flow diagram according to the processing example of the test Common Object Request Broker Architecture method of the inventive method embodiment; And
Fig. 4 is the block diagram according to the testing tool of the test Common Object Request Broker Architecture of apparatus of the present invention embodiment; And
Fig. 5 is the illustrative view of functional configuration according to the testing tool of the test Common Object Request Broker Architecture of apparatus of the present invention embodiment.
Embodiment
Method embodiment
In the present embodiment, provide a kind of method of testing Common Object Request Broker Architecture, be used for realizing test measurand by testing tool, verification module as a result.Fig. 1 is the process flow diagram according to the method for the test Common Object Request Broker Architecture of embodiment.
As shown in Figure 1, this method may further comprise the steps: step S102, and testing tool is provided with compile option, with the IDL (Interface Definition Language) file to be compiled of selected measurand; Step S104, testing tool compiles selected IDL (Interface Definition Language) file, connects the name service of measurand and lands measurand; Step S106, testing tool obtain the supvr that measurand is supported, and according to the supvr who obtains corresponding test parameter are inputed to measurand so that measurand is tested; Step S108, verification module as a result receives the test output of measurand, and will test output and compare with the generation test result with reference data.
Wherein, at first need to dispose the CORBA testing tool based on function call, test input parameterization, function described here mainly is to be used for calling the function that has realized among the IDL, and these functions pre-define in IDL.
In addition, this method step S102 further comprises: the interface repository of configuration testing instrument, and the compiler that compile option, IDL (Interface Definition Language) file and docking port definitional language file compile is set in the browser of interface repository.
Wherein, in step S104, the processing that testing tool lands measurand is specially: testing tool is to measurand input validation information; Under the situation that measurand is passed through according to the authorization information judgement checking of input, testing tool lands measurand.
In addition, further comprise among the step S106: testing tool is handled carrying out parametrization to the test input of measurand input, obtains test parameter; The supvr that testing tool obtains obtains the function under the supvr, and call function is carried out test parameter so that measurand is tested.
In addition, in step S106, before test parameter is inputed to measurand, further comprise: testing tool presents the architecture of IDL (Interface Definition Language) of the function that the supvr supported of the measurand of obtaining.
In the middle of above-mentioned processing, need obtain the supvr and the corresponding method thereof of all supports of measurand, will test input and travel through test with parameterized form; Wherein, all comprise some input parameters in each function, each parameter has some types, travel through every type of each parameter.Wherein, the supvr is the set of the class methods that define among the IDL, has defined about 15 supvrs among the IDL, and each supvr comprises some functions; And, after connecting CORBA, to obtain the supvr earlier, just can call some corresponding down functions of supvr then.
Above-mentioned reference data is meant confirms as correct output data, the verification standard of verification module as a result of; Verification module as a result has automatic check function, judges the accuracy of the output data caught according to reference data, and then as the test result of system under test (SUT).
In the middle of practical application,, can build test macro shown in Figure 2 in order to realize said method.
As shown in Figure 2, carry out system testing by the tested CORBA of 201 pairs of CORBA testing tools system 202, wherein, the process of test comprises test test input and function call; Verification module as a result 203 is caught the test output of tested CORBA system, and this test output is compared verification with reference data 204, generates test result 205 according to check results.
Above-mentioned CORBA testing tool 201 can realize that its inner structure is carried out labor in Fig. 3 by C++ supervisor design language; Verification module as a result 203 can realize its contrast verification and output function as a result by script control languages such as C++ supervisor design language or SQA; The basis for estimation of reference data 204 verification modules as a result of 203 can adopt Excel data form or XML file to safeguard.
Fig. 3 is the method flow diagram that present embodiment is preferably tested Common Object Request Broker Architecture.Below, will be described in detail the processing procedure of the technical scheme of a preferred embodiment of present embodiment in conjunction with Fig. 3.Comprise the steps:
Step 301 disposes tested CORBA software.General CORBA software all needs to dispose necessary startup file before startup, can normally start to guarantee CORBA software; Step 302 starts tested CORBA software, normally starts tested CORBA software by step 301, and step 301 and step 302 belong to the environmental structure part of system under test (SUT);
Step 303 starts the CORBA testing tool.Need to finish two operations before starting the CORBA testing tool: create corba interface pond (Create CORBA InterfaceRepository) and the name service of specifying needs to be connected, the then normal CORBA testing tool that starts;
Step 304, configuration CORBA testing tool, this step mainly comprises: in the browser of corba interface pond the idl compiler option is set, compile option is specified compiler and idl file to be compiled;
Step 305, the compiling idl file on the basis of step 304, compiles the idl file that tested CORBA software provides by the CORBA testing tool;
Step 306, login CORBA software.By the name information on services, call getEMSSession () method, input username and password and corresponding IOR (that is, above-mentioned authorization information) login tested CORBA software;
Step 307 is obtained the supvr of support.After logining successfully, call getSupportManager () method, obtain all administrator information that tested CORBA software systems are supported;
Step 308 is obtained the method for each supvr's correspondence.According to a certain administrator information, call getManager () method, obtain all methods that this supvr supports down;
Step 309, the input correlation parameter is carried out test, by step 308, the testing tool interface presents the architecture of the IDL definition of correlation method, to test input parameterization, will meet the parameter preservation that test case requires, carry out the system testing of all parameters of traversal by function call;
Step 310, checking outputs test result.Testing tool is caught the test output of tested CORBA system,, carries out the output result of test in the step 309 that is, and the form output that this result is required according to verification module as a result 203.
Device embodiment
In the present embodiment, provide a kind of testing tool of testing Common Object Request Broker Architecture.Fig. 4 is the test Common Object Request Broker Architecture device block diagram according to present embodiment.As shown in Figure 4, this testing tool comprises: driver module 402 is used to be provided with compile option, selected IDL (Interface Definition Language) file is compiled, connects the name service of measurand and lands measurand; Present module 404, the architecture of the IDL (Interface Definition Language) that be used to obtain function that supvr that measurand supports and supvr support, presents function and the test parameter input format of definite function; Execution module 406 is used to read the test parameter of input and calls respective function, obtains and call the result.
In addition, driver module 402 can be provided with compile option, and the compiler that compiles of selected IDL (Interface Definition Language) file and docking port definitional language file in the browser of the interface repository of the testing tool that pre-sets.
Wherein, driver module 402 is to measurand input validation information; Under the situation that measurand is passed through according to the authorization information judgement checking of input, driver module 402 lands measurand.
Fig. 5 is the testing tool built-in function structural representation according to embodiment.As shown in Figure 5, the CORBA testing tool comprises three aspects: Drive Layer 501, presentation layer 502 and execution level 503.Above-mentioned driver module is used for carrying out the processing of Drive Layer 501, above-mentionedly presents the processing that module is used for carrying out presentation layer 502, and above-mentioned execution module is used for carrying out the processing of execution level 503.
Wherein, the function of Drive Layer 501 comprises: the testing tool compile option is set, and (purpose is meant and decides compiler and compile mode, make testing tool can correctly compile idl file), compile the idl file that tested system provides, the name service that connects tested system (connects the name service of system under test (SUT) earlier, the back connects CORBA, and system under test (SUT), and then the correctness of test system under test (SUT) function realization), with four functions of the tested system of login, wherein, compile option is set and compiles idl file and can select Jacorb, this is the idl compiler device of industry comparative maturity.If CORBA starts, can be connected the name service with port information by IP.Success can be logined tested system by calling getEMSSession () function after connecting the name service.
Wherein, the function of presentation layer 502 comprises: the parameter format information of obtaining the administrator information of support, obtaining function information that this supvr supports, present the function structure information obtained and determine according to the function structure information that presents to be supported according to the structure of IDL definition according to the administrator information that is obtained according to the name information on services that obtains; The function of execution level 503 comprises: the input parameter, the operation of execution function call, the return function that read respective function call result and output return results.Realize this function, can call getSupportManager () method, obtain all administrator information that tested CORBA software systems are supported; According to a certain administrator information, call getManager () method, obtain all methods that this supvr supports down.This testing tool is to realize a graphic user interface (GUI) with any programming language (for example: Javascript, C++ etc.), and GUI reads the IDL information that had compiled, and input, the output parameter of the function that defines among the IDL printed.
In sum,, the automatic test of interface be can realize, thereby testing efficiency and test coverage effectively improved, reduced test and handling cost by the presentation mode of IDL define method traversal by means of technical scheme of the present invention; And, can make that by function structure being presented to the tester test is more directly perceived according to the definition of IDL; In addition, because parameter has the modification flexible characteristic, test can be joined more flexibly.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. a method of testing Common Object Request Broker Architecture is used for realizing the test to measurand by testing tool, verification module as a result with compilation facility, it is characterized in that described method comprises:
Step S102, described testing tool is provided with compile option, with the IDL (Interface Definition Language) file to be compiled of selected described measurand;
Step S104, described testing tool compiles selected described IDL (Interface Definition Language) file, connects the name service of described measurand and lands described measurand;
Step S106, described testing tool obtains the supvr that described measurand is supported, and corresponding test parameter is inputed to described measurand so that described measurand is tested according to the described supvr who obtains, wherein, described testing tool need obtain the supvr and the corresponding method thereof of all supports of measurand, will test input and travel through test with parameterized form;
Step S108, described verification module as a result receives the test output of described measurand, and described test output and reference data are compared to generate test result.
2. method according to claim 1 is characterized in that, described step S 102 further comprises:
Dispose the interface repository of described testing tool, and in the browser of described interface repository, described compile option is set, described IDL (Interface Definition Language) file and compiler that described IDL (Interface Definition Language) file is compiled.
3. method according to claim 1 is characterized in that, in described step S104, the processing that described testing tool lands described measurand is specially:
Described testing tool is to described measurand input validation information;
Under the situation that described measurand is passed through according to the described authorization information judgement checking of input, described testing tool lands described measurand.
4. method according to claim 1 is characterized in that, in described step S 106, further comprises:
Described testing tool is handled carrying out parametrization to the test input of described measurand input, obtains described test parameter;
Described testing tool obtains described supvr, and obtains function under the described supvr according to described supvr, and calls described function and carry out described test parameter so that described measurand is tested.
5. method according to claim 1 is characterized in that, in described step S106, before described test parameter is inputed to described measurand, further comprises:
Described testing tool presents the architecture of IDL (Interface Definition Language) of the function that the supvr supported of the described measurand of obtaining.
6. a testing tool of testing Common Object Request Broker Architecture is characterized in that, described testing tool comprises:
Driver module is used to be provided with compile option, selected described IDL (Interface Definition Language) file is compiled, connects the name service of described measurand and lands described measurand;
Present module, the architecture of the IDL (Interface Definition Language) that be used to obtain function that supvr that described measurand supports and described supvr support, presents described function and the test parameter input format of determining described function;
Execution module is used to read the test parameter of input and calls respective function, obtains and call the result.
7. testing tool according to claim 6, it is characterized in that described driver module is provided with described compile option, also selected described IDL (Interface Definition Language) file and described IDL (Interface Definition Language) file is compiled in the browser of the interface repository of the described testing tool that pre-sets compiler.
8. testing tool according to claim 6, it is characterized in that, described driver module is to described measurand input validation information, and under the situation that described measurand is passed through according to the described authorization information judgement checking of input, described driver module lands described measurand.
CN2008100880877A 2008-03-31 2008-03-31 Method for testing public objects request proxy structure and tools Active CN101251824B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100880877A CN101251824B (en) 2008-03-31 2008-03-31 Method for testing public objects request proxy structure and tools

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008100880877A CN101251824B (en) 2008-03-31 2008-03-31 Method for testing public objects request proxy structure and tools

Publications (2)

Publication Number Publication Date
CN101251824A CN101251824A (en) 2008-08-27
CN101251824B true CN101251824B (en) 2010-06-02

Family

ID=39955220

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100880877A Active CN101251824B (en) 2008-03-31 2008-03-31 Method for testing public objects request proxy structure and tools

Country Status (1)

Country Link
CN (1) CN101251824B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101980173A (en) * 2010-11-03 2011-02-23 北京世纪高通科技有限公司 Method and device for system integrated test
CN104778070B (en) * 2014-01-15 2018-07-06 富士通株式会社 Hidden variable abstracting method and equipment and information extracting method and equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101266570A (en) * 2007-03-15 2008-09-17 中兴通讯股份有限公司 Software system test method and apparatus

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101266570A (en) * 2007-03-15 2008-09-17 中兴通讯股份有限公司 Software system test method and apparatus

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
会诊corba:segue公司测试工具升级.每周电脑报.1999,54. *

Also Published As

Publication number Publication date
CN101251824A (en) 2008-08-27

Similar Documents

Publication Publication Date Title
CN102880546B (en) Software integration testing method and system based on extensible markup language (XML) database
KR101132560B1 (en) System and method for automatic interface testing based on simulation for robot software components
CN103577324B (en) Static detection method for privacy information disclosure in mobile applications
CN107145437B (en) Java annotation test method and device
EP1089172A2 (en) Compiler and method for compiling specification language into implementation language
CN110362490B (en) Automatic testing method and system for integrating iOS and Android mobile applications
CN104281520A (en) Tracking and debugging method, device and system
CN103729294A (en) Method and device for testing performance script of application software
CN105224869A (en) Assembly test method and device
CN105487859A (en) Template based WEB deployment method for big data components
CN111475390A (en) Log collection system deployment method, device, equipment and storage medium
CN107450909A (en) The treating method and apparatus of validity check is integrated for SDK
CN107341106A (en) Application compatibility detection method, exploitation terminal and storage medium
CN101251824B (en) Method for testing public objects request proxy structure and tools
CN113778897A (en) Automatic test method, device, equipment and storage medium of interface
CN115809076A (en) ECU software automation integration method and system
CN105843602A (en) Method and system for software development
CN115934559A (en) Testing method of intelligent form testing system
KR101862617B1 (en) System of testing iot sensor for power facility management
CN109614320A (en) A kind of method and terminal detecting code interface accuracy
CN103647687A (en) Method and device for verifying business parameters of application system
CN110134559B (en) BMC fault detection method, system and related components
CN113608996B (en) Mirror image compiling test method, system, device and readable storage medium
CN113094281B (en) Test method and device for hybrid App
CN109358972A (en) Blog management method, device and the computer system of middleware client

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