CN116185490A - Document verification method and device, electronic equipment and storage medium - Google Patents

Document verification method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116185490A
CN116185490A CN202310196905.XA CN202310196905A CN116185490A CN 116185490 A CN116185490 A CN 116185490A CN 202310196905 A CN202310196905 A CN 202310196905A CN 116185490 A CN116185490 A CN 116185490A
Authority
CN
China
Prior art keywords
service
preset
technical
elements
service request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310196905.XA
Other languages
Chinese (zh)
Inventor
付海军
刘亚楠
潘葛桐
刘晨光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202310196905.XA priority Critical patent/CN116185490A/en
Publication of CN116185490A publication Critical patent/CN116185490A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a document verification method and a device, electronic equipment and a storage medium thereof, and relates to the field of financial science and technology or other related fields, wherein the verification method comprises the following steps: analyzing the target document to obtain service request parameters and expected service response parameters, initiating a service request to a target software system based on the service request parameters, determining the technical efficiency of preset technical elements and the service efficiency of preset service elements in the target document based on the expected service response parameters and the actual service response parameters, and determining the effectiveness of the target document based on the technical efficiency and the service efficiency. The invention solves the technical problem that the validity of the research and development document is difficult to determine in the related technology.

Description

Document verification method and device, electronic equipment and storage medium
Technical Field
The invention relates to the field of financial science and technology, in particular to a document verification method and device, electronic equipment and storage medium.
Background
Currently, the application scene of the document management system is very wide, for example, research and development type project lifecycle management is realized by modularization of different components so as to realize the flow management of classifying project documents; the demand management system in the agile research and development mode realizes quick search by uniformly managing the documents and the change history data; the scientific research project management system can realize the flow management of projects by modularization users, projects and achievements; the project document-based internal and external collaborative office management system realizes multi-person collaborative office by isolating the bottom database; the version analysis method based on the business architecture can evaluate the project completion rate in the program product through matching the requirements with the architecture. The current document management mostly uses different usage scenarios, and aims to solve the problem of flow management.
In the related art, document management still aims at "managing documents", such as document backup, search, and the like. The problem of continuously updating documents in continuous development (DevOps) is not focused, that is, the changes of documents relevant to the development stage, such as database design changes, are difficult to update synchronously into the design document management system. Thus, after the project development is completed and delivered, the development and design documents in the actual system differ in solution from the delivered product. Then, at the next iteration of design, the previous design document cannot be directly referenced, and the relevant parameters must be combed based on the actual delivered product. In particular, in cross-team development, changes are not updated and synchronized in time, which can lead to a decrease in overall development efficiency.
Therefore, document management in the related art has the following drawbacks: (1) development is inefficient and time consuming. The delayed design document causes research and development to be blocked across groups, and the failed design document causes continuous design to consume more time to re-comb the document; (2) lack of validity check. Design changes in continuous development are ignored, and the current research and development design system cannot verify the technical effectiveness of the document, namely, the development becomes actual deviation from the design; (3) the specificity of the research and development design is ignored. The current research and development design management system still aims at storage and backup searching functionally, and ignores the specificity of research and development design, namely documents are available but not usable. The complex and professional documents are required to have certain professional knowledge, so that the maintenance by personnel is difficult to realize for a huge enterprise, and a special system is required to effectively manage the related documents; (4) developing asset shrinkage. Many documents accumulate over the years and months, but effective research and development documents are difficult to control, and the shrinkage of research and development assets of enterprises is actually caused.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a document verification method and device, electronic equipment and storage medium, which at least solve the technical problem that the validity of a research and development document is difficult to determine in the related technology.
According to one aspect of the embodiment of the invention, there is provided a document verification method, including: analyzing a target document to obtain service request parameters and expected service response parameters, wherein the target document comprises: at least one element to be verified, each element to be verified comprising: the method comprises the steps of presetting a service request and presetting a service response, wherein a target document corresponds to a target software system, the expected service response parameter is a preset service response parameter corresponding to the service request parameter, and the target software system is a software system designed and realized according to the target document; initiating a service request to the target software system based on the service request parameter, wherein the target software system returns an actual service response parameter based on the service request; determining the technical efficiency of preset technical elements and the service efficiency of preset service elements in the target document based on the expected service response parameters and the actual service response parameters, wherein the preset technical elements are elements which are preconfigured according to the technical method used by the target software system, and the preset service elements are elements which are preconfigured according to the service functions realized by the target software system; and determining the validity of the target document based on the technical efficiency and the business efficiency.
Optionally, before parsing the target document, the method further comprises: determining a technical element and a business element based on business requirements, wherein the technical element is a technical method used by the target software system, the business element is a business function realized by the target software system, and the business function is a function realized by at least one technical element; configuring a preset service request and a preset service response for each technical element and each business element; and constructing elements to be verified in the target document based on all the preset service requests and all the preset service responses.
Optionally, the step of configuring a preset service request and a preset service response for each of the technical elements and each of the business elements includes: determining the element type of each technical element; configuring a service request format for each element type to obtain a service request format library, wherein each service request format in the service request format library corresponds to one element type; selecting the service request format corresponding to the element type of the technical element from the service request format library, and configuring the preset service request of the technical element based on the service request format; and configuring the preset service response based on the preset service request.
Optionally, the step of constructing the element to be verified in the target document based on all the preset service requests and all the preset service responses includes: based on the technical elements, configuring preset technical elements, wherein the preset technical elements comprise: the preset service request and the preset service response corresponding to the technical element; determining service elements belonging to the same service function, characterizing the service elements belonging to the same service function as sub-service elements, and configuring preset service elements, wherein the preset service elements comprise: at least one of the sub-service elements, the sub-service element being a service function point implemented by at least one of the technical elements, the sub-service element comprising: the preset service request and the preset service response corresponding to the service element, and the same service function includes: the method has the function of service data dependence; and constructing an element to be verified in the target document based on the preset technical element and the preset service element.
Optionally, before determining the technical efficiency of the preset technical element and the service efficiency of the preset service element in the target document based on the expected service response parameter and the actual service response parameter, the method further includes: verifying the validity of each preset element in the target document based on the service request format library, wherein the preset elements comprise: the preset technical element and the preset service element; and determining that the preset element passes the validity check under the condition that the request format of the preset service request corresponding to the preset element is consistent with the service request format corresponding to the element type of the preset element in the service request format library.
Optionally, after determining that the preset element passes the validity check, the method further includes: comparing the expected service response parameter corresponding to the preset technical element passing the validity check with the actual service response parameter, and determining the preset technical element as an effective preset technical element under the condition that the expected service response parameter is consistent with the actual service response parameter; comparing the expected service response parameter corresponding to the sub-service element passing the validity check with the actual service response parameter, and determining that the sub-service element is an effective sub-service element under the condition that the expected service response parameter is consistent with the actual service response parameter; and under the condition that all the sub-business elements in the preset business elements are the effective sub-business elements, determining the preset business elements as effective preset business elements.
Optionally, the step of determining the technical efficiency of the preset technical element and the business efficiency of the preset business element in the target document based on the expected service response parameter and the actual service response parameter includes: determining a first number based on the number of the effective preset technical elements and the number of the effective sub-service elements; determining a second number based on the number of preset technical elements and the number of sub-service elements; determining a ratio between the first number and the second number as the technical efficiency of the preset technical element; and determining the ratio between the number of the effective preset service elements and the number of the preset service elements as the service effective rate of the preset service elements.
Optionally, before determining the validity of the target document based on the technical efficiency and the business efficiency, the method further comprises: recording the preset element into a failure element library under the condition that the expected service response parameter corresponding to the preset element is inconsistent with the actual service response parameter; determining that the target document is an effective document under the condition that the technical effective rate is greater than a preset technical threshold and the service effective rate is greater than a preset service threshold; and adjusting all preset elements in the failure element library under the condition that the technical effective rate is smaller than or equal to the preset technical threshold or the service effective rate is smaller than or equal to the preset service threshold, and updating the target document based on the adjusted preset elements.
According to another aspect of the embodiment of the present invention, there is also provided a document verification apparatus, including: the analyzing unit is used for analyzing the target document to obtain the service request parameter and the expected service response parameter, wherein the target document comprises: at least one element to be verified, each element to be verified comprising: the method comprises the steps of presetting a service request and presetting a service response, wherein a target document corresponds to a target software system, the expected service response parameter is a preset service response parameter corresponding to the service request parameter, and the target software system is a software system designed and realized according to the target document; the initiating unit is used for initiating a service request to the target software system based on the service request parameter, wherein the target software system returns an actual service response parameter based on the service request; a first determining unit, configured to determine, based on the expected service response parameter and the actual service response parameter, a technical efficiency of a preset technical element and a service efficiency of a preset service element in the target document, where the preset technical element is an element that is preconfigured according to a technical method used by the target software system, and the preset service element is an element that is preconfigured according to a service function implemented by the target software system; and the second determining unit is used for determining the validity of the target document based on the technical efficiency and the business efficiency.
Optionally, the verification device further includes: the first determining module is used for determining a technical element and a business element based on business requirements before analyzing the target document, wherein the technical element is a technical method used by the target software system, the business element is a business function realized by the target software system, and the business function is a function realized by at least one technical element; the first configuration module is used for configuring a preset service request and a preset service response for each technical element and each business element; the first construction module is used for constructing elements to be verified in the target document based on all the preset service requests and all the preset service responses.
Optionally, the first configuration module includes: a first determining submodule for determining an element type of each technical element; a first configuration submodule, configured to configure a service request format for each element type to obtain a service request format library, where each service request format in the service request format library corresponds to one element type; a first selection sub-module, configured to select the service request format corresponding to the element type of the technical element from the service request format library, and configure the preset service request of the technical element based on the service request format; and the second configuration sub-module is used for configuring the preset service response based on the preset service request.
Optionally, the first building module includes: a third configuration sub-module, configured to configure a preset technology element based on the technology element, where the preset technology element includes: the preset service request and the preset service response corresponding to the technical element; a fourth configuration sub-module, configured to determine service elements belonging to the same service function, and characterize the service elements belonging to the same service function as sub-service elements, and configure preset service elements, where the preset service elements include: at least one of the sub-service elements, the sub-service element being a service function point implemented by at least one of the technical elements, the sub-service element comprising: the preset service request and the preset service response corresponding to the service element, and the same service function includes: the method has the function of service data dependence; the first construction submodule is used for constructing elements to be verified in the target document based on the preset technical elements and the preset service elements.
Optionally, the verification device further includes: a first verification module, configured to verify, based on the service request format library, validity of each preset element in the target document before determining technical efficiency of the preset technical element and business efficiency of the preset business element in the target document based on the expected service response parameter and the actual service response parameter, where the preset element includes: the preset technical element and the preset service element; and the second determining module is used for determining that the preset element passes the validity check under the condition that the request format of the preset service request corresponding to the preset element is consistent with the service request format corresponding to the element type of the preset element in the service request format library.
Optionally, the verification device further includes: the first comparison module is used for comparing the expected service response parameter corresponding to the preset technical element passing the validity check with the actual service response parameter after the preset element is determined to pass the validity check, and determining the preset technical element as an effective preset technical element under the condition that the expected service response parameter is consistent with the actual service response parameter; the second comparison module is used for comparing the expected service response parameter corresponding to the sub-service element passing the validity check with the actual service response parameter, and determining the sub-service element as an effective sub-service element under the condition that the expected service response parameter is consistent with the actual service response parameter; and a third determining module, configured to determine that the preset service element is an effective preset service element when all the sub-service elements in the preset service element are the effective sub-service elements.
Optionally, the first determining unit includes: a fourth determining module, configured to determine a first number based on the number of the effective preset technical elements and the number of the effective sub-service elements; a fifth determining module, configured to determine a second number based on the number of preset technical elements and the number of sub-service elements; a sixth determining module configured to determine a ratio between the first number and the second number as the technology effective rate of the preset technology element; a seventh determining module, configured to determine a ratio between the number of the effective preset service elements and the number of the preset service elements as the service effective rate of the preset service elements.
Optionally, the verification device further includes: the first recording module is used for recording the preset element into a failure element library under the condition that the expected service response parameter corresponding to the preset element is inconsistent with the actual service response parameter before the validity of the target document is determined based on the technical efficiency and the business efficiency; an eighth determining module, configured to determine that the target document is an effective document when the technology effective rate is greater than a preset technology threshold and the service effective rate is greater than a preset service threshold; the first adjustment module is configured to adjust all the preset elements in the failure element library when the technology effective rate is less than or equal to the preset technology threshold or the service effective rate is less than or equal to the preset service threshold, and update the target document based on the adjusted preset elements.
According to another aspect of the embodiment of the present invention, there is also provided a computer readable storage medium, where the computer readable storage medium includes a stored computer program, and when the computer program runs, the device where the computer readable storage medium is controlled to execute the method for verifying the document.
According to another aspect of the embodiment of the present invention, there is also provided an electronic device including one or more processors and a memory, where the memory is configured to store one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method for verifying a document.
In the present disclosure, a target document is parsed to obtain a service request parameter and an expected service response parameter, a service request is initiated to a target software system based on the service request parameter, the technical efficiency of a preset technical element and the service efficiency of a preset service element in the target document are determined based on the expected service response parameter and the actual service response parameter, and the validity of the target document is determined based on the technical efficiency and the service efficiency. In the method, the target document to be checked can be analyzed firstly to obtain the service request parameter and the expected service response parameter, then the service request is initiated to the target software system generated according to the target document according to the service request parameter to obtain the actual service response parameter, whether the target document is an effective document can be timely determined by comparing the expected service response parameter and the actual service response parameter, the effectiveness of the target document is timely maintained, and the technical problem that the effectiveness of research and development documents is difficult to determine in the related art is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a flow chart of an alternative method of verifying a document according to an embodiment of the invention;
FIG. 2 is a schematic diagram of an alternative document management system according to an embodiment of the invention;
FIG. 3 is a schematic diagram of an alternative document verification apparatus in accordance with an embodiment of the invention;
fig. 4 is a block diagram of a hardware structure of an electronic device (or mobile device) for a document verification method according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
To facilitate an understanding of the invention by those skilled in the art, some terms or nouns involved in the various embodiments of the invention are explained below:
service: the functional points of the research and development design are referred to;
service request: the test request is sent out according to the functional points of the research and development design;
service response: refers to the result of the system response after the service request is sent out.
It should be noted that, the method and the device for checking the document in the present disclosure may be used in the financial and technological field under the condition of checking the document, and may also be used in any field other than the financial and technological field under the condition of checking the document, and the application fields of the method and the device for checking the document in the present disclosure are not limited.
It should be noted that, related information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present disclosure are information and data authorized by a user or sufficiently authorized by each party, and the collection, use and processing of related data need to comply with related laws and regulations and standards of related countries and regions, and be provided with corresponding operation entries for the user to select authorization or rejection. For example, an interface is provided between the system and the relevant user or institution, before acquiring the relevant information, the system needs to send an acquisition request to the user or institution through the interface, and acquire the relevant information after receiving the consent information fed back by the user or institution.
The following embodiments of the present invention are applicable to various systems/applications/devices for verifying documents. The verification of the research and development document in the invention can be applied to the application scene of document management aiming at research and development design.
In order to adapt to the research and development design document management under the research and development mode of continuous development and continuous operation and maintenance, the invention provides a research and development design document management method, and the core problem to be solved by the invention is the effectiveness problem of the research and development design document, namely the problem that the design change in the research and development process causes the delivered product to be inconsistent with the actual design document. The invention checks the technical points of the research and development design document and the delivered product, ensures the validity of the design key points, can solve the problems that the professional research and development document is difficult to maintain and the validity is reduced, is suitable for the management mode of the research and development team for continuously developing operation and maintenance, can improve the research and development efficiency and ensures the validity of research and development assets.
The present invention will be described in detail with reference to the following examples.
Example 1
According to an embodiment of the present invention, there is provided an embodiment of a document verification method, it being noted that the steps shown in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is shown in the flowchart, in some cases the steps shown or described may be performed in an order other than that shown or described herein.
FIG. 1 is a flowchart of an alternative document verification method according to an embodiment of the invention, as shown in FIG. 1, the method comprising the steps of:
step S101, analyzing a target document to obtain service request parameters and expected service response parameters, wherein the target document comprises: at least one element to be verified, each element to be verified comprising: the method comprises the steps of presetting a service request and presetting a service response, wherein a target document corresponds to a target software system, expected service response parameters are preset service response parameters corresponding to the service request parameters, and the target software system is a software system designed and realized according to the target document.
Step S102, a service request is initiated to a target software system based on the service request parameters, wherein the target software system returns actual service response parameters based on the service request.
Step S103, based on the expected service response parameter and the actual service response parameter, determining the technical effective rate of the preset technical elements and the service effective rate of the preset service elements in the target document, wherein the preset technical elements are elements which are preconfigured according to the technical method used by the target software system, and the preset service elements are elements which are preconfigured according to the service functions realized by the target software system.
Step S104, the validity of the target document is determined based on the technical efficiency and the business efficiency.
Through the steps, the target document can be analyzed to obtain the service request parameters and the expected service response parameters, the service request is initiated to the target software system based on the service request parameters, the technical efficiency of the preset technical elements and the service efficiency of the preset service elements in the target document are determined based on the expected service response parameters and the actual service response parameters, and the effectiveness of the target document is determined based on the technical efficiency and the service efficiency. In the embodiment of the invention, the target document to be checked can be analyzed firstly to obtain the service request parameter and the expected service response parameter, then the service request is initiated to the target software system generated according to the target document according to the service request parameter to obtain the actual service response parameter, and whether the target document is an effective document or not can be timely determined and the effectiveness of the target document can be timely maintained by comparing the expected service response parameter and the actual service response parameter, so that the technical problem that the effectiveness of research and development documents is difficult to determine in the related technology is solved.
Embodiments of the present invention will be described in detail with reference to the following steps.
An alternative embodiment, before parsing the target document, further comprises: determining a technical element and a business element based on business requirements, wherein the technical element is a technical method used by a target software system, the business element is a business function realized by the target software system, and the business function is a function realized by at least one technical element; configuring a preset service request and a preset service response for each technical element and each business element; and constructing elements to be verified in the target document based on all preset service requests and all preset service responses.
In the embodiment of the invention, the service request (comprising the service request of the technical element and the service element) can be set first to construct the research and development design document (namely the target document to be checked, also called as research and development document). The research and development design document is a specific technical scheme for describing the implementation of a software system, and comprises a plurality of key technical elements and business elements. Each key technical element is a way to implement a certain function, for example, a network communication protocol, a database table structure (including a table field length, a type), an API (Appl icat ion Programming Interface, i.e. an application program interface) and the like are key technical elements, and each technical element has specific parameters in a specific software system design, including a number, a type, a field length and the like. The key business element is the logic of the business process. For the key technical elements and key service elements, check service requests can be set, for example, definition of API interface requests (including naming, number of parameters of request message, type and field length, and corresponding results), database table data requests (including number of fields, type and maximum length, and corresponding results), sequence dependence of flow before and after service requests, and the like.
In the embodiment of the invention, the specific process of constructing the target document (namely the research and development document to be verified, also called as research and development design document) is as follows: the technical elements and the service elements may be determined according to the service requirement (i.e. the technical method required for implementing the service and the service function implemented by the service) of the service (i.e. the service required for implementing the service), where the technical elements are the technical method used by the target software system (i.e. the software system required to be implemented according to the target document), the service elements are service functions implemented by the target software system (including logic of the service flow, etc.), and the service functions are functions implemented by at least one technical element (i.e. each service function may be a service function implemented by one or more technical elements). Thereafter, a preset service request (i.e., a service request to be made by a technology element or a service element) and a preset service response (i.e., a service response that is expected to be returned after making the service request) may be configured for each technology element and each service element. And then constructing elements to be verified in the target document according to all preset service requests and all preset service responses (the elements to be verified comprise technical elements to be verified and business elements).
Optionally, the step of configuring a preset service request and a preset service response for each technical element and each business element includes: determining an element type of each technical element; configuring a service request format for each element type to obtain a service request format library, wherein each service request format in the service request format library corresponds to one element type; selecting a service request format corresponding to the element type of the technical element from a service request format library, and configuring a preset service request of the technical element based on the service request format; the preset service response is configured based on the preset service request.
In the embodiment of the present invention, the element type of each technical element (i.e. the type of service request that needs to be performed by the technical element) may be determined first, and then, according to the element type, the corresponding service request format (i.e. the service request format is configured for each element type) is configured, so as to obtain a service request format library (each service request format in the service request format library corresponds to one element type). Then, a service request format corresponding to the element type of the technical element may be selected from the service request format library, and a preset service request of the technical element may be configured based on the service request format (i.e., according to the service request type required to be performed by each element, a corresponding service request format is selected from the service request format library, and then a corresponding preset service request is configured according to the service request format). Then, according to the preset service request, configuring a corresponding service response expected to be returned (namely, configuring the preset service response based on the preset service request).
Optionally, the step of constructing the element to be verified in the target document based on all preset service requests and all preset service responses includes: based on the technical elements, configuring preset technical elements, wherein the preset technical elements comprise: a preset service request and a preset service response corresponding to the technical elements; determining service elements belonging to the same service function, characterizing the service elements belonging to the same service function as sub-service elements, and configuring preset service elements, wherein the preset service elements comprise: at least one sub-service element, wherein the sub-service element is a service function point realized by at least one technical element, and comprises: the preset service request and the preset service response corresponding to the service elements, and the same service function comprises: the method has the function of service data dependence; and constructing the element to be verified in the target document based on the preset technical element and the preset service element.
In the embodiment of the invention, in the research and development document, the content to be verified can be identified through preset elements (comprising preset technical elements and preset service elements), and the preset elements can be provided with identifiers (such as < E > </E >) for identifying the content to be verified in the analysis identifiers.
In the embodiment of the invention, the preset elements can be divided into preset technical elements and preset service elements according to the used technical method and service function, and are identified according to the labels of the preset elements, for example, the labels of the preset technical elements can be set to be < T > </T >, and the labels of the preset service elements can be set to be < B > </B >, so as to identify and analyze the content in the labels. The preset technical element has atomicity and is a technical method verification module, the preset technical element can be classified according to technical application, a database (MySQL) technical element can be set to be < ttype= "MySQL" >, and a network (HTTPS) technical element can be set to be < ttype= "HTTPS" >. The preset service element comprises one or more sub-service elements, wherein the sub-service elements are service function points which are realized by one or more technical elements, and a plurality of sub-service elements of the same preset service element have connection, such as a second sub-service depends on data generated by the first sub-service.
In the embodiment of the invention, the preset technical elements comprise a preset service request and a preset service response, which are respectively used for checking the service request and the service response result of the subsequent technical elements. The preset service Request is provided with a preset service Request identifier (such as < Request > </Request >) and is used for identifying and analyzing the preset service Request, and the preset service Request is also provided with a preset service Request type tag and preset service Request content. The preset service request Type tag may be set to type= "POST" for identifying a preset service request Type and a preset service request method. The preset service request content is used for preset service request testing.
In the embodiment of the present invention, the preset service element includes one or more preset sub-service elements, and the identifier of the preset sub-service element may be set as < sub-b > </sub-b >. The preset sub-service elements comprise a preset service request and a preset response request, the preset service request and the preset response request contained in the preset sub-service elements are one technical element, and the plurality of preset sub-service elements have sequence identifiers such as < sub-service=1 > and are used for identifying the sequence of the preset sub-service elements and verifying according to the preset sub-service logic sequence.
In the embodiment of the invention, after the technical elements and business elements required by the target document are determined, preset technical elements (the preset technical elements comprise preset service requests and preset service responses corresponding to the technical elements) can be configured according to the technical elements, then business elements belonging to the same business function (for example, functions with business data dependence belong to the same function) are determined, the business elements belonging to the same business function are characterized as sub-business elements, then the preset business elements (the preset business elements comprise at least one sub-business element and a business function point realized by at least one technical element) are configured according to all the sub-business elements belonging to the same business function, and the sub-business elements comprise preset service requests and preset service responses corresponding to the business elements and then the technical elements and the business elements to be verified in the target document are constructed according to the preset technical elements and the preset business elements.
In the embodiment of the invention, the built research and development document can be uploaded to the system, and corresponding designers, developers (i.e. team personnel related to the project) and system operation staff can be associated to be used as research and development asset accumulation. During the design development phase, the system can verify the development document daily according to the set service request.
Step S101, analyzing a target document to obtain service request parameters and expected service response parameters, wherein the target document comprises: at least one element to be verified, each element to be verified comprising: the method comprises the steps of presetting a service request and presetting a service response, wherein a target document corresponds to a target software system, expected service response parameters are preset service response parameters corresponding to the service request parameters, and the target software system is a software system designed and realized according to the target document.
In the embodiment of the invention, after the research and development document to be verified (i.e. the target document) is acquired, the service request parameters and the service response parameters defined in the target document can be analyzed (i.e. the target document is analyzed to obtain the service request parameters and the expected service response parameters). The method comprises the following steps: the corresponding service request parameters and the expected service response parameters can be obtained by analyzing at least one element to be verified defined in the target document (each element to be verified corresponds to a preset service request and a preset service response). The service request parameter is a specific parameter of a preset service request in the target document, and the service response parameter is a specific parameter of a preset service response expected to be returned for the preset service request in the target document (i.e. an expected service response parameter, which is a service response parameter corresponding to the service request parameter that is preconfigured).
In this embodiment, each target document corresponds to a target software system (i.e., each development document corresponds to a product delivered according to the content of the document, which is a software system implemented according to the design of the target document).
Step S102, a service request is initiated to a target software system based on the service request parameters, wherein the target software system returns actual service response parameters based on the service request.
In the embodiment of the invention, according to the analyzed service request parameters, a test service request is sent (i.e. a service request is initiated to a target software system based on the service request parameters), and the target software system can return actual service response parameters (i.e. response parameters actually returned after the actually applied software system executes the service request) according to the service request.
Optionally, before determining the technical efficiency of the preset technical element and the service efficiency of the preset service element in the target document based on the expected service response parameter and the actual service response parameter, the method further includes: verifying the validity of each preset element in the target document based on the service request format library, wherein the preset elements comprise: presetting technical elements and business elements; and determining that the preset element passes the validity check under the condition that the request format of the preset service request corresponding to the preset element is consistent with the service request format corresponding to the element type of the preset element in the service request format library.
In the embodiment of the invention, the validity of the preset element can be checked according to the service request type label (namely the preset service request type label) required by the technical element, the preset element conforming to the defined format is the legal preset element, and otherwise, the preset element is the invalid preset element. The method comprises the following steps: the validity of each preset element (i.e., preset technical element, preset business element) in the target document can be checked based on the service request format library. If the request format of the preset service request corresponding to the preset element is consistent with the service request format corresponding to the element type of the preset element in the service request format library (i.e. the service request format in the preset element accords with the definition format), the preset element can be determined to pass the validity check, otherwise, the preset element can be directly determined to be an invalid preset element.
Optionally, after determining that the preset element passes the validity check, the method further includes: comparing the expected service response parameter corresponding to the preset technical element passing the validity check with the actual service response parameter, and determining the preset technical element as an effective preset technical element under the condition that the expected service response parameter is consistent with the actual service response parameter; comparing the expected service response parameter corresponding to the sub-service element passing the validity check with the actual service response parameter, and determining the sub-service element as an effective sub-service element under the condition that the expected service response parameter is consistent with the actual service response parameter; and under the condition that all the sub-business elements in the preset business elements are valid sub-business elements, determining the preset business elements as valid preset business elements.
In the embodiment of the invention, after the validity is verified, the validity of the preset element passing through the validity is required to be verified, the actual response parameter of the service request can be analyzed, whether the defined expected service response parameter is met or not is judged, if the defined expected service response parameter is met, the service is valid, otherwise, the service is invalid, and the method specifically comprises the following steps:
for the preset technical element, a test can be performed according to a preset service request, the obtained actual service response is compared with the preset service response, the preset service response is met, and the preset technical element is the effective preset technical element, otherwise, the preset technical element is invalid (namely, the expected service response parameter corresponding to the preset technical element passing the validity check is compared with the actual service response parameter, and the preset technical element is determined to be the effective preset technical element under the condition that the expected service response parameter is consistent with the actual service response parameter).
For the preset service element, the preset sub-service element checking method may be checked according to the preset sub-service element sequence, where the preset sub-service element checking method is consistent with the preset technical element checking method (i.e. the actual service response is compared with the preset service response, and the preset service response is valid, otherwise, the preset service response is invalid (i.e. the expected service response parameter corresponding to the sub-service element passing the validity check is compared with the actual service response parameter, and the sub-service element is determined to be a valid sub-service element if the expected service response parameter is consistent with the actual service response parameter), and if all the preset sub-service checks of the preset service element are valid, the preset service element is valid, otherwise, the preset service element is determined to be a valid preset service element if all the sub-service elements in the preset service element are valid.
Step S103, based on the expected service response parameter and the actual service response parameter, determining the technical effective rate of the preset technical elements and the service effective rate of the preset service elements in the target document, wherein the preset technical elements are elements which are preconfigured according to the technical method used by the target software system, and the preset service elements are elements which are preconfigured according to the service functions realized by the target software system.
In the embodiment of the invention, the effective rate of the target document, that is, the ratio of the effective service to all the defined services (that is, the technical effective rate of the preset technical element and the service effective rate of the preset service element in the target document are determined based on the expected service response parameter and the actual service response parameter), wherein the preset technical element is a preconfigured element according to the technical method used by the target software system, and the preset service element is a preconfigured element according to the service function realized by the target software system), and then whether the target document is an effective document can be judged according to the effective rate.
Optionally, the step of determining the technical efficiency of the preset technical element and the business efficiency of the preset business element in the target document based on the expected service response parameter and the actual service response parameter includes: determining a first number based on the number of effective preset technical elements and the number of effective sub-service elements; determining a second number based on the number of preset technical elements and the number of sub-service elements; determining the ratio between the first number and the second number as the technical efficiency of the preset technical element; and determining the ratio between the number of the effective preset service elements and the number of the preset service elements as the service effective efficiency of the preset service elements.
In the embodiment of the invention, the first quantity can be determined according to the quantity of the effective preset technical elements and the quantity of the effective sub-service elements, the second quantity is determined according to the quantity of the preset technical elements and the quantity of the sub-service elements, then the ratio between the first quantity and the second quantity is determined as the technical efficiency of the preset technical elements, and the ratio between the quantity of the effective preset service elements and the quantity of the preset service elements is determined as the service efficiency of the preset service elements. The effective formula for calculating the preset technical elements of the research and development document is as follows:
Figure BDA0004107546430000141
wherein eta t The efficiency of preset technical elements for researching and developing documents is improved; e, e t The number of the technical elements is effectively preset; e, e b The number of sub-services is effectively preset; a, a t The number of the technical elements is preset; a, a b The number of sub-services is preset.
The efficient formula for calculating the preset business elements of the development document is as follows:
Figure BDA0004107546430000142
wherein eta b The method comprises the steps of (1) developing the effective rate of preset service elements of a document; e, e B The number of the service elements is effectively preset; a, a B The number of services is preset.
Step S104, the validity of the target document is determined based on the technical efficiency and the business efficiency.
In the embodiment of the invention, the validity of the target document can be determined according to the technical efficiency and the service efficiency of the target document, and the method specifically comprises the following steps: the threshold may be determined first and if the technology effectiveness and business effectiveness meet a set threshold range, the target document may be determined to be a valid document (i.e., all elements of the target document are consistent with the actual software system).
Optionally, before determining the validity of the target document based on the technical efficiency and the business efficiency, the method further comprises: recording the preset element into a failure element library under the condition that the expected service response parameter corresponding to the preset element is inconsistent with the actual service response parameter; under the condition that the technical effective rate is larger than a preset technical threshold value and the service effective rate is larger than a preset service threshold value, determining that the target document is an effective document; and under the condition that the technical effective rate is smaller than or equal to a preset technical threshold value or the service effective rate is smaller than or equal to a preset service threshold value, adjusting all preset elements in the failure element library, and updating the target document based on the adjusted preset elements.
In the embodiment of the invention, the operation and maintenance personnel can set the early warning threshold (namely, set the preset technical threshold and the preset service threshold) according to the effective rate, for example, if the two thresholds are lower than 98%, the operation and maintenance personnel can give an alarm. The system can automatically send the key technical elements and key business elements failing in verification to designated design and development personnel until the elements of the development design document are consistent with the actual software product. Therefore, the research and development document can be updated and changed in time, the validity of the document is ensured, and the efficiency of team collaborative work is improved.
In the embodiment of the invention, when the expected service response parameter corresponding to the preset element is inconsistent with the actual service response parameter, the corresponding preset element can be recorded into the failure element library. If the technical efficiency is greater than the preset technical threshold and the business efficiency is greater than the preset business threshold, the target document can be determined to be a valid document without processing. If the technical effective rate is smaller than or equal to a preset technical threshold or the service effective rate is smaller than or equal to a preset service threshold, all preset elements in the failure element library can be adjusted, and then the adjusted preset elements update the target document until all elements of the research and development document are consistent with the actual software system.
The following detailed description is directed to alternative embodiments.
FIG. 2 is a schematic diagram of an alternative document management system, as shown in FIG. 2, including: the system comprises a service parameter module, a service request module, a service response module, a system management module, a data storage module, a service environment module, a central processing module and the like, wherein the service parameter module is used for defining input and output parameters of a service; the service request module is used for analyzing the service parameters and sending out a service request; the service response module is used for analyzing response parameters of the service request; the system management module is used for managing related design, development and maintenance personnel, and sending out notification when document service availability and change occur; the data storage module is used for recording and storing data of development design documents, service requests and service responses; the service running environment module is used for providing a test environment for the service request; the central processing module is used for coordinating the work of each sub-module and carrying out performance management on the document management system.
In this embodiment, services are key functions of development design, including computing, networking, storage, external interface service dependencies, etc., and logical relationships between designed services. The process of managing the development document is as follows:
(1) The service request (technical element and business element) can be set first, and the research and development document can be constructed according to the service request. The development document is a specific technical scheme for describing the implementation of a software system, and comprises a plurality of key technical elements. Each key technical element is a way to implement a certain function. Key technical elements, such as network communication protocol, database table structure (including table field length, type), API, etc., have specific parameters (including number, type and field length) in a specific software system design. The key business elements, i.e., the logic of the business process. For key technical elements and key business elements, check service requests, such as definition of API interface requests (including naming, number of request message parameters, type and field length and corresponding results), database table data requests (number of fields, type and maximum length and corresponding results), and sequence dependence of business request front and back flow can be set. And then a document uploading system is researched and developed to perform validity check.
(2) After uploading the system, the corresponding designer, developer (team personnel related to the project) and system operation and maintenance personnel can be associated as a development asset accumulation. In the design development stage, the system checks the document daily according to the set service request.
(3) And (5) checking the document. And the system sends a service request to the software system according to the service request in the research and development document, and acquires an actual service response result. For each key technology and business element, the system analyzes the service response and compares the service setting result. When the actual service response result is completely consistent with the service request setting result, the element check is passed; otherwise, the system will record the elements and specific contents that fail the verification. And after all the elements are checked, calculating the ratio of the checked technical elements to all the elements, namely the effective rate of the research and development document.
(4) And (5) notifying the change. The operation and maintenance personnel can set an early warning threshold according to the effective rate, and if the effective rate is lower than 98%, the operation and maintenance personnel can alarm. The system automatically sends the key technical elements and key business elements failing in verification to the designated design and developer until the elements of the research and development design document are consistent with the actual software product. Therefore, the research and development design document can be updated in time and change notification can be carried out in time, the validity of the document is further ensured, and the team collaborative work efficiency is improved.
(5) And (5) continuously designing. When the functions of the software product are required to be expanded, optimized and the like, the system design can be known fastest and new content can be added based on the research and development documents of the system. Repeating the steps (1) - (4) to finish the development of a new round and realize continuous design and continuous development.
According to the embodiment of the invention, the problem of validity of the research and development document can be solved, and the validity of the document can be ensured by maintaining key elements in the research and development document in research and development with high requirements on the professional maintenance content, so that the problem of validity maintenance of the large-scale research and development document can be solved, the valid research and development assets can be accumulated, and the efficiency of continuous research and development can be improved.
The following describes in detail another embodiment.
Example two
The document verification apparatus provided in this embodiment includes a plurality of implementation units, each of which corresponds to each implementation step in the above-described embodiment.
FIG. 3 is a schematic diagram of an alternative document verification device, according to an embodiment of the invention, as shown in FIG. 3, which may include: a parsing unit 30, an initiating unit 31, a first determining unit 32, a second determining unit 33, wherein,
the parsing unit 30 is configured to parse a target document to obtain a service request parameter and an expected service response parameter, where the target document includes: at least one element to be verified, each element to be verified comprising: the method comprises the steps of presetting a service request and presetting a service response, wherein a target document corresponds to a target software system, expected service response parameters are preset service response parameters corresponding to the service request parameters, and the target software system is a software system realized according to the design of the target document;
An initiating unit 31, configured to initiate a service request to a target software system based on the service request parameter, where the target software system returns an actual service response parameter based on the service request;
a first determining unit 32, configured to determine, based on the expected service response parameter and the actual service response parameter, a technical efficiency of a preset technical element in the target document and a service efficiency of a preset service element, where the preset technical element is an element that is preconfigured according to a technical method used by the target software system, and the preset service element is an element that is preconfigured according to a service function implemented by the target software system;
a second determining unit 33 for determining the validity of the target document based on the technical efficiency and the business efficiency.
The verification device can analyze the target document through the analysis unit 30 to obtain the service request parameter and the expected service response parameter, initiate a service request to the target software system through the initiation unit 31 based on the service request parameter, determine the technical efficiency of the preset technical element and the service efficiency of the preset service element in the target document through the first determination unit 32 based on the expected service response parameter and the actual service response parameter, and determine the validity of the target document through the second determination unit 33 based on the technical efficiency and the service efficiency. In the embodiment of the invention, the target document to be checked can be analyzed firstly to obtain the service request parameter and the expected service response parameter, then the service request is initiated to the target software system generated according to the target document according to the service request parameter to obtain the actual service response parameter, and whether the target document is an effective document or not can be timely determined and the effectiveness of the target document can be timely maintained by comparing the expected service response parameter and the actual service response parameter, so that the technical problem that the effectiveness of research and development documents is difficult to determine in the related technology is solved.
Optionally, the verification device further includes: the first determining module is used for determining technical elements and business elements based on business requirements before analyzing the target document, wherein the technical elements are technical methods used by the target software system, the business elements are business functions realized by the target software system, and the business functions are functions realized by at least one technical element; the first configuration module is used for configuring a preset service request and a preset service response for each technical element and each business element; the first construction module is used for constructing elements to be verified in the target document based on all preset service requests and all preset service responses.
Optionally, the first configuration module includes: a first determining submodule for determining an element type of each technical element; the first configuration submodule is used for configuring a service request format for each element type to obtain a service request format library, wherein each service request format in the service request format library corresponds to one element type; a first selecting sub-module, configured to select a service request format corresponding to an element type of the technical element from a service request format library, and configure a preset service request of the technical element based on the service request format; and the second configuration sub-module is used for configuring a preset service response based on the preset service request.
Optionally, the first building module includes: a third configuration sub-module, configured to configure preset technical elements based on the technical elements, where the preset technical elements include: a preset service request and a preset service response corresponding to the technical elements; a fourth configuration sub-module, configured to determine service elements belonging to the same service function, and characterize the service elements belonging to the same service function as sub-service elements, and configure preset service elements, where the preset service elements include: at least one sub-service element, wherein the sub-service element is a service function point realized by at least one technical element, and comprises: the preset service request and the preset service response corresponding to the service elements, and the same service function comprises: the method has the function of service data dependence; the first construction submodule is used for constructing elements to be verified in the target document based on preset technical elements and preset service elements.
Optionally, the verification device further includes: a first verification module, configured to verify, based on a service request format library, validity of each preset element in a target document before determining technical efficiency of the preset technical element and business efficiency of the preset business element in the target document based on an expected service response parameter and an actual service response parameter, where the preset elements include: presetting technical elements and business elements; the second determining module is configured to determine that the preset element passes the validity check when a request format of the preset service request corresponding to the preset element is consistent with a service request format corresponding to an element type of the preset element in the service request format library.
Optionally, the verification device further includes: the first comparison module is used for comparing the expected service response parameter corresponding to the preset technical element passing the validity check with the actual service response parameter after the preset element is determined to pass the validity check, and determining the preset technical element as an effective preset technical element under the condition that the expected service response parameter is consistent with the actual service response parameter; the second comparison module is used for comparing the expected service response parameter corresponding to the sub-service element passing the validity check with the actual service response parameter, and determining the sub-service element to be an effective sub-service element under the condition that the expected service response parameter is consistent with the actual service response parameter; and the third determining module is used for determining the preset service element as an effective preset service element under the condition that all the sub-service elements in the preset service element are effective sub-service elements.
Optionally, the first determining unit includes: a fourth determining module, configured to determine the first number based on the number of effective preset technical elements and the number of effective sub-service elements; a fifth determining module, configured to determine a second number based on a number of preset technical elements and a number of sub-service elements; a sixth determining module, configured to determine a ratio between the first number and the second number as a technical efficiency of a preset technical element; a seventh determining module, configured to determine a ratio between the number of valid preset service elements and the number of preset service elements as a service effective rate of the preset service elements.
Optionally, the verification device further includes: the first recording module is used for recording the preset elements to the failure element library under the condition that the expected service response parameters corresponding to the preset elements are inconsistent with the actual service response parameters before the validity of the target document is determined based on the technical efficiency and the service efficiency; an eighth determining module, configured to determine that the target document is a valid document when the technical efficiency is greater than a preset technical threshold and the service efficiency is greater than a preset service threshold; the first adjusting module is used for adjusting all preset elements in the failure element library under the condition that the technical effective rate is smaller than or equal to a preset technical threshold value or the service effective rate is smaller than or equal to a preset service threshold value, and updating the target document based on the adjusted preset elements.
The verification device may further include a processor and a memory, where the analyzing unit 30, the initiating unit 31, the first determining unit 32, the second determining unit 33, and the like are stored as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
The processor includes a kernel, and the kernel fetches a corresponding program unit from the memory. The kernel can be provided with one or more than one, and the validity of the target document is determined based on the technical efficiency and the service efficiency by adjusting kernel parameters.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), which includes at least one memory chip.
The present application also provides a computer program product adapted to perform, when executed on a data processing device, a program initialized with the method steps of: analyzing the target document to obtain service request parameters and expected service response parameters, initiating a service request to a target software system based on the service request parameters, determining the technical efficiency of preset technical elements and the service efficiency of preset service elements in the target document based on the expected service response parameters and the actual service response parameters, and determining the effectiveness of the target document based on the technical efficiency and the service efficiency.
According to another aspect of the embodiment of the present invention, there is also provided a computer readable storage medium, where the computer readable storage medium includes a stored computer program, and when the computer program runs, a device on which the computer readable storage medium is controlled to execute the above-mentioned document verification method.
According to another aspect of the embodiment of the present invention, there is also provided an electronic device including one or more processors and a memory for storing one or more programs, where the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the above-described method for verifying a document.
Fig. 4 is a block diagram of a hardware structure of an electronic device (or mobile device) for a document verification method according to an embodiment of the present invention. As shown in fig. 4, the electronic device may include one or more (shown in fig. 4 as 402a, 402b, … …,402 n) processors 402 (the processors 402 may include, but are not limited to, a microprocessor MCU, a programmable logic device FPGA, etc. processing means), a memory 404 for storing data. In addition, the method may further include: a display, an input/output interface (I/O interface), a Universal Serial Bus (USB) port (which may be included as one of the ports of the I/O interface), a network interface, a keyboard, a power supply, and/or a camera. It will be appreciated by those of ordinary skill in the art that the configuration shown in fig. 4 is merely illustrative and is not intended to limit the configuration of the electronic device described above. For example, the electronic device may also include more or fewer components than shown in FIG. 4, or have a different configuration than shown in FIG. 4.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology content may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (11)

1. A method for verifying a document, comprising:
analyzing a target document to obtain service request parameters and expected service response parameters, wherein the target document comprises: at least one element to be verified, each element to be verified comprising: the method comprises the steps of presetting a service request and presetting a service response, wherein a target document corresponds to a target software system, the expected service response parameter is a preset service response parameter corresponding to the service request parameter, and the target software system is a software system designed and realized according to the target document;
initiating a service request to the target software system based on the service request parameter, wherein the target software system returns an actual service response parameter based on the service request;
determining the technical efficiency of preset technical elements and the service efficiency of preset service elements in the target document based on the expected service response parameters and the actual service response parameters, wherein the preset technical elements are elements which are preconfigured according to the technical method used by the target software system, and the preset service elements are elements which are preconfigured according to the service functions realized by the target software system;
And determining the validity of the target document based on the technical efficiency and the business efficiency.
2. The verification method according to claim 1, further comprising, prior to parsing the target document:
determining a technical element and a business element based on business requirements, wherein the technical element is a technical method used by the target software system, the business element is a business function realized by the target software system, and the business function is a function realized by at least one technical element;
configuring a preset service request and a preset service response for each technical element and each business element;
and constructing elements to be verified in the target document based on all the preset service requests and all the preset service responses.
3. The method according to claim 2, wherein the step of configuring a preset service request and a preset service response for each of the technical elements and each of the business elements comprises:
determining the element type of each technical element;
configuring a service request format for each element type to obtain a service request format library, wherein each service request format in the service request format library corresponds to one element type;
Selecting the service request format corresponding to the element type of the technical element from the service request format library, and configuring the preset service request of the technical element based on the service request format;
and configuring the preset service response based on the preset service request.
4. A verification method according to claim 3, wherein the step of constructing the element to be verified in the target document based on all the preset service requests and all the preset service responses comprises:
based on the technical elements, configuring preset technical elements, wherein the preset technical elements comprise: the preset service request and the preset service response corresponding to the technical element;
determining service elements belonging to the same service function, characterizing the service elements belonging to the same service function as sub-service elements, and configuring preset service elements, wherein the preset service elements comprise: at least one of the sub-service elements, the sub-service element being a service function point implemented by at least one of the technical elements, the sub-service element comprising: the preset service request and the preset service response corresponding to the service element, and the same service function includes: the method has the function of service data dependence;
And constructing an element to be verified in the target document based on the preset technical element and the preset service element.
5. The method of claim 4, further comprising, prior to determining the technical efficiency of the preset technical element and the business efficiency of the preset business element in the target document based on the expected service response parameter and the actual service response parameter:
verifying the validity of each preset element in the target document based on the service request format library, wherein the preset elements comprise: the preset technical element and the preset service element;
and determining that the preset element passes the validity check under the condition that the request format of the preset service request corresponding to the preset element is consistent with the service request format corresponding to the element type of the preset element in the service request format library.
6. The verification method according to claim 5, further comprising, after determining that the preset element passes the validity verification:
comparing the expected service response parameter corresponding to the preset technical element passing the validity check with the actual service response parameter, and determining the preset technical element as an effective preset technical element under the condition that the expected service response parameter is consistent with the actual service response parameter;
Comparing the expected service response parameter corresponding to the sub-service element passing the validity check with the actual service response parameter, and determining that the sub-service element is an effective sub-service element under the condition that the expected service response parameter is consistent with the actual service response parameter;
and under the condition that all the sub-business elements in the preset business elements are the effective sub-business elements, determining the preset business elements as effective preset business elements.
7. The method according to claim 6, wherein the step of determining the technical efficiency of the preset technical element and the business efficiency of the preset business element in the target document based on the expected service response parameter and the actual service response parameter comprises:
determining a first number based on the number of the effective preset technical elements and the number of the effective sub-service elements;
determining a second number based on the number of preset technical elements and the number of sub-service elements;
determining a ratio between the first number and the second number as the technical efficiency of the preset technical element;
And determining the ratio between the number of the effective preset service elements and the number of the preset service elements as the service effective rate of the preset service elements.
8. The verification method according to claim 6, further comprising, prior to determining the validity of the target document based on the technical efficiency and business efficiency:
recording the preset element into a failure element library under the condition that the expected service response parameter corresponding to the preset element is inconsistent with the actual service response parameter;
determining that the target document is an effective document under the condition that the technical effective rate is greater than a preset technical threshold and the service effective rate is greater than a preset service threshold;
and adjusting all preset elements in the failure element library under the condition that the technical effective rate is smaller than or equal to the preset technical threshold or the service effective rate is smaller than or equal to the preset service threshold, and updating the target document based on the adjusted preset elements.
9. A document verification apparatus, comprising:
the analyzing unit is used for analyzing the target document to obtain the service request parameter and the expected service response parameter, wherein the target document comprises: at least one element to be verified, each element to be verified comprising: the method comprises the steps of presetting a service request and presetting a service response, wherein a target document corresponds to a target software system, the expected service response parameter is a preset service response parameter corresponding to the service request parameter, and the target software system is a software system designed and realized according to the target document;
The initiating unit is used for initiating a service request to the target software system based on the service request parameter, wherein the target software system returns an actual service response parameter based on the service request;
a first determining unit, configured to determine, based on the expected service response parameter and the actual service response parameter, a technical efficiency of a preset technical element and a service efficiency of a preset service element in the target document, where the preset technical element is an element that is preconfigured according to a technical method used by the target software system, and the preset service element is an element that is preconfigured according to a service function implemented by the target software system;
and the second determining unit is used for determining the validity of the target document based on the technical efficiency and the business efficiency.
10. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored computer program, wherein the computer program, when run, controls a device in which the computer readable storage medium is located to perform a method of verifying a document according to any one of claims 1 to 8.
11. An electronic device comprising one or more processors and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of verifying documents of any of claims 1-8.
CN202310196905.XA 2023-03-02 2023-03-02 Document verification method and device, electronic equipment and storage medium Pending CN116185490A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310196905.XA CN116185490A (en) 2023-03-02 2023-03-02 Document verification method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310196905.XA CN116185490A (en) 2023-03-02 2023-03-02 Document verification method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116185490A true CN116185490A (en) 2023-05-30

Family

ID=86442153

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310196905.XA Pending CN116185490A (en) 2023-03-02 2023-03-02 Document verification method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116185490A (en)

Similar Documents

Publication Publication Date Title
US9886670B2 (en) Feature processing recipes for machine learning
US10102480B2 (en) Machine learning service
US11823072B2 (en) Customer behavior predictive modeling
US8886654B2 (en) Infrastructure and architecture for development and execution of predictive models
US20060235715A1 (en) Sharable multi-tenant reference data utility and methods of operation of same
CN112837154B (en) Registration and execution methods and devices of timing intelligent contracts in blockchain
CN103514223A (en) Data synchronism method and system of database
CN111124917B (en) Method, device, equipment and storage medium for managing and controlling public test cases
CN113221535B (en) Information processing method, device, computer equipment and storage medium
CN112017007A (en) User behavior data processing method and device, computer equipment and storage medium
CN111611276A (en) Data query method, device and storage medium
CN112613792A (en) Data processing method, system, computer device and storage medium
CN116993523A (en) Configurable account checking method, device, equipment and storage medium
CN116228402A (en) Financial credit investigation feature warehouse technical support system
CN116185490A (en) Document verification method and device, electronic equipment and storage medium
CN114357053A (en) Bill processing method and device, electronic equipment and storage medium
CN115017185A (en) Data processing method, device and storage medium
CN112799797A (en) Task management method and device
CN116866165A (en) Container injection method, device, electronic equipment, system and storage medium
CN116795812A (en) Event observation method and device, electronic equipment and storage medium
CN118071501A (en) System switching method, device, computer equipment and storage medium
CN117834458A (en) Account string detection method and device, storage medium and electronic device
CN115509696A (en) Method, device and equipment for constructing process engine and storage medium
CN117827832A (en) Data verification method, device, computer equipment and storage medium
CN117035939A (en) Service order processing method, device, computing equipment and computer 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