CN115756582A - Association processing method, positioning method and device of production line interface - Google Patents

Association processing method, positioning method and device of production line interface Download PDF

Info

Publication number
CN115756582A
CN115756582A CN202211437586.9A CN202211437586A CN115756582A CN 115756582 A CN115756582 A CN 115756582A CN 202211437586 A CN202211437586 A CN 202211437586A CN 115756582 A CN115756582 A CN 115756582A
Authority
CN
China
Prior art keywords
information
page
interface
routing data
production line
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
CN202211437586.9A
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 E Wallet Electronic Commerce Co Ltd
Original Assignee
Ping An E Wallet Electronic Commerce 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 E Wallet Electronic Commerce Co Ltd filed Critical Ping An E Wallet Electronic Commerce Co Ltd
Priority to CN202211437586.9A priority Critical patent/CN115756582A/en
Publication of CN115756582A publication Critical patent/CN115756582A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention relates to the technical field of front-end development, and discloses a correlation processing method, a positioning method and a device for a production line interface, which comprises the steps of obtaining a plurality of page information of a production line, wherein each page information comprises screenshot information, routing character string information and interface information; identifying screenshot information of the plurality of page information, and generating corresponding page portrait information; encrypting routing character string information of a plurality of pieces of page information to generate corresponding intermediate routing data, wherein the interface information of each piece of page information corresponds to the intermediate routing data, and the intermediate routing data of each piece of page information corresponds to the page portrait information; and establishing a general level relation table of the interface information, the intermediate routing data and the page portrait information of the plurality of page information. The invention can effectively improve the positioning efficiency of the production line interface and reduce the labor cost.

Description

Association processing method, positioning method and device of production line interface
Technical Field
The invention relates to the technical field of front-end development, in particular to a correlation processing method, a positioning method and a positioning device of a production line interface.
Background
Micro-front-ends are an architectural system whose idea is to convert a single monolithic application into multiple small front-end applications and aggregate them into one. Each small front-end application in the micro front-end architecture can be independently operated, independently developed and independently deployed, and a plurality of front-end applications are combined into a whole application. In a plurality of small front-end applications, each application corresponds to one project, a plurality of projects form a development production line, and all projects in the development production line can be independently developed and operated. With the popularization of micro front ends, the number of projects in a development production line is gradually increased, each project is provided with a plurality of project pages, and a plurality of access interfaces exist under each project page.
Currently, it is increasingly difficult to locate the location of the interface in the numerous pages of a development line. How to improve the positioning efficiency of the production line interface and reduce the labor cost is a problem which needs to be solved urgently at present.
Disclosure of Invention
In view of the above-mentioned drawbacks of the prior art, an object of the present invention is to provide a method, a device and a system for processing association of production line interfaces, which can improve the efficiency of positioning the production line interfaces.
In a first aspect, the present invention provides a method for processing association of a production line interface, including:
acquiring a plurality of page information of a production line, wherein each page information comprises screenshot information, routing character string information and interface information;
identifying screenshot information of a plurality of page information to generate corresponding page portrait information;
encrypting the routing character string information of the plurality of page information to generate corresponding intermediate routing data, wherein the interface information of each page information corresponds to the intermediate routing data, and the intermediate routing data of each page information corresponds to the page portrait information;
and establishing a general level relation table of the interface information, the intermediate routing data and the page portrait information of the plurality of page information.
In a second aspect, a method for positioning a production line interface is provided, including:
acquiring abnormal log information;
acquiring corresponding interface information according to the abnormal log information;
inquiring the general level relation table of any one of the first aspect according to the interface information to obtain corresponding intermediate routing data and page portrait information;
summarizing the abnormal log information and the corresponding page portrait information to generate a production line interface positioning table.
In a third aspect, an association processing apparatus for a production line interface is provided, including:
the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring a plurality of page information of a production line, and each page information comprises screenshot information, routing character string information and interface information;
the identification module is used for identifying screenshot information of the plurality of page information and generating corresponding page portrait information;
the processing module is used for encrypting the routing character string information of the plurality of page information to generate corresponding intermediate routing data, the interface information of each page information corresponds to the intermediate routing data, and the intermediate routing data of each page information corresponds to the page portrait information;
and the establishing module is used for establishing a general level relation table of the interface information, the intermediate routing data and the page portrait information of the plurality of page information.
In a fourth aspect, a computer device is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the processor implements the association processing method of the production line interface or the positioning method of the production line interface.
In a fifth aspect, a computer-readable storage medium is provided, where a computer program is stored, and when executed by a processor, the computer program implements the association processing method for the production line interface or the positioning method for the production line interface.
In the scheme implemented by the association processing method, the positioning method and the device for the interface of the production line, a plurality of page information of the production line can be obtained at first, wherein the page information comprises screenshot information, routing character string information and interface information, and the screenshot information, the routing character string information and the interface information of each page correspond to each other. Screenshot information is then identified, and page representations of the plurality of pages are generated, each page representation representing a corresponding page. And then encrypting the routing character string information to generate intermediate routing data, wherein irregular characters are removed from the routing character string information after the routing character string information is encrypted in advance, and the follow-up query efficiency is improved. And then establishing a general level relation table of the interface information, the intermediate routing data and the page portrait of the plurality of pages. When a certain interface is required to be maintained due to abnormality, the page representation corresponding to the interface can be inquired through the master level relation table so as to determine the page position of the interface. The abnormal log information of the interface and the corresponding page portrait are gathered, and a production line interface positioning table can be generated. The production line interface positioning table is transmitted to a project responsible person at the rear end, the project responsible person can send the production line interface positioning table to subordinate developers, and the developers can position the target interface of the corresponding page according to the positioning table and maintain the interface quickly. In the invention, a general level relation table of a plurality of pages and interfaces in a production line is firstly generated, when a certain interface is abnormal and needs maintenance, a production line interface positioning table can be generated according to the general level relation table, and developers can quickly position a target interface of the corresponding page according to the production line interface positioning table and maintain the target interface in time, thereby effectively improving the positioning efficiency of the production line interface and reducing the labor cost.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of an application environment of a correlation processing method for a production line interface according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating an association processing method of a production line interface according to an embodiment of the invention;
FIG. 3 is a flowchart illustrating one embodiment of step S20 of FIG. 2;
FIG. 4 is a flowchart illustrating one embodiment of step S22 shown in FIG. 2;
FIG. 5 is a flowchart illustrating one embodiment of step S30 of FIG. 2;
FIG. 6 is a diagram illustrating an exemplary structure of a global level relationship table in an embodiment of the invention;
FIG. 7 is a flow chart illustrating a method for positioning the production line interface according to an embodiment of the present invention;
FIG. 8 is a flowchart illustrating an embodiment of step S51 in FIG. 7;
FIG. 9 is a flowchart illustrating one embodiment of step S52 of FIG. 7;
FIG. 10 is a schematic diagram of a structure of a processing device associated with a line interface according to an embodiment of the present invention;
FIG. 11 is a schematic diagram of a computer device according to an embodiment of the present invention;
FIG. 12 is a schematic diagram of another embodiment of a computer device.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The association processing method for the production line interface provided by the embodiment of the invention can be applied to the application environment shown in fig. 1. Wherein the terminal device 110 communicates with the server 120 over a network. The server 120 may first obtain a plurality of pieces of page information in the production line, where each piece of page information may include screenshot information, routing string information, and a plurality of interface information, and the screenshot information, the routing string information, and the interface information of each page correspond to each other. The interface information may correspond to corresponding routing string information, which may correspond to a corresponding page. Then, identifying the screenshot information, generating page pictures, wherein each page picture can represent a corresponding page, encrypting the routing character string information and generating intermediate routing data; irregular characters are removed from the routing character string information after pre-encryption processing, corresponding intermediate routing data are obtained subsequently according to the interface information, and when corresponding page portrait is queried according to the intermediate routing data, the irregular characters do not need to be processed again, and the query positioning efficiency is improved. The interface information of each page information corresponds to the intermediate routing data, and the intermediate routing data of each page information corresponds to the page portrait information. The method can establish a general level relation table of interface information, intermediate routing data and page portrayal, and when certain interface information needs to be maintained or abnormal log information appears, the page portrayal corresponding to the interface can be inquired through the general level relation table so as to position the page position of the interface. The developer can position the interface according to the page portrait corresponding to the interface and repair the interface in time. The method and the system can position the interface according to the master level relation table without depending on the familiarity of project managers on project pages to position the interface, thereby reducing the labor cost. And can effectively shorten the positioning time of producing the line interface, improve the location efficiency of producing the line interface.
It should be noted that the terminal device 110 may include various electronic devices such as a smart phone, a tablet computer, a notebook computer, and a desktop computer. The server 120 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing a cloud computing service. The network may be any of a variety of connection types of communication media capable of providing a communication link between terminal device 110 and server 120, such as a wired communication link or a wireless communication link.
The system architecture in the embodiments of the present application may have any number of terminal devices, networks, and servers, according to implementation needs. For example, the server 120 may be a server group consisting of a plurality of server devices. In addition, the technical solution provided in the embodiment of the present application may be applied to the terminal device 110, or may be applied to the server 120, or may be implemented by both the terminal device 110 and the server 120, which is not particularly limited in this application.
The above section describes the content of an exemplary application environment of the present application, and then continues to describe the association processing method of the production line interface of the present application.
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating a correlation processing method of a production line interface according to an embodiment of the present application.
S10, acquiring a plurality of page information of a production line, wherein each page information comprises screenshot information, routing character string information and a plurality of interface information;
s20, identifying screenshot information of the plurality of page information to generate corresponding page portrait information;
s30, encrypting the routing character string information of the plurality of page information to generate corresponding intermediate routing data, wherein the interface information of each page information corresponds to the intermediate routing data, and the intermediate routing data of each page information corresponds to the page portrait information;
s40, establishing a general level relation table of the interface information, the intermediate routing data and the page portrait information of the plurality of page information.
For step S10, it should be noted that, in the application scenario of the micro front end, the micro front end application is a micro service architecture, and this architecture can combine multiple micro applications into one whole application, each application corresponds to one project, multiple projects form a development line, and each project can be developed and operated independently. Each project may correspond to a respective project principal. Each project may include a plurality of pages, and a plurality of interface information may be included under each page. For example, in a financial-like micro-front-end application, a cash register item, a financial item, and other items may be included. The pages of the financial project may include a financial product detail page for providing a detailed description of the financial product to the user, a payment page for the user to purchase a value, etc., and a bulletin page for promoting bulletins of the financial product, etc., among other pages. The interface under each page may be a user's access interface, and a user may access the corresponding page through multiple interfaces of the page. A group of interface information of a certain page can be https:// m.yqb.com/mtp-web/h5/query1, https// m.yqb.com/mtp-web/h5/query2, https:// m.yqb.com/youqian/module/json1 and the like. Meanwhile, each page has a routing string information, so that a set of interface information of each page may correspond to the routing string information of the page. When an interface of a certain page is abnormal, such as error reporting, the corresponding page is obtained through positioning the routing character string information corresponding to the interface and then the routing character string information, and then a project principal of the page can be informed to arrange a developer to repair the error in time, so that the positioning efficiency of the abnormal interface is improved. Further, screenshot information of each page can be obtained to generate a page representation to represent each page, and the corresponding page can be located by querying the page representation corresponding to the exception interface.
It is worth mentioning that in different user terminal devices 110, there may be different page shots, i.e. different page representations, for the same page. For example, the financial product detail page of the user a is set as the original version of 15.0, the financial product detail page of the user B is updated to an updated version of 15.2, and the financial product detail page of the user a and the financial product detail page of the user B are different versions of the same page. In this case, the same page may correspond to two different versions of page images, but the routing string information in the different versions of page images is not changed. Thus, each routing string information may correspond to multiple page renderings.
It should be further described that, in order to improve the positioning efficiency of the interface, a one-to-one correspondence relationship between the interface information, the routing string information, and the screenshot information of a plurality of pages may be established. And when an abnormal interface appears, the abnormal interface information can be corresponded to the routing character string information, and the screenshot information of the corresponding page can be positioned according to the routing character string information. The positioning mode does not need to sequentially check each interface, and the positioning efficiency of the abnormal interface is improved.
It should be noted that the screenshot information, the routing string information, and the interface information of each page may be recorded by a preset script. When a certain project is started, the preset script can automatically record the routing character string information of each page, capture the screenshot of the page and capture all interface information under each page. When some interface information is abnormal, for example, an error is reported, the preset script can automatically record the abnormal log information of the interface.
For step S20, it should be noted that, since the screenshot information is only picture information, it is very difficult to find and locate the corresponding page through the picture. The page portrait can show various component information of the page, and each page corresponds to different component information and component arrangement. Therefore, the screenshot information can be identified and converted into a page portrait corresponding to each page.
It is worth mentioning that the component information of the page may be various types of components constituting the page. Such as button information, icon information, text information, or other information in the page.
For step S30, it should be noted that, when an interface information is abnormal, such as an error occurs, the interface information may correspond to corresponding routing string information, and the routing string information may correspond to a corresponding page image, so as to correspond to a certain page. It should be further explained that irregular characters exist in the routing character string information, and the irregular characters can be removed after pre-encryption processing, so as to generate intermediate routing data without irregular characters. And subsequently, corresponding intermediate routing data is acquired according to the abnormal interface, and when the corresponding page portrait is inquired according to the intermediate routing data, the irregular characters do not need to be processed again, so that the inquiry positioning efficiency is improved.
As an example, the routing string information may be set to lc/product list, where there are irregular characters such as "/", capital letters such as "L," and lowercase letters such as "c," and the routing string information is complex. When the corresponding page portrait is inquired according to the routing character string information, irregular characters also need to be processed, and the inquiry positioning efficiency is reduced. If the routing string information "lc/product list" is encrypted to generate the intermediate routing data, e.g., 4352MD4562, the intermediate routing data at this time has irregular characters removed, and the whole is simpler, so that the efficiency of subsequent query location can be improved.
It should be noted that the encryption process here may be hash algorithm encryption, and when the routing string information is encrypted based on the hash algorithm, the generated intermediate routing data is irreversible. For example, the routing string information may be set to lc/product list, and the generation intermediate routing data may be set to 4352MD4562. Because the intermediate routing data has irreversibility, the original routing character string information cannot be deduced through the intermediate routing data, and the confidentiality of the routing character string information is improved. In this embodiment, a specific process of encrypting by using a hash algorithm is not described herein, and may be obtained from an existing document.
In step S40, it should be noted that the overall level relationship table reflects the correspondence between the interface information, the intermediate routing data, and the page images of the plurality of pages. When some interface information is abnormal, such as error reporting, the error reporting interface information can correspond to corresponding intermediate routing data in the master relational table, and the intermediate routing data can correspond to corresponding page images in the master relational table. The page information reflected by the page portrait is the page with the abnormal interface, so that the page with the abnormal interface can be positioned, and the positioning efficiency of the production line interface is improved.
It is worth mentioning that in different user terminal devices 110, there may be different page shots, i.e. different page representations, for the same page. For example, the financial product detail page of the user A is set to be 15.0 original version, the financial product detail page of the user B is updated to be 15.2 updated version, and the financial product detail page of the user A and the financial product detail page of the user B are different versions of the same page. In this case, the same page may correspond to two different versions of page images, but the interface information and the routing string information under the page are not changed. Since one piece of routing string information corresponds to one piece of intermediate routing data, the intermediate routing data under one page is also unchanged. In this example, each set of interface information may correspond to one intermediate routing data, and one intermediate routing data may correspond to multiple page renderings of the same page.
As another exemplary embodiment, the above-mentioned overall level relationship table may also be used for querying an interface, specifically, when interface information under a certain page needs to be queried, a page screenshot of the page may be uploaded, and the page screenshot is automatically identified by a preset automation script to generate a corresponding page portrait. Based on the page representation, the same page representation in the global level relationship table may be queried. Then, intermediate routing data corresponding to the page portrait in the master relational table is inquired in sequence, and interface information is inquired based on the intermediate routing data, so that all interface information under the page can be obtained, and the page interface can be quickly inquired.
As another exemplary embodiment, the above-described overall level relationship table may also be used for green light testing at page development. It should be noted that the green light test may refer to testing each interface of the page. Specifically, when a green light test of each page is performed, each interface under each page can be automatically accessed based on an automation script, and whether each interface is normal or not can be verified. When an abnormality, such as an error report, occurs in a certain interface, the automation script automatically records the interface information of the error report and the abnormality log information. Based on the error-reported interface information, the intermediate routing data corresponding to the error-reported interface information in the master relational table can be firstly inquired, and the corresponding page portrait can be inquired according to the intermediate routing data, so that the page where the abnormal interface is located can be positioned. Finally, based on the abnormal log information of the abnormal interface, the abnormal interface can be debugged in a targeted manner.
The abnormal log information may include interface name information, interface error information, and error time of the abnormal interface, and the page representation corresponding to the error interface information may represent the page where the abnormal interface is located. By summarizing the page portrait corresponding to the error-reported interface information and the abnormal log information, a production line interface positioning table can be generated so as to display the specific page where the abnormal interface is located, the error-reported information and the error-reported time. Based on the page information of the abnormal interface, the production line interface positioning table can be sent to the project responsible person corresponding to the page, and the project responsible person can send the production line interface positioning table to subordinate developers. The developer can quickly find the abnormal interface of the corresponding page according to the page information and the interface name information of the positioning table, and perform targeted repair according to the interface error reporting information and the error reporting time. Furthermore, the production line interface positioning table can be quickly synchronized to a project responsible person through a mail, and the problem reporting time of an abnormal interface is shortened.
In an exemplary embodiment, as shown in FIG. 3, identifying screenshot information for a plurality of said page information, generating corresponding page representation information may include,
and S21, carrying out image recognition processing on the screenshot information, and acquiring page layout information corresponding to the screenshot information.
And S22, generating page portrait information of the screenshot information based on the page layout information.
It should be noted that the process of generating the page portrait information of the page screenshot may be described as obtaining page layout information in the page screenshot, where the page layout information may be layouts of various components in the page, and the various components may be text components, picture components, icon components, or other components. Then, based on the page layout information, the detailed attributes of each component are described, and page portrait information can be generated.
It is worth mentioning that the page layout information of the page shot can be obtained using a neural network based image prediction model. Specifically, the neural network model may first be trained using a user interface data set that may be set to include seventy thousand page shots and component layout information for each page shot. Seventy thousand page screenshots are used as an input set, the component layout information of each page screenshot is used as an output set, and the neural network model can be trained. After training is finished, the well-trained neural network model can be set as an image prediction model. Inputting the screenshot information to be identified into an image prediction model, and outputting component layout information in the screenshot information, namely page layout information. The specific training mode of the neural network model in this embodiment is not described herein any more, and may be obtained from the existing literature.
In an exemplary embodiment, as shown in FIG. 4, generating page representation information for the screenshot information based on the page layout information includes,
step S221, generating page description information based on the page layout information, wherein the page description information comprises page component type information, page component position information and page component size information.
And step S222, generating page portrait information of the screenshot information based on the page description information.
It should be noted that on the basis of identifying the component layout of the screenshot information, the detailed attributes of each component can be described to generate page description information, so as to perfect the page representation. Specifically, for each component of each page, attribute description may be added, and component type information, component position information, and component size information may be generated. The component type information may include characters, numbers, symbols, icons, and the like in the component, the component position information may indicate a coordinate position of the component on the page, and the component size information may indicate a length and a width of the component.
As an exemplary embodiment, if a certain component in a certain page layout is Status Bar, a property description can be added to the component. For example, the component type information may be set to "notification icon area", "power amount area", or "time area", and for "notification icon area", the component position information thereof may be set to "X =100, y =100". For the "power amount region", the component position information thereof may be set to "X =200, y =100", for the "time region", the component position information thereof may be set to "X =300, y =100", the origin-of-coordinates position may be set as required, and may be set to a certain position in the page layout. And are not intended to be limiting herein. For the "notification icon area", the component size information thereof may be set to "length 20mm, width 10mm". For the "charge area", the component size information thereof may be set to "length 15mm, width 8mm". For the "time zone", the component size information thereof may be set to "length 15mm, width 6mm".
In an exemplary embodiment, as shown in FIG. 5, the process of establishing a table of relationships between the interface information, the intermediate routing data, and the page representation for a plurality of pages may include,
and S41, establishing a sub-level relation table of the interface information, the intermediate routing data and the page portrait information of each page.
And S42, summarizing the sub-level relation table of each page to generate a total level relation table.
It should be noted that, the master hierarchical relationship table may be generated by summarizing the interface information, the intermediate routing data, and the sub hierarchical relationship table of the page portrait information for each page. Specifically, as shown in fig. 6, the interface information of each page may be set as the first level of the sub-level relationship table of each page. The intermediate routing data for each page may be set to a second level of the sub-level relationship table for each page. The page image information of each page may be set to a third level of the sub-level relation table of each page. After the sub-level relationship table of each page is summarized, the first level of the total level relationship table can be set as a group of interface information A1, A2 and A3 of the A page, a group of interface information B1, B2 and B3 of the B page, a group of interface information C1, C2 and C3 of the C page, the second level can be set as intermediate routing data P1 of the A page, intermediate routing data P2 of the B page and intermediate routing data P3 of the C page, and the third level can be set as page image information S1 of the A page, page image information S2 of the B page and page image information S3 of the C page. The mapping relationship among the first level, the second level and the third level of the total level relationship table can be expressed as (A1, A2, A3) → P1 → S1, (B1, B2, B3) → P2 → S2, (C1, C2, C3) → P3 → S3.
Based on the above method embodiment, the present invention provides a method for positioning a production line interface, as shown in fig. 7, and fig. 7 shows a flowchart of the method for positioning a production line interface according to an embodiment of the present application.
And S51, acquiring abnormal log information.
And S52, acquiring corresponding interface information according to the abnormal log information.
And S53, inquiring the master relation table according to the interface information to acquire corresponding intermediate routing data and page portrait information.
And S54, summarizing the abnormal log information and the corresponding page portrait information to generate a production line interface positioning table.
It should be further noted that, when a certain interface information generates an abnormality, such as an error report, the preset automation script may automatically record abnormality log information, where the abnormality log information may include interface name information, interface error report information, and error report time. After the page portrait information of the abnormal interface is positioned according to the master relational table, the page portrait information and the abnormal log information can be summarized to generate a production line interface positioning table. The back end is based on the production line interface positioning table, and can quickly find the abnormal interface under the page according to the interface name information in the abnormal log information. The interface error reporting information and the error reporting time based on the abnormal log information can be used for repairing the abnormal interface pertinently and quickly, the positioning time of the production line interface is effectively shortened, and the positioning efficiency of the production line interface is improved.
It should be mentioned that the server may also obtain the abnormal log information of the multiple interface information based on the preset automation script, so as to satisfy the record of the abnormal log information of the multiple abnormal interfaces. The exception log information for multiple interfaces may be merged into an exception data set at this time. Based on a plurality of abnormal interface information corresponding to the abnormal data set, intermediate routing data corresponding to the plurality of abnormal interface information in the master-level relation table can be inquired, and when the plurality of abnormal interface information is interface information under the same page, the plurality of abnormal interface information corresponds to one intermediate routing data. And when the abnormal interface information is interface information under different pages, the abnormal interface information corresponds to the intermediate routing data. Then, based on the intermediate routing data corresponding to the interface information of the plurality of exceptions, the corresponding page representation is inquired, and the page where the plurality of exceptions interface is located can be located.
When there are multiple abnormal interfaces, after recording the abnormal log information of the multiple interface information, the server 120 may also screen the recorded abnormal log information of the multiple interfaces to remove unimportant abnormal log information. The method can realize targeted processing of abnormal log information of a plurality of interfaces and improve the repair efficiency of the plurality of abnormal interfaces. For example, when there are two abnormal interfaces, the interface error information of the corresponding abnormal log information may be set to "request address error" and "resolution error occurred when processing the request". When the interface error report information in the abnormal log information is "request address error", the abnormal log information can be set to be unimportant, and the unimportant abnormal log information can mean that the error recorded in the log information does not affect the operation of the interface. When the interface error report information in the abnormal log information is "an analysis error occurs during processing a request", the abnormal log information can be set as important abnormal log information, and the important abnormal log information can indicate that the error recorded in the log information affects the operation of the interface. The server 120 may cull insignificant exception log information. Corresponding interface information can be obtained according to the remaining important abnormal log information, the page where the interface information is located can be located according to the master relation table subsequently, repair can be carried out, abnormal interfaces corresponding to unimportant abnormal log information do not need to be processed, and the processing efficiency of a plurality of abnormal interfaces is improved.
When locating an abnormal interface, the interface information of a plurality of pages may be set as a first hierarchy, the intermediate routing data of each page may be set as a second hierarchy, and the page image information of each page may be set as a third hierarchy in the global hierarchy relationship table. When the page portrait information corresponding to the error-reported interface information is inquired, the preset automatic script sequentially inquires corresponding second-level data from the first-level data and inquires corresponding third-level data according to the second-level data so as to obtain the corresponding page portrait information. From this, the page corresponding to the abnormal interface can be determined. Through the positioning mode of the abnormal interface, the back-end personnel do not need to manually browse and sequentially check the pages corresponding to the abnormal interface, the time cost of the back-end personnel is reduced, and the positioning efficiency of the abnormal interface is improved.
As an example, the pages of all items can be set as A page, B page, and C page. The first level of the overall level relation table can be set as a group of interface information A1, A2 and A3 of an A page, a group of interface information B1, B2 and B3 of a B page, a group of interface information C1, C2 and C3 of a C page, the second level can be set as intermediate routing data P1 of an A page, intermediate routing data P2 of a B page and intermediate routing data P3 of a C page, and the third level can be set as page image information S1 of an A page, page image information S2 of a B page and page image information S3 of a C page. It should be noted that, for the same a page, there may be different versions of screenshot, for example, 15.0 version of original page, or 15.2 version of updated page, that is, there may be different page portrait information, for example, page portrait information S1 and page portrait information S12.
In an exemplary embodiment, as shown in fig. 8, the process of obtaining exception log information may include,
step S511, obtaining interface name information, interface error reporting information and error reporting time of certain interface information;
and S512, summarizing the interface name information, the interface error information and the error time, and generating abnormal log information.
When an abnormality, such as an error report, occurs in certain interface information, the server 120 may record the interface name information, the interface error report information, and the error report time of the interface information based on a preset automation script, and may generate abnormality log information by summarizing the interface name information, the interface error report information, and the error report time of the interface information, and the backend may subsequently perform interface repair according to the detailed abnormality log information.
The interface error report information may be a specific error reason, for example, a request address error, a resolution error occurring when processing a request, a service unavailable error, a connection timeout error or other errors. Each interface error message may correspond to a code, for example, a request address error is denoted as case 400, a resolution error occurring when a request is processed is denoted as case 403, and a service unavailable error is denoted as case 404.
In an exemplary embodiment, as shown in fig. 9, querying the global level relationship table according to the interface information to obtain corresponding intermediate routing data and page representation information may include,
step S521, according to the interface information, querying intermediate routing data corresponding to the interface information in the master hierarchy relationship table, and obtaining the corresponding intermediate routing data.
Step S522, based on the corresponding intermediate routing data, querying the page portrait information corresponding to the intermediate routing data in the master relational table, and acquiring the corresponding page portrait information.
It should be noted that, in the overall level relationship table, the interface information, the intermediate routing data, and the page portrait information of a plurality of pages may present a corresponding relationship. When the page where the abnormal interface is located needs to be located, the intermediate routing data corresponding to the interface information in the master relation table can be inquired based on the interface information corresponding to the abnormal log information, and then the corresponding page portrait information can be inquired according to the intermediate routing data, so that the page where the abnormal interface is located can be located.
It should be mentioned that the overall level relationship table may also be used in an application scenario of interface search to query interface information corresponding to a certain page screenshot. Specifically, a screenshot of a certain page can be identified to generate a page portrait. The page portrait is based on the query of the master relational table, corresponding intermediate routing data can be obtained, and then the corresponding abnormal interface in the master relational table can be queried through the intermediate routing data.
It can be seen that, in the above scheme, a relationship table between each page and an interface is first generated, and when an interface is abnormal, for example, an error is reported, a page of an abnormal interface can be positioned according to the relationship table, and a production line interface positioning table is generated. And sending the production line interface positioning table to a project principal at the rear end, wherein the project principal can arrange subordinate developers in time to repair. The abnormal interface of the corresponding page can be quickly positioned by a developer according to the positioning table, the positioning efficiency of finding out the production line interface can be effectively improved, the page position of the abnormal interface is not required to be found by depending on the project familiarity of a project principal, and the time cost of the project principal is reduced. Meanwhile, the production line interface positioning table can be synchronized to a project responsible person through a mail, the problem reporting time of an abnormal interface is shortened, and the labor cost is reduced.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In an embodiment, an association processing device of a production line interface is provided, and the association processing device of the production line interface corresponds to the association processing method of the production line interface in the above embodiment one to one. As shown in fig. 10, the association processing apparatus of the production line interface includes an obtaining module 101, an identifying module 102, a processing module 103, and an establishing module 104.
In one embodiment, the identification module 102 is specifically configured to,
and carrying out image recognition processing on the screenshot information of the plurality of page information to obtain page layout information corresponding to the screenshot information.
And generating page portrait information of the screenshot information based on the page layout information.
The identification module 102, in one embodiment, is further configured to,
and generating page description information based on the page layout information, wherein the page description information comprises page component type information, page component position information and page component size information.
And generating page portrait information of the screenshot information based on the page description information.
In one embodiment, the establishing module 104 is specifically configured to,
and establishing the interface information, the intermediate routing data and the sub-level relation table of the page portrait of each page information.
And summarizing the sub-level relation table of each page information to generate the total level relation table.
The invention provides an association processing device of a production line interface, which can generate a master relation table of each page and the interface, and can inquire a page portrait corresponding to each interface through the master relation table so as to position the page position of the interface. When an abnormal interface appears, the page portrait corresponding to the abnormal interface can be quickly inquired through the master relational table, a developer can position the interface according to the page portrait corresponding to the abnormal interface, and the interface can be timely repaired according to the abnormal log information. The invention can position the interface according to the master relation table without depending on the familiarity of project responsible persons to project pages to position the interface, thereby improving the positioning efficiency of the production line interface and reducing the labor cost.
For the specific definition of the association processing device of the production line interface, reference may be made to the above definition of the association processing method of the production line interface, which is not described herein again. The modules in the associated processing device of the production line interface can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 11. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes non-volatile and/or volatile storage media, internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external client through a network connection. The computer program is executed by a processor to implement functions or steps of a service side of an association processing method of a production line interface or to implement functions or steps of a service side of a positioning method of a production line interface.
In one embodiment, a computer device is provided, which may be a client, and its internal structure diagram may be as shown in fig. 12. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operating system and the computer program to run on the non-volatile storage medium. The network interface of the computer device is used for communicating with an external server through a network connection. The computer program is executed by a processor to implement functions or steps of a method for association processing of a line interface on a client side, or to implement functions or steps of a method for location processing of a line interface on a client side.
In one embodiment, a computer device is provided, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the processor implements the steps of the associated processing method of the line interface:
acquiring a plurality of page information of a production line, wherein each page information comprises screenshot information, routing character string information and a plurality of interface information;
identifying screenshot information of a plurality of page information, and generating corresponding page portrait information;
encrypting routing character string information of a plurality of page information to generate corresponding intermediate routing data, wherein the interface information of each page information corresponds to the intermediate routing data, and the intermediate routing data of each page information corresponds to the page portrait information;
and establishing a general level relation table of the interface information, the intermediate routing data and the page portrait information of the plurality of page information.
Or the processor realizes the positioning method of the production line interface when executing the computer program, and the method comprises the following steps:
acquiring abnormal log information;
acquiring corresponding interface information according to the abnormal log information;
inquiring a master relation table according to the interface information to obtain corresponding intermediate routing data and page portrait information;
summarizing the abnormal log information and the corresponding page portrait information to generate a production line interface positioning table.
In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, realizes the steps of the associated processing method of the line interface:
acquiring a plurality of page information of a production line, wherein each page information comprises screenshot information, routing character string information and a plurality of interface information;
identifying screenshot information of the plurality of page information, and generating corresponding page portrait information;
encrypting routing character string information of a plurality of page information to generate corresponding intermediate routing data, wherein the interface information of each page information corresponds to the intermediate routing data, and the intermediate routing data of each page information corresponds to the page portrait information;
and establishing a total level relation table of the interface information, the intermediate routing data and the page portrait information of the plurality of page information.
Or the computer program is executed by the processor to realize the steps of the positioning method of the production line interface:
acquiring abnormal log information;
acquiring corresponding interface information according to the abnormal log information;
inquiring a master level relation table according to the interface information to obtain corresponding intermediate routing data and page portrait information;
summarizing the abnormal log information and the corresponding page portrait information to generate a production line interface positioning table.
It should be noted that, the functions or steps that can be implemented by the computer-readable storage medium or the computer device can be referred to the related descriptions of the server side and the client side in the foregoing method embodiments, and are not described here one by one to avoid repetition.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by hardware instructions of a computer program, which may be stored in a non-volatile computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A correlation processing method for a production line interface is characterized by comprising the following steps:
acquiring a plurality of page information of a production line, wherein each page information comprises screenshot information, routing character string information and interface information;
identifying screenshot information of a plurality of page information to generate corresponding page portrait information;
encrypting the routing character string information of the plurality of page information to generate corresponding intermediate routing data, wherein the interface information of each page information corresponds to the intermediate routing data, and the intermediate routing data of each page information corresponds to the page portrait information;
and establishing a general level relation table of the interface information, the intermediate routing data and the page portrait information of the plurality of page information.
2. The association processing method for the production line interface according to claim 1, wherein the identifying screenshot information of the plurality of page information and generating corresponding page representation information includes:
carrying out image recognition processing on screenshot information of a plurality of page information to obtain page layout information corresponding to the screenshot information;
and generating page portrait information of the screenshot information based on the page layout information.
3. The association processing method for the production line interface according to claim 2, wherein the generating page representation information of the screenshot information based on the page layout information includes:
generating page description information based on the page layout information, wherein the page description information comprises page component type information, page component position information and page component size information;
and generating page portrait information of the screenshot information based on the page description information.
4. The method as claimed in claim 1, wherein the step of establishing a total relationship table of the interface information, the intermediate routing data and the page representation information of the plurality of page information comprises:
establishing a sub-level relation table of the interface information, the intermediate routing data and the page portrait information of each page information;
and summarizing the sub-level relation table of each page information to generate the total level relation table.
5. A method for positioning a production line interface is characterized by comprising the following steps:
acquiring abnormal log information;
acquiring corresponding interface information according to the abnormal log information;
inquiring the general level relation table according to any one of claims 1 to 4 according to the interface information to obtain corresponding intermediate routing data and page portrait information;
summarizing the abnormal log information and the corresponding page portrait information to generate a production line interface positioning table.
6. The method for positioning a production line interface according to claim 5, wherein the obtaining the abnormal log information includes:
acquiring interface name information, interface error reporting information and error reporting time of certain interface information;
and summarizing the interface name information, the interface error reporting information and the error reporting time to generate abnormal log information.
7. The method as claimed in claim 5, wherein the querying the global level relationship table according to the interface information to obtain corresponding intermediate routing data and page portrait information comprises:
inquiring intermediate routing data corresponding to the interface information in the master relationship table according to the interface information to obtain corresponding intermediate routing data;
and inquiring the page portrait information corresponding to the intermediate routing data in the master-level relation table based on the corresponding intermediate routing data to acquire the corresponding page portrait information.
8. An association processing apparatus for a production line interface, comprising:
the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring a plurality of page information of a production line, and each page information comprises screenshot information, routing character string information and interface information;
the identification module is used for identifying screenshot information of the plurality of page information to generate corresponding page portrait information;
a processing module, configured to encrypt routing string information of the plurality of pieces of page information to generate corresponding intermediate routing data, where the interface information of each piece of page information corresponds to the intermediate routing data, and the intermediate routing data of each piece of page information corresponds to the page portrait information;
and the establishing module is used for establishing a general level relation table of the interface information, the intermediate routing data and the page portrait information of the plurality of page information.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for associating and processing the production line interface according to any one of claims 1 to 4 or the method for locating the production line interface according to any one of claims 5 to 7 when executing the computer program.
10. A computer-readable storage medium, storing a computer program, wherein the computer program, when executed by a processor, implements the association processing method of the in-line interface according to any one of claims 1 to 4, or the positioning method of the in-line interface according to any one of claims 5 to 7.
CN202211437586.9A 2022-11-17 2022-11-17 Association processing method, positioning method and device of production line interface Pending CN115756582A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211437586.9A CN115756582A (en) 2022-11-17 2022-11-17 Association processing method, positioning method and device of production line interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211437586.9A CN115756582A (en) 2022-11-17 2022-11-17 Association processing method, positioning method and device of production line interface

Publications (1)

Publication Number Publication Date
CN115756582A true CN115756582A (en) 2023-03-07

Family

ID=85372314

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211437586.9A Pending CN115756582A (en) 2022-11-17 2022-11-17 Association processing method, positioning method and device of production line interface

Country Status (1)

Country Link
CN (1) CN115756582A (en)

Similar Documents

Publication Publication Date Title
US8813039B2 (en) Method and system for software defect reporting
CN108804548B (en) Test data query method, device, computer equipment and storage medium
CN110109656B (en) Interface simulation method, device, computer equipment and storage medium
CN110688598B (en) Service parameter acquisition method and device, computer equipment and storage medium
US7159209B1 (en) Inter-application validation tool for use in enterprise architecture modeling
WO2020233091A1 (en) Method and apparatus for service data rollback, computer device and storage medium
CN113127347B (en) Interface testing method, device, equipment and readable storage medium
CN111522728A (en) Method for generating automatic test case, electronic device and readable storage medium
CN111310007B (en) Webpage interface query method and device, electronic equipment and storage medium
CN112650688A (en) Automated regression testing method, associated device and computer program product
CN112214456A (en) House property data processing method and device and electronic equipment
CN113919948B (en) Data updating method and device, electronic equipment and storage medium
CN110830500A (en) Network attack tracking method and device, electronic equipment and readable storage medium
CN110232018A (en) Interface test method, device, computer equipment
CN112965852A (en) Error positioning method and device based on log analysis
CN110543375B (en) Claim transaction exception processing method and device, computer equipment and storage medium
CN111552648A (en) Automatic verification method and system for application
CN115756582A (en) Association processing method, positioning method and device of production line interface
US11556460B2 (en) Test case generation for software development using machine learning
CN110222290B (en) Page generation method and device, computer equipment and storage medium
CN114462859A (en) Workflow processing method and device, computer equipment and storage medium
CN114371866A (en) Version reconfiguration test method, device and equipment of service system
US11036613B1 (en) Regression analysis for software development and management using machine learning
CN114398431A (en) Bill data query method, device, equipment and storage medium
CN117827832A (en) Data verification method, device, computer equipment and storage medium

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