CN106209439A - Service link automatization covering method and device - Google Patents

Service link automatization covering method and device Download PDF

Info

Publication number
CN106209439A
CN106209439A CN201610513977.2A CN201610513977A CN106209439A CN 106209439 A CN106209439 A CN 106209439A CN 201610513977 A CN201610513977 A CN 201610513977A CN 106209439 A CN106209439 A CN 106209439A
Authority
CN
China
Prior art keywords
automatic test
module
test cases
functional module
content
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
CN201610513977.2A
Other languages
Chinese (zh)
Other versions
CN106209439B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610513977.2A priority Critical patent/CN106209439B/en
Publication of CN106209439A publication Critical patent/CN106209439A/en
Application granted granted Critical
Publication of CN106209439B publication Critical patent/CN106209439B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5041Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service
    • H04L41/5054Automatic deployment of services triggered by the service manager, e.g. service implementation by automatic configuration of network components
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • H04L43/55Testing of service level quality, e.g. simulating service usage

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The disclosure discloses a kind of service link automatization covering method and device.Described service link automatization covering method, including: in the machine of the business of deployment, carry out port snoop, capture and obtain several communication bags that are mutually related on service link;Obtain the functional module on described service link;Described communication bag crawl obtained is converted into the level with described functional module and divides the automatic test cases combination matched.Match so that automatic test cases combination is the multiple functional modules with business, this improves the globality realizing automatic test in business.

Description

Service link automatization covering method and device
Technical field
It relates to Computer Applied Technology field, it is specifically related to a kind of method of testing, particularly to a kind of business chain Road automatization covering method and device.
Background technology
Along with the fast development of Computer Applied Technology, provide various often through realizing miscellaneous service for people The service of sample.For the realization of business, it all relates to greatly the project of multidisciplinary or many team.In other words, business The service provided is by by multiple Implement of Function Modules, and each functional module all has responsible department or team.
In most of the cases, department or team only the functional module of self-responsibility can do some automatic tests and use Example, to cover the inspection of external interface calling section.
Accordingly, for for the business that multidisciplinary or many team are realized, different departments or different team do from Associating of dynamicization test case not architectonical, but scattered existence, therefore, the realization of automatic test in business There is the limitation lacking globality.
Summary of the invention
The technology of globality of lacking is there is in order to solve present in correlation technique the realization of automatic test in business Problem, present disclose provides a kind of service link automatization covering method and device.
A kind of service link automatization covering method, including:
In the machine of the business of deployment, carry out port snoop, capture and obtain several communication bags that are mutually related on service link;
Obtain the functional module on described service link;
Described communication bag crawl obtained is converted into the level with described functional module and divides the automatic test use matched Example combines.
A kind of service link automatization cladding system, described device includes:
Monitor module, for carrying out port snoop in the machine of the business of deployment, capture and obtain being mutually related on service link Several communication bags;
Function acquisition module, for obtaining the functional module on described service link;
Modular converter, the described communication bag for crawl being obtained is converted into what the level division with described functional module matched Automatic test cases combines.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect:
The business realized for multiple functional modules, by carrying out port snoop in the machine of the business of deployment, captures self industry Be mutually related on business link several communication bags, obtains the functional module on service link, and communication bag crawl obtained turns Change the level with functional module into and divide the automatic test cases combination matched, so that automatic test cases combination It is that the multiple functional modules with business match, this improves the globality realizing automatic test in business.
It should be appreciated that it is only exemplary that above general description and details hereinafter describe, can not be limited this Open.
Accompanying drawing explanation
Accompanying drawing herein is merged in description and constitutes the part of this specification, it is shown that meet the enforcement of the present invention Example, and in description together for explaining the principle of the present invention.
Fig. 1 is the schematic diagram according to the implementation environment involved by the disclosure;
Fig. 2 is the block diagram according to a kind of device shown in an exemplary embodiment;
Fig. 3 is the flow chart according to a kind of service link automatization covering method shown in an exemplary embodiment;
Fig. 4 is according to carrying out port snoop in the machine of the business of deployment shown in an exemplary embodiment, captures and obtains industry The flow chart of the description that the details of several communication bag steps that are mutually related on business link is carried out;
Fig. 5 is to draw according to the level being converted into communication bag crawl obtained with functional module shown in an exemplary embodiment The flow chart of the description that the details of the automatic test cases combination step of split-phase coupling is carried out;
Fig. 6 is business realizing high-level schematic functional block diagram from system level;
Fig. 7 is to obtain the automatization of storage according to an exemplary embodiment to according to the communication bag of module to be tested input in level Test case content, fills automatic test cases content and generates automatic test cases step corresponding to the communication bag inputted The description flow chart that details is carried out;
Fig. 8 be according to shown in an exemplary embodiment to the parsing carrying out communication bag, it is thus achieved that communication bag corresponding function module Automatic test cases content, and the flow chart of description that the details of storing step is carried out;
Fig. 9 is the flow chart of the work process of packet catcher in an exemplary embodiment;
Figure 10 is the simplified schematic diagram of communication bag in service link;
Figure 11 be in Figure 10 using all functional modules as holistic simplified schematic diagram;
Figure 12 is the simplified schematic diagram that all functional modules are divided in Figure 10 big module;
Figure 13 is the simplified schematic diagram carrying out module divides in Figure 10;
Figure 14 is the block diagram according to a kind of service link automatization cladding system shown in an exemplary embodiment
Figure 15 is the block diagram monitoring module in Figure 14 correspondence embodiment;
Figure 16 is the block diagram of modular converter in Figure 14 correspondence embodiment;
Figure 17 is the block diagram of use-case signal generating unit in Figure 16 correspondence embodiment;
Figure 18 is the block diagram of resolution unit in Figure 16 correspondence embodiment.
Detailed description of the invention
Here in detail exemplary embodiment will be performed explanation, its example represents in the accompanying drawings.Explained below relates to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the present invention.On the contrary, they are only with the most appended The example of the apparatus and method that some aspects that described in detail in claims, the present invention are consistent.
Fig. 1 is the schematic diagram according to the implementation environment involved by the disclosure.This implementation environment includes: at least one server 110 and data center 130.
Interrelational form between server 110 and data center 130, including procotol and the number that comes and goes therebetween According to interrelational form.
Fig. 2 is the block diagram according to a kind of device 200 shown in an exemplary embodiment.Such as, device 200 can be Fig. 1 Server 110 in shown implementation environment.With reference to Fig. 2, device 200 can include following one or more assembly: processes assembly 202, memorizer 204, power supply module 206 and communications component 208.
Process assembly 202 and generally control the integrated operation of device 200, process assembly 202 and can include one or more place Reason device 210 performs instruction, to complete all or part of step of above-mentioned method.Additionally, process assembly 202 can include one Individual or multiple modules, it is simple to process between assembly 202 and other assemblies is mutual.
Memorizer 204 is configured to store various types of data to support the operation at device 200.Showing of these data Example includes any application program for operating on the device 200 or the instruction of method.Memorizer 204 can be by any kind of Volatibility or non-volatile memory device or combinations thereof realize, such as static RAM (SRAM), electrically erasable Except programmable read only memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash memory, disk or CD.In memorizer 204, also storage has one Or multiple module, these one or more modules are configured to be performed by these one or more processors 210, with complete above-mentioned Fig. 3, 4, all or part of step of embodiment corresponding to Fig. 5, Fig. 7 and Fig. 8.
The various assemblies that power supply module 206 is device 200 provide electric power.Power supply module 206 can include power management system System, one or more power supplys, and other generate, manage and distribute, with for device 200, the assembly that electric power is associated.
Communications component 208 is configured to facilitate the communication of wired or wireless mode between device 200 and other equipment.One In individual exemplary embodiment, communications component 208 via broadcast channel receive from external broadcasting management system broadcast singal or Broadcast related information.In one exemplary embodiment, described communications component 208 also includes broadband (UWB) technology and other skills Art realizes.
In the exemplary embodiment, device 200 can be by one or more application specific integrated circuits (ASIC), numeral letter Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components realize, be used for performing said method.
Fig. 3 is the flow chart according to a kind of service link automatization covering method shown in an exemplary embodiment.This industry Business link automatization covering method is for the server 110 of implementation environment shown in Fig. 1.As it is shown on figure 3, this service link automatization Covering method, can be performed by server 110, may comprise steps of.
In the step 310, carrying out port snoop in the machine of the business of deployment, crawl obtains on service link interrelated Several communication bags.
Wherein, the business of indication is deployed in multiple machine, for realizing some special services.Such as, business quilt It is deployed in server cluster, realizes its respective service by the data interaction between user and server cluster.For portion Being deployed on the business in multiple machine, it will be correspondingly formed service link, and be the phase by functional module each on service link Interworking is incompatible realizes the service that this business can provide.
Based on this, service link also existing several communication bags, such as, on service link, the communication bag of input is with final The communication bag of output, to complete a request loop.
By disposing on the service link that realized of machine of business, communication bag be the port input by configuration in machine or Person's output, therefore, cover for realizing the automatization of test case on service link, the machine middle port of deployment business will be carried out Monitoring, to capture communication bag.
Further, the multiple functional modules on service link are to be mutually related, and functional module is to lead to by one The input of news bag and the output of another communication bag realize himself function.The communication bag input that functional module is carried out And output, it is all to be realized by the port of configuration on machine.Therefore, by carrying out the monitoring of port, it is possible to capture and obtain industry Communication bag on business link, and based on the functional module that is mutually related, captured the communication bag obtained and be also mutually related.
In a step 330, the functional module on service link is obtained.
Wherein, acquired functional module refers to the multiple functional modules on service link.In other words, multiple function moulds Cooperating between block realization of functions just achieves the service that business is provided.
In step 350, communication bag crawl obtained is converted into level with functional module and divides match automatic Change test case combination.
Wherein, corresponding communication bag is used to generate automatic test cases combination according to the level division of functional module. Owing to no matter how functional module carries out level division, it all constitutes whole service link, therefore, the automatization thus generated Test case just also cover whole service link, and then ensure that the globality of automatic test in business.
It should be noted that automatic test cases combination includes multiple automatic test cases that is mutually related, this is certainly Dynamicization test case will be that level according to functional module divides and generates, thus by the functional module with service link mutually Join.
Communication bag also exists source network address and the purpose network address, port information and business datum.Therefore, can conduct The test data of the automatic test cases of the corresponding function module, to generate automatic test cases.
The level of functional module divides and refers to the multiple functional modules on service link according to its respective distribution feelings The level that condition is carried out divides, and the actual traffic-operating period according to business is determined, is not defined at this by level flexibly that divided.
Captured by communication bag as above and the automatic test cases of communication bag conversion acquisition service link combines. The automatic test cases comprised in the combination of this automatic test cases can cover each functional module of service link, will be each Automatic test cases is based on functional module architectonical to be associated, and is no longer present on service link scattered automatic Change test case, it is to avoid the covering disappearance on service link, improve globality.
Fig. 4 is the description carried out according to the details to step 310 shown in an exemplary embodiment.This step 310 is used for The server 110 of implementation environment shown in Fig. 1, as shown in Figure 4, this step 310, may comprise steps of.
In step 311, the configuration information of business is obtained.
Wherein, the configuration information of business includes the configuration information that each functional module is correlated with.On the one hand, the configuration letter of business Breath denote the port that each functional module configures in the machine, this port for realize the corresponding function module communication bag input and Output.
On the other hand, the configuration information of business is stored when carrying out service deployment, denotes in the configuration information of business The configuring condition of each machine self of service deployment, such as, the port configuration in machine, it is and the address of service phase of record Corresponding.
Concrete, dispose in the machine of business, obtain the address of service corresponding to this locality, i.e. Adapter Name institute according to Adapter Name The address of service of corresponding machine, can obtain the configuration information of the business of storage thus according to address of service.
In step 313, corresponding port is obtained according to the address of service of machine from configuration information.
Wherein, first obtain the address of service corresponding to machine of deployment business, be able at configuration letter according to address of service Obtaining the port of correspondence in breath, this port acquired is in server the port configured for realizing the deployment of business, Such as, for the address of service according to a machine is from the port that configuration information acquires, that includes on service link Operate in the input port corresponding to the functional module of this machine and output port.
In implementing, configuration information is stored in and the machine of data center's binding, such as, deploys zookeeper The machine of (distributed application program coordination service), therefore, for disposing the machine of business, connects and stores configuration information Machine i.e. can obtain configuration information.
In step 315, port is monitored, if the communication bag capturing port obtains being mutually related on service link Dry communication bag.
Wherein, each machine disposing business is all configured with packet catcher, is carried out the prison of machine middle port by packet catcher Listen, to capture the communication bag in port.By that analogy, for forming all machines of whole service link, will be by each machine In device, the packet catcher of configuration captures and obtains communication bag, the most just each functional module is distinguished several corresponding communication bags, It, by constituting request loop complete on service link, therefore, becomes several communication bags that are mutually related on service link.
Fig. 5 is the description carried out according to the details to step 350 shown in an exemplary embodiment.This step 350 is used for The server 110 of implementation environment shown in Fig. 1, as it is shown in figure 5, this step 350, may comprise steps of.
In step 351, the level division carrying out functional module obtains the module to be tested that each level comprises.
Wherein, foregoing, service link containing multiple functional module, it is distributed in and carries out each of service deployment In machine.
Such as, as shown in Figure 6, the realization of a business from system module aspect, totally 12 functional modules, and by three Individual team is responsible for.
Thus, these 12 functional modules can be carried out level division, and come according to the communication bag input carried out in each level Obtain the module to be tested that this level is comprised.
Such as, 12 shown in Fig. 6 functional module being divided into three levels, wherein, a level is by all function moulds Block is divided into an entirety, and the module to be tested thus comprised is functional module 1;Next level is all functional modules to be divided Become big module, i.e. such as the division of vertical line in Fig. 6, the module to be tested thus comprised is function village 1, functional module 5 and function Module 9;Next level is single module again, and the module to be tested i.e. comprised is each functional module.
Divided by level as above, construct by the overall block combiner to be tested to single module of service link, It is that the thickness program that relative functional module divides is different between each level, there is certain characteristic between module to be tested and close Join and be the most also mutually related, therefore, laying the foundation for the raising of globality in subsequent automated test case.
In step 353, the fineness divided relative to functional module according to module to be tested in level and incoming traffic The automatic test cases content that bag is corresponding, successively level generates the automatic test cases of module to be tested.
Wherein, foregoing, the level carried out functional module divides and there is the different thick of functional module division Thin degree.It is to enter according to functional module division hierarchic sequence from coarse to fine that the automatic test cases of module to be tested generates Row, and then successively level generates the automatic test cases of module to be tested.
In step 355, the automatic test cases that is mutually related is constituted the automatic test cases group of service link Close.
Wherein, the use-case to be tested that each level is comprised will constitute the functional module on service link, therefore, successively level The automatic test cases of the module to be tested generated, also by interrelated, constitutes whole service link, i.e. constitute business The automatic test cases combination of link.
By process as above, just obtain automatic test cases combination based on service link, thus will be whole Body business is drawn logical, it is achieved the automatization of business covers, and avoids covering disappearance.
Optionally, this step 350 can also comprise the following steps.
Carry out the parsing of communication bag, it is thus achieved that automatization's use-case content of communication bag corresponding function module, and store.
Wherein, communication bag also exists the business datum of the horizontal block of corresponding function and the relevant information of self communication, such as, Transmission directional information, port information.Accordingly, it would be desirable to carry out the parsing of communication bag, to obtain functional module corresponding to this communication bag Carry out the automatic test cases content of automatic test.
In implementing, store acquiring automatic test cases content to the data of implementation environment shown in Fig. 1 The heart 130, in order to subsequent calls.Data center 130 refers to deploy the machine of data base, preferred in an exemplary embodiment In mode, this data base can be distributed data base, such as, kafka.
In the details of step 355 is described by an exemplary embodiment, step 355 includes:
Obtain the automatic test cases content of storage according to the communication bag of module to be tested input in level, fill automatization and survey Example content on probation generates the automatic test cases that the communication bag inputted is corresponding.
Wherein, foregoing, it is stored in data center, i.e. deploys the automatic test content on the machine of data base Correspond respectively to, by being, the communication bag that each functional module inputs or exports, this communication bag correspond respectively to functional module and Automatic test cases content.
Therefore, thus relation understand, automatic test cases content by corresponding with certain functional module, for The initial data of automatic test is carried out as this functional module.
Dividing degree from coarse to fine according to relative functional module, successively level carries out the automatic test use of module to be tested Example generates.In the process, the automatic test cases for a level generates, and the first corresponding automatization obtaining storage is surveyed Examination content, and fill this automatic test content and i.e. can get the automatic test cases of module to be tested in this level.
By this process, control each level and achieve the generation of respective automatic test cases, thus will be taken into account industry Each functional module on business link, and avoid there is disappearance.
Fig. 7 is to obtain oneself of storage according to an exemplary embodiment to according to the communication bag of module to be tested input in level Dynamicization test case content, fills automatic test cases content and generates the automatic test cases step that the communication bag inputted is corresponding The description that rapid details is carried out.As shown in Figure 7, may comprise steps of.
In step 3551, for functional module being divided into holistic module to be tested, defeated according to module to be tested The communication bag entered obtains the automatic test content of storage, fills automatic test content and generates automatic test cases.
Wherein, foregoing, first it is that all functional modules on service link are divided into an entirety, will own Functional module is considered as entirety, and now, according to the communication bag of input, on service link, first functional module is wrapped by this level The module to be tested contained, and be that it obtains the automatic test content stored accordingly, generate automatic test cases.
In step 3553, for functional module being divided into the module to be tested of several big modules, according to big module The communication bag of input obtains the automatic test content of storage, fills automatic test content and generates automatic test cases.
Wherein, by automatic test content, generate big module and distinguished the automatic test cases of correspondence, the most just obtain The service link upper part functional module arrived is distinguished the automatic test cases of correspondence.
In step 3555, obtain automatic test to be generated according to functional module and the automatic test cases generated The functional module of use-case, obtains the automatic test content of storage according to the communication bag of functional module input, fills automatization and surveys Examination content generates automatic test cases.
Wherein, the automatic test cases that will carry out last level, i.e. functional module generates, here, the function of indication Module refers to currently not carried out the functional module of automatic test cases generation by aforementioned layers level.
Process is generated so that each automatic test on service link by the automatic test cases of each level described above The generation of use-case is also interrelated, matches with the functional module stored, is the most just capable of whole service link On automatic test, it is achieved single module draws logical to full link, end to end use-case cover and monitoring.
In a kind of service link automatization covering method shown in an exemplary embodiment, the method can also include connecting Dispose the step of the machine of data base.
Fig. 8 is the description carried out according to the details to step 351 shown in an exemplary embodiment.This step 351 is used for The server 110 of implementation environment shown in Fig. 1.As shown in Figure 8, the parsing of communication bag is carried out, it is thus achieved that communication bag corresponding function module Automatization's use-case content, and the step stored, may comprise steps of.
In step 3501, resolve communication bag and obtain transmitting directional information, port information and business datum.
Wherein, the packet header resolving communication bag obtains transmitting directional information and port information.Transmission directional information is used for indicating Send and receive the network address of data;Port information is then for indicating the port sending data with receiving data.
Obtaining service agreement information, the inclusion resolving communication bag according to service agreement information obtains business datum.Service association View information includes protocol type and msg etc..In other words, the protocol type according to message is resolved with message structure, with Obtain business datum.
In step 3503, by the connection between the machine of deployment data base, will transmission directional information, port information Store to data base as the automatic test cases content of communication bag respective modules with business datum.
Wherein, in implementing, data base can subscribe to message system by kafka(distributed post) realize, with Subscribe to message system by the distributed post of this high-throughput of kafka, realize storage and the process of data.
According in a kind of service link automatization covering method shown in an exemplary embodiment, also include:
Be mutually related in being combined by automatic test cases being separately operable of automatic test cases, and carries out on service link Automatic test.
Wherein, similar with automatic test cases generation process, combined by automatic test cases, carry out business Upper single module, big module and the automatic test of full link, and then realize monitoring or the regression test of service link.
In conjunction with concrete application scenarios, this service link automatization covering method is described.Such as, Fig. 6 is that a business is in system Schematic diagram in module aspect.
First, the packet catcher by being deployed in each machine is realized the prison of particular port on the disposed machine of business Listen, and the communication Packet analyzing that will obtain, to obtain the automatic test cases content for generating automatic test cases, and deposit Storage is to data center.
Implementing that an exemplary embodiment is provided, Fig. 9 shows packet capturing work in an exemplary embodiment The work process of tool.
In each machine of deployment business, obtain public network address according to self network interface card name, and connect deployment The machine of zookeeper obtains configuration information, i.e. performs step 610 and step 620.
Now, public network address in the port involved by service operation, i.e. configuration information can be obtained from configuration information Corresponding all of the port, and connect data center, thinks that the follow-up data storage carried out is prepared, i.e. perform step 630 with Step 640.
The communication bag that each machine all will input in capture-port or exports, i.e. performs step 650, and carries out communication therewith The parsing of bag, as shown in step 660 to step 710, in order to obtain transmitting directional information, port information and business datum, and Store to data center, the most just provide data basis for follow-up automatic test cases.
Each functional module runs in each machine by business deployment in the machine, and by the input of communication bag With output realizes the interaction between each functional module.
Such as, Figure 10 is the simplified schematic diagram of communication bag in service link, including tri-functional modules of A, B and C, 1,2,3,4, 5 and 6 are communication bag, and the arrow at place will indicate the transmission direction of communication bag.
Wherein, mobile phone terminal initiates request, the service provided with acquisition request business to the server realizing business.At this During, the request that mobile phone terminal is initiated is communication bag 1, has issued functional module A, after functional module A receives, has initiated communication bag 2 give functional module B, and functional module B has initiated communication bag 3 to functional module C after receiving, functional module C receives post processing and completes, Returning communication bag 4 to functional module B, functional module B has processed rear Returning communication bag 5 to functional module A, at functional module A Manage rear Returning communication bag to mobile phone terminal, the most just complete a request loop.
It follows that these communication bags are to produce through each functional module in a request process, it is mutually to close Connection.
Can be captured by exemplary embodiment corresponding for Fig. 4 in the disclosure and obtain, and store to data center kafka.
Now, these 12 functional modules will be carried out level division.First, as shown in figure 11, all functional modules are made It is that an entirety, i.e. entirety regard a black box as, thus generates an end-to-end automatic test cases, be also to functional module simultaneously The automatic test cases of 1.
Secondly, as shown in figure 12, these 12 functional modules are divided into big module, with thus complete 3 big modules from The generation of dynamicization test case.
Finally, as shown in figure 13, carrying out module divides, the automatic test cases i.e. completing single module generates.
So far, in business, single module, big module all generate with the automatic test cases of full link, although each single mode The automatic test cases of block or big module has the emphasis oneself checked, but, for the full link communication of service link During transparent transmission always or as crucial some parameters judged or the inspection of logic, it will run through all automatic tests and use In example.
Automatic test cases as above is used for monitoring or during regression test, as long as if it fails, then seeing and be Which automatic test cases failure, just is easy to judge problem, such as, and the automatic test cases of functional module 8 to 12 Carried out is successfully tested, the test crash that the automatic test cases of functional module 1 to 7 is carried out, then can determine whether to ask Inscribe out in the logic of functional module 7.
Following for disclosure device embodiment, may be used for performing the service link automatization that above-mentioned server 110 performs Covering method.For the details not disclosed in disclosure device embodiment, refer to covering side of disclosure service link automatization Method embodiment.
Figure 14 is the block diagram according to a kind of service link automatization cladding system shown in an exemplary embodiment, this business Link automatization cladding system may be used in the server 110 of implementation environment shown in Fig. 1, performs the service link shown in Fig. 3 Automatization covers all or part of step sought.As shown in figure 14, this service link automatization cladding system includes but does not limits In: monitor module 510, function acquisition module 530 and modular converter 550.
Monitoring module 510, for carrying out port snoop in the machine of the business of deployment, crawl obtains on service link mutual Several communication bags of association.
Function acquisition module 530, for obtaining the functional module on service link.
Modular converter 550, the communication bag for crawl being obtained is converted into what the level division with functional module matched Automatic test cases combines.
Optionally, monitor module 510 such as Figure 15 and show, including configuration acquiring unit 511, port acquiring unit 513 and communication Bag placement unit 515.
Configuration acquiring unit 511, for obtaining the configuration information of business.
Port acquiring unit 513, obtains corresponding port for the address of service according to machine from configuration information.
Communication bag placement unit 515, for monitoring port, the communication bag capturing port obtains phase on service link Several communication bags of mutual correlation.
Reliably, modular converter 550 such as Figure 16 shows, including level division unit 551, use-case signal generating unit 553 and combination Component units 555.
Level division unit 551, obtains, for carrying out the level division of functional module, the module to be tested that each level comprises.
Use-case signal generating unit 553, for the fineness that divides relative to functional module according to module to be tested in level with The automatic test cases content that incoming traffic bag is corresponding, successively level generates the automatic test cases of module to be tested.
Combination Component units 555, constitutes the automatic of service link for the automatic test cases that will associate each other Change test case combination.
Optionally, modular converter 550 also includes resolution unit.This resolution unit is for carrying out the parsing of communication bag, it is thus achieved that The automatic test cases content of communication bag corresponding function module, and store.
Optionally, use-case signal generating unit 555 is further used for obtaining according to the communication bag of module to be tested input in level The automatic test cases content of storage, fills automatic test cases content and generates automatization's survey that the communication bag inputted is corresponding Example on probation.
Further, as Figure 17 shows, use-case signal generating unit 555 includes that the first use-case generates subelement the 5551, second use-case Generate subelement 5553 and the 3rd use-case generates subelement 5555.
First use-case generates subelement 5551, for for functional module is divided into holistic module to be tested, root The communication bag inputted according to module to be tested obtains the automatic test content of storage, fills automatic test content and generates automatization Test case.
Second use-case generates subelement 5553, for for the die trial to be measured that functional module is divided into several big modules Block, the communication bag inputted according to big module obtains the automatic test content of storage, fills automatic test content and generates automatically Change test case.
3rd use-case generates subelement 5555, for being treated according to functional module and the automatic test cases generated Generate the functional module of automatic test cases, obtain according to the communication bag of functional module input in the automatic test of storage Hold, fill automatic test content and generate automatic test cases.
In a kind of service link cladding system shown in one exemplary embodiment, also include database connection module.Data Storehouse link block disposes the machine of data base for connecting.
The description that Figure 18 is carried out according to the details to resolution unit shown in an exemplary embodiment.This resolution unit 810 Such as Figure 17, perform subelement 811 and storing sub-units 813 including resolving.
Resolve and perform subelement 811, be used for resolving communication bag and obtain transmitting directional information, port information and business datum.
Storing sub-units 813, the connection between the machine by deployment data base, will transmission directional information, end Message breath stores to data base as the automatic test cases content of communication bag respective modules with business datum.
In the service link automatization cladding system that one exemplary embodiment is obtained, also include automatic test module.From Dynamicization tests during module is used for being combined being separately operable of the automatic test cases that is mutually related by automatic test cases, enters Automatic test on row service link.
Optionally, the disclosure also provides for a kind of service link automatization cladding system, and this service link automatization covers can For in the server 110 of implementation environment shown in Fig. 1, described device includes:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to perform:
In the machine of the business of deployment, carry out port snoop, capture and obtain several communication bags that are mutually related on service link;
Obtain the functional module on described service link;
Described communication bag crawl obtained is converted into the level with described functional module and divides the automatic test use matched Example combines.
The processor of the device in this embodiment performs the concrete mode of operation in this service link automatization relevant The embodiment of covering method performs detailed description, explanation will be not set forth in detail herein.
In the exemplary embodiment, additionally providing a kind of storage medium, this storage medium is computer-readable recording medium, Can be such as to include the provisional of instruction and non-transitory computer-readable recording medium.This storage is situated between and refers to such as include instruction Memorizer 204, above-mentioned instruction can have been performed covering side of above-mentioned service link automatization by the processor 210 of device 200 Method.
It should be appreciated that the invention is not limited in precision architecture described above and illustrated in the accompanying drawings, and And various modifications and changes can performed without departing from the scope.The scope of the present invention is only limited by appended claim.

Claims (12)

1. a service link automatization covering method, it is characterised in that including:
In the machine of the business of deployment, carry out port snoop, capture and obtain several communication bags that are mutually related on service link;
Obtain the functional module on described service link;
Described communication bag crawl obtained is converted into the level with described functional module and divides the automatic test use matched Example combines.
Method the most according to claim 1, it is characterised in that described dispose business machine in carry out port snoop, Capture the step obtaining being mutually related on service link several communication bags to include:
Obtain the configuration information of described business;
Address of service according to described machine obtains corresponding port from described configuration information;
Monitoring described port, the communication bag capturing described port obtains being mutually related several on described service link Communication bag.
Method the most according to claim 1, it is characterised in that described described communication bag crawl obtained is converted into and institute State functional module level divide match automatic test cases combination step include:
The level division carrying out described functional module obtains the module to be tested that each level comprises;
Automatic corresponding with incoming traffic bag of the fineness that divides relative to functional module according to module to be tested in described level Changing test case content, successively level generates the automatic test cases of module to be tested;
The described automatic test cases associated each other is constituted the automatic test cases combination of described service link.
Method the most according to claim 3, it is characterised in that described described communication bag crawl obtained is converted into and institute State functional module level divide match automatic test cases combination step also include:
Carry out the parsing of described communication bag, it is thus achieved that automatization's use-case content of described communication bag corresponding function module, and store.
Method the most according to claim 3, it is characterised in that described according to module to be tested in described level relative to function The fineness of Module Division, successively the step of the test case that level generates module to be tested includes:
Obtain the automatic test cases content of storage according to the communication bag of module to be tested input in described level, fill described Automatic test cases content generates the automatic test cases corresponding to communication bag of described input.
Method the most according to claim 5, it is characterised in that described according to leading to that module to be tested in described level inputs News bag obtains the automatic test cases content of storage, fills described automatic test cases content and generates the communication of described input The step of the automatic test cases that bag is corresponding includes:
For functional module being divided into holistic module to be tested, obtain according to the communication bag of described module to be tested input The automatic test content of storage, fills described automatic test content and generates automatic test cases;
For described functional module being divided into the module to be tested of several big modules, according to the communication of described big module input Bag obtains the automatic test content of storage, fills described automatic test content and generates automatic test cases;
The function mould of automatic test cases to be generated is obtained according to described functional module and the automatic test cases that generated Block, the communication bag inputted according to described functional module obtains the automatic test content of storage, fills in described automatic test Hold and generate described automatic test cases.
Method the most according to claim 3, it is characterised in that described method also includes:
Connect the machine disposing data base;
The described parsing carrying out described communication bag, it is thus achieved that the automatic test cases content of described communication bag respective modules, and deposit The step of storage includes:
Resolve described communication bag to obtain transmitting directional information, port information and business datum;
By the connection between the machine of deployment data base, described transmission directional information, port information and business datum are made Automatic test cases content for described communication bag respective modules stores to described data base.
8. a service link automatization cladding system, it is characterised in that described device includes:
Monitor module, for carrying out port snoop in the machine of the business of deployment, capture and obtain being mutually related on service link Several communication bags;
Function acquisition module, for obtaining the functional module on described service link;
Modular converter, the described communication bag for crawl being obtained is converted into what the level division with described functional module matched Automatic test cases combines.
Device the most according to claim 8, it is characterised in that described modular converter includes:
Level division unit, obtains, for carrying out the level division of described functional module, the module to be tested that each level comprises;
Use-case signal generating unit, for the fineness divided relative to functional module according to module to be tested in described level and input The automatic test cases content that communication bag is corresponding, successively level generates the automatic test cases of module to be tested;
Combination Component units, constitutes the automatic of described service link for the described automatic test cases that will associate each other Change test case combination.
Device the most according to claim 10, it is characterised in that described use-case signal generating unit is further used for according to described In level, the communication bag of module to be tested input obtains the automatic test cases content of storage, fills described automatic test and uses Example content generates the automatic test cases corresponding to communication bag of described input.
11. devices according to claim 10, it is characterised in that described use-case signal generating unit includes:
First use-case generates subelement, for for functional module is divided into holistic module to be tested, treats according to described The communication bag of test module input obtains the automatic test content of storage, fills described automatic test content and generates automatization Test case;
Second use-case generates subelement, is used for for the module to be tested that described functional module is divided into several big modules, Communication bag according to the input of described big module obtains the automatic test content of storage, fills described automatic test content and generates Automatic test cases;
3rd use-case generates subelement, for obtaining to be generated according to described functional module and the automatic test cases generated The functional module of automatic test cases, the communication bag inputted according to described functional module obtains in the automatic test of storage Hold, fill described automatic test content and generate described automatic test cases.
12. devices according to claim 9, it is characterised in that described device also includes:
Database connection module, for connecting the machine disposing data base;
Described resolution unit includes:
Resolve and perform subelement, be used for resolving described communication bag and obtain transmitting directional information, port information and business datum;
Storing sub-units, the connection between the machine by deployment data base, by described transmission directional information, port letter Breath stores to described data base as the automatic test cases content of described communication bag respective modules with business datum.
CN201610513977.2A 2016-06-30 2016-06-30 Service link automates covering method and device Active CN106209439B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610513977.2A CN106209439B (en) 2016-06-30 2016-06-30 Service link automates covering method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610513977.2A CN106209439B (en) 2016-06-30 2016-06-30 Service link automates covering method and device

Publications (2)

Publication Number Publication Date
CN106209439A true CN106209439A (en) 2016-12-07
CN106209439B CN106209439B (en) 2019-09-13

Family

ID=57464335

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610513977.2A Active CN106209439B (en) 2016-06-30 2016-06-30 Service link automates covering method and device

Country Status (1)

Country Link
CN (1) CN106209439B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108733550A (en) * 2017-04-13 2018-11-02 北京京东尚科信息技术有限公司 A kind of Automation regression testing method, apparatus of function module
CN110532190A (en) * 2019-09-05 2019-12-03 北京博睿宏远数据科技股份有限公司 A kind of Software function test method, system and cluster

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101377758A (en) * 2008-07-14 2009-03-04 北京星网锐捷网络技术有限公司 Device and method for generating test case
CN101482815A (en) * 2008-01-10 2009-07-15 国际商业机器公司 Method and equipment for generating test case of software system
CN101989227A (en) * 2009-08-04 2011-03-23 中兴通讯股份有限公司 Test case generating method and device
WO2012063070A1 (en) * 2010-11-10 2012-05-18 Net Magnus Ltd A method of automatically testing different software applications for defects
CN103092756A (en) * 2013-01-08 2013-05-08 彭勇 Interactive automated testing system and method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101482815A (en) * 2008-01-10 2009-07-15 国际商业机器公司 Method and equipment for generating test case of software system
CN101377758A (en) * 2008-07-14 2009-03-04 北京星网锐捷网络技术有限公司 Device and method for generating test case
CN101989227A (en) * 2009-08-04 2011-03-23 中兴通讯股份有限公司 Test case generating method and device
WO2012063070A1 (en) * 2010-11-10 2012-05-18 Net Magnus Ltd A method of automatically testing different software applications for defects
CN103092756A (en) * 2013-01-08 2013-05-08 彭勇 Interactive automated testing system and method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108733550A (en) * 2017-04-13 2018-11-02 北京京东尚科信息技术有限公司 A kind of Automation regression testing method, apparatus of function module
CN110532190A (en) * 2019-09-05 2019-12-03 北京博睿宏远数据科技股份有限公司 A kind of Software function test method, system and cluster

Also Published As

Publication number Publication date
CN106209439B (en) 2019-09-13

Similar Documents

Publication Publication Date Title
KR101908467B1 (en) Method and apparatus for visualized network operation and maintenance
CN109218139B (en) Gateway test system
CN113422794A (en) Traffic recording and playback processing method and device and electronic equipment
US10979921B2 (en) Systems and methods for monitoring network slices using probes
CN108399114A (en) A kind of system performance testing method, apparatus and storage medium
CN110275822A (en) Performance test methods, device, equipment and the storage medium of application programming interfaces
CN110196800A (en) Distributed transaction test method, apparatus and system
CN106162700A (en) Method of testing, device and the terminal of a kind of terminal speech quality
CN106411637A (en) Internet-of-things device scenario testing method
CN106453411A (en) Short message gateway access method and system supporting multiple channels
CN112948217B (en) Server repair checking method and device, storage medium and electronic equipment
CN105868936A (en) Intelligent operation and maintenance and overhaul system applied to integrated operation and maintenance and overhaul of power transformation equipment
CN109471706A (en) A kind of response method and system of testing test
CN109783357A (en) The method and device of test application program, computer equipment, storage medium
CN105975396A (en) Generating method and system for automated testing case
CN106209439A (en) Service link automatization covering method and device
CN105868549A (en) Medical equipment based on Internet internet of things and communication device and method thereof
CN109858257A (en) Access control method and device
CN108122174A (en) Engineering household acceptance management method
CN109359707B (en) Method and device for processing rock and soil sample information, computer equipment and storage medium
CN106201852A (en) A kind of distributed test method and test system
CN106897218A (en) Software testing management method and device
CN108984398A (en) Software testing method and device, electronic device and storage medium
CN107748720A (en) A kind of method and device of the service parameter of detection function test cases
CN104699596A (en) Method and device for processing code coverage rate

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