CN106445824A - Interface comprehensiveness management system based on character - Google Patents

Interface comprehensiveness management system based on character Download PDF

Info

Publication number
CN106445824A
CN106445824A CN201610875057.5A CN201610875057A CN106445824A CN 106445824 A CN106445824 A CN 106445824A CN 201610875057 A CN201610875057 A CN 201610875057A CN 106445824 A CN106445824 A CN 106445824A
Authority
CN
China
Prior art keywords
interface
node
type
user
analysis
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
CN201610875057.5A
Other languages
Chinese (zh)
Other versions
CN106445824B (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.)
Nanjing Tu Niu Science And Technology Ltd
Original Assignee
Nanjing Tu Niu Science And Technology 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 Nanjing Tu Niu Science And Technology Ltd filed Critical Nanjing Tu Niu Science And Technology Ltd
Priority to CN201610875057.5A priority Critical patent/CN106445824B/en
Publication of CN106445824A publication Critical patent/CN106445824A/en
Application granted granted Critical
Publication of CN106445824B publication Critical patent/CN106445824B/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/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses an interface comprehensiveness management system based on a character. The interface comprehensiveness management system comprises a user character management module, an interface information type-in and maintenance module, a list user interface (UI) generator, a verification testing module, an analysis engine and a message notification module, wherein the user character management module is used for managing user information and authenticating user login; the interface information type-in and maintenance module is used for storing and managing basic attribute of each interface, information of join and quit, and the like; the user character verification testing module is used for appointing an environment interface according to a current join request, used for loading out specific analysis testing results after analysis with an analysis engine, and informing abnormity to a related person through the message notification module; the message notification module is used for realizing an interface abnormity notification function and a notification variation function.

Description

A kind of interface synthesis management system of based role
Technical field
The invention belongs to Internet technical field is and in particular to a kind of interface synthesis management system of based role.
Background technology
Along with the fast development of the Internet and development of Mobile Internet technology, various application programs emerge in an endless stream.But regardless of being Inside application program itself or the support system of application program behind, the communication between subsystems, module is all passed through During substantial amounts of interface interchange realization, the therefore exploitation of application program and use, inevitably call a large amount of interfaces.Existing The management having docking port in processes of research & development mainly adopts following following manner.
1. functional test:Attach parameter request interface by manual, manually check that interface goes out whether ginseng meets about from level to level Determine to verify interface function;
2. document definition:Developer's manual edit document is passed through in interface document definition, and one field ground of a field is safeguarded about Determine information;
3. message is informed:When interface definition occurs change or interface testing to inform or mail side by manually oral when pinpointing the problems Formula is explained to each user and is changed details;
Carry out system or the method for comprehension management due to lacking a set of docking port in current processes of research & development.Should in a large amount of interfaces With during, the following problem of generally existing:
1. the definition of interface document, is required for, by producer manual maintenance editor, lacking standard set interface definition art every time It is not enough and the problems such as accuracy is wrong that language being often associated with defines granularity;
2., before exploitation joint debugging, lack the automatic test to full dose interface, bulky systems are reached the standard grade, and interface to be tested becomes on hundred Thousand, all by the manual interface testing one by one of tester, all there is huge hidden danger in test coverage and accuracy, have a strong impact on out Send out efficiency and the propulsion of project overall progress;
3. can not upgrade in time during interface definition change document notification interface user, causes progress during joint debugging to be obstructed;
4. when pinpointing the problems in interface testing can not the very first time by system automatic notification interface producer;
5. cannot smoothly complete in time to join when generation personnel in interface maintenance side change.
Content of the invention
For solving the above problems, the invention discloses a kind of interface synthesis management system of based role, realize interface Role's ownership, unified maintenance interface definition, docking port carries out wholegrain degree ground automatic test, and automatization generates standardized connecing Mouth definition document and test report, when interface definition change or test can notify affiliated person by system when pinpointing the problems automatically.
In order to achieve the above object, the present invention provides following technical scheme:
The interface synthesis management system of based role, including:User role management module, the typing of interface message and safeguard mould Block, list UI maker, validation test module, analysis engine, message notification module, described user role management module is used for managing Reason user profile is simultaneously authenticated to User logs in;Described interface message typing and maintenance module are used for basic to each interface Attribute, enter ginseng and go out ginseng etc. information put in storage and managed;The validation test module of described user role is used for according to current Enter ginseng request designated environment interface, after engine analysis, derive detailed analysis test result by analysis, then utilize if any abnormal Message notification module notifies affiliated person automatically;Message notification module is used for realizing interface exception informing function and Notification of Changes work( Energy;
Described interface message typing and maintenance module
For inputting and changing interface essential information, enter ginseng, go out ginseng and test pile, and preserved,
For calling list UI maker according to entering ginseng and going out the ginseng all node definition lists of generation, enter ginseng or go out each word in ginseng Section regards a node:Using list UI maker, support that user manually adds node, the mode defining node attribute information is tieed up Shield interface definition information;Or the json data structure passed through into ginseng or go out ginseng, call analysis engine to obtain node analysis indexes item, And node location information, and automatically generate all node definition lists;
Described analysis engine includes allotter, each molecular type analysis device and verification comparison unit, and described allotter is used for ginseng Number is parsed, and enables " object " type in json data to be output as object type rather than array type as former state, in data Ensure in resolving that type information is not lost, and obtains each attribute type of the object through parsing, according to the difference of type It is distributed in respective analyzer;Described each molecular type analysis device is used for obtaining nodal information, obtains each node in json number All analysis indexes items according to the unique positions in structure and this node;Described verification comparison unit is used for by analysis result therewith The definition information with regard to this interface of front preservation is contrasted.
Described validation test module includes test cell and subscriber units, and test cell is referred to for currently entering parameter request Determine environmental interface, by analysis engine analysis, derive detailed analysis test result, then pass through message notification module if any abnormal Automatically known affiliated person, interface record interested for user is associated by described subscriber units with user, after subscribing to success, When interface definition occurs change or test to note abnormalities and can notify association user in time.
Further, described user role management module includes system from pipe unit and third party's service management unit, institute System of stating is realized typing and the maintenance of the information such as the registration of user, login, organizational structure from pipe unit by the system oneself, described Third party's service management unit is used for calling third party's user management module to carry out user right certification, user and organizational structure base The acquisition of this information.
Further, described node type is divided three classes:Root node, scalar node and non-scalar node, non-scalar node Support to add child node, delete this node, nodal community maintenance, child node expansion and pack up.
Further, the html structure of each node described is dynamic float type, supports infinite expanding.
Further, during the parsing of described allotter using in php language json_decode (string $ json [, Bool $ assoc=false]) method parses to parameter, and the second parameter $ assoc retaining the method is false, The object type in json data is enable to be output as object type rather than array type as former state.
Further, described allotter will be right by get_object_vars method by the object object through parsing As attribute is converted into Associate array, it is further continued for, by traversal, obtaining each attribute type using gettype method, according to type Difference be distributed in respective analyzer.
Further, described molecular type analysis device includes:Boolean type analyser, double type analysis, Integer type analyser, string type analyser, object type analyser, array type analyser, null type Analyzer.
Further, described validation test module also includes described list retrieval unit, and list retrieval unit is according to interface Keyword or affiliated function's information retrieval go out target interface.
Compared with prior art, the invention has the advantages that and beneficial effect:
Gone out by docking port, enter in parameter field type value preset layer by layer and limit automatization's parsing that scope does fine granulation, real Show and multi-zone supervision and issue track have been carried out based on user role docking port;Gone out by basis, Ru Can automatization generates graphically Interface definition typing list, facilitate user complex interface structure is made definition safeguard.Meanwhile, the present invention utilizes MongoDb Connection mouth analysis result is quickly accessed, and by message module realize when detect interface definition occur change or Real-time informing interface conjunctionn people when validation test interface is pinpointed the problems.The management system that the present invention provides can significantly reduce interface Exploitation maintenance cost, improves overall efficiency of research and development.
Brief description
Fig. 1 is system data flow process figure.
Fig. 2 is field node html structural design drawing.
Fig. 3 is analysis engine logical flow chart.
Fig. 4 is Boolean type analyser structure chart.
Fig. 5 is double type analyser structure chart.
Fig. 6 is integer type analyser structure chart.
Fig. 7 is object type analyser structure chart.
Fig. 8 is array type analyser structure chart.
Fig. 9 is allotter, the concrete process chart of all types of analyzer in analysis engine.
Figure 10 is message notification module flow chart.
Specific embodiment
The technical scheme present invention being provided below with reference to specific embodiment is described in detail it should be understood that following concrete Embodiment is only illustrative of the invention and is not intended to limit the scope of the invention.
The interface synthesis management system of the based role that the present invention provides includes several parts as follows:User role manages mould Block, the typing of interface message and maintenance module, list UI maker, validation test module, analysis engine, message notification module. Between wherein each module, data flowchart is as shown in Figure 1.User role management module is used for managing user information(Increase newly, change, Delete)And User logs in is authenticated;Interface message typing and maintenance module are used for the base attribute to each interface, enter ginseng Put in storage and managed with going out the information such as ginseng;The validation test module of user role is used for searched targets interface, according to current Enter parameter request designated environment interface, after engine analysis, derive detailed analysis test result by analysis, if any abnormal then profit Automatically notify affiliated person with message notification module;Message notification module is used for realizing with the use of the validation test module of person role Interface exception informing function and Notification of Changes function.
User role management module mainly includes two parts:One is a set of user role, the knot of tissue in system from pipe Structure maintenance unit(Hereinafter referred to as " system is from pipe unit ");Two is third party's service management unit, and this unit is used for calling the 3rd OA system in square user management module, such as each company etc..
System is realized typing and the dimension of the information such as the registration of user, login, organizational structure from pipe unit by the system oneself Shield.By system super keepe typing, organizational structure level supports unlimited classification to wherein texture data;By user in registration Essential information is filled at interface, such as the information such as user name, password, mailbox, phone number, affiliated function, submits to and preserves warehouse-in, completes Registration;User fills in account in login interface and encrypted message submits service end checking to, is verified and can enter the system, steps on Employ family and can safeguard Edit Profile in individual center, super keepe can manage all user basic information and organizational structure Data.
Third party's service management unit need not safeguard user and organizational information in the system, but utilizes third party Interface disclosed in system completes the acquisition of user right certification, user and organizational structure essential information.When implementing, Yong Hu Login interface fills in account information, after submission system, by system, this information is sent third party's account checking system(As corporate domains Account system), such as it is proved to be successful in the system session, then indicate User logs in success.In addition to checking user right, the 3rd Square service management unit should also provide three aspect functions, and one is to support to associate associated user by user name, and two is according to user ID and department ID obtains corresponding details, and three is to be provided that organizational structure full dose information data;These functions are all passed through The third party's user management module called with the system interacts realization.
One of which in interface Producer and user both role, each role pair may be selected after login system Functional area, Producer corresponding interface information and typing module that should be different, user then corresponds to validation test module.Select not Corresponding module can be used with role.
Interface message typing and maintenance module mainly include following constituent functional units:Increase newly, delete, retrieve, change (Editor), these functions are all in list page operations.Newly-increased button is had on list page, list page is supported according to guardian or department's inspection Rope, finds out and provides, by me or this department, the interface list supported, have editor and delete two operation buttons on the right side of every record, Click on the Edit button the essential information of this interface can be carried out safeguard renewal, this interface letter then directly deleted by " deletion " button Breath;Wherein newly-increased subelement is used for increasing interface data newly, specifically includes interface essential information, enters ginseng, goes out ginseng and test pile.Interface Data Enter can generate all node definition lists according to interface data using list UI maker with maintenance module.In row Table click on " increase " button, then enter interface message safeguard form page, this form page include essential information TAB page, enter join and Go out to join TAB page and TAB page of test pile.Essential information TAB page is mainly by interface name, guardian(Acquiescence currently logged on user), please The fields such as mode, routing address, said system three character code, the corresponding address of each environment are asked to form.Entering ginseng and going out to join on TAB page Using list UI maker, user can add node one by one by manual, define the mode maintenance interface of node attribute information Definition information, also can be by the ready-made json data structure entering ginseng or going out ginseng, by the funcall list of " key generates " UI maker automatically generates all node definition lists;TAB page of test pile can be safeguarded and cover test pile data, side this interface more Just different subscribers use.Click on the Edit button in list, likewise enter interface message and safeguard form page, TAB page on the page Same what's new, each field reads the interface data being currently needed for changing and is shown.After increasing newly or editing, system connects The data transmitted by foreground list, by interface basis information and automatically generate enter ginseng, go out to join list overall structure data preserve In msyql tables of data api_info table, by obtain through list UI maker enter ginseng, go out ginseng definition information entitled with interface Unique key assignments is saved in MongoDB.
The validation test module of user role includes list retrieval unit, test cell and subscriber units.By list Retrieval unit, user can go out target interface using interface keyword or affiliated function's information retrieval.Test cell provides test Function pages, the many sets test pile data that can be provided using this Producer on this page, also support that user input is self-defined Test data.Click on " test " button in the page, system can currently be entered ginseng request designated environment interface, engine by analysis Analysis(Obtain ginseng, go out each field in ginseng(Node)Information, by analysis result, front port definition compares therewith), lead Go out detailed analysis test result, then pass through message notification module known affiliated person automatically if any abnormal.And subscriber units can be by User's interface record interested is associated with user, and notifies user to subscribe to the modification information of record in time.Pass through Click on the subscription button on the right side of interface record, you can check, in " my subscription " unit, the whole interface records having focused on, order After readding interface, any modification information about this interface all can inform user in the way of mail or note it is ensured that user The very first time obtains interface modification information.
List UI maker by incoming for existing for user json data rear end, by server side script php analytical data structure, Traversal parsing node attribute information generates the html structure of list from level to level, and the parsing data of default node is preserved entrance js Front end, the form structure of generation and node attribute information is exported, user can continue to finely tune in front end as needed, to table in object Singly further expanded.It mainly includes two aspect functions, and one is according to the pre-designed document of interface, is propped up by way of artificial Hold the structurized list of establishment, written interface definition is safeguarded into system;Two is to support that importing existing interface enters ginseng, goes out ginseng Intelligent generating structure typing list.
Specifically, during the present invention will enter ginseng or go out to join, each field regards a node, and node type is divided into Three classes:Root node, scalar node and non-scalar node.Non- scalar node is supported to add child node, is deleted this node, nodal community Safeguard, child node is launched and packed up.List UI maker obtain ginseng, go out ginseng after, call analysis engine to be analyzed, obtain into Join, go out each field in ginseng(Node)Analysis indexes item, and each field(Node)Positional information, generates according to these nodal informations List.
The html structure of each node above-mentioned is both designed as dynamic float type, supports infinite expanding, node structure such as Fig. 2 institute Show, the information of node definition is safeguarded in the way of the form controls that suspends, according to different node types, safeguard different.Often The Back ground Information of individual node all has field name, Value Types, and different node type is different with regard to the restriction of value, for example Boolean types value limits true, false or unrestricted, integer type limit value magnitude range:More than zero, less than zero or be equal to Zero, can multiselect;Double type can limit scale etc., and these are specifically worth restriction and can be continued according to actual items demand Continuous interpolation extends.
Aforesaid analysis engine passes through traversal and down transmits father node position from level to level, until destination node, finally obtains Positional information and be unique positions in JSON data structure for this node, can be used for uniquely determining and obtaining by this position The all information of this node, and it is obtained in that node type index.Analysis engine includes allotter, each molecular type analysis device and school Test comparison unit.Wherein allotter is used for parameter is parsed, and so that the object type in json data is output as former state Object type rather than array type, ensure that in data resolving type information is not lost, and obtains the object through parsing Each attribute type, be distributed in respective analyzer according to the difference of type.Each molecular type analysis device is used for obtaining node Information, obtains all analysis indexes items of unique positions in json data structure for each node and this node.Verification contrast Unit is used for being contrasted analysis result with the definition information preserving before with regard to this interface.Idiographic flow is as shown in Figure 3.
Allotter receives outside json type first and enters ginseng, and the method using parsing JSON data structure solves to parameter Analysis.In the embodiment of the present invention utilize php language in json_decode (string $ json [, bool $ assoc= False]) method parses to parameter, and the second parameter $ assoc retaining the method is false, makes in json data Object type can be output as object type rather than array type as former state it is ensured that type information is not lost in data resolving Lose.
Subsequently, object properties are turned by allotter by the object object through parsing by get_object_vars method Change Associate array into, be further continued for, by traversal, obtaining each attribute type using gettype method, being divided according to the difference of type It is dealt in respective analyzer, obtain analysis result set and be mainly used in automatically being given birth to according to analysis result in list UI maker Become the typing list of interface definition;In addition in user role's validation test interface, by analysis result front port definition therewith Compare, list the analysis result of each node entry in parameter one by one, in case of with define inconsistent, list abnormal simultaneously By message system notification interface affiliated person.
The present invention creates each molecular type analysis device according to target json data type:Boolean type analyser, Double type analysis, integer type analyser, string type analyser, object type analyser, array type Analyzer, null type analyser.Each molecular type analysis device is used for obtaining nodal information and being compared with node definition information Judge, the process of device by analysis, be obtained in that the institute of unique positions in json data structure for each node and this node There is analysis indexes item.The analysis indexes item of Boolean type analyser has that restriction is true, it is false to limit, does not limit, and analyzer structure is as schemed Shown in 4;Double type is supported to limit scale, and index item has whether limit scale, scale value, just Then expression formula, actual returning result is compared with these indexs in definition, mismatches and then provides managing detailed catalogue;Analyzer Structure is as shown in Figure 5;Integer type supports more than zero, less than zero, be equal to zero, do not limit, several indexs of regular expression, will Actual returning result is compared with these indexs in definition, mismatches and then provides managing detailed catalogue;Analyzer structure such as Fig. 6 institute Show;Whether string type is supported the self-defined regularity of analysis, is empty;Object type analyser continues according to the type of subitem Continue and be distributed in other types analyzer, analyzer structure is as shown in fig. 7, whether analysis indexes are to be empty;Array type analysis Device analysis indexes have and are judged as sky, item number, and every sub-project is distributed in object type analyser continues analysis, Analyzer structure is as shown in Figure 8.All types of analysis indexes can freely add, and is not limited by this example specific targets.
Verification comparison unit utilizes the interface definition information object preserving in above step, first this object is converted into array Type, travels through to array element, because the definition result of each element is to be protected with the unique positions of itself for key assignments Deposit, so can the quick positioning searching in actual interface parameters according to this position:
1. whether " must be contained " in definition according to field, the field of " must contain " and do not find in actual return, then Directly throw exception, exists, continues down to judge;
2. judge whether aiming field is mated with the type information in definition, such as mismatch also directly throw exception, type matching Then continue down to judge;
The concrete handling process of allotter, all types of analyzer in analysis engine illustrated below, flow chart is as shown in Figure 9.
Assume that the data structure into ginseng, the json form going out ginseng is as follows:
{
"productId":210122643,
"canSell":true,
"price":123.69,
"adultQuantity" :2,
"childQuantity" : 1,
"segmentList":[
{
"dCityCode" : "2500",
"aCityCode" : "785095" ,
"departDate" : "2016-08-30"
}
],
"flightSessionId":"3c1018c7094329800162a6ad2f4833a3",
}
Integer, double, array, object and string type is contained, allotter obtains present node class in this parameter Type, is processed according to dissimilar being diverted in respective type analyser;
, its internal processes is specific as follows taking Object type analyser as a example for we:
A) present node key assignments and type are obtained(Root node key assignments is sky, can arrange an initialization value)As object type Original analysis result, with node location for key assignments press-in " node analysis storehouse " in as figure 5.;
B) with present node as id, and calculate present node and represent distance and position to the left in list, root node initialization is to the left Distance can be 0, and daughter element is to the left to be down incremented by apart from each layer, and being specifically incremented by amplitude can freely set, and generate node list Html code, is also pressed in " Form Element storehouse " as figure 4. with node location for key assignments;
C) object properties, as compound type, before down being traveled through, are first converted into array element by Object type;
D) obtain the distance to the left of each daughter element in traveling through, often inward one layer be just incremented by once, the node in same layer is to the left Apart from equal;Key assignments in conjunction with father's element and daughter element obtains unique positions in whole data structure for each child node;Will These information together with daughter element bring in itself allotter 2. in again shunting process;
E) treat that all analyzing and processing finishes daughter element, needs the Form Element of object type is finished up, press-in one is superfluous Remaining afterbody list node elements in " Form Element storehouse ", this object properties information and substantially similar, simply during b) step is played Represent that content is different, ownership can be assumed on list presents in all daughter elements in object type node overall Effect;
Integer type analyser, string type analyser, boolean type analyser, double type analysis, Object type analyser, null type analyser are for the concrete process step of analysis of these scalar nodes and object type A in analysis, b step are identical:
A) present node key assignments and type are obtained(Root node key assignments is sky, can arrange an initialization value)As object type Original analysis result, with node location for key assignments press-in node analysis storehouse;
B) with present node as id, and calculate present node and represent distance and position to the left in list, root node initialization is to the left Distance can be 0, generates node list html code, is also pressed in Form Element storehouse with node location for key assignments;
The handling process of array type analyser with a of object type, b, d, step e, simply in the middle of omit step and play c, because of it Itself is array type and need not change.
During an interface analysis, the Form Element storehouse using the press-in of all nodes can generate UI list, supplies User operation editing and updating node attribute information, customized information is maintained in node analysis storehouse, will be final each The definition information warehouse-in of individual node.
Analysis engine is mainly used in two places, and one is in list UI maker, receives entering ginseng, going out ginseng point of typing Analyse each field attribute information for initial table single structure;Two is in validation test interface, to actual request interface enter ginseng, Go out to join each field structure value preset to be analyzed, and be compared with interface definition information, result is formatted to be derived, and will be abnormal Information passes through message system known interface conjunctionn people.
Message notification module functional sequence such as Figure 10, it is mainly used in realizing two kinds of dysfunction informing functions and change More informing function.Abnormal informing function is to pinpoint the problems when interface subscriber's check analyses interface or abnormal real-time informing production Person and subscriber;When user enters system with user role, when needing analysis to detect certain interface, by analysis engine to test Stake enters ginseng and the ginseng that goes out of the actual return of interface is analyzed, and analysis result is compared with the interface definition safeguarded before, such as Note abnormalities, then notification message module, message module is passed through to inquire about the manufacturer information of corresponding interface, by mail or note Mode informs that Producer is extremely detailed in time, feed back again when Producer is disposed known to subscriber.Here work as inspection Corresponding interface is inserted in pending list with abnormal when survey notes abnormalities simultaneously, by system script periodic detection exception inventory, Discovery exceedes untreated interface of certain time limit, then pass through to inquire about organizational information by message module, obtains Producer and is located Line manager or higher level's information, abnormal information is informed that manager is processed in time.
The present invention also realizes making regular check on interface problem process progress further with system timer Crontab instrument, Do not follow up the interface of process more than a specified time, then by system directly notify this interface Producer directly under higher level, follow-up is as early as possible Solve.
When Notification of Changes function is that Producer docking port definition information is changed, system can be automatically by modification information mail Notify each user.When interface Producer is changed due to service needed docking port definition information, system can automatically analyze Go out to change managing detailed catalogue, by modification information and corresponding unique interface name incoming message system, message module is looked into by interface name Ask this interface Subscriber Information(Mainly contact method), by change managing detailed catalogue known all subscription by way of mail Person, and automatically generate up-to-date interface definition document aspect user and consult.
Technological means disclosed in the present invention program are not limited only to the technological means disclosed in above-mentioned embodiment, also include The technical scheme being made up of above technical characteristic combination in any.It should be pointed out that for those skilled in the art For, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications are also considered as Protection scope of the present invention.

Claims (8)

1. a kind of interface synthesis management system of based role is it is characterised in that include:User role management module, interface The typing of information and maintenance module, list UI maker, validation test module, analysis engine, message notification module, described user Role Management module is used for managing user information and User logs in is authenticated;Described interface message typing is used with maintenance module In the base attribute to each interface, enter ginseng and go out the information such as ginseng and put in storage and manage;The checking of described user role is surveyed Die trial block is used for, according to currently entering ginseng request designated environment interface, deriving detailed analysis test knot by analysis after engine analysis Really, then automatically notify affiliated person using message notification module if any abnormal;Message notification module is used for realizing interface notice extremely Function and Notification of Changes function;
Described interface message typing and maintenance module
For inputting and changing interface essential information, enter ginseng, go out ginseng and test pile, and preserved,
For calling list UI maker according to entering ginseng and going out the ginseng all node definition lists of generation, enter ginseng or go out each word in ginseng Section regards a node:Using list UI maker, support that user manually adds node, the mode defining node attribute information is tieed up Shield interface definition information;Or the json data structure passed through into ginseng or go out ginseng, call analysis engine to obtain node analysis indexes item, And node location information, and automatically generate all node definition lists;
Described analysis engine includes allotter, each molecular type analysis device and verification comparison unit, and described allotter is used for ginseng Number is parsed, and enables " object " type in json data to be output as object type rather than array type as former state, in data Ensure in resolving that type information is not lost, and obtains each attribute type of the object through parsing, according to the difference of type It is distributed in respective analyzer;Described each molecular type analysis device is used for obtaining nodal information, obtains each node in json number All analysis indexes items according to the unique positions in structure and this node;Described verification comparison unit is used for by analysis result therewith The definition information with regard to this interface of front preservation is contrasted;
Described validation test module includes test cell and subscriber units, and test cell is used for currently being entered ginseng request designated environment Interface, engine analysis by analysis, derive detailed analysis test result, if any abnormal then automatically all by message notification module Know affiliated person, interface record interested for user is associated with user by described subscriber units, after subscribing to success, work as interface Definition occurs change or test to note abnormalities and can notify association user in time.
2. based role according to claim 1 interface synthesis management system it is characterised in that:Described user role Management module includes system from pipe unit and third party's service management unit, and described system is realized from pipe unit by the system oneself The typing of the information such as the registration of user, login, organizational structure and maintenance, described third party's service management unit is used for calling the 3rd Square user management module carries out the acquisition of user right certification, user and organizational structure essential information.
3. based role according to claim 1 interface synthesis management system it is characterised in that:Described node type It is divided three classes:Root node, scalar node and non-scalar node, non-scalar node is supported to add child node, is deleted this node, node Attribute is safeguarded, child node is launched and packed up.
4. based role according to claim 3 interface synthesis management system it is characterised in that:Each node described Html structure be dynamic float type, support infinite expanding.
5. based role according to claim 1 interface synthesis management system it is characterised in that:Described allotter solution Json_decode (string $ json [, bool $ assoc=the false]) method pair in php language is utilized during analysis Parameter is parsed, and the second parameter $ assoc retaining the method is false, enables the object type former state in json data It is output as object type rather than array type.
6. based role according to claim 5 interface synthesis management system it is characterised in that:Described allotter will Through the object object of parsing, object properties are converted into by Associate array by get_object_vars method, are further continued for leading to Cross traversal, obtain each attribute type using gettype method, be distributed in respective analyzer according to the difference of type.
7. according to claim 1 or 5 based role interface synthesis management system it is characterised in that:Described subclass Type analysis device includes:Boolean type analyser, double type analysis, integer type analyser, string type are divided Parser, object type analyser, array type analyser, null type analyser.
8. based role according to claim 1 interface synthesis management system it is characterised in that:Described validation test Module also includes described list retrieval unit, and list retrieval unit goes out target according to interface keyword or affiliated function's information retrieval Interface.
CN201610875057.5A 2016-09-30 2016-09-30 A kind of interface synthesis management system of based role Active CN106445824B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610875057.5A CN106445824B (en) 2016-09-30 2016-09-30 A kind of interface synthesis management system of based role

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610875057.5A CN106445824B (en) 2016-09-30 2016-09-30 A kind of interface synthesis management system of based role

Publications (2)

Publication Number Publication Date
CN106445824A true CN106445824A (en) 2017-02-22
CN106445824B CN106445824B (en) 2019-06-25

Family

ID=58172850

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610875057.5A Active CN106445824B (en) 2016-09-30 2016-09-30 A kind of interface synthesis management system of based role

Country Status (1)

Country Link
CN (1) CN106445824B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107168871A (en) * 2017-04-28 2017-09-15 安徽四创电子股份有限公司 A kind of method of the fast debugging in RESTful interface exploitations
CN107832592A (en) * 2017-10-30 2018-03-23 北京小米移动软件有限公司 Right management method, device and storage medium
CN110472391A (en) * 2019-08-21 2019-11-19 北京明略软件系统有限公司 Data access method and device, storage medium, electronic device
CN112416419A (en) * 2020-11-16 2021-02-26 北京五八信息技术有限公司 Data processing method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101689111A (en) * 2007-04-03 2010-03-31 Ldra技术公司 The automatic management of software requirements verification
CN101794226A (en) * 2010-03-08 2010-08-04 山东大学 Service software construction method and system adapting to multiple business abstraction levels
CN102331970A (en) * 2011-07-28 2012-01-25 北京航空航天大学 Safety critical system-oriented automatic testing resource management method and platform
CN102411540A (en) * 2012-01-12 2012-04-11 王轶辰 Automatic management system of workflow-based common software testing process
CN102495799A (en) * 2011-12-02 2012-06-13 刘伟 Automatic test system and method of movable terminal
CN102567204A (en) * 2011-12-28 2012-07-11 云海创想信息技术(无锡)有限公司 Method for managing automatic testing data
CN104601403A (en) * 2015-01-07 2015-05-06 上海瀚之友信息技术服务有限公司 Automatic test system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101689111A (en) * 2007-04-03 2010-03-31 Ldra技术公司 The automatic management of software requirements verification
CN101794226A (en) * 2010-03-08 2010-08-04 山东大学 Service software construction method and system adapting to multiple business abstraction levels
CN102331970A (en) * 2011-07-28 2012-01-25 北京航空航天大学 Safety critical system-oriented automatic testing resource management method and platform
CN102495799A (en) * 2011-12-02 2012-06-13 刘伟 Automatic test system and method of movable terminal
CN102567204A (en) * 2011-12-28 2012-07-11 云海创想信息技术(无锡)有限公司 Method for managing automatic testing data
CN102411540A (en) * 2012-01-12 2012-04-11 王轶辰 Automatic management system of workflow-based common software testing process
CN104601403A (en) * 2015-01-07 2015-05-06 上海瀚之友信息技术服务有限公司 Automatic test system

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
MICHAEL_JIA: "《https://www.jianshu.com/p/4076b9bc2d36》", 26 August 2015 *
有赞: "《https://tech.youzan.com/layers_test_automation_practice/》", 29 April 2016 *
江屿: ""基于Junit的接口测试框架的设计与实现"", 《中国优秀硕士学位论文全文数据库·信息科技辑》 *
沈建征: ""自动化测试管理工具的开发与实现"", 《中国优秀硕士学位论文全文数据库•信息科技辑》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107168871A (en) * 2017-04-28 2017-09-15 安徽四创电子股份有限公司 A kind of method of the fast debugging in RESTful interface exploitations
CN107832592A (en) * 2017-10-30 2018-03-23 北京小米移动软件有限公司 Right management method, device and storage medium
CN110472391A (en) * 2019-08-21 2019-11-19 北京明略软件系统有限公司 Data access method and device, storage medium, electronic device
CN112416419A (en) * 2020-11-16 2021-02-26 北京五八信息技术有限公司 Data processing method and device
CN112416419B (en) * 2020-11-16 2024-09-13 北京五八信息技术有限公司 Data processing method and device

Also Published As

Publication number Publication date
CN106445824B (en) 2019-06-25

Similar Documents

Publication Publication Date Title
CN110597943B (en) Interest point processing method and device based on artificial intelligence and electronic equipment
CN106445824A (en) Interface comprehensiveness management system based on character
CN107741911A (en) Interface test method, device, client and computer-readable recording medium
CN107122483A (en) Fundamental Geographic Information Data quality detecting method, apparatus and system
CN104462056B (en) For the method and information handling systems of knouledge-based information to be presented
CN108509339A (en) Method for generating test case, device based on browser and mind map and equipment
CN103886376A (en) System and method for rule based content filtering
CN105827683A (en) Data synchronization method, server and electronic device
CN109726105A (en) Test data building method, device, equipment and storage medium
CN109740129B (en) Report generation method, device and equipment based on blockchain and readable storage medium
CN105205757A (en) Android-based elective system
CN110083581B (en) Log tracing method and device, storage medium and computer equipment
CN106600243A (en) Mobile payment method and system based on mixed mode
KR102685782B1 (en) Identity information processing method and device, electronic equipment and storage medium
CN109271556A (en) Method and apparatus for output information
CN110674247A (en) Barrage information intercepting method and device, storage medium and equipment
CN114357041B (en) Industrial data asset publishing method and device
CN104320793B (en) A kind of Automated testing method of cell phone short messages and system
CN105704130A (en) Electricity safety system based on wireless communication devices
CN111400170A (en) Data permission testing method and device
CN113238740A (en) Code generation method, code generation device, storage medium, and electronic apparatus
US11341028B2 (en) Structured query language runtime access path generation for deep test in a database
CN104965846B (en) Visual human's method for building up in MapReduce platform
CN116915442A (en) Vulnerability testing method, device, equipment and medium
CN111124541A (en) Configuration file generation method, device, equipment and medium

Legal Events

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