CN116894004A - Information display method and device, electronic equipment and computer readable storage medium - Google Patents
Information display method and device, electronic equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN116894004A CN116894004A CN202310891732.3A CN202310891732A CN116894004A CN 116894004 A CN116894004 A CN 116894004A CN 202310891732 A CN202310891732 A CN 202310891732A CN 116894004 A CN116894004 A CN 116894004A
- Authority
- CN
- China
- Prior art keywords
- file
- detected
- files
- operation object
- rule
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 74
- 238000001514 detection method Methods 0.000 claims abstract description 167
- 238000012795 verification Methods 0.000 claims abstract description 48
- 230000004044 response Effects 0.000 claims abstract description 27
- 230000014509 gene expression Effects 0.000 claims description 25
- 238000004590 computer program Methods 0.000 claims description 24
- 238000012545 processing Methods 0.000 claims description 23
- 230000015654 memory Effects 0.000 claims description 11
- 238000012216 screening Methods 0.000 claims description 7
- 238000005516 engineering process Methods 0.000 abstract description 22
- 230000010365 information processing Effects 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 16
- 230000008569 process Effects 0.000 description 15
- 230000003252 repetitive effect Effects 0.000 description 11
- 230000006870 function Effects 0.000 description 9
- 238000004891 communication Methods 0.000 description 8
- 238000011161 development Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000010998 test method Methods 0.000 description 3
- 238000012512 characterization method Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 239000000758 substrate Substances 0.000 description 2
- 108010001267 Protein Subunits Proteins 0.000 description 1
- 238000013475 authorization Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000013522 software testing Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
- G06F16/168—Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/18—File system types
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present disclosure provides an information display method and apparatus, an electronic device, and a computer-readable storage medium, which can be applied to the fields of computer technology, information processing technology, software development technology, and finance. The information display method comprises the following steps: responding to a received file detection request, and acquiring N files to be detected corresponding to the file paths to be detected according to the file paths to be detected indicated by the file detection request; according to the preset file rules, respectively carrying out rule verification on N files to be detected to obtain file rule verification results corresponding to the N files to be detected; based on the operation object identification queues, carrying out repeatability detection on Q operation object identifications corresponding to the P files to be detected respectively to obtain object repeatability detection results; and in response to receiving the information display request, determining a file detection result according to the file rule verification result, the object repeatability detection result and the display type in the information display request.
Description
Technical Field
The present disclosure relates to the fields of computer technology, information processing technology, software development technology, and finance, and more particularly, to an information display method and apparatus, an electronic device, a computer-readable storage medium, and a computer program product.
Background
With the development of computer technology, expected business functions can be realized by writing program codes.
Code (i.e., code) may refer to source files written in a language supported by a development tool. A code may comprise an explicit system of rules for representing information in discrete form, such as characters, symbols, or signal symbols.
In the process of implementing the disclosed concept, the inventor finds that at least the following problems exist in the related art: because the single source file is usually detected, and the typesetting format of the source file has higher requirements, the efficiency and the accuracy of source file detection cannot be ensured.
Disclosure of Invention
In view of this, the present disclosure provides an information presentation method and apparatus, an electronic device, a computer-readable storage medium, and a computer program product.
According to one aspect of the present disclosure, there is provided an information presentation method including: responding to a received file detection request, and acquiring N files to be detected corresponding to the file paths to be detected according to the file paths to be detected indicated by the file detection request; according to a preset file rule, respectively carrying out rule verification on the N files to be detected to obtain file rule verification results corresponding to the N files to be detected; responding to P files to be detected in the N files to be detected, and respectively processing the P files to be detected through file rule verification to obtain Q operation object identifiers corresponding to the P files to be detected; based on the operation object identification queue, repeatedly detecting Q operation object identifications corresponding to the P files to be detected respectively to obtain object repeatability detection results; and determining a file detection result according to the file rule verification result, the object repeatability detection result and the display type in the information display request in response to receiving the information display request, wherein N, P and Q are both positive integers, and P is smaller than or equal to N.
According to an embodiment of the present disclosure, the operation object identifiers each correspond to a matching sequence identifier, and the operation object identifier queue includes at least one candidate operation object identifier.
According to an embodiment of the present disclosure, the performing repeatability detection on Q operation object identifiers corresponding to the P files to be detected based on the operation object identifier queue, to obtain an object repeatability detection result includes: for each to-be-detected file in the P to-be-detected files, determining a Q-th operation object identification according to the matching sequence identifications corresponding to the Q operation object identifications, wherein Q is a positive integer and is smaller than or equal to Q; according to the q-th operation object identifier, respectively matching the at least one candidate operation object identifier to obtain an operation object identifier matching result; and adding the q-th operation object identifier to the operation object identifier queue when the operation object identifier matching result indicates that no candidate operation object identifier matched with the q-th operation object identifier exists in the operation object identifier queue.
According to an embodiment of the present disclosure, the above method further includes: determining the q-th operation object identifier as a repeated operation object identifier under the condition that the operation object identifier matching result represents that candidate operation object identifiers matched with the q-th operation object identifier exist in the operation object identifier queue; and determining the object repeatability detection result according to the file identifier and the repetitive operation object identifier.
According to an embodiment of the present disclosure, the N files to be detected each correspond to a file identifier.
According to an embodiment of the present disclosure, the performing rule verification on the N files to be detected according to the predetermined file rule, to obtain file rule verification results corresponding to the N files to be detected respectively includes: for each of the N file identifications, performing file rule matching on the file to be detected corresponding to the file identification according to the preset file rule to obtain a file rule matching result corresponding to the file identification; responding to the file rule matching result to represent that the file to be detected does not pass the file rule verification, and determining fault position information in the file to be detected; and determining the file rule checking result according to the file identification and the fault position information.
According to an embodiment of the present disclosure, the responding to the verification of the file rule of P files to be detected in the N files to be detected, respectively processing the P files to be detected, to obtain Q operation object identifiers corresponding to the P files to be detected, includes: respectively matching the P files to be detected according to a preset regular expression to obtain regular expression matching results corresponding to the P files to be detected; and responding to the regular expression matching result to represent that Q target fields matched with the preset regular expression exist in the file to be detected, and determining the Q target fields as the Q operation object identifications.
According to an embodiment of the present disclosure, in response to receiving a file detection request, obtaining N files to be detected corresponding to a file path to be detected according to the file path to be detected indicated by the file detection request includes: responding to the received file detection request, and acquiring M candidate files to be detected corresponding to the file path to be detected according to the file path to be detected, wherein the M candidate files to be detected are associated with each other, the M candidate files to be detected respectively correspond to file types, and M is a positive integer; and screening the M candidate files to be detected according to the preset file type and the file types corresponding to the M candidate files to be detected respectively to obtain the N files to be detected.
According to an embodiment of the present disclosure, the presentation type includes at least one of a file rule check result query and an object repeatability detection result query.
According to an embodiment of the present disclosure, the determining, in response to receiving an information display request, a file detection result according to the file rule verification result, the object repeatability detection result, and a display type in the information display request includes: under the condition that the display type comprises the file rule checking result query, determining S file identifiers and first number of fault position information corresponding to the S file identifiers as the file detection result, wherein S is a positive integer; and determining T file identifications and a second number of repeated operation object identifications corresponding to the T file identifications as the file detection result when the display type comprises the object repeated detection result query, wherein T is a positive integer.
According to an embodiment of the present disclosure, after determining the file detection result according to the file rule verification result, the object repeatability detection result, and the display type in the information display request in response to receiving the information display request, the method further includes: and displaying the file detection result in the output area of the target page.
According to another aspect of the present disclosure, there is provided an information display apparatus including: the acquisition module is used for responding to the received file detection request and acquiring N files to be detected corresponding to the file paths to be detected according to the file paths to be detected indicated by the file detection request; the rule checking module is used for respectively performing rule checking on the N files to be detected according to a preset file rule to obtain file rule checking results corresponding to the N files to be detected; the processing module is used for responding to the P files to be detected in the N files to be detected and respectively processing the P files to be detected through file rule verification to obtain Q operation object identifiers corresponding to the P files to be detected; the repeatability detection module is used for carrying out repeatability detection on Q operation object identifiers corresponding to the P files to be detected respectively based on the operation object identifier queues to obtain object repeatability detection results; and the determining module is used for determining a file detection result according to the file rule checking result, the object repeatability detection result and the display type in the information display request in response to receiving the information display request, wherein N, P and Q are both positive integers, and P is smaller than or equal to N.
According to another aspect of the present disclosure, there is provided an electronic device including: one or more processors; and a memory for storing one or more instructions that, when executed by the one or more processors, cause the one or more processors to implement a method as described in the present disclosure.
According to another aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to implement a method as described in the present disclosure.
According to another aspect of the present disclosure, there is provided a computer program product comprising computer executable instructions which, when executed, are adapted to carry out the method as described in the present disclosure.
According to the embodiment of the disclosure, since the file rule checking result is obtained by performing rule checking on the file to be detected according to the predetermined file rule, and the file to be detected is obtained according to the file path to be detected indicated by the file detection request, the file rule checking result can be used for representing whether the file to be detected passes the rule checking. The object repeatability detection result is obtained by repeatedly detecting the operation object identifier corresponding to the file to be detected based on the operation object identifier queue, and the operation object identifier is obtained by processing the file to be detected in response to the file to be detected passing the file rule check, so that the object repeatability detection result can be used for representing whether the operation object passes the repeatability detection. On the basis, the file detection result is obtained by processing the file rule checking result and the object repeatability detection result according to the display type, so that the technical problems that single files are detected in the related technology, and the file typesetting format is required to be higher, so that the efficiency and the accuracy of file detection cannot be ensured are solved.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments thereof with reference to the accompanying drawings in which:
FIG. 1 schematically illustrates a system architecture to which an information presentation method may be applied, according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of an information presentation method according to an embodiment of the present disclosure;
fig. 3 schematically illustrates an example schematic diagram of a process of acquiring N files to be detected corresponding to a file path to be detected according to the file path to be detected indicated by a file detection request in response to receiving the file detection request according to an embodiment of the present disclosure;
fig. 4 schematically illustrates an example schematic diagram of a process of performing rule verification on N files to be detected according to a predetermined file rule, to obtain file rule verification results corresponding to the N files to be detected, respectively, according to an embodiment of the disclosure;
fig. 5 schematically illustrates an example schematic diagram of a process of performing repeatability detection on Q operation object identifiers corresponding to P files to be detected, respectively, based on an operation object identifier queue, to obtain an object repeatability detection result according to an embodiment of the present disclosure;
FIG. 6 schematically illustrates an example schematic diagram of an information presentation process according to an embodiment of the disclosure;
FIG. 7 schematically illustrates a block diagram of an information presentation apparatus according to an embodiment of the present disclosure; and
fig. 8 schematically illustrates a block diagram of an electronic device adapted to implement an information presentation method according to an embodiment of the disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is only exemplary and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and/or the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly formal manner.
Where expressions like at least one of "A, B and C, etc. are used, the expressions should generally be interpreted in accordance with the meaning as commonly understood by those skilled in the art (e.g.," a system having at least one of A, B and C "shall include, but not be limited to, a system having a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the related personal information of the user all conform to the regulations of related laws and regulations, necessary security measures are taken, and the public order harmony is not violated.
In the technical scheme of the disclosure, the authorization or consent of the user is obtained before the personal information of the user is obtained or acquired.
With the development of computer technology, expected business functions can be realized by writing program codes. How to realize efficient detection of program code is a challenge. Because the related art generally detects a single source file and has high typesetting format requirements on the source file, the efficiency and accuracy of source file detection cannot be ensured.
In order to at least partially solve the technical problems in the related art, the present disclosure provides an information display method and apparatus, an electronic device, and a computer-readable storage medium, which can be applied to the fields of computer technology, information processing technology, software development technology, and finance. The information display method comprises the following steps: responding to a received file detection request, and acquiring N files to be detected corresponding to the file paths to be detected according to the file paths to be detected indicated by the file detection request; according to the preset file rules, respectively carrying out rule verification on N files to be detected to obtain file rule verification results corresponding to the N files to be detected; responding to P files to be detected in the N files to be detected, and respectively processing the P files to be detected through file rule verification to obtain Q operation object identifiers corresponding to the P files to be detected; based on the operation object identification queues, carrying out repeatability detection on Q operation object identifications corresponding to the P files to be detected respectively to obtain object repeatability detection results; and in response to receiving the information display request, determining a file detection result according to the file rule verification result, the object repeatability detection result and the display type in the information display request.
It should be noted that, the information display method and apparatus provided by the embodiments of the present disclosure may be used in the fields of computer technology, information processing technology, software development technology, and finance, for example, in the field of software testing technology. The information display method and the information display device provided by the embodiment of the disclosure can also be used in any field except the fields of computer technology, information processing technology, software development technology and finance, for example, the information security technology field. The application fields of the information display method and the information display device provided by the embodiment of the disclosure are not limited.
Fig. 1 schematically illustrates a system architecture to which an information presentation method may be applied according to an embodiment of the present disclosure. It should be noted that fig. 1 is only an example of a system architecture to which embodiments of the present disclosure may be applied to assist those skilled in the art in understanding the technical content of the present disclosure, but does not mean that embodiments of the present disclosure may not be used in other devices, systems, environments, or scenarios.
As shown in fig. 1, a system architecture 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is a medium used to provide a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 through the network 104 using at least one of the first terminal device 101, the second terminal device 102, the third terminal device 103, to receive or send messages, etc. Various communication client applications, such as a shopping class application, a web browser application, a search class application, an instant messaging tool, a mailbox client, social platform software, etc. (by way of example only) may be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103.
The first terminal device 101, the second terminal device 102, the third terminal device 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (by way of example only) providing support for websites browsed by the user using the first terminal device 101, the second terminal device 102, and the third terminal device 103. The background management server may analyze and process the received data such as the user request, and feed back the processing result (e.g., the web page, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that, the information presentation method provided by the embodiments of the present disclosure may be generally performed by the server 105. Accordingly, the information presentation apparatus provided by the embodiments of the present disclosure may be generally provided in the server 105. The information presentation method provided by the embodiments of the present disclosure may also be performed by a server or a server cluster that is different from the server 105 and is capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and/or the server 105. Accordingly, the information presentation apparatus provided by the embodiments of the present disclosure may also be provided in a server or a server cluster that is different from the server 105 and is capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and/or the server 105.
Alternatively, the information presentation method provided by the embodiment of the present disclosure may also be performed by the first terminal device 101, the second terminal device 102, or the third terminal device 103, or may also be performed by other terminal devices different from the first terminal device 101, the second terminal device 102, or the third terminal device 103. Accordingly, the information presentation apparatus provided by the embodiments of the present disclosure may also be provided in the first terminal device 101, the second terminal device 102, or the third terminal device 103, or in other terminal devices different from the first terminal device 101, the second terminal device 102, or the third terminal device 103.
It should be understood that the number of first terminal devices, second terminal devices, third terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of first, second, third, network and server terminals, as desired for implementation.
It should be noted that the sequence numbers of the respective operations in the following methods are merely representative of the operations for the purpose of description, and should not be construed as representing the order of execution of the respective operations. The method need not be performed in the exact order shown unless explicitly stated.
Fig. 2 schematically shows a flowchart of an information presentation method according to an embodiment of the present disclosure.
As shown in fig. 2, the information presentation method 200 may include operations S210 to S250.
In operation S210, in response to receiving the file detection request, N files to be detected corresponding to the file paths to be detected are acquired according to the file paths to be detected indicated by the file detection request.
In operation S220, according to the predetermined file rule, rule verification is performed on the N files to be detected, so as to obtain file rule verification results corresponding to the N files to be detected.
In operation S230, in response to the P files to be detected in the N files to be detected passing the file rule check, the P files to be detected are respectively processed, so as to obtain Q operation object identifiers corresponding to the P files to be detected.
In operation S240, repetitive detection is performed on Q operation object identifiers corresponding to the P files to be detected, based on the operation object identifier queue, to obtain an object repetitive detection result.
In operation S250, in response to receiving the information display request, a file detection result is determined according to the file rule verification result, the object repeatability detection result, and the display type in the information display request, where N, P and Q are both positive integers and P is less than or equal to N.
According to the embodiment of the disclosure, a code for generating a file detection request can be written in a first script in advance, and a user can run the first script through terminal equipment under the condition that file detection is required to be performed, so as to generate a file detection request message, and send the file detection request message to a server, so that the server can acquire a file to be detected according to a file path to be detected indicated by the file detection request message, and perform regular detection and repeatability detection on the file to be detected, so as to obtain a file detection result.
According to an embodiment of the present disclosure, after obtaining a file detection request, a file path to be detected indicated by the file detection request may be determined. The file path to be detected may include at least one of: a file storage path to be detected and a file directory to be detected. After the file path to be detected is obtained, the file to be detected can be obtained according to the file path to be detected. For example, the file to be detected may be acquired according to the file to be detected storage path. Alternatively, the file to be detected may be obtained according to the file directory to be detected.
According to an embodiment of the present disclosure, a predetermined file rule may be preconfigured before the information presentation method of the present disclosure is performed, so that a rule check is performed on a file to be detected according to the predetermined file rule. The predetermined file rules may be set according to actual service requirements, and are not limited herein. For example, the predetermined file rules may include BTT writing specifications. The BTT writing specification may include at least one of: whether the quotation marks are complete, whether the brackets are complete, whether special characters exist, etc.
According to the embodiment of the disclosure, after obtaining N files to be detected, for each file to be detected in the N files to be detected, rule verification may be performed on the file to be detected according to a predetermined file rule, so as to obtain a file rule verification result. The file rule check result may be used to characterize whether the file to be detected passes the file rule check. For example, in the case where the file to be detected passes the file rule check, a file rule check result indicating that the file to be detected passes the file rule check may be determined. Alternatively, in the case where the file to be detected does not pass the file rule check, a file rule check result indicating that the file to be detected does not pass the file rule check may be determined. On the basis, the fault position where the verification is problematic can also be determined, and the file rule verification result can also comprise the fault position.
According to an embodiment of the present disclosure, the file to be detected may include at least one operation object identification. The operand identification may be used to characterize different operands. For example, the file to be detected may refer to a program code file, in which case the operation object may refer to an operation step in the program code. After the file rule verification result is obtained, the files which pass the file rule verification in the N files to be detected can be further processed to obtain the operation object identifiers corresponding to each file to be detected.
According to an embodiment of the present disclosure, the operation object identification queue may store at least one candidate operation object identification. After obtaining the operation object identifiers corresponding to the files to be detected through the file rule verification, for each operation object identifier, at least one candidate operation object identifier in the operation object identifier queue and the operation object identifier can be matched respectively. For example, in the case that there is an identification matching the operation object identification among at least one candidate operation object identification, the operation object identification may be determined as a repeated operation object identification. Alternatively, in the case that there is no identifier matching the operation object identifier in the at least one candidate operation object identifier, the operation object identifier may be added to the operation object identifier queue.
According to the embodiment of the disclosure, the code for generating the information display request can be written in the second script in advance, and under the condition that the file detection result is required to be displayed, the user can operate the second script through the terminal equipment to generate the information display request message, and the information display request message is sent to the server, so that the server can display the file detection result to the user according to the display type in the information display request message.
According to embodiments of the present disclosure, a presentation type may be included in the information presentation request message. The presentation type may include at least one of: file rule checking display and object repeatability detection display. After the information display request is obtained, according to the display type in the information display request, determining a file detection result corresponding to each of the N files to be detected according to at least one of a file rule check result and an object repeatability detection result. On this basis, the file detection result can be presented to the user who initiates the information presentation request.
According to the embodiment of the disclosure, since the file rule checking result is obtained by performing rule checking on the file to be detected according to the predetermined file rule, and the file to be detected is obtained according to the file path to be detected indicated by the file detection request, the file rule checking result can be used for representing whether the file to be detected passes the rule checking. The object repeatability detection result is obtained by repeatedly detecting the operation object identifier corresponding to the file to be detected based on the operation object identifier queue, and the operation object identifier is obtained by processing the file to be detected in response to the file to be detected passing the file rule check, so that the object repeatability detection result can be used for representing whether the operation object passes the repeatability detection. On the basis, the file detection result is obtained by processing the file rule checking result and the object repeatability detection result according to the display type, so that the technical problems that single files are detected in the related technology, and the file typesetting format is required to be higher, so that the efficiency and the accuracy of file detection cannot be ensured are solved.
An information display method 200 according to an embodiment of the present invention is further described below with reference to fig. 3 to 6.
According to an embodiment of the present disclosure, the operation S210 may include the following operations.
And responding to the received file detection request, and acquiring M candidate files to be detected corresponding to the file paths to be detected according to the file paths to be detected, wherein the M candidate files to be detected are associated with each other, the M candidate files to be detected respectively correspond to file types, and M is a positive integer. And screening the M candidate files to be detected according to the preset file type and the file types corresponding to the M candidate files to be detected respectively to obtain N files to be detected.
According to embodiments of the present disclosure, the document detection method may be applied to a financial industry oriented e-commerce application framework model provided by a financial institution, such as BTT (Banking Transformation Toolkit) framework. The BTT framework may refer to an integrated solution based on WebSphere, java 2platform enterprise edition (Java 2Platform Enterprise Edition,J2EE) component technology, cross-platform, support for multi-channel financial services, and service oriented architecture (Service Oriented Architecture, SOA).
According to embodiments of the present disclosure, a BTT framework may provide a native method for initializing the framework, initializing an operation object, determining an operation object identification from the operation object, executing the operation object, and the like. The test method for the BTT framework can take the original method of the BTT framework as a bottom layer, the test method is packaged, and the original method is called by the test method in the test process so as to conveniently execute financial services.
According to an embodiment of the present disclosure, the file path to be detected may include at least one of: a file storage path to be detected and a file directory to be detected. After obtaining the file detection request, a candidate file to be detected corresponding to the file path to be detected can be obtained according to the file path to be detected. The candidate files to be detected may each correspond to a file type. The file type may include at least one of: text file type, video file format type, audio file format type, picture file format type, executable file format, etc.
According to the embodiment of the disclosure, after obtaining candidate files to be detected, for each candidate file to be detected in the M candidate files to be detected, the file types corresponding to each candidate file to be detected may be screened one by one according to the predetermined file types, so as to obtain the files to be detected matched with the predetermined file types. The predetermined file type may be set according to actual service requirements, which is not limited herein.
For example, the predetermined file type may be set to an extensible markup language (Extensible Markup Language, XML) type, in which case candidate files to be detected may be filtered according to the extensible markup language type, resulting in files to be detected whose file type is the extensible markup language type. Alternatively, the predetermined file type may be set to a hypertext markup language (Hyper Text Markup Language, HTML) type, in which case candidate files to be detected may be filtered according to the hypertext markup language type, resulting in files to be detected whose file type is the hypertext markup language.
According to the embodiment of the disclosure, in the case that the file type of the candidate to-be-detected file is determined to belong to the predetermined file type, the candidate to-be-detected file can be determined to be the to-be-detected file, so that the to-be-detected file can be subjected to the repeated searching operation. Under the condition that the file type of the candidate to-be-detected file is determined not to belong to the preset file type, the candidate to-be-detected file can be ignored, and the file type of the next candidate to-be-detected file can be continuously judged.
According to the embodiment of the disclosure, the files to be detected are obtained by screening the candidate files to be detected according to the preset file types and the file types corresponding to the candidate files to be detected, so that the accuracy of detecting the follow-up files can be improved.
Fig. 3 schematically illustrates an example schematic diagram of a process of acquiring N files to be detected corresponding to a file path to be detected according to the file path to be detected indicated by a file detection request in response to receiving the file detection request according to an embodiment of the present disclosure.
As shown in fig. 3, in 300, in response to receiving the file detection request 301, M candidate files to be detected 302 corresponding to the file path to be detected 301_1 may be acquired according to the file path to be detected 301_1 in the file detection request 301. The M candidate files to be detected 302 each correspond to a file type 303.
On this basis, the M candidate files to be detected 302 may be filtered according to the predetermined file type 304 and the file types 303 corresponding to the M candidate files to be detected 302, to obtain N files to be detected 305.
According to an embodiment of the present disclosure, operation S220 may include the following operations.
And carrying out file rule matching on the files to be detected corresponding to the file identifiers according to a preset file rule aiming at each file identifier in the N file identifiers to obtain a file rule matching result corresponding to the file identifiers. And responding to the file rule matching result to represent that the file to be detected fails the file rule verification, and determining the fault position information in the file to be detected. And determining a file rule checking result according to the file identification and the fault position information.
According to an embodiment of the disclosure, the N files to be detected may each correspond to a file identifier.
According to embodiments of the present disclosure, predetermined file rules may be used to characterize the write specification of the BTT framework. The predetermined file rules may be set according to actual service requirements, and are not limited herein. For example, the predetermined file rules may include at least one of: whether the quotation marks are complete, whether special characters are contained, whether brackets are complete, etc.
According to the embodiment of the disclosure, when a file to be detected is obtained, that is, the file type of the file to be detected is matched with a predetermined file type, file rule matching can be performed on the file to be detected according to a predetermined file rule, so as to obtain a file rule matching result. For example, it may be determined whether the content in the file to be detected is written according to the writing specification of the BTT framework according to a predetermined file rule. And under the condition that the content in the file to be detected accords with the writing specification of the BTT framework, determining a file rule matching result which indicates that the file to be detected passes the file rule verification. For the file to be detected which passes the file rule check, further object repeatability detection can be performed subsequently.
According to the embodiment of the disclosure, in the case that the content in the file to be detected does not conform to the authoring specification of the BTT framework, specific fault location information in the file to be detected which does not conform to the authoring specification can be determined. The fault location information may include, for example, a specific number of rows in the file to be detected that do not conform to the composition specification. On the basis, a file rule matching result representing that the file to be detected fails to pass the file rule verification can be determined according to the file identification and the fault position information of the file to be detected. And recording the file identification and the fault position information for the file to be detected which is not checked by the file rule, and stopping the repeated checking operation of the file to be detected.
Fig. 4 schematically illustrates an example schematic diagram of a process of performing rule verification on N files to be detected according to a predetermined file rule, to obtain file rule verification results corresponding to the N files to be detected, respectively, according to an embodiment of the present disclosure.
As shown in fig. 4, in 400, for each file identifier 401 in the N file identifiers 401, file rule matching may be performed on the file 402 to be detected corresponding to the file identifier 401 according to a predetermined file rule 403, to obtain a file rule matching result 404 corresponding to the file identifier 401.
In response to the file rule matching result 404 indicating that the file to be detected 402 fails the file rule check, fault location information 405 in the file to be detected 402 may be determined. On this basis, a file rule check result 406 may be determined from the file identification 401 and the fault location information 405.
According to an embodiment of the present disclosure, operation S230 may include the following operations.
And respectively matching the P files to be detected according to the preset regular expressions to obtain regular expression matching results corresponding to the P files to be detected. And responding to the regular expression matching result to represent that Q target fields matched with a preset regular expression exist in the file to be detected, and determining the Q target fields as Q operation object identifications.
According to an embodiment of the present disclosure, the file to be detected may include at least one Operation Step (optep). An operand may refer to an operational step in a program. The operand may be used to provide control and execution of the program flow. The operation object identification may refer to the identification of different operation steps. The files to be detected can be matched according to the preset regular expression, and a regular expression matching result is obtained. The regular expression matching result can be used for representing whether a target field matched with a preset regular expression exists in the file to be detected.
According to embodiments of the present disclosure, the predetermined regular expression may be set according to actual business requirements, which is not limited herein. For example, the predetermined regular expression may be set to "is ()". In this case, field detection may be performed on the file to be detected according to "is ()", and in the case where a target field matching with a predetermined regular expression exists in the file to be detected, the target field may be determined as an operation object identifier of each of at least one operation object in the file to be detected.
According to an embodiment of the present disclosure, operation S240 may include the following operations.
For each to-be-detected file in the P to-be-detected files, determining a Q-th operation object identification in the Q operation object identifications according to the matching sequence identifications corresponding to the Q operation object identifications, wherein Q is a positive integer and is smaller than or equal to Q. And respectively matching at least one candidate operation object identifier according to the q-th operation object identifier to obtain an operation object identifier matching result. And adding the q-th operation object identification to the operation object identification queue under the condition that the operation object identification matching result represents that no candidate operation object identification matched with the q-th operation object identification exists in the operation object identification queue.
According to embodiments of the present disclosure, the operation object identifiers may each correspond to a matching order identifier. The operation object identification queue may include at least one candidate operation object identification.
According to embodiments of the present disclosure, the operation object identifiers may each correspond to a matching order identifier. The matching order identification may be used to characterize the matching order of each of the operation objects. The object repeatability detection may be performed on the operation object identifiers based on the operation object identifier queues, respectively, according to a matching order corresponding to each operation object.
According to the embodiment of the disclosure, taking the to-be-detected file Z including the operation object identifier a and the operation object identifier B, the matching sequence identifier corresponding to the operation object identifier a is 1, the matching sequence identifier corresponding to the operation object identifier B is 2, and the operation object identifier queue includes the candidate operation object identifier C and the candidate operation object identifier D as examples, the object repeatability detection process is described.
For example, for an operation object identifier a with a matching sequence identifier 1, according to the operation object identifier a, a candidate operation object identifier C and a candidate operation object identifier D in an operation object identifier queue may be respectively matched, so as to obtain an operation object identifier matching result indicating that no operation object identifier corresponding to the operation object identifier a exists in the operation object identifier queue. In this case, the operation object identification a may be determined as a candidate operation object identification, and added to the operation object identification queue, that is, the operation object identification queue includes the candidate operation object identification a, the candidate operation object identification C, and the candidate operation object identification D.
For example, for an operation object identifier B with a matching sequence identifier of 2, according to the operation object identifier B, a candidate operation object identifier a, a candidate operation object identifier C, and a candidate operation object identifier D in an operation object identifier queue may be respectively matched, so as to obtain a matching result of an operation object identifier corresponding to the operation object identifier B in a characterization operation object identifier queue. In this case, the operation object identification B may be determined as a candidate operation object identification, and added to the operation object identification queue, that is, the operation object identification queue includes a candidate operation object identification a, a candidate operation object identification B, a candidate operation object identification C, and a candidate operation object identification D.
According to an embodiment of the present disclosure, operation S240 may further include the following operations.
And determining the q-th operation object identification as a repeated operation object identification under the condition that the operation object identification matching result represents that candidate operation object identifications matched with the q-th operation object identification exist in the operation object identification queue. And determining an object repeatability detection result according to the file identification and the repetitive operation object identification.
According to an embodiment of the present disclosure, taking an example that the file Z to be detected further includes an operation object identifier C, the operation object identifier queue includes a candidate operation object identifier a, a candidate operation object identifier B, a candidate operation object identifier C, and a candidate operation object identifier D, the object repeatability detection process is described.
For example, for an operation object identifier C with a matching sequence identifier of 3, according to the operation object identifier C, a candidate operation object identifier a, a candidate operation object identifier B, a candidate operation object identifier C, and a candidate operation object identifier D in an operation object identifier queue may be respectively matched, so as to obtain an operation object identifier matching result corresponding to the operation object identifier C in a characterization operation object identifier queue. In this case, the operation object identification C may be determined as a repetition operation object identification. On this basis, the object repeatability detection result can be determined from the file identification Z and the repetitive operation object identification C.
According to the embodiment of the disclosure, since the operation object identifier matching result is obtained by repeatedly detecting the operation object identifiers corresponding to the files to be detected based on the operation object identifier queue, the operation object identifier is added to the operation object identifier queue under the condition that candidate operation object identifiers matched with the operation object identifiers do not exist in the operation object identifier queue, so that management of the operation object identifier queue is facilitated. The determination of the repetitive operation object identifier can be achieved by determining the operation object identifier as the repetitive operation object identifier in the case where there is a candidate operation object identifier matching the operation object identifier in the operation object identifier queue. Based on the technical means, the code logic problem caused by repeated steps can be avoided, so that the efficiency of detecting and searching the repeated operation of the item after the code writing is completed is improved.
Fig. 5 schematically illustrates an example schematic diagram of a process of performing repeatability detection on Q operation object identifiers corresponding to P files to be detected, respectively, based on an operation object identifier queue, to obtain an object repeatability detection result according to an embodiment of the present disclosure.
As shown in fig. 5, in 500, for each to-be-detected file 501 of the P to-be-detected files, the to-be-detected file 501 may include Q operation object identifiers 501_1, and the Q operation object identifiers 501_1 may each correspond to the matching sequence identifier 502.
The Q-th operation object identification 503 is determined at the Q operation object identifications 501_1 based on the matching sequence identifications 502 corresponding to the Q operation object identifications 501_1, respectively. At least one candidate operation object identifier 504_1 in the operation object identifier queue 504 may be respectively matched according to the q-th operation object identifier 503, to obtain an operation object identifier matching result 505. After the operation object identification matching result 505 is obtained, operation S510 may be performed.
In operation S510, there is a candidate operation object identification matching the q-th operation object identification 503 in the operation object identification queue 504?
If not, the qth operand identification 503 may be added to the operand identification queue 504. If so, the q-th operation object identification 503 may be determined as the repetition operation object identification 506. The object repeatability detection result 508 may be determined according to the file identification 507 and the repetitive operation object identification 506 corresponding to the file 501 to be detected.
According to an embodiment of the present disclosure, operation S250 may include the following operations.
And under the condition that the display type comprises file rule checking result query, determining S file identifiers and first number of fault position information corresponding to the S file identifiers as file detection results, wherein S is a positive integer. And under the condition that the display type comprises the query of the object repeatability detection result, determining T file identifications and a second number of repeated operation object identifications corresponding to the T file identifications as the file detection result, wherein T is a positive integer.
According to embodiments of the present disclosure, the presentation type may include at least one of a file rule check result query and an object repeatability detection result query.
According to an embodiment of the present disclosure, the file rule verification result may include S file identifications that do not pass the file rule verification and specific fault location information corresponding to each of the S file identifications that does not conform to the predetermined file rule. The object repeatability detection result may include T file identifications that do not pass the object repeatability detection and specific repetitive operation object identifications corresponding to the T file identifications, respectively. S and T are less than N.
According to the embodiment of the disclosure, after receiving the information display request, at least one of the file rule checking result and the object repeatability detecting result can be processed according to the display type in the information display request to obtain the file detecting result corresponding to the display type. For example, in the case where the presentation type includes a file rule check result query, S file identifications and specific fault location information corresponding to the S file identifications, respectively, that does not conform to a predetermined file rule may be directly determined as the file detection result.
Alternatively, in the case where the presentation type includes the query of the object repeatability detection result, T file identifications and the specific repetitive operation object identifications corresponding to the T file identifications may be directly determined as the file detection result. Alternatively, in the case where the presentation type includes the file rule check result query and the object repeatability detection result, the S file identifications, the specific failure location information that does not conform to the predetermined file rule and corresponds to the S file identifications, the T file identifications, and the specific repetitive operation object identifications corresponding to the T file identifications may be determined as the file detection result.
According to the embodiment of the disclosure, by designating the file path to be detected, all the files to be detected, which are in line with the predetermined file types, under the file path to be detected are scanned respectively, so that a file rule checking result and an object repeatability detecting result are obtained, and the problem that codes are not operated according to designated logic due to the fact that the codes are not written according to the predetermined file rule and the program operation steps are repeated can be avoided, thereby improving the accuracy of file detection.
According to an embodiment of the present disclosure, the information presentation method may further include the following operations.
And displaying the file detection result in the output area of the target page.
According to embodiments of the present disclosure, a target page may refer to a page for implementing a file detection operation and an information presentation operation. The target page may include at least one button and at least one input box. For example, the user may input a file path to be detected at an input box to initiate a file detection operation. Alternatively, the user may initiate the information presentation operation by clicking a button.
Fig. 6 schematically illustrates an example schematic diagram of an information presentation process according to an embodiment of the present disclosure.
As shown in fig. 6, in response to receiving the file detection request 601, M candidate files to be detected 602 corresponding to the file path to be detected 601_1 may be acquired according to the file path to be detected 601_1 in the file detection request 601 in 600.
The M candidate files to be detected 602 may be filtered according to the predetermined file type 603 and file types corresponding to the M candidate files to be detected 602, to obtain N files to be detected 604.
The N files to be detected 602 may be respectively checked according to a predetermined file rule 605 to obtain file rule check results 606 corresponding to the N files to be detected 602.
In response to that P files to be detected 602 in the N files to be detected 602 pass through the file rule check, the P files to be detected 602 are respectively processed, so as to obtain Q operation object identifiers 607 corresponding to the P files to be detected 602.
Based on the operation object identification queue 608, the Q operation object identifications 607 corresponding to the P files 602 to be detected are repeatedly detected, and an object repeatability detection result 609 is obtained.
In response to receiving the information presentation request 610, the file detection result 611 may be determined according to the file rule check result 606, the object repeatability detection result 609, and the presentation type 610_1 in the information presentation request 610.
The above is only an exemplary embodiment, but is not limited thereto, and other information presentation methods known in the art may be included as long as the efficiency and accuracy of file detection can be improved.
Fig. 7 schematically shows a block diagram of an information presentation apparatus according to an embodiment of the present disclosure.
As shown in fig. 7, the information presentation apparatus 700 may include an acquisition module 710, a rule checking module 720, a processing module 730, a repeatability detection module 740, and a determination module 750.
The obtaining module 710 is configured to obtain, in response to receiving the file detection request, N files to be detected corresponding to the file paths to be detected according to the file paths to be detected indicated by the file detection request.
The rule checking module 720 is configured to perform rule checking on the N files to be detected according to a predetermined file rule, so as to obtain file rule checking results corresponding to the N files to be detected.
And the processing module 730 is configured to, in response to that P files to be detected in the N files to be detected pass through the file rule check, respectively process the P files to be detected, and obtain Q operation object identifiers corresponding to the P files to be detected.
The repeatability detection module 740 is configured to perform repeatability detection on Q operation object identifiers corresponding to the P files to be detected based on the operation object identifier queue, so as to obtain an object repeatability detection result.
The determining module 750 is configured to determine, in response to receiving the information display request, a file detection result according to the file rule verification result, the object repeatability detection result, and the display type in the information display request, where N, P and Q are both positive integers, and P is less than or equal to N.
According to an embodiment of the present disclosure, the operation object identifications each correspond to a matching order identification, and the operation object identification queue includes at least one candidate operation object identification.
According to an embodiment of the present disclosure, the repeatability detection module 740 may include a first determination unit, a first matching unit, and an adding unit.
The first determining unit is configured to determine, for each to-be-detected file in the P to-be-detected files, a Q-th operation object identifier in the Q operation object identifiers according to the matching sequence identifiers corresponding to the Q operation object identifiers, where Q is a positive integer, and Q is less than or equal to Q.
The first matching unit is used for respectively matching at least one candidate operation object identifier according to the q-th operation object identifier to obtain an operation object identifier matching result.
An adding unit, configured to add the q-th operation object identifier to the operation object identifier queue if the operation object identifier matching result indicates that there is no candidate operation object identifier matching the q-th operation object identifier in the operation object identifier queue.
According to an embodiment of the present disclosure, the repeatability detection module 740 may further include a second determination unit and a third determination unit.
And a second determining unit configured to determine the q-th operation object identifier as a duplicate operation object identifier in a case where the operation object identifier matching result characterizes that there is a candidate operation object identifier matching the q-th operation object identifier in the operation object identifier queue.
And the third determining unit is used for determining an object repeatability detection result according to the file identifier and the repeated operation object identifier.
According to the embodiment of the disclosure, the N files to be detected respectively correspond to file identifications.
According to an embodiment of the present disclosure, the rule checking module 720 may include a rule matching unit, a fourth determining unit, and a fifth determining unit.
The rule matching unit is used for carrying out file rule matching on the files to be detected corresponding to the file identifications according to the preset file rule aiming at each file identification in the N file identifications, and obtaining a file rule matching result corresponding to the file identifications.
And the fourth determining unit is used for determining the fault position information in the file to be detected in response to the file rule matching result to indicate that the file to be detected fails the file rule verification.
And a fifth determining unit, configured to determine a file rule verification result according to the file identifier and the fault location information.
According to an embodiment of the present disclosure, the processing module 730 may include a second matching unit and a sixth determining unit.
And the second matching unit is used for respectively matching the P files to be detected according to the preset regular expressions to obtain regular expression matching results corresponding to the P files to be detected.
And the sixth determining unit is used for responding to the regular expression matching result to represent that Q target fields matched with the preset regular expression exist in the file to be detected, and determining the Q target fields as Q operation object identifiers.
According to an embodiment of the present disclosure, the acquisition module 710 may include an acquisition unit and a screening unit.
The acquisition unit is used for responding to the received file detection request, acquiring M candidate files to be detected corresponding to the file paths to be detected according to the file paths to be detected, wherein the M candidate files to be detected are associated with each other, the M candidate files to be detected respectively correspond to file types, and M is a positive integer.
And the screening unit is used for screening the M candidate files to be detected according to the preset file type and the file types corresponding to the M candidate files to be detected respectively to obtain N files to be detected.
According to an embodiment of the present disclosure, the presentation type includes at least one of a file rule check result query and an object repeatability detection result query.
According to an embodiment of the present disclosure, the determining module 750 may include a seventh determining unit and an eighth determining unit.
And a seventh determining unit, configured to determine, as a file detection result, S file identifiers and a first number of fault location information corresponding to the S file identifiers, where S is a positive integer, in a case where the presentation type includes a file rule verification result query.
And an eighth determining unit, configured to determine, as the file detection result, T file identifications and a second number of repeated operation object identifications corresponding to the T file identifications, where T is a positive integer, in a case where the presentation type includes the query of the object repeatability detection result.
According to embodiments of the present disclosure, the information presentation apparatus 700 may further include a presentation module.
And the display module is used for displaying the file detection result in the output area of the target page.
Any number of modules, sub-modules, units, sub-units, or at least some of the functionality of any number of the sub-units according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented as split into multiple modules. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system-on-chip, a system-on-substrate, a system-on-package, an Application Specific Integrated Circuit (ASIC), or in any other reasonable manner of hardware or firmware that integrates or encapsulates the circuit, or in any one of or a suitable combination of three of software, hardware, and firmware. Alternatively, one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be at least partially implemented as computer program modules, which when executed, may perform the corresponding functions.
For example, any of the acquisition module 710, the rule checking module 720, the processing module 730, the repeatability detection module 740, and the determination module 750 may be combined in one module/unit/sub-unit or any of the modules/units/sub-units may be split into a plurality of modules/units/sub-units. Alternatively, at least some of the functionality of one or more of these modules/units/sub-units may be combined with at least some of the functionality of other modules/units/sub-units and implemented in one module/unit/sub-unit. According to embodiments of the present disclosure, at least one of the acquisition module 710, the rule checking module 720, the processing module 730, the repeatability detection module 740, and the determination module 750 may be implemented at least in part as hardware circuitry, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or in hardware or firmware in any other reasonable manner of integrating or packaging the circuitry, or in any one of or a suitable combination of any of the three. Alternatively, at least one of the acquisition module 710, the rule checking module 720, the processing module 730, the repeatability detection module 740, and the determination module 750 may be at least partially implemented as a computer program module, which when executed, may perform the corresponding functions.
It should be noted that, in the embodiment of the present disclosure, the information display device portion corresponds to the information display method portion in the embodiment of the present disclosure, and the description of the information display device portion specifically refers to the information display method portion, which is not described herein again.
Fig. 8 schematically illustrates a block diagram of an electronic device adapted to implement an information presentation method according to an embodiment of the disclosure. The electronic device shown in fig. 8 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 8, a computer electronic device 800 according to an embodiment of the present disclosure includes a processor 801 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 802 or a program loaded from a storage section 809 into a Random Access Memory (RAM) 803. The processor 801 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or an associated chipset and/or special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), or the like. The processor 801 may also include on-board memory for caching purposes. The processor 801 may include a single processing unit or multiple processing units for performing the different actions of the method flows according to embodiments of the disclosure.
In the RAM 803, various programs and data required for the operation of the electronic device 800 are stored. The processor 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. The processor 801 performs various operations of the method flow according to the embodiments of the present disclosure by executing programs in the ROM 802 and/or the RAM 803. Note that the program may be stored in one or more memories other than the ROM 802 and the RAM 803. The processor 801 may also perform various operations of the method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
According to an embodiment of the present disclosure, the electronic device 800 may also include an input/output (I/O) interface 805, the input/output (I/O) interface 805 also being connected to the bus 804. The electronic device 800 may also include one or more of the following components connected to an input/output (I/O) interface 805: an input portion 806 including a keyboard, mouse, etc.; an output portion 807 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and a speaker; a storage section 808 including a hard disk or the like; and a communication section 809 including a network interface card such as a LAN card, a modem, or the like. The communication section 809 performs communication processing via a network such as the internet. The drive 810 is also connected to an input/output (I/O) interface 805 as needed. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 810 as needed so that a computer program read out therefrom is mounted into the storage section 808 as needed.
According to embodiments of the present disclosure, the method flow according to embodiments of the present disclosure may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via the communication section 809, and/or installed from the removable media 811. The above-described functions defined in the system of the embodiments of the present disclosure are performed when the computer program is executed by the processor 801. The systems, devices, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
The present disclosure also provides a computer-readable storage medium that may be embodied in the apparatus/device/system described in the above embodiments; or may exist alone without being assembled into the apparatus/device/system. The computer-readable storage medium carries one or more programs which, when executed, implement methods in accordance with embodiments of the present disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. Examples may include, but are not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
For example, according to embodiments of the present disclosure, the computer-readable storage medium may include ROM 802 and/or RAM 803 and/or one or more memories other than ROM 802 and RAM 803 described above.
Embodiments of the present disclosure also include a computer program product comprising a computer program comprising program code for performing the methods provided by the embodiments of the present disclosure, the program code for causing an electronic device to implement the information presentation methods provided by the embodiments of the present disclosure when the computer program product is run on the electronic device.
The above-described functions defined in the system/apparatus of the embodiments of the present disclosure are performed when the computer program is executed by the processor 801. The systems, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed, and downloaded and installed in the form of a signal on a network medium, and/or from a removable medium 811 via a communication portion 809. The computer program may include program code that may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
According to embodiments of the present disclosure, program code for performing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, such computer programs may be implemented in high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. Programming languages include, but are not limited to, such as Java, c++, python, "C" or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. Those skilled in the art will appreciate that the features recited in the various embodiments of the disclosure and/or in the claims may be combined in various combinations and/or combinations, even if such combinations or combinations are not explicitly recited in the disclosure. In particular, the features recited in the various embodiments of the present disclosure and/or the claims may be variously combined and/or combined without departing from the spirit and teachings of the present disclosure. All such combinations and/or combinations fall within the scope of the present disclosure.
The embodiments of the present disclosure are described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the embodiments cannot be used advantageously in combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be made by those skilled in the art without departing from the scope of the disclosure, and such alternatives and modifications are intended to fall within the scope of the disclosure.
Claims (12)
1. An information display method, comprising:
responding to a received file detection request, and acquiring N files to be detected corresponding to the file paths to be detected according to the file paths to be detected indicated by the file detection request;
according to a preset file rule, respectively carrying out rule verification on the N files to be detected to obtain file rule verification results corresponding to the N files to be detected;
responding to P files to be detected in the N files to be detected, and respectively processing the P files to be detected through file rule verification to obtain Q operation object identifiers corresponding to the P files to be detected;
Based on the operation object identification queue, repeatedly detecting Q operation object identifications corresponding to the P files to be detected respectively to obtain object repeatability detection results; and
and in response to receiving the information display request, determining a file detection result according to the file rule verification result, the object repeatability detection result and the display type in the information display request, wherein N, P and Q are both positive integers, and P is smaller than or equal to N.
2. The method of claim 1, wherein the operand identifications each correspond to a matching order identification, the operand identification queue comprising at least one candidate operand identification;
based on the operation object identification queue, performing repeatability detection on Q operation object identifications corresponding to the P files to be detected, where obtaining an object repeatability detection result includes:
for each of the P files to be detected,
according to the matching sequence identifiers corresponding to the Q operation object identifiers, determining a Q-th operation object identifier in the Q operation object identifiers, wherein Q is a positive integer and is smaller than or equal to Q;
According to the q-th operation object identification, respectively matching the at least one candidate operation object identification to obtain an operation object identification matching result; and
and adding the q-th operation object identification to the operation object identification queue under the condition that the operation object identification matching result indicates that no candidate operation object identification matched with the q-th operation object identification exists in the operation object identification queue.
3. The method of claim 2, further comprising:
determining the q-th operation object identification as a repeated operation object identification under the condition that the operation object identification matching result represents that candidate operation object identifications matched with the q-th operation object identification exist in the operation object identification queue; and
and determining the object repeatability detection result according to the file identification and the repeated operation object identification.
4. A method according to any one of claims 1 to 3, wherein the N files to be detected each correspond to a file identity;
and respectively carrying out rule verification on the N files to be detected according to a preset file rule, wherein the obtaining of file rule verification results corresponding to the N files to be detected comprises the following steps:
For each of the N file identifications,
according to the preset file rule, carrying out file rule matching on the file to be detected corresponding to the file identifier to obtain a file rule matching result corresponding to the file identifier;
responding to the file rule matching result to represent that the file to be detected fails the file rule verification, and determining fault position information in the file to be detected; and
and determining the file rule checking result according to the file identification and the fault position information.
5. The method of any one of claims 1 to 3, wherein the responding to the P files to be detected in the N files to be detected passing the file rule check, respectively processing the P files to be detected, and obtaining Q operation object identifiers corresponding to the P files to be detected respectively includes:
respectively matching the P files to be detected according to a preset regular expression to obtain regular expression matching results corresponding to the P files to be detected; and
and responding to the regular expression matching result to represent that Q target fields matched with the preset regular expression exist in the file to be detected, and determining the Q target fields as the Q operation object identifications.
6. A method according to any one of claims 1 to 3, wherein, in response to receiving a file detection request, obtaining N files to be detected corresponding to a file path to be detected according to the file path to be detected indicated by the file detection request includes:
responding to the received file detection request, and acquiring M candidate files to be detected corresponding to the file path to be detected according to the file path to be detected, wherein the M candidate files to be detected are associated with each other, the M candidate files to be detected respectively correspond to file types, and M is a positive integer; and
and screening the M candidate files to be detected according to the preset file type and the file types corresponding to the M candidate files to be detected respectively to obtain the N files to be detected.
7. A method according to any one of claims 1 to 3, wherein the presentation type comprises at least one of a file rule check result query and an object repeatability detection result query:
the responding to the received information display request, determining the file detection result according to the file rule checking result, the object repeatability detection result and the display type in the information display request comprises the following steps:
Under the condition that the display type comprises the file rule checking result query, determining S file identifiers and first number of fault position information corresponding to the S file identifiers as the file detection result, wherein S is a positive integer; and
and under the condition that the display type comprises the query of the object repeatability detection result, determining T file identifications and a second number of repeated operation object identifications corresponding to the T file identifications as the file detection result, wherein T is a positive integer.
8. The method of claim 7, further comprising, after said determining a file detection result in accordance with said file rule check result, said object repeatability detection result, and a presentation type in said information presentation request in response to receiving an information presentation request:
and displaying the file detection result in an output area of the target page.
9. An information presentation apparatus comprising:
the acquisition module is used for responding to a received file detection request and acquiring N files to be detected corresponding to the file paths to be detected according to the file paths to be detected indicated by the file detection request;
The rule checking module is used for respectively performing rule checking on the N files to be detected according to a preset file rule to obtain file rule checking results corresponding to the N files to be detected;
the processing module is used for responding to the P files to be detected in the N files to be detected and checking the file rule, respectively processing the P files to be detected to obtain Q operation object identifiers corresponding to the P files to be detected;
the repeatability detection module is used for carrying out repeatability detection on Q operation object identifiers corresponding to the P files to be detected respectively based on the operation object identifier queues to obtain object repeatability detection results; and
the determining module is used for determining a file detection result according to the file rule checking result, the object repeatability detection result and the display type in the information display request in response to receiving the information display request, wherein N, P and Q are both positive integers, and P is smaller than or equal to N.
10. An electronic device, comprising:
one or more processors;
a memory for storing one or more instructions,
wherein the one or more instructions, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1 to 8.
11. A computer readable storage medium having stored thereon executable instructions which when executed by a processor cause the processor to implement the method of any of claims 1 to 8.
12. A computer program product comprising computer executable instructions for implementing the method of any one of claims 1 to 8 when executed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310891732.3A CN116894004A (en) | 2023-07-19 | 2023-07-19 | Information display method and device, electronic equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310891732.3A CN116894004A (en) | 2023-07-19 | 2023-07-19 | Information display method and device, electronic equipment and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116894004A true CN116894004A (en) | 2023-10-17 |
Family
ID=88314674
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310891732.3A Pending CN116894004A (en) | 2023-07-19 | 2023-07-19 | Information display method and device, electronic equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116894004A (en) |
-
2023
- 2023-07-19 CN CN202310891732.3A patent/CN116894004A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109359194B (en) | Method and apparatus for predicting information categories | |
CN112463729B (en) | Data file warehousing method and device, electronic equipment and medium | |
CN113419740B (en) | Program data stream analysis method and device, electronic equipment and readable storage medium | |
CN113760729A (en) | Code detection method and device | |
CN112817831A (en) | Application performance monitoring method, device, computer system and readable storage medium | |
CN113535577B (en) | Application testing method and device based on knowledge graph, electronic equipment and medium | |
CN115080433A (en) | Testing method and device based on flow playback | |
CN112084114B (en) | Method and apparatus for testing interfaces | |
CN116382703B (en) | Software package generation method, code development method and device, electronic equipment and medium | |
CN113362173A (en) | Anti-duplication mechanism verification method, anti-duplication mechanism verification system, electronic equipment and storage medium | |
CN111930629A (en) | Page testing method and device, electronic equipment and storage medium | |
CN116483888A (en) | Program evaluation method and device, electronic equipment and computer readable storage medium | |
CN113535568B (en) | Verification method, device, equipment and medium for application deployment version | |
CN115827122A (en) | Operation guiding method and device, electronic equipment and storage medium | |
CN114691527A (en) | Unit test case generation method, apparatus, device, medium, and program product | |
CN115203178A (en) | Data quality inspection method and device, electronic equipment and storage medium | |
CN114637689A (en) | Application evaluation method, device, equipment and storage medium | |
CN116894004A (en) | Information display method and device, electronic equipment and computer readable storage medium | |
CN113918525A (en) | Data exchange scheduling method, system, electronic device, medium, and program product | |
CN113760706B (en) | Webpage debugging method and device | |
CN112860259B (en) | Interface processing method, device, electronic equipment and storage medium | |
CN113360417B (en) | Test method, session modifier, electronic device and medium | |
CN117493207A (en) | Page processing method, device, electronic equipment and storage medium | |
CN117435464A (en) | Software testing method and device, electronic equipment and computer readable storage medium | |
CN114817007A (en) | Information processing method and device, electronic equipment and computer readable 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 |