CN106407061A - Northbound interface testing device and northbound interface testing method - Google Patents

Northbound interface testing device and northbound interface testing method Download PDF

Info

Publication number
CN106407061A
CN106407061A CN201510447745.7A CN201510447745A CN106407061A CN 106407061 A CN106407061 A CN 106407061A CN 201510447745 A CN201510447745 A CN 201510447745A CN 106407061 A CN106407061 A CN 106407061A
Authority
CN
China
Prior art keywords
script
module
execution
execution module
case
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510447745.7A
Other languages
Chinese (zh)
Other versions
CN106407061B (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 CN201510447745.7A priority Critical patent/CN106407061B/en
Priority to PCT/CN2016/080394 priority patent/WO2016180237A1/en
Publication of CN106407061A publication Critical patent/CN106407061A/en
Application granted granted Critical
Publication of CN106407061B publication Critical patent/CN106407061B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing

Abstract

The invention discloses a northbound interface testing device and a northbound interface testing method. The northbound interface testing device includes a script execution module and a command execution module; the script execution module is used for executing a script use case of a pre-developed script, calling a corresponding request message according to the script use case, and sending an execution command including the request message to the command execution module; and the command execution module is used for executing a corresponding test operation according to the content of the request message, and returning an execution result to the script execution module, wherein the request message is used for testing a communication interface corresponding to the northbound interface which is tested at present. The problem that when a test tool is used to test a northbound interface, the automatic testing ability of the northbound interface is limited due to the fact that the fixing achieving function of a service interface can be tested only by hard coding the service interface of the northbound interface in the prior art can be solved.

Description

A kind of northbound interface test device and the method for testing of northbound interface
Technical field
The present invention relates to computer testing technology field, espespecially a kind of northbound interface test device and north orientation connect The method of testing of mouth.
Background technology
Northbound interface is supplied to the interface of operator for equipment vendors, and operator can be united by northbound interface The equipment of one each equipment vendors of supervision, the alarm of monitoring device manufacturer, performance and activating the service.With G mobile communication (3rd-Generation, referred to as:3G), the development of 4G networking, Function served as bridge between operator and equipment vendors for the northbound interface is more and more important, the use of northbound interface Performance becomes the key character of equipment vendors' concern.
Current main flow northbound interface includes Common Object Request Broker Architecture (Common Object Request Broker Architecture, referred to as:CORBA) interface, Multiple techniques operating system (Multi Technology operations systems interface, referred to as:MTOSI) interface and a new generation Software defined network (Software Defined Network, referred to as:SDN north orientation), i.e. SDN Restconf northbound interface;These main flow northbound interfaces above-mentioned are typically based on specific consensus standard definition Respective business interface.But because the quantity of business interface is more, using the testing tool of prior art During the business interface of test northbound interface, need the function of the business interface according to northbound interface to be tested, Hard coded is carried out to this business interface, therefore, the fixing function to business interface can only be realized in testing Carry out automatic test;If necessary to business interface that function is changed or to increasing New function Business interface measures it is necessary to be changed to the code of this testing tool or to newly realizing function Carry out hard coded, to realize the automatic test of the difference in functionality to this business interface.
It is apparent that when northbound interface is tested using testing tool of the prior art, due to needing by right The business interface of northbound interface carries out hard coded and just enables the fixing function of business interface is tested, And lead to the larger problem of automatic test energy power restriction of northbound interface.
Content of the invention
In order to solve above-mentioned technical problem, the invention provides a kind of northbound interface test device and north orientation connect The method of testing of mouth, during solving using testing tool of the prior art test northbound interface, due to needing The fixing function of realizing of business interface could be entered by hard coded is carried out to the business interface of northbound interface Row test, and lead to the larger problem of automatic test energy power restriction of northbound interface.
In a first aspect, the present invention provides a kind of northbound interface test device, including:Script execution module and Command execution module;
Wherein, described script execution module, for executing the script use-case in the script developed in advance, root Call correspondingly request message according to described script use-case, and include described request to command execution module transmission The execution order of message;
Described command execution module, executes corresponding test operation for the content according to described request message, And implementing result is returned to described script execution module, described request message is used for the north to current test Tested to the corresponding communication interface of interface.
In the first possible implementation of first aspect, the current execution of described script execution module Script use-case includes testing notifying of task, and described northbound interface test device also includes:Notify to receive Module;Described script execution module, is additionally operable to, after executing described script use-case, connect to described notice Receive module and send the first subscription order;
Described notice receiver module, notifies for obtaining the described first test subscribing to order instruction, and will The test of described acquisition notifies to return to described script execution module;
Described script execution module, is additionally operable to unsubscribe order to described notice receiver module transmission.
In the possible implementation of the second of first aspect, described northbound interface test device is also wrapped Include:Initialization module and script load-on module;Described initialization module, for executing mould in described script Before script use-case in the script that block execution is developed in advance, initializtion script load-on module loads described pre- The script first developed, the initialization parameter of described command execution module and the parameter of described notice receiver module, Wherein, described script execution module execution script use-case is according to described script load-on module loads Acquired in each script use-case in script, described script includes described script use-case and script method, institute State the execution method that script method is described script use-case;
Described notice receiver module, is additionally operable to continue after initialization the notice that the reception server sends.
According to the possible implementation of the second of first aspect, in the third possible implementation, The northbound interface of described current test is Common Object Request Broker Architecture corba interface, described Initialization module is used for the parameter of initialization command performing module, specifically includes:Initialization object requests generation Reason ORB;
Described initialization module is used for initializing the described parameter notifying receiver module, specifically includes:Pass through OMG's OMG standard, instruction described notice receiver module calls the described server of reception to send Notice;
Described initialization module, is additionally operable to before described script execution module executes described script use-case, Send to described script execution module and log in order, described log in the script method that order includes logging in;
Described script execution module, is additionally operable to according to the described script method logging in and logging in described in order execution, Correspondingly log on request message is called according to the described script method logging in, and to described command execution module The execution that transmission includes described log on request message logs in order;
Described command execution module, is additionally operable to be executed according to the described log on request message receiving The dynamic call of CORBA, and implementing result is returned to described script execution module.
According to the possible implementation of the second of first aspect, in the 4th kind of possible implementation, The northbound interface of described current test is Multiple techniques operating system MTOSI interface or software defined network The north orientation of network SDN, described initialization module is used for the parameter of initialization command performing module, specifically includes: Initialize the uniform resource position mark URL for constructing HTTP request message;
Described initialization module is used for initializing the described parameter notifying receiver module, specifically includes:Subscribe to MTOSI notifies;
Described notice receiver module, is additionally operable to initialize described notice receiver module in described initialization module Parameter after, to described script execution module send second subscribe to order, described second subscribe to order in Including the script method subscribed to;
Described script execution module, is additionally operable to subscribe to, according to described second, the script that order executes described subscription Method, calls correspondingly subscription request message according to the script method of described subscription, and holds to described order Row module sends and includes the described execution subscription order subscribing to request message;
Described command execution module, is additionally operable to be called according to described subscription request message execution HTTP request, And implementing result is returned to described script execution module.
According to first aspect, first aspect the first in the 4th kind of possible implementation any one, In the 5th kind of possible implementation, described northbound interface test device also includes result-generation module; Described script execution module, is additionally operable to return to described implementing result in described command execution module described After script execution module, described implementing result is transferred to described result-generation module;
Described result-generation module, for exporting described implementing result, described implementing result includes testing All northbound interfaces, and the testing time of each described northbound interface and testing time.
According to first aspect, first aspect the first in the 4th kind of possible implementation any one, In the 6th kind of possible implementation, described script execution module executes described script use-case, concrete bag Include:Order according to script use-case each in described script executes successively;And/or,
Described northbound interface test device also includes logging modle;Described script execution module, is additionally operable to During executing described script use-case, the execution information of described script use-case and abnormal information are sent to Described logging modle;
Described logging modle, for recording and showing execution information and the abnormal information of described script use-case.
Second aspect, the present invention provides a kind of method of testing of northbound interface, including:
Script use-case in the script that script execution module execution is developed in advance, adjusts according to described script use-case With correspondingly request message, and send the execution order including described request message to command execution module;
Described command execution module executes corresponding test operation according to the content of described request message, and will Implementing result returns to described script execution module, and described request message is used for the north orientation of current test is connect The carrying out of the corresponding communication interface of mouth is tested.
In the first possible implementation of second aspect, the current execution of described script execution module Script use-case includes testing notifying of task, after described script executes described script use-case, also includes:
Described script execution module sends first to notice receiver module and subscribes to order;
The described test notifying receiver module to obtain described first subscription order instruction notifies, and obtains described The test taking notifies to return to described script execution module;
Described script execution module sends to described notice receiver module and unsubscribes order.
In the possible implementation of the second of second aspect, described script execution module execution is opened in advance Before script use-case in the script sent out, also include:
The script developed in advance described in the loading of initialization module initializtion script load-on module, initialization is described The parameter of command execution module and the parameter of described notice receiver module, wherein, described script execution module Execution script use-case is obtained by loading each script use-case in described script according to described script load-on module Take, described script includes described script use-case and script method, described script method is that described script is used The execution method of example;
After the parameter of described initialization module initialization described notice receiver module, also include:
The described notice notifying receiver module to continue the reception server transmission after initialization.
According to the possible implementation of the second of second aspect, in the third possible implementation, The northbound interface of described current test is Common Object Request Broker Architecture corba interface, described The parameter of initialization command performing module, including:Initialization Object Request Broker ORB;
The parameter of described initialization described notice receiver module, including:By OMG OMG Standard, instruction is described to notify receiver module to call the notice receiving described server transmission;
Before script use-case in the script that described script execution module execution is developed in advance, also include:
Described initialization module sends to described script execution module and logs in order, and described logging in order is wrapped Include the script method logging in;
Described script execution module logs in the script method that logs in described in order execution according to described, according to institute State the script method logging in and call correspondingly log on request message, and send bag to described command execution module The execution including described log on request message logs in order;
Described command execution module executes the dynamic of CORBA according to the described log on request message receiving Call, and implementing result is returned to described script execution module.
According to the possible implementation of the second of second aspect, in the 4th kind of possible implementation, The northbound interface of described current test is Multiple techniques operating system MTOSI interface or software defined network The north orientation of network SDN, the parameter of described initialization command performing module, including:Initialize super for constructing The uniform resource position mark URL of text transfer protocol HTTP request message;
The parameter of described initialization described notice receiver module, including:Subscribe to MTOSI to notify;
After the parameter of described initialization module initialization described notice receiver module, also include:
Described notice receiver module sends second to described script execution module and subscribes to order, and described second orders Read the script method that order includes subscribing to;
Described script execution module subscribes to the script method that order executes described subscription, root according to described second Call correspondingly subscription request message according to the script method of described subscription, and send out to described command execution module Send and subscribe to order including the described execution subscribing to request message;
Described command execution module is called according to described subscription request message execution HTTP request, and will hold Row result returns to described script execution module.
According to second aspect, second aspect the first in the 4th kind of possible implementation any one, In the 5th kind of possible implementation, implementing result is returned to described script by described command execution module After performing module, also include:
Described implementing result is transferred to result-generation module by described script execution module;
Described result-generation module exports described implementing result, and described implementing result includes all of test Northbound interface, and the testing time of each described northbound interface and testing time.
According to second aspect, second aspect the first in the 4th kind of possible implementation any one, In the 6th kind of possible implementation, described script execution module executes described script use-case, including:
Described script execution module executes successively according to the order of script use-case each in described script;And/or,
During described script execution module executes described script use-case, also include:
The execution information of described script use-case and abnormal information are sent to record mould by described script execution module Block;
Described logging modle record simultaneously shows execution information and the abnormal information of described script use-case.
Northbound interface test device and the method for testing of northbound interface that the present invention provides, are executed by script Script use-case in the module script developed in advance of execution, and called according to this script use-case and correspondingly ask Message, thus send, to command execution module, the execution order including this request message, and then by order Performing module executes corresponding test operation according to the content of this request message, and implementing result is returned to Script execution module, it is corresponding logical that the request message in the present embodiment is used for the northbound interface to current test Communication interface is tested, and that is, the present invention passes through the test logic to script use-case for the script execution module, calls Northbound interface is executed with the request text of corresponding test function, thus executing by call instruction performing module The above-mentioned request text calling is to realize the task that northbound interface is tested of editor in script use-case; When the present invention solves using testing tool of the prior art test northbound interface, due to needing by right The business interface of northbound interface carries out hard coded could be tested to the fixing function of realizing of business interface, And lead to the larger problem of automatic test energy power restriction of northbound interface.
Brief description
Accompanying drawing is used for providing technical solution of the present invention is further understood, and constitutes one of specification Point, it is used for explaining technical scheme together with embodiments herein, do not constitute to the present invention The restriction of technical scheme.
Fig. 1 is the schematic diagram of the application scenarios of northbound interface;
Fig. 2 is a kind of structural representation of northbound interface test device provided in an embodiment of the present invention;
The test philosophy figure of the northbound interface test device that Fig. 3 provides for embodiment illustrated in fig. 2;
Fig. 4 is the structural representation of another kind northbound interface test device provided in an embodiment of the present invention;
Fig. 5 is the structural representation of another northbound interface test device provided in an embodiment of the present invention;
Fig. 6 is a kind of flow chart of the method for testing of northbound interface provided in an embodiment of the present invention;
Fig. 7 is the flow chart of the method for testing of another kind northbound interface provided in an embodiment of the present invention;
Fig. 8 is the flow chart of the method for testing of another northbound interface provided in an embodiment of the present invention.
Specific embodiment
For making the object, technical solutions and advantages of the present invention become more apparent, below in conjunction with accompanying drawing Embodiments of the invention are described in detail.It should be noted that in the case of not conflicting, this Shen Please in embodiment and the feature in embodiment can mutually be combined.
The step illustrating in the flow process of accompanying drawing can be in the computer of such as one group of computer executable instructions Execute in system.And although showing logical order in flow charts, but in some cases, Can be with the step shown or described different from order execution herein.
As shown in figure 1, the schematic diagram of the application scenarios for northbound interface.Wherein, packless square generation List server end, the square with filling represents client, in the docking operation of northbound interface, user Directly visible is exactly the interface definition that equipment vendors are provided, and that is, the northbound interface business in Fig. 1 connects Mouthful, such as corba interface it is simply that interface description language (Interface Description Language, referred to as:IDL the interface cluster) defining, for MTOSI interface it is simply that network service Description language (Web Service Description language, referred to as:WSDL the interface) defining Cluster, for SDN northbound interface it is simply that a series of to number file (the Request For that is ranked Comments, referred to as:RFC a kind of) model voice of the definition in 6020, i.e. YANG The interface cluster of definition, above-mentioned northbound interface business interface can also be the business interface of other forms, client What end was called is the interface definition that the special compiler of northbound interface generates.It should be noted that north orientation connects The principle of mouthful agreement similar to open system interconnection (Open System Interconnection, referred to as: OSI seven layers of communications protocol), that is, northbound interface is also layer model, and above-mentioned interface cluster is defined as going up most Layer, the following of interface cluster has one or more layers other communications protocol, may be collectively referred to as communication interface.
In application scenarios shown in Fig. 1, in order to realize a certain function, that is, northbound interface client is realized, Need to call northbound interface business interface, this northbound interface business interface calls communication to connect by after input conversion Mouthful;After the communication interface of server end receives the request calling communication interface, and be converted to northbound interface industry The call request of business interface, then calls northbound interface server end to realize.
With specific embodiment, technical scheme is described in detail below, the present invention is respectively implemented Example can apply with the application scenarios of northbound interface shown in Fig. 1 in, to northbound interface business interface correspond to Communication interface carry out automatic test.These specific embodiments can be combined with each other below, for Same or analogous concept or process may repeat no more in some embodiments.
Fig. 2 is a kind of structural representation of northbound interface test device provided in an embodiment of the present invention.This reality The northbound interface test device applying example offer is applied to the situation that northbound interface business interface is tested In, this northbound interface test device is generally realized in the way of hardware and software, for example, be integrated in test and set In standby processor, call execution for processor.As shown in Fig. 2 the northbound interface that the present embodiment provides Test device specifically includes:Script execution module 11 and command execution module 12.
Wherein, script execution module 11, for executing the script use-case in the script developed in advance, according to Described script use-case calls correspondingly request message, and includes this request message to command execution module transmission Execution order.
In the present embodiment, script execution module 11 can execute the script developed in advance, and this script is to survey Examination personnel after exploitation northbound interface test device, for the script write of automatic test of northbound interface Voice, for carrying out automatic test to northbound interface, generally includes multiple script use-cases in this script, Script execution module 11, can be according to specific script use-case from request message collection in perform script use-case Correspondingly request message is called, that is, the text of the script in the present embodiment and request message is all to enter in conjunction Develop before row automatic test, normally, logic can have been tested by script use-case editor, I.e. specific script use-case can call specific request message, and that is, script use-case and request message are to correspond to Relation, by correspondingly request message is called out to the execution of certain script use-case, thus holding to order Row module 12 sends the execution order including this request message, specifically by command execution module 12 to this tune With request message processed.
It should be noted that the script execution module 11 in the present embodiment is in perform script use-case, such as Each script use-case can be executed according to the order of script use-case each in the script developed in advance successively;Script is held The concrete mode of row module 11 call request message is:Carried out according to the content of current execution script use-case Call, when executing a script use-case every time, the request message calling is typically different;Separately Outward, the request message calling is text formatting, for example, can be with extensible markup language (Extensible Markup Language, referred to as:XML) the text of form storage.
Command execution module 12, executes corresponding test operation for the content according to request message, and will Implementing result returns to script execution module 11, and this request message is used for the northbound interface pair to current test The communication interface answered is tested.
In the present embodiment, in holding that command execution module 12 receives that script execution module 11 is sent to After line command, correspondingly test operation can be executed according to instruction execution request message in this execution order, Request message is used for the ability of the corresponding communication interface of northbound interface of current test is tested.In tool Body realize in, due to tester client developed for test northbound interface business interface The script tested of function and request message set, be actually based in application scenarios shown in Fig. 1 Northbound interface business interface calls corresponding communication interface after conversion by inputting, and specifically calls to after conversion Communication interface is tested, and in the present embodiment turns the test of the interface cluster of the superiors to northbound interface Turn to the test to lower floor's communication interface, jointly real especially by predefined script and request message set Existing, that is, perform script use-case is exactly to obtain, by this script use-case, the request message being directed to current script use-case, Specifically define testing scheme in request message, command execution module 12 execution request message is that is right Indicated by current script use-case, the function of test executes test.
It should be noted that the process of the script execution module 11 perform script use-case in the present embodiment, real It is exactly by call instruction performing module 12 repeatedly on border, script is passed through with perform script performing module 11 The request message that use-case calls;And because script execution module 11 is according to script use-case each in script In order execute successively, therefore, order that command execution module 12 executes request message be equally by The order calling request message according to script execution module 11 executes successively.
The function to northbound interface business interface to be measured for the northbound interface test device being provided using the present embodiment Tested, after actually changing, corresponding communication interface carries out automatic test, needs by script Performing module 11 first carries out the script use-case developed in advance, by calling and survey to the execution of script use-case The related request message of examination, that is, two factors of test communication interface are script use-case and request message. As shown in figure 3, the test philosophy figure of the northbound interface test device providing for embodiment illustrated in fig. 2, with Application scenarios described in Fig. 1 similarly, packless square representative server end, there is the square generation of filling Table client, northbound interface test device is passed through perform script use-case and is called corresponding with current script use-case Request message the corresponding communication interface of northbound interface business interface of client is tested, that is, By client, to server end, corresponding communication interface is tested, thus according to the result of test, that is, ordering Performing module 12 is made to execute the implementing result checking client and server end northbound interface industry of request message The function of business interface.
The present embodiment will realize the automatic test of function to northbound interface business interface, sets up corresponding On communication interface, enter because the input that communication interface can identify is typically text or the two of text code System stream, such as, for corba interface, be to ask agency agreement based on internet internal object (Internet Inter-ORB Protocol, referred to as:IIOP CORBA dynamic invocation interface), right For MTOSI and SDN, be HTTP (HyperText Transfer Protocol, Referred to as:HTTP);Testing scheme is all first to preserve the request message of IDL or WSDL, As the northbound interface request message in Fig. 3, thus edit test logic, i.e. tester by script Testing sequence is programmed in script in the form of script use-case, has completed the use-case test of multiple function, Northbound interface automatic test script as Fig. 3.It is apparent that the northbound interface test that the present embodiment provides Device defines unrelated, only responsible execution with specific northbound interface business interface during execution test This use-case of training can achieve that the automation to northbound interface business interface is surveyed.
The northbound interface test device that the present embodiment provides, is executed by script execution module and to develop in advance Script use-case in script, and correspondingly request message is called according to this script use-case, thus holding to order Row module sends the execution order including this request message, and then by command execution module according to this request The content of message executes corresponding test operation, and implementing result is returned to script execution module, this reality Apply the request message in example to be used for the corresponding communication interface of northbound interface of current test being tested, that is, The present embodiment passes through the test logic to script use-case for the script execution module, calls and executes phase to northbound interface Answer the request text of test function, thus by the above-mentioned request literary composition calling of call instruction performing module execution This is to realize the task that northbound interface is tested of editor in script use-case;The present embodiment solves to be adopted During with testing tool of the prior art test northbound interface, due to needing by the business to northbound interface Interface carries out hard coded could be tested to the fixing function of realizing of business interface, and leads to northbound interface The larger problem of automatic test energy power restriction.
Realize northbound interface business is connect by way of hard coded compared to testing tool of the prior art Mouthful the scheme tested of fixing function for, northbound interface test device that the present embodiment provides is by north Decouple to interface business interface with northbound interface test device, that is, automatic test is set up in north to be tested To on the corresponding communication interface of interface business interface so that automatic test exploitation is changed into request message and pin The exploitation of this use-case, the text input that this request message can identify for communication interface, reduce automation The threshold of use-case exploitation, before test communication interface tester being researched and developed according to testing requirement, It is developed for the script use-case tested;And if script use-case passes through test, then explanation and this communication The functional verification of interface corresponding northbound interface business interface is passed through.The northbound interface that the present embodiment provides is surveyed Trial assembly is put has the characteristics that fast and flexible when developing automatic test cases, can increase exponentially exploitation and survey The efficiency of examination, thus improve product quality, is particularly suitable for agile development.
Alternatively, Fig. 4 be provided in an embodiment of the present invention another kind northbound interface test device structure show It is intended to.In the present embodiment, script execution module current execution script use-case includes testing notice Task, then, on the basis of northbound interface test device shown in Fig. 2, the device that the present embodiment provides also wraps Include notice receiver module 13, specifically, script execution module 11, it is additionally operable to after perform script use-case, Subscribe to order to notifying receiver module 13 to send first;Correspondingly, notify receiver module 13, be used for obtaining Take this first test subscribing to order instruction to notify, and the test of acquisition is notified to return to script execution mould Block 11;Subsequently, after script execution module 11 indicates that in obtaining script use-case the test of needs notifies, After completing to test notifying of task, can send to notice receiver module 13 further and unsubscribe life, To cancel the task that test notifies.
It should be noted that the notice receiver module 13 in the present embodiment can receive clothes upon actuation always The notice that business device end sends, when script execution module 11 is to its subscribing notification, this notice receiver module 13 subscribe to, with specific reference to first, the content needing test to notify in order, from the notice of received server-side Find the notice that above-mentioned script execution module 11 is subscribed to, and return to script execution module 11;It is this reality The notice that the operation applying the subscribing notification in example is specially between the internal module of northbound interface test device is ordered Read.In addition, the process of the script execution module 11 perform script use-case in the present embodiment, not only need to lead to Cross call instruction performing module 12 repeatedly and carry out the request message that perform script performing module 11 is called, also Need to subscribe to the current execution script of script execution module 11 by call notification receiver module 13 repeatedly The notice tested is needed in use-case.
Further, the northbound interface test device shown in Fig. 4 can also include:Initialization module 14 With script load-on module 15, specifically, initialization module 14, for executing in advance in script execution module Before script use-case in the script of exploitation, initializtion script load-on module 15 loads the pin that this is developed in advance This, the parameter of initialization command performing module 12 and the parameter notifying receiver module 13 simultaneously, wherein, Script execution module 11 execution script use-case loads in this script according to script load-on module 15 Acquired in each script use-case, this script includes script use-case and script method, and this script method is script The execution method of use-case;Correspondingly, notify receiver module 13, be additionally operable to persistently receive after initialization clothes The notice that business device sends.It should be noted that the present embodiment does not limit initialization module 14 initializtion script Load-on module 15, command execution module 12 and the order notifying receiver module 13, can be to execute successively Or executed in parallel.
In the present embodiment, the script that script load-on module 15 is loaded for example, is based on OO journey The script that the programming language (Groovy) of sequence design language Java Virtual Machine programs, i.e. Groovy script, Because Groovy language is the extension to Java language, the workload of therefore exploitation Groovy script is less; And the Groovy script that script load-on module 15 loads is divided into two parts content, and a part is Groovy Script method, a part is Groovy script use-case, and wherein, Groovy script method can be Conventional or by the public method of each Groovy script use-case, for example, it is used for initialization module 14 The Groovy script method logging in.
In a kind of application scenarios by device to test northbound interface provided in an embodiment of the present invention, such as scheme Shown in 5, it is the structural representation of another northbound interface test device provided in an embodiment of the present invention.This Embodiment can be used for testing corba interface, then script execution module 11 is adjusted by perform script use-case The request message used is specially CORBA request message, and this CORBA request message is similarly XML The text of form.The present embodiment is in implementing, on the one hand, initialization module 14 is used for initial Change the parameter of command execution module 12, specifically include:Procotol (Internet according to server Protocol, referred to as:IP) and naming service port, initialize Object Request Broker (Object Request Broker, referred to as:ORB);On the other hand, initialization module 14 is used for initialization notice reception mould The parameter of block 13, specifically includes:The serve port being notified according to server, by OMG (Object Management Group, referred to as:OMG) standard, instruction notifies receiver module 13 Continue the notice that the reception server sends.
In implementing, command execution module 12 is specifically as follows CORBA order execution to the present embodiment Module 12, notifies receiver module 13 to be specifically as follows OMG and notifies receiver module 13, this OMG leads to Knowing receiver module 13 upon initialization, being constantly in the state receiving OMG notice it is provided that ordering The interface read and unsubscribe, for example, in script execution module 11 perform script use-case, such as running into will Test the situation of certain notice, just sending first and subscribe to order to notice receiver module 13 needs to notify to subscribe to When, now, notify receiver module 13 to find the first subscription life instruction in the notice receiving from server The test of subscription notify, thus return its required test to script execution module 11 notifying, complete to survey Then can be subscribed to cancellation notice after pinging knowing of task.
It should be noted that the script that the present embodiment is equally loaded with script load-on module 15 is specially It is explained as a example Groovy script, this Groovy script includes Groovy script method and Groovy Script use-case, for corba interface, is required for following the definition in 814 standards, defines use EmsSessionFactory is obtaining the login method of getEmsSession;Specifically, executing each Before Groovy script use-case, it is required for first carrying out register, with pending Groovy script use-case Corresponding Groovy script method is the Groovy script of the login of initialization module 14 instruction execution Method.The present embodiment provide device in implementing, initialization module 14, be additionally operable to hold in script Before row module 11 perform script use-case, send to script execution module 11 and log in order, this logs in life Order includes the script method logging in, for example, the Groovy script method of login;Script execution module 11, it is additionally operable to according to logging in the Groovy script method that order executes this and logs in, and logged according to this Groovy script method calls correspondingly log on request message, the CORBA request message for example, logging in, The CORBA request message that this logs in is similarly the text storing in xml format, thus to life Make performing module 12 send to include the execution of the CORBA request message that this logs in and log in order;Correspondingly, Command execution module 12, is additionally operable to according to the CORBA request message execution CORBA logging in receiving Dynamic call, after the completion of execution, implementing result is returned to script execution module 11.
It should be noted that embodiment illustrated in fig. 5 is from the different of embodiment illustrated in fig. 4, due to this Embodiment needs to follow the definition in 814 standards to the test of corba interface, i.e. script execution module Before 11 perform script use-cases, need first to carry out register, need in this operation initialization module 14 to Script execution module 11 sends and logs in order, therefore, in embodiment illustrated in fig. 5 initialization module 14 with Script execution module 11 has the annexation sending signaling.In addition, the request in various embodiments of the present invention Message can all in xml format text files memory, command execution module 12 receives execution and steps on After the order of land, read the CORBA request message logging in this order, after the completion of reading, pass through ORB Call the dynamic invocation interface of CORBA, after the completion of calling, implementing result is saved as again XML lattice The text of formula, so that script execution module 11 is subsequently used.Furthermore, the pin in the present embodiment The script that this performing module 11 can be loaded using unit testing use-case framework perform script load-on module 15 Use-case.
In another kind of application scenarios by device to test northbound interface provided in an embodiment of the present invention, can Structural representation with the northbound interface test device with reference to shown in Fig. 4.The north orientation that the present embodiment provides connects Mouth test device can be used for testing the north orientation of MTOSI interface or SDN, then script execution module 11 HTTP request message, this HTTP request are specially by the request message that perform script use-case calls Message can be equally the text of XML format.The present embodiment is in implementing, on the one hand, Initialization module 14 is used for the parameter of initialization command performing module 12, specifically includes:Initialization service Device URL (Uniform Resource Locator, referred to as:URL) parameter, Exactly initialize the uniform resource position mark URL for constructing HTTP request message, due to the present embodiment HTTP request message, HTTP request report is specifically called during middle script execution module 11 perform script use-case Literary composition needs including URL, and this HTTP request message can be for example Simple Object Access Protocol (Simple Object Access Protocol, referred to as:SOAP) request message, this SOAP request message is permissible It is HTTP request message concrete application;On the other hand, initialization module 14 is used for initialization notice reception The parameter of module 13, specifically includes:Subscribe to MTOSI to notify, thus indicating notice receiver module 13 Continue the notice that the reception server sends., in implementing, command execution module 12 is for example for the present embodiment Can be HTTP request performing module, notify receiver module 13 can be for example Jetty (based on Java Web container) notify receiver module, this Jetty notify receiver module upon initialization, be constantly in Receive the state that MTOSI notifies it is provided that subscribing to and the interface that unsubscribes, script execution module The mode of 11 to Jetty notice receiver module subscribing notifications and cancellation notice subscription is same as the previously described embodiments, The notice that sentence belongs between the internal module of northbound interface test device is subscribed to.
It should be noted that the script that the present embodiment is equally loaded with script load-on module 15 is specially It is explained as a example Groovy script, this Groovy script includes Groovy script method and Groovy Script use-case, after initialization module 14 initializes the parameter that Jetty notifies receiver module, that is, subscribes to After MTOSI notifies, need to lead to by calling the Groovy script method of subscription to send to subscribe to server Know, specific implementation is:Notify receiver module 13, be additionally operable to send the to script execution module 11 Two subscribe to order, and this second subscription order includes the script method subscribed to, for example, Groovy of subscription Script method;Script execution module 11, is additionally operable to subscribe to, according to second, the Groovy that order executes this subscription Script method, and correspondingly subscription request message, example are called according to the Groovy script method of this subscription As the SOAP request message for subscribing to, the SOAP request message of this subscription is similarly in xml format The text of storage, thus send the SOAP request report including this subscription to command execution module 12 Order is subscribed in the execution of literary composition;Correspondingly, command execution module 12, being additionally operable to please according to the SOAP subscribing to Ask message execution HTTP request to call, after the completion of execution, implementing result is returned to script execution module 11.
It should be noted that in above-described embodiment, initialization when either testing corba interface notifies Receiver module 13, or test MTOSI interface or SDN north orientation when initialization notify receiver module 13, purpose is all the notice needing the reception server end, and the operation of this subscribing notification is specially northbound interface Notice between test device and server is subscribed to.
Further, the northbound interface test device in Fig. 4 and embodiment illustrated in fig. 5 can also include Result-generation module 16, then script execution module 11, it is additionally operable to execute knot in command execution module 12 After fruit returns to script execution module 11, this implementing result is transferred to result-generation module 16;Phase Ying Di, result-generation module 16, for exporting implementing result, this implementing result includes all of test Northbound interface, and the testing time of each northbound interface and testing time.In addition, Fig. 4 and Fig. 5 institute Show that the northbound interface test device in embodiment can also include logging modle 17, then script execution module 11, it is additionally operable to, during perform script use-case, the execution information of script use-case and abnormal information be sent out Give logging modle 17;Correspondingly, logging modle 17, for record and show script use-case execute letter Breath and abnormal information.
In implementing, after script execution module 11 has executed script use-case, can be generated by result Test result is exported by module 16 in modes such as Web page, text or Excel, for tester Check implementing result, the implementation status of each script use-case in this implementing result, can be embodied, concrete bag Include and tested which northbound interface, and test the testing time of each northbound interface and the testing time. In addition, when script use-case executes unsuccessfully, the information inspection that can be recorded by logging modle 17 is related Abnormal operating condition.
Each northbound interface test device that the present invention provides, specifically from the characteristic of northbound interface, to the north of To the underlying protocol of interface protocol, carry out based on communication interface automating use-case test, thus in pin Write with script use-case so that it may be rapidly completed old it is only necessary to making requests on message and writing after the completion of this exploitation Script use-case change, and new script use-case exploitation, can combine closely with agile development pattern, Increase exponentially exploitation testing efficiency, be conducive to being integrated in continuous integration system.In addition, passing through this Northbound interface test device that bright embodiment provides, it is provided that stable northbound interface, is simultaneously suitable for In various application scenarios, the automatic test exploitation of script use-case, can correspondingly reduce and safeguard that this north orientation connects Human cost needed for mouth test device.
Fig. 6 is a kind of flow chart of the method for testing of northbound interface provided in an embodiment of the present invention.This enforcement The method that example provides is applied in the case of the business interface to northbound interface tests, and the method is permissible Executed by northbound interface test device, this northbound interface test device is real generally in the way of hardware and software Existing, for example it is integrated in the processor of test equipment, call execution for processor.As shown in fig. 6, this The method that embodiment provides specifically includes following steps:
S110, the script use-case in the script that script execution module execution is developed in advance, and used according to script Example calls correspondingly request message.
S120, script execution module sends the execution order including request message to command execution module.
S130, command execution module executes corresponding test operation according to the content of request message.
S140, implementing result is returned to described script execution module by command execution module, this request message Ability for the corresponding communication interface of northbound interface to current test is tested.
By answering that northbound interface test device is tested to the business interface of northbound interface in the present embodiment Equally it is referred to the application scenarios shown in above-mentioned Fig. 1 with scene, its test mode is equally referred to State the test philosophy figure shown in Fig. 3, i.e. the method for testing of the northbound interface that the present embodiment provides, in test During define unrelated with specific northbound interface business interface, be only responsible for execution automatic test script Use-case.
The method of testing of northbound interface provided in an embodiment of the present invention can be by embodiment illustrated in fig. 2 of the present invention The execution of northbound interface test device, each step of the method and the north orientation provided in an embodiment of the present invention providing The function of each device in interface test device corresponds to, and it is similar with technique effect, herein not that it realizes principle Repeat again.
Alternatively, on the basis of above-mentioned embodiment illustrated in fig. 6, if the current execution of script execution module Script use-case includes testing notifying of task, then the method that the present embodiment provides, after S110, is gone back Including:S111, script execution module sends first to notice receiver module and subscribes to order;S112, notifies Receiver module obtains the first test subscribing to order instruction and notifies;S113, notify receiver module by obtain Test notice returns to script execution module, and the test obtaining in the present embodiment notifies to be specially from server Terminate the notice receiving;S114, script execution module sends to notice receiver module and unsubscribes order.
It should be noted that the present embodiment does not limit the execution sequence of S111~S114 and S120~S140, Fig. 6 so that S111~S114 executed before S120~S140 is as a example illustrated.
Further, the method that the present embodiment provides, also included before S110:S101, initialization Module initialization script load-on module;S102, script load-on module loads the pin in the script developed in advance This use-case, specifically, script execution module execution script use-case is exactly to be added according to this script load-on module Carry acquired in each script use-case in script, this script includes script use-case and script method, this script Method is the execution method of script use-case;Similarly, S103, initialization module initialization command are also included The parameter of performing module;S104, initialization module initialization notifies the parameter of receiver module.Need explanation , the present embodiment do not limit initialization module execute S101~S102 with execute S103 or S104 suitable Sequence, Fig. 6 taking the executive mode as order for the S101~S104 is as a example illustrated.
In a kind of concrete application of the method for testing of northbound interface provided in an embodiment of the present invention, such as Fig. 7 Shown, it is the flow chart of the method for testing of another kind northbound interface provided in an embodiment of the present invention.This enforcement Example specifically for testing corba interface, then in S110, adjusted by perform script use-case by script execution module The request message used is specially CORBA request message.Then on the basis of above-mentioned embodiment illustrated in fig. 6 On, S103 could alternatively be:IP according to server and naming service port, initialize ORB;S104 Could alternatively be:The serve port being notified according to server, by OMG standard, instruction notifies to receive Module calls the notice that the reception server sends, that is, subscribe to OMG and notify, the notice in the present embodiment connects Receive module upon initialization, be constantly in receive OMG notify state, specific implementation with upper State embodiment identical, therefore will not be described here.
It should be noted that the script that the present embodiment is equally loaded with script load-on module is specially Groovy It is explained as a example script, this Groovy script includes Groovy script method and Groovy script is used Example, the present embodiment is specifically tested to corba interface, that is, executing each Groovy script use-case Before, it is required for first carrying out register, specifically, the method that the present embodiment provides was gone back before S110 Including:S105, initialization module sends to script execution module and logs in order, and this logs in order and includes The Groovy script method logging in;S106, script execution module logs according to logging in order execution Groovy script method, and the CORBA correspondingly logging in is called according to the Groovy script method logging in Request message, S107, script execution module sends, to command execution module, the CORBA including logging in please The execution seeking message logs in order;S108, command execution module is according to the CORBA logging in receiving Request message executes the dynamic call of CORBA;S109, implementing result is returned to by command execution module Script execution module.
The method of testing of northbound interface provided in an embodiment of the present invention can be by embodiment illustrated in fig. 4 of the present invention The execution of northbound interface test device, each step of the method and the north orientation provided in an embodiment of the present invention providing The function of each device in interface test device corresponds to, and it is similar with technique effect, herein not that it realizes principle Repeat again.
Similarly, in another kind of concrete application of the method for testing of northbound interface provided in an embodiment of the present invention In, as shown in figure 8, the flow process of the method for testing for another northbound interface provided in an embodiment of the present invention Figure.The present embodiment is specifically for the north orientation of test MTOSI interface or SDN, then script in S110 Performing module is specially HTTP request message by the request message that perform script use-case calls.Then exist On the basis of above-mentioned embodiment illustrated in fig. 6, S103 could alternatively be:Initializing please for constructing HTTP Seek the URL of message;S104 could alternatively be:Subscribe to MTOSI to notify, thus indicating that notice receives mould Block continues the notice that the reception server sends.
It should be noted that the script that the present embodiment is equally loaded with script load-on module is specially Groovy It is explained as a example script, this Groovy script includes Groovy script method and Groovy script is used Example, after initialization module initializes notice receiver module subscription MTOSI notice, notifies receiver module Need to call the script method of subscription, specifically, the method that the present embodiment provides also is wrapped after S104 Include:S105, notifies receiver module to send second to script execution module and subscribes to order, this second subscription life Order includes the Groovy script method subscribed to;S106, script execution module subscribes to order according to second The Groovy script method that execution is subscribed to, and called correspondingly according to the Groovy script method of this subscription The SOAP request message subscribed to, S107, script execution module sends to command execution module and includes subscribing to SOAP request message execution subscribe to order;S108, command execution module is according to the SOAP subscribing to Request message execution HTTP request is called;S109, implementing result is returned to script by command execution module Performing module.
The method of testing of northbound interface provided in an embodiment of the present invention can be by embodiment illustrated in fig. 5 of the present invention The execution of northbound interface test device, each step of the method and the north orientation provided in an embodiment of the present invention providing The function of each device in interface test device corresponds to, and it is similar with technique effect, herein not that it realizes principle Repeat again.
Further, on the basis of the method for testing of the northbound interface that the various embodiments described above provide, After S140 and S109, all can execute S150, implementing result is transferred to result by script execution module Generation module;S160, result-generation module exports implementing result, and this implementing result includes the institute of test There is a northbound interface, and the testing time of each northbound interface and testing time.In addition, in above-mentioned each reality On the basis of applying example, script execution module, during perform script use-case, also includes:Script executes The execution information of script use-case and abnormal information are sent to logging modle by module;Subsequently, logging modle note Record and show execution information and the abnormal information of script use-case.
Although disclosed herein embodiment as above, described content only readily appreciates the present invention And the embodiment adopting, it is not limited to the present invention.Technology people in any art of the present invention Member, without departing from disclosed herein spirit and scope on the premise of, can be in the form implemented and thin Any modification and change are carried out on section, but the scope of patent protection of the present invention, still must be with appended right The scope that claim is defined is defined.

Claims (14)

1. a kind of northbound interface test device is it is characterised in that include:Script execution module and order Performing module;
Wherein, described script execution module, for executing the script use-case in the script developed in advance, root Call correspondingly request message according to described script use-case, and include described request to command execution module transmission The execution order of message;
Described command execution module, executes corresponding test operation for the content according to described request message, And implementing result is returned to described script execution module, described request message is used for the north to current test Tested to the corresponding communication interface of interface.
2. the northbound interface test device stated according to claim 1 is it is characterised in that the execution of described script Module current execution script use-case includes testing notifying of task, and described device also includes:Notice connects Receive module;Described script execution module, is additionally operable to after executing described script use-case, to described notice Receiver module sends first and subscribes to order;
Described notice receiver module, notifies for obtaining the described first test subscribing to order instruction, and will The test of described acquisition notifies to return to described script execution module;
Described script execution module, is additionally operable to unsubscribe order to described notice receiver module transmission.
3. northbound interface test device according to claim 1 it is characterised in that described device also Including:Initialization module and script load-on module;Described initialization module, in the execution of described script Before script use-case in the script that module execution is developed in advance, initializtion script load-on module loads described The script developed in advance, the initialization parameter of described command execution module and the ginseng of described notice receiver module Number, wherein, described script execution module execution script use-case is to be loaded according to described script load-on module Acquired in each script use-case in described script, described script includes described script use-case and script method, Described script method is the execution method of described script use-case;
Described notice receiver module, is additionally operable to continue after initialization the notice that the reception server sends.
4. northbound interface test device according to claim 3 is it is characterised in that described current survey The northbound interface of examination is Common Object Request Broker Architecture corba interface, described initialization module For the parameter of initialization command performing module, specifically include:Initialization Object Request Broker ORB;
Described initialization module is used for initializing the described parameter notifying receiver module, specifically includes:Pass through OMG's OMG standard, instruction is described to notify receiver module to call the described server of reception to send Notify;
Described initialization module, is additionally operable to before described script execution module executes described script use-case, Send to described script execution module and log in order, described log in the script method that order includes logging in;
Described script execution module, is additionally operable to according to the described script method logging in and logging in described in order execution, Correspondingly log on request message is called according to the described script method logging in, and to described command execution module The execution that transmission includes described log on request message logs in order;
Described command execution module, is additionally operable to execute CORBA according to the described log on request message receiving Dynamic call, and implementing result is returned to described script execution module.
5. northbound interface test device according to claim 3 is it is characterised in that described current survey The northbound interface of examination is the north of Multiple techniques operating system MTOSI interface or software defined network SDN To described initialization module is used for the parameter of initialization command performing module, specifically includes:Initialization is used Uniform resource position mark URL in construction HTTP request message;
Described initialization module is used for initializing the described parameter notifying receiver module, specifically includes:Subscribe to MTOSI notifies;
Described notice receiver module, is additionally operable to initialize described notice receiver module in described initialization module Parameter after, to described script execution module send second subscribe to order, described second subscribe to order in Including the script method subscribed to;
Described script execution module, is additionally operable to subscribe to, according to described second, the script that order executes described subscription Method, calls correspondingly subscription request message according to the script method of described subscription, and holds to described order Row module sends and includes the described execution subscription order subscribing to request message;
Described command execution module, is additionally operable to be called according to described subscription request message execution HTTP request, And implementing result is returned to described script execution module.
6. the northbound interface test device according to any one of Claims 1 to 5 it is characterised in that Described device also includes result-generation module;Described script execution module, is additionally operable in described order execution After described implementing result is returned to described script execution module by module, described implementing result is transferred to Described result-generation module;
Described result-generation module, for exporting described implementing result, described implementing result includes testing All northbound interfaces, and the testing time of each described northbound interface and testing time.
7. the northbound interface test device according to any one of Claims 1 to 5 it is characterised in that Described script execution module executes described script use-case, specifically includes:Use according to script each in described script The order of example executes successively;And/or,
Described device also includes logging modle;Described script execution module, is additionally operable to executing described script During use-case, the execution information of described script use-case and abnormal information are sent to described logging modle;
Described logging modle, for recording and showing execution information and the abnormal information of described script use-case.
8. a kind of method of testing of northbound interface is it is characterised in that include:
Script use-case in the script that script execution module execution is developed in advance, adjusts according to described script use-case With correspondingly request message, and send the execution order including described request message to command execution module;
Described command execution module executes corresponding test operation according to the content of described request message, and will Implementing result returns to described script execution module, and described request message is used for the north orientation of current test is connect The carrying out of the corresponding communication interface of mouth is tested.
9. the method for testing of northbound interface according to claim 8 is it is characterised in that described script Performing module current execution script use-case includes testing notifying of task, and described script executes described pin After this use-case, also include:
Described script execution module sends first to notice receiver module and subscribes to order;
The described test notifying receiver module to obtain described first subscription order instruction notifies, and obtains described The test taking notifies to return to described script execution module;
Described script execution module sends to described notice receiver module and unsubscribes order.
10. the method for testing of northbound interface according to claim 8 is it is characterised in that described pin Before script use-case in the script that the execution of this performing module is developed in advance, also include:
The script developed in advance described in the loading of initialization module initializtion script load-on module, initialization is described The parameter of command execution module and the parameter of described notice receiver module, wherein, described script execution module Execution script use-case is obtained by loading each script use-case in described script according to described script load-on module Take, described script includes described script use-case and script method, described script method is that described script is used The execution method of example;
After the parameter of described initialization module initialization described notice receiver module, also include:
The described notice notifying receiver module to continue the reception server transmission after initialization.
The method of testing of 11. northbound interfaces according to claim 10 is it is characterised in that described work as The northbound interface of front test is Common Object Request Broker Architecture corba interface, described initialization The parameter of command execution module, including:Initialization Object Request Broker ORB;
The parameter of described initialization described notice receiver module, including:Marked by OMG OMG Standard, instruction is described to notify receiver module to call the notice receiving described server transmission;
Before script use-case in the script that described script execution module execution is developed in advance, also include:
Described initialization module sends to described script execution module and logs in order, and described logging in order is wrapped Include the script method logging in;
Described script execution module logs in the script method that logs in described in order execution according to described, according to institute State the script method logging in and call correspondingly log on request message, and send bag to described command execution module The execution including described log on request message logs in order;
Described command execution module executes the dynamic of CORBA according to the described log on request message receiving Call, and implementing result is returned to described script execution module.
The method of testing of 12. northbound interfaces according to claim 10 is it is characterised in that described work as The northbound interface of front test is Multiple techniques operating system MTOSI interface or software defined network SDN North orientation, the parameter of described initialization command performing module, including:Initialize and pass for constructing hypertext The uniform resource position mark URL of defeated protocol HTTP request message;
The parameter of described initialization described notice receiver module, including:Subscribe to MTOSI to notify;
After the parameter of described initialization module initialization described notice receiver module, also include:
Described notice receiver module sends second to described script execution module and subscribes to order, and described second orders Read the script method that order includes subscribing to;
Described script execution module subscribes to the script method that order executes described subscription, root according to described second Call correspondingly subscription request message according to the script method of described subscription, and send out to described command execution module Send and subscribe to order including the described execution subscribing to request message;
Described command execution module is called according to described subscription request message execution HTTP request, and will hold Row result returns to described script execution module.
The method of testing of the northbound interface any one of 13. according to Claim 8~12, its feature exists In, after implementing result is returned to described script execution module by described command execution module, also including:
Described implementing result is transferred to result-generation module by described script execution module;
Described result-generation module exports described implementing result, and described implementing result includes all of test Northbound interface, and the testing time of each described northbound interface and testing time.
The method of testing of the northbound interface any one of 14. according to Claim 8~12, its feature exists In, described script execution module executes described script use-case, including:
Described script execution module executes successively according to the order of script use-case each in described script;And/or,
During described script execution module executes described script use-case, also include:
The execution information of described script use-case and abnormal information are sent to record mould by described script execution module Block;
Described logging modle record simultaneously shows execution information and the abnormal information of described script use-case.
CN201510447745.7A 2015-07-27 2015-07-27 Northbound interface testing device and northbound interface testing method Active CN106407061B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510447745.7A CN106407061B (en) 2015-07-27 2015-07-27 Northbound interface testing device and northbound interface testing method
PCT/CN2016/080394 WO2016180237A1 (en) 2015-07-27 2016-04-27 Northbound interface test apparatus and test method for northbound interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510447745.7A CN106407061B (en) 2015-07-27 2015-07-27 Northbound interface testing device and northbound interface testing method

Publications (2)

Publication Number Publication Date
CN106407061A true CN106407061A (en) 2017-02-15
CN106407061B CN106407061B (en) 2020-06-16

Family

ID=57248748

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510447745.7A Active CN106407061B (en) 2015-07-27 2015-07-27 Northbound interface testing device and northbound interface testing method

Country Status (2)

Country Link
CN (1) CN106407061B (en)
WO (1) WO2016180237A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107846323A (en) * 2017-10-25 2018-03-27 国网山东省电力公司信息通信公司 A kind of running state monitoring method and system of producer's specialty webmaster northbound interface

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110647458A (en) * 2018-06-27 2020-01-03 优视科技有限公司 Testing method and device based on distributed testing platform and electronic equipment
CN110232016A (en) * 2019-03-08 2019-09-13 上海蔚来汽车有限公司 Interface testing case generation method, device and controller and medium
CN110941563B (en) * 2019-12-31 2024-04-16 中国银行股份有限公司 Automatic script testing method and device
CN113162823B (en) * 2021-04-06 2022-10-21 广州鲁邦通物联网科技股份有限公司 APP test simulation system and Internet of things simulation test method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0730227A1 (en) * 1995-03-03 1996-09-04 Sun Microsystems, Inc. System and method for a distributed debugger for debugging distributed application programs
CN1852178A (en) * 2005-11-16 2006-10-25 华为技术有限公司 Protocol testing apparatus and method thereof
US20070157215A1 (en) * 2002-07-08 2007-07-05 Garbanati Linda J F Methods and systems of verifying EMS compliance via NMS interface
CN101212357A (en) * 2006-12-31 2008-07-02 亿阳信通股份有限公司 Interface testing method and device
CN101266570A (en) * 2007-03-15 2008-09-17 中兴通讯股份有限公司 Software system test method and apparatus
CN101996132A (en) * 2009-08-14 2011-03-30 中兴通讯股份有限公司 Method and device for automatically testing common object request broker architecture (CORBA) interfaces
CN102546260A (en) * 2012-02-06 2012-07-04 烽火通信科技股份有限公司 Simulator based on SNMP (Simple Network Management Protocol) network management

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070104111A1 (en) * 2005-11-04 2007-05-10 Intel Corporation Internal analog loopback for a high-speed interface test
CN103353857B (en) * 2013-05-31 2016-04-20 国家电网公司 The communication test method of a kind of transformer station comprehensive monitoring unit

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0730227A1 (en) * 1995-03-03 1996-09-04 Sun Microsystems, Inc. System and method for a distributed debugger for debugging distributed application programs
US20070157215A1 (en) * 2002-07-08 2007-07-05 Garbanati Linda J F Methods and systems of verifying EMS compliance via NMS interface
CN1852178A (en) * 2005-11-16 2006-10-25 华为技术有限公司 Protocol testing apparatus and method thereof
CN101212357A (en) * 2006-12-31 2008-07-02 亿阳信通股份有限公司 Interface testing method and device
CN101266570A (en) * 2007-03-15 2008-09-17 中兴通讯股份有限公司 Software system test method and apparatus
CN101996132A (en) * 2009-08-14 2011-03-30 中兴通讯股份有限公司 Method and device for automatically testing common object request broker architecture (CORBA) interfaces
CN102546260A (en) * 2012-02-06 2012-07-04 烽火通信科技股份有限公司 Simulator based on SNMP (Simple Network Management Protocol) network management

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107846323A (en) * 2017-10-25 2018-03-27 国网山东省电力公司信息通信公司 A kind of running state monitoring method and system of producer's specialty webmaster northbound interface
CN107846323B (en) * 2017-10-25 2020-03-06 国网山东省电力公司信息通信公司 Method and system for monitoring running state of north interface of manufacturer professional network management

Also Published As

Publication number Publication date
CN106407061B (en) 2020-06-16
WO2016180237A1 (en) 2016-11-17

Similar Documents

Publication Publication Date Title
Cinque et al. Microservices monitoring with event logs and black box execution tracing
CN106095677B (en) The RESTful Webservice automatic interface testing methods realized based on Robot Framework
US7437275B2 (en) System for and method of multi-location test execution
Maâlej et al. Distributed and Resource-Aware Load Testing of WS-BPEL Compositions.
Baresi et al. Event-based multi-level service monitoring
CN102402481B (en) The fuzz testing of asynchronous routine code
CN109460223B (en) API gateway management system and method thereof
CN106407061A (en) Northbound interface testing device and northbound interface testing method
CN104579822A (en) Automatic performance test system and method of mobile application based on Http protocol
CN107294808A (en) The methods, devices and systems of interface testing
CN107506303A (en) Method, apparatus and system for automatic test
CA2657487A1 (en) Distributed capture and aggregation of dynamic application usage information
CN111130922A (en) Airborne information safety automatic test method and test platform
CN110780856B (en) Electricity data release platform based on micro-service
Kufel Security event monitoring in a distributed systems environment
GB2428837A (en) Method of transferring dynamically generated data between the nodes of a wireless network to test the network services.
CN102291274B (en) A kind of system and method realizing automatic adaptation of network testing instrument
CN106776346A (en) The method of testing and device of CCMTS equipment
CN107592359A (en) A kind of service end response method, device and medium based on RPC agreements
Yu et al. A general conformance testing framework for IEEE 11073 PHD's communication model
CN107911442A (en) Receive response interface exchange method, device, computer equipment and storage medium
CN107305524A (en) Method for testing pressure and system
Leitner et al. The dark side of SOA testing: Towards testing contemporary SOAs based on criticality metrics
CN109358972A (en) Blog management method, device and the computer system of middleware client
Schmid Modeling and Simulation of Message-Driven Self-Adaptive Systems

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant