CN114721744A - Interface modification evaluation method and device, electronic equipment and readable storage medium - Google Patents

Interface modification evaluation method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN114721744A
CN114721744A CN202210438532.8A CN202210438532A CN114721744A CN 114721744 A CN114721744 A CN 114721744A CN 202210438532 A CN202210438532 A CN 202210438532A CN 114721744 A CN114721744 A CN 114721744A
Authority
CN
China
Prior art keywords
interface
service
atomic
field
modification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210438532.8A
Other languages
Chinese (zh)
Inventor
余丽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202210438532.8A priority Critical patent/CN114721744A/en
Publication of CN114721744A publication Critical patent/CN114721744A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/02Banking, e.g. interest calculation or account maintenance

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • General Engineering & Computer Science (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to an artificial intelligence technology, and discloses an interface modification evaluation method, which comprises the following steps: the method comprises the steps of obtaining an interface set of all atomic services in a business system, carrying out field entry on interfaces in the interface set to obtain an interface field set, constructing an atomic service path diagram of the interface set based on the interface field set, receiving an interface modification field input by a user, inquiring the atomic service path diagram based on the interface modification field, and generating affected services corresponding to the interface modification field. Furthermore, the invention relates to blockchain techniques, the affected services being storable in nodes of the blockchain. The invention also provides an interface modification evaluation device, electronic equipment and a readable storage medium. The invention can solve the problem of low evaluation efficiency of the influenced range of the interface modification.

Description

Interface modification evaluation method and device, electronic equipment and readable storage medium
Technical Field
The invention relates to the technical field of artificial intelligence, in particular to an interface modification evaluation method and device, electronic equipment and a readable storage medium.
Background
With the development of science and technology, the connection among various companies is more and more intimate. For example, as company business continues to expand, it is necessary to provide a unified capability output, i.e., a unified interface field and format, with multiple external business systems, since some external systems (typically intra-row TOP5-TOP20) have their own unified external interaction interface, and it is necessary to adapt these systems for business transactions in order to make them compatible with each other. With the continuous modification and upgrade of the self service logic interface and the continuous access of the external service system, it is often difficult to comb out all the points of influence (including services, systems, interfaces, etc.) affected by the access system or the interface modification.
The prior art does not have a set of complete and efficient solution or tool for solving the problem, and after a certain sub-service is changed or a certain field is transformed by an interface of the system, the related capability interface and an external system related to the change cannot be evaluated quickly. Meanwhile, the labor and time cost of the full-scale test of the influence points is too high, and the interaction abnormity of the external system which seems not to involve the modification can be caused by slight omission, so that the accuracy and the efficiency of the evaluation of the influence range after the interface modification are lower.
Disclosure of Invention
The invention provides an interface modification evaluation method, an interface modification evaluation device, electronic equipment and a readable storage medium, and mainly aims to solve the problem of low efficiency in evaluating an affected range of interface modification.
In order to achieve the above object, the present invention provides an interface modification evaluation method, including:
acquiring an interface set of all atomic services in a service system, and performing field entry on interfaces in the interface set to obtain an interface field set;
constructing an atomic service path graph of the interface set based on the interface field set;
receiving an interface modification field input by a user;
and inquiring the atomic service path diagram based on the interface modification field, and generating the affected service corresponding to the interface modification field.
Optionally, the acquiring an interface set of all atomic services in the service system, and performing field entry on interfaces in the interface set to obtain an interface field set includes:
traversing the atomic services called in the service system step by step to obtain an interface set of all the atomic services;
and performing field entry on the interface request input parameter and the interface request parameter interface field in the interface set to obtain the interface field set.
Optionally, the step-by-step traversal of the atomic service called in the service system to obtain an interface set of all the atomic services includes:
traversing the service API interfaces associated with the service system according to a top-down sequence, and taking the sub-services associated with the service API interfaces as the atomic services;
and obtaining the interface set from the API configuration item of the atomic service.
Optionally, the constructing an atomic service path graph of the interface set based on the interface field set includes:
inquiring the service calling paths among the atomic services, and constructing an association relation among the atomic services with the service calling path relation;
the atomic service is taken as service nodes step by step according to the sequence from top to bottom, and connection edges among the service nodes with the association relationship are constructed;
respectively packaging the general fields and the personalized fields corresponding to the atomic services in the interface field set into general service nodes and personalized service nodes, and constructing connecting edges between the general service nodes and the personalized service nodes and the service nodes;
and summarizing all nodes and connecting edges among the nodes to obtain the atomic service path diagram.
Optionally, the querying the atomic service path graph based on the interface modification field and generating an affected service corresponding to the interface modification field includes:
receiving a general service node or an individual service node selected by a user, and replacing a field in the general service node or the individual service node by using the interface modification field to obtain a modification node;
and searching all nodes which are connected with the reconstruction nodes from bottom to top from the reconstruction nodes, and taking the atomic services in all the searched nodes as the affected services.
Optionally, after querying the atomic service path graph based on the interface modification field and generating an affected service corresponding to the interface modification field, the method further includes:
acquiring a primary accessed external system, and matching each node in the atomic service path diagram by using a service interface in the primary accessed external system;
and determining the successfully matched service interface as a standard interface and determining the unsuccessfully matched service interface as an interface to be modified.
Optionally, the interface modification field includes a modification field and an interface version number.
In order to solve the above problem, the present invention further provides an interface modification evaluation apparatus, including:
the field entry module is used for acquiring an interface set of all atomic services in a business system, and performing field entry on the interfaces in the interface set to obtain an interface field set;
a path graph construction module for constructing an atomic service path graph of the interface set based on the interface field set;
the interface modification module is used for receiving an interface modification field input by a user;
and the modification influence point generating module is used for inquiring the atomic service path diagram based on the interface modification field and generating the influenced service corresponding to the interface modification field.
In order to solve the above problem, the present invention also provides an electronic device, including:
a memory storing at least one computer program; and
and the processor executes the computer program stored in the memory to realize the interface modification evaluation method.
In order to solve the above problem, the present invention further provides a computer-readable storage medium, in which at least one computer program is stored, and the at least one computer program is executed by a processor in an electronic device to implement the interface modification evaluation method described above.
According to the method and the system, the interface field set is obtained by performing field entry on the interfaces in the interface set of all the atomic services, the atomic service path diagrams of all the atomic services are constructed on the basis of the interface field set, the atomic services of the same service path can be gathered together, and the accuracy of atomic service search is improved. Meanwhile, the atomic service path diagram is inquired based on the interface modification field, the affected service corresponding to the interface modification field can be directly generated, manual full search is not needed, and the evaluation efficiency and accuracy of the interface modification influence range are greatly improved. Therefore, the interface modification evaluation method, the interface modification evaluation device, the electronic equipment and the computer-readable storage medium provided by the invention can solve the problem of low evaluation efficiency of the affected range of the interface modification.
Drawings
Fig. 1 is a schematic flow chart of an interface modification evaluation method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart showing a detailed implementation of one of the steps in FIG. 1;
FIG. 3 is a schematic flow chart showing another step of FIG. 1;
FIG. 4 is a schematic flow chart showing another step of FIG. 1;
fig. 5 is a functional block diagram of an interface modification evaluation apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device implementing the interface modification evaluation method according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the invention provides an interface modification evaluation method. The execution subject of the interface modification evaluation method includes, but is not limited to, at least one of electronic devices such as a server and a terminal that can be configured to execute the method provided by the embodiment of the present invention. In other words, the interface modification evaluation method may be performed by software or hardware installed in the terminal device or the server device, and the software may be a block chain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like. The server may be an independent server, or may be a cloud server that provides basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like.
Fig. 1 is a schematic flow chart of an interface modification evaluation method according to an embodiment of the present invention. In this embodiment, the interface modification evaluation method includes the following steps S1-S5:
s1, acquiring an interface set of all atomic services in the service system, and performing field entry on the interfaces in the interface set to obtain an interface field set.
In the embodiment of the invention, the business system can be an open platform for the capability of docking external services. For example, in the financial field, the business system interfaces with the payment service systems of bank a and bank B. The field entry refers to entry of interface requests of all services into and out of a parameter, personalized fields added for a specific service system and the like.
In detail, referring to fig. 2, the acquiring an interface set of all atomic services in a business system, and performing field entry on interfaces in the interface set to obtain an interface field set includes the following steps S10-S11:
s10, traversing the atomic services called in the service system step by step to obtain an interface set of all the atomic services;
and S11, performing field entry on the interface request entry and the interface request entry reference interface fields in the interface set to obtain the interface field set.
In the embodiment of the present invention, the atomic service refers to a series of operations with minimum granularity in a service called by a business system, and may be abstracted as an atomic service, for example, a combined service in which a user places an order, and may be split into a user deduction service, a stock deduction service, an order generation service, and the like, where each service has a separate interface.
Specifically, the step-by-step traversal of the atomic service called in the service system to obtain an interface set of all the atomic services includes: traversing the service API interfaces associated with the service system according to the top-down sequence, taking the sub-services associated with the service API interfaces as the atomic services, and obtaining the interface set from the API configuration items of the atomic services.
In an optional embodiment of the present invention, the service API interface refers to an interface of all services associated with a certain service, for example, the API interface associated with the telephone fee charging service includes interfaces of different e-commerce: TB telephone charge recharging interface, TM telephone charge recharging interface, JD telephone charge recharging interface and the like. The API configuration item comprises interface information such as interface type, interface function, interface use, interface state and the like.
Furthermore, the interfaces of all the atomic services are obtained by combing from bottom to top step by step, so that the atomic services of all the services can be accurately obtained, and the accuracy of interface entry is improved.
S2, constructing an atomic service path diagram of the interface set based on the interface field set.
In the embodiment of the invention, the atomic service path diagram comprises the calling relations of different atomic services. Since different interfaces in the interface field set include common fields and personalized fields, the common fields and personalized fields (version numbers, fields, etc.) need to be encapsulated into the atomic service path diagram. Such as the generic and personalized fields of the login interface.
In detail, referring to fig. 3, the constructing an atomic service path diagram of the interface set based on the interface field set includes the following steps S20-S23:
s20, inquiring the service call path among the atomic services, and constructing an association relation among the atomic services with the service call path relation;
s21, taking the atomic service as service nodes step by step according to the sequence from top to bottom, and constructing the connection edges between the service nodes with the association relationship;
s22, respectively packaging the general fields and the personalized fields corresponding to the atomic services in the interface field set into general service nodes and personalized service nodes, and constructing connecting edges between the general service nodes and the personalized service nodes and the service nodes;
and S23, summarizing all nodes and connecting edges among the nodes to obtain the atomic service path diagram.
In an optional embodiment of the present invention, the atomic service path graph associates each atomic service based on the service call path, and adds a general service and a personalized service of each atomic service to the node, so that when an interface is modified, all the associated atomic services can be quickly located, and the accuracy of searching for the affected atomic services is improved. The incidence relation represents the calling relation among the atomic services, and can be represented by connecting edges in the atomic service path. For example, the atomic service 1 is connected to the atomic service 2 and the atomic service 3 respectively by connecting edges, wherein the atomic service 2 is connected to the general service node by connecting edges, and the atomic service 3 is connected to the personalized service node by connecting edges.
And S3, receiving the interface modification field input by the user.
In the embodiment of the invention, the interface modification field comprises a modification field and an interface version number.
In an optional embodiment of the present invention, since the fields of the interfaces for external interfacing are often inconsistent, a specification unification is required. For example, in the financial field, a field used in an internal system is "bankcode", a field used in bank a is "bankid", and an interface modification field is "bankid", and the "bankcode" needs to be modified into "bankid" to unify specifications.
S4, inquiring the atomic service path diagram based on the interface modification field, and generating the affected service corresponding to the interface modification field.
In the embodiment of the invention, all affected atomic services can be searched from the bottom up by matching the universal service node or the personalized service node in the atomic service path diagram through the interface modification field.
Further, referring to fig. 4, the querying the atomic service path graph based on the interface modification field and generating an affected service corresponding to the interface modification field includes the following steps S40-S41:
s40, receiving a general service node or a personalized service node selected by a user, and replacing a field in the general service node or the personalized service node with the interface modification field to obtain a modification node;
and S41, starting from the reconstruction nodes, searching all nodes which are connected with the reconstruction nodes from bottom to top, and taking atomic services in all the searched nodes as the affected services.
In an optional embodiment of the present invention, the affected service refers to all affected related services, including a service, a system, an interface, and the like, after an interface is modified by an interface modification field. Because the general service node or the personalized service node is at the lowest layer in the atomic service path graph, a user can conveniently and directly select the general service node or the personalized service node, the field in the general service node or the personalized service node is replaced by the interface modification field to obtain the modification node, and all connected nodes can be sorted from bottom to top, so that all affected external service systems, internal service modules, atomic services and the like are generated. For example, services under a certain path include: the method comprises the steps of atomic service 1-atomic service 2-atomic service 3-personalized service 1, wherein personalized service 1 is in a transformation node, and the corresponding affected service is atomic service 1-atomic service 2-atomic service 3.
In another optional embodiment of the present invention, after querying the atomic service path diagram based on the interface modification field and generating an affected service corresponding to the interface modification field, the method further includes: and acquiring an external system which is accessed for the first time, matching each node in the atomic service path diagram by using a service interface in the external system which is accessed for the first time, determining the service interface which is successfully matched as a standard interface, and determining the service interface which is unsuccessfully matched as an interface to be modified.
In the embodiment of the invention, for the external system which is accessed for the first time, a large number of interfaces need system joint debugging to determine whether a standard problem exists, the interface returning is directly simulated by the MOCK returning method, the external system which is accessed for the first time is matched with the nodes in the atomic service path diagram, the interfaces which need to be modified can be quickly determined, the development efficiency is greatly improved, the testing labor cost is saved, the test omission is avoided, and the testing quality is improved.
According to the method and the system, the interface field set is obtained by performing field entry on the interfaces in the interface set of all the atomic services, the atomic service path diagrams of all the atomic services are constructed on the basis of the interface field set, the atomic services of the same service path can be gathered together, and the accuracy of atomic service search is improved. Meanwhile, the atomic service path diagram is inquired based on the interface modification field, the affected service corresponding to the interface modification field can be directly generated, manual full search is not needed, and the evaluation efficiency and accuracy of the interface modification influence range are greatly improved. Therefore, the interface modification evaluation method provided by the invention can solve the problem of low evaluation efficiency of the affected range of the interface modification.
Fig. 5 is a functional block diagram of an interface modification evaluation apparatus according to an embodiment of the present invention.
The interface modification evaluation apparatus 100 according to the present invention may be installed in an electronic device. According to the implemented functions, the interface modification evaluation apparatus 100 may include a field entry module 101, a path diagram construction module 102, an interface modification module 103, and a modification impact point generation module 104. The module of the present invention, which may also be referred to as a unit, refers to a series of computer program segments that can be executed by a processor of an electronic device and that can perform a fixed function, and that are stored in a memory of the electronic device.
In the present embodiment, the functions regarding the respective modules/units are as follows:
the field entry module 101 is configured to acquire an interface set of all atomic services in a service system, and perform field entry on interfaces in the interface set to obtain an interface field set;
the path map construction module 102 is configured to construct an atomic service path map of the interface set based on the interface field set;
the interface modification module 103 is configured to receive an interface modification field input by a user;
the modification impact point generating module 104 is configured to query the atomic service path diagram based on the interface modification field, and generate an affected service corresponding to the interface modification field.
In detail, the specific implementation of each module of the interface modification evaluation apparatus 100 is as follows:
step one, acquiring an interface set of all atomic services in a business system, and performing field entry on interfaces in the interface set to obtain an interface field set.
In the embodiment of the invention, the business system can be an open platform for the capability of docking external services. For example, in the financial field, the business system interfaces with the payment service systems of bank a and bank B. The field entry refers to entry of interface requests of all services into and out of a parameter, personalized fields added for a specific service system and the like.
In detail, the acquiring an interface set of all atomic services in a business system, and performing field entry on interfaces in the interface set to obtain an interface field set includes:
traversing the atomic services called in the service system step by step to obtain an interface set of all the atomic services;
and performing field entry on the interface request input parameter and the interface request parameter interface field in the interface set to obtain the interface field set.
In the embodiment of the present invention, the atomic service refers to a series of operations with the minimum granularity in a service called by a business system, and may be abstracted as an atomic service, for example, a combined service in which a user places an order, and may be split into a user deduction service, a stock deduction service, an order generation service, and the like, where each service has a separate interface.
Specifically, the step-by-step traversal of the atomic service called in the service system to obtain an interface set of all the atomic services includes: traversing the service API interfaces associated with the service system according to the top-down sequence, taking the sub-services associated with the service API interfaces as the atomic services, and obtaining the interface set from the API configuration items of the atomic services.
In an optional embodiment of the present invention, the service API interface refers to an interface of all services associated with a certain service, for example, the API interface associated with the telephone fee charging service includes interfaces of different e-commerce: TB telephone charge recharging interface, TM telephone charge recharging interface, JD telephone charge recharging interface and the like. The API configuration item comprises interface information such as interface type, interface function, interface use, interface state and the like.
Furthermore, the interfaces of all the atomic services are obtained by combing from bottom to top step by step, so that the atomic services of all the services can be accurately obtained, and the accuracy of interface entry is improved.
And secondly, constructing an atomic service path diagram of the interface set based on the interface field set.
In the embodiment of the invention, the atomic service path diagram comprises the calling relations of different atomic services. Since different interfaces in the interface field set include common fields and personalized fields, the common fields and personalized fields (version numbers, fields, etc.) need to be encapsulated into the atomic service path diagram. Such as the generic and personalized fields of the login interface.
In detail, the constructing an atomic service path graph of the interface set based on the interface field set includes:
inquiring service call paths among the atomic services, and constructing an association relation among the atomic services with the service call path relation;
the atomic service is taken as service nodes step by step according to the sequence from top to bottom, and connection edges among the service nodes with the association relationship are constructed;
respectively packaging the general fields and the personalized fields corresponding to the atomic services in the interface field set into general service nodes and personalized service nodes, and constructing connecting edges between the general service nodes and the personalized service nodes and the service nodes;
and summarizing all nodes and connecting edges among the nodes to obtain the atomic service path diagram.
In an optional embodiment of the present invention, the atomic service path graph associates each atomic service based on the service call path, and adds a general service and a personalized service of each atomic service to the node, so that when an interface is modified, all the associated atomic services can be quickly located, and the accuracy of searching for the affected atomic services is improved. The incidence relation represents the calling relation among the atomic services, and can be represented by connecting edges in the atomic service path. For example, the atomic service 1 is connected to the atomic service 2 and the atomic service 3 respectively by connecting edges, wherein the atomic service 2 is connected to the general service node by connecting edges, and the atomic service 3 is connected to the personalized service node by connecting edges.
And step three, receiving an interface modification field input by a user.
In the embodiment of the invention, the interface modification field comprises a modification field and an interface version number.
In an optional embodiment of the present invention, since the fields of the interfaces for external interfacing are often inconsistent, a specification unification is required. For example, in the financial field, a field used in an internal system is "bankcode", a field used in bank a is "bankid", and an interface modification field is "bankid", and the "bankcode" needs to be modified into "bankid" to unify specifications.
And fourthly, inquiring the atomic service path diagram based on the interface modification field, and generating the affected service corresponding to the interface modification field.
In the embodiment of the invention, all affected atomic services can be searched from the bottom up by matching the universal service node or the personalized service node in the atomic service path diagram through the interface modification field.
Further, the querying the atomic service path diagram based on the interface modification field and generating an affected service corresponding to the interface modification field includes:
receiving a general service node or an individual service node selected by a user, and replacing fields in the general service node or the individual service node by using the interface modification fields to obtain modified nodes;
and starting from the reconstruction nodes, searching all nodes which are connected with the reconstruction nodes from bottom to top, and taking atomic services in all the searched nodes as the affected services.
In an optional embodiment of the present invention, the affected service refers to all affected related services, including a service, a system, an interface, and the like, after an interface is modified by an interface modification field. Because the general service node or the personalized service node is at the lowest layer in the atomic service path graph, a user can conveniently and directly select the general service node or the personalized service node, the field in the general service node or the personalized service node is replaced by the interface modification field to obtain the modification node, and all connected nodes can be sorted from bottom to top, so that all affected external service systems, internal service modules, atomic services and the like are generated. For example, services under a certain path include: the method comprises the steps of atomic service 1-atomic service 2-atomic service 3-personalized service 1, wherein personalized service 1 is in a transformation node, and the corresponding affected service is atomic service 1-atomic service 2-atomic service 3.
In another optional embodiment of the present invention, after querying the atomic service path diagram based on the interface modification field and generating an affected service corresponding to the interface modification field, the method further includes: and acquiring an external system which is accessed for the first time, matching each node in the atomic service path diagram by using a service interface in the external system which is accessed for the first time, determining the service interface which is successfully matched as a standard interface, and determining the service interface which is unsuccessfully matched as an interface to be modified.
In the embodiment of the invention, for the external system which is accessed for the first time, a large number of interfaces need system joint debugging to determine whether a standard problem exists, the interface returning is directly simulated by the MOCK returning method, the external system which is accessed for the first time is matched with the nodes in the atomic service path diagram, the interfaces which need to be modified can be quickly determined, the development efficiency is greatly improved, the testing labor cost is saved, the test omission is avoided, and the testing quality is improved.
According to the method and the system, the interface field set is obtained by performing field entry on the interfaces in the interface set of all the atomic services, the atomic service path diagrams of all the atomic services are constructed on the basis of the interface field set, the atomic services of the same service path can be gathered together, and the accuracy of atomic service searching is improved. Meanwhile, the atomic service path diagram is inquired based on the interface modification field, the affected service corresponding to the interface modification field can be directly generated, manual full search is not needed, and the evaluation efficiency and accuracy of the interface modification influence range are greatly improved. Therefore, the interface modification evaluation device provided by the invention can solve the problem of low efficiency of evaluation of the influenced range of the interface modification.
Fig. 6 is a schematic structural diagram of an electronic device for implementing an interface modification evaluation method according to an embodiment of the present invention.
The electronic device may comprise a processor 10, a memory 11, a communication interface 12 and a bus 13, and may further comprise a computer program, such as an interface modification evaluation program, stored in the memory 11 and executable on the processor 10.
The memory 11 includes at least one type of readable storage medium, which includes flash memory, removable hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device, for example a removable hard disk of the electronic device. The memory 11 may also be an external storage device of the electronic device in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device. The memory 11 may be used not only to store application software installed in the electronic device and various types of data, such as a code of an interface modification evaluation program, but also to temporarily store data that has been output or will be output.
The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same function or different functions, including one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the whole electronic device by using various interfaces and lines, and executes various functions and processes data of the electronic device by running or executing programs or modules (e.g., an interface modification evaluation program, etc.) stored in the memory 11 and calling data stored in the memory 11.
The communication interface 12 is used for communication between the electronic device and other devices, and includes a network interface and a user interface. Optionally, the network interface may include a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), which are typically used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a Display (Display), an input unit, such as a Keyboard (Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable, among other things, for displaying information processed in the electronic device and for displaying a visualized user interface.
The bus 13 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus 13 may be divided into an address bus, a data bus, a control bus, etc. The bus 13 is arranged to enable connection communication between the memory 11 and at least one processor 10 or the like.
Fig. 6 shows only an electronic device having components, and those skilled in the art will appreciate that the structure shown in fig. 6 does not constitute a limitation of the electronic device, and may include fewer or more components than those shown, or some components may be combined, or a different arrangement of components.
For example, although not shown, the electronic device may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so that functions such as charge management, discharge management, and power consumption management are implemented through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The electronic device may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
Further, the electronic device may further include a network interface, and optionally, the network interface may include a wired interface and/or a wireless interface (such as a WI-FI interface, a bluetooth interface, etc.), which are generally used to establish a communication connection between the electronic device and other electronic devices.
Optionally, the electronic device may further comprise a user interface, which may be a Display (Display), an input unit (such as a Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable, among other things, for displaying information processed in the electronic device and for displaying a visualized user interface.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
The interface modification evaluation program stored in the memory 11 of the electronic device is a combination of a plurality of instructions, which when executed in the processor 10, can implement:
acquiring an interface set of all atomic services in a service system, and performing field entry on interfaces in the interface set to obtain an interface field set;
constructing an atomic service path graph of the interface set based on the interface field set;
receiving an interface modification field input by a user;
and inquiring the atomic service path diagram based on the interface modification field, and generating the affected service corresponding to the interface modification field.
Specifically, the specific implementation method of the instruction by the processor 10 may refer to the description of the relevant steps in the embodiment corresponding to the drawings, which is not described herein again.
Further, the electronic device integrated module/unit, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a computer readable storage medium. The computer readable storage medium may be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM).
The present invention also provides a computer-readable storage medium, storing a computer program which, when executed by a processor of an electronic device, may implement:
acquiring an interface set of all atomic services in a service system, and performing field entry on interfaces in the interface set to obtain an interface field set;
constructing an atomic service path graph of the interface set based on the interface field set;
receiving an interface modification field input by a user;
and inquiring the atomic service path diagram based on the interface modification field, and generating the affected service corresponding to the interface modification field.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The embodiment of the invention can acquire and process related data based on an artificial intelligence technology. Among them, Artificial Intelligence (AI) is a theory, method, technique and application system that simulates, extends and expands human Intelligence using a digital computer or a machine controlled by a digital computer, senses the environment, acquires knowledge and uses the knowledge to obtain the best result.
The artificial intelligence infrastructure generally includes technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technologies, operation/interaction systems, mechatronics, and the like. The artificial intelligence software technology mainly comprises a computer vision technology, a robot technology, a biological recognition technology, a voice processing technology, a natural language processing technology, machine learning/deep learning and the like.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only intended to illustrate the technical solutions of the present invention and not to limit the same, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. An interface alteration evaluation method, the method comprising:
acquiring an interface set of all atomic services in a service system, and performing field entry on interfaces in the interface set to obtain an interface field set;
constructing an atomic service path graph of the interface set based on the interface field set;
receiving an interface modification field input by a user;
and inquiring the atomic service path diagram based on the interface modification field, and generating the affected service corresponding to the interface modification field.
2. The method for evaluating interface modification according to claim 1, wherein the acquiring an interface set of all atomic services in a business system, and performing field entry on interfaces in the interface set to obtain an interface field set comprises:
traversing the atomic services called in the service system step by step to obtain an interface set of all the atomic services;
and performing field entry on the interface request input parameter and the interface request parameter interface field in the interface set to obtain the interface field set.
3. The method for evaluating interface modification as claimed in claim 2, wherein said traversing the atomic services invoked in the business system stage by stage to obtain an interface set of all atomic services comprises:
traversing the service API interfaces associated with the service system according to a top-down sequence, and taking the sub-services associated with the service API interfaces as the atomic services;
and obtaining the interface set from the API configuration item of the atomic service.
4. The interface reformation assessment method of claim 1, wherein the building an atomic service path diagram for the set of interfaces based on the set of interface fields comprises:
inquiring service call paths among the atomic services, and constructing an association relation among the atomic services with the service call path relation;
the atomic service is taken as service nodes step by step according to the sequence from top to bottom, and connection edges among the service nodes with the association relationship are constructed;
respectively packaging the general fields and the personalized fields corresponding to the atomic services in the interface field set into general service nodes and personalized service nodes, and constructing connecting edges between the general service nodes and the personalized service nodes and the service nodes;
and summarizing all nodes and connecting edges among the nodes to obtain the atomic service path diagram.
5. The interface modification evaluation method of claim 4, wherein the querying the atomic service path graph based on the interface modification field and generating the affected service corresponding to the interface modification field comprises:
receiving a general service node or an individual service node selected by a user, and replacing a field in the general service node or the individual service node by using the interface modification field to obtain a modification node;
and searching all nodes which are connected with the reconstruction nodes from bottom to top from the reconstruction nodes, and taking the atomic services in all the searched nodes as the affected services.
6. The interface modification evaluation method of claim 1, wherein after querying the atomic service path graph based on the interface modification field and generating an affected service corresponding to the interface modification field, the method further comprises:
acquiring a primary accessed external system, and matching each node in the atomic service path diagram by using a service interface in the primary accessed external system;
and determining the successfully matched service interface as a standard interface and determining the unsuccessfully matched service interface as an interface to be modified.
7. The interface modification evaluation method of claim 1, wherein the interface modification field comprises a modification field, an interface version number.
8. An interface reformation assessment apparatus, characterized in that the apparatus comprises:
the field entry module is used for acquiring an interface set of all atomic services in a business system, and performing field entry on the interfaces in the interface set to obtain an interface field set;
a path graph construction module for constructing an atomic service path graph of the interface set based on the interface field set;
the interface modification module is used for receiving an interface modification field input by a user;
and the modification influence point generating module is used for inquiring the atomic service path diagram based on the interface modification field and generating the influenced service corresponding to the interface modification field.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the interface modification assessment method of any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the interface alteration evaluation method according to any one of claims 1 to 7.
CN202210438532.8A 2022-04-25 2022-04-25 Interface modification evaluation method and device, electronic equipment and readable storage medium Pending CN114721744A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210438532.8A CN114721744A (en) 2022-04-25 2022-04-25 Interface modification evaluation method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210438532.8A CN114721744A (en) 2022-04-25 2022-04-25 Interface modification evaluation method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN114721744A true CN114721744A (en) 2022-07-08

Family

ID=82246033

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210438532.8A Pending CN114721744A (en) 2022-04-25 2022-04-25 Interface modification evaluation method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN114721744A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727385A (en) * 2008-10-31 2010-06-09 国际商业机器公司 Method for processing information change of user interface and system
CN102831060A (en) * 2012-08-24 2012-12-19 东南大学 Modification influence analysis based regression test case updating method of part software
CN111782737A (en) * 2020-08-12 2020-10-16 中国工商银行股份有限公司 Information processing method, device, equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727385A (en) * 2008-10-31 2010-06-09 国际商业机器公司 Method for processing information change of user interface and system
CN102831060A (en) * 2012-08-24 2012-12-19 东南大学 Modification influence analysis based regression test case updating method of part software
CN111782737A (en) * 2020-08-12 2020-10-16 中国工商银行股份有限公司 Information processing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN113238929B (en) Code testing method and device based on Mock data, electronic equipment and storage medium
CN113946690A (en) Potential customer mining method and device, electronic equipment and storage medium
CN113051171B (en) Interface testing method, device, equipment and storage medium
CN112506779A (en) Software interface testing method and device, electronic equipment and storage medium
CN114881616A (en) Business process execution method and device, electronic equipment and storage medium
CN113961473A (en) Data testing method and device, electronic equipment and computer readable storage medium
CN113868528A (en) Information recommendation method and device, electronic equipment and readable storage medium
CN114398194A (en) Data collection method and device, electronic equipment and readable storage medium
CN115964307A (en) Transaction data automatic testing method, device, equipment and medium
CN114385497A (en) Test environment generation method and device, electronic equipment and storage medium
CN114880238A (en) Mobile terminal interface testing method, device, equipment and storage medium
CN114398282A (en) Test script generation method, device, equipment and storage medium
CN113434542A (en) Data relation identification method and device, electronic equipment and storage medium
CN114727100B (en) Joint debugging method and device for monitoring equipment
CN114896164A (en) Interface optimization method and device, electronic equipment and storage medium
CN113434397B (en) Task system testing method and device, electronic equipment and storage medium
CN115496166A (en) Multitasking method and device, electronic equipment and storage medium
CN115033489A (en) Code resource detection method and device, electronic equipment and storage medium
CN115033605A (en) Data query method and device, electronic equipment and storage medium
CN114911479A (en) Interface generation method, device, equipment and storage medium based on configuration
CN114625376A (en) Data transfer mode conversion method and device, electronic equipment and readable storage medium
CN114840388A (en) Data monitoring method and device, electronic equipment and storage medium
CN114721744A (en) Interface modification evaluation method and device, electronic equipment and readable storage medium
CN114510400A (en) Task execution method and device, electronic equipment and storage medium
CN114461531A (en) Platform adaptability test method, device, equipment and storage medium of test case

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination