CN112860702A - Test execution work order verification method and device, computer equipment and storage medium - Google Patents

Test execution work order verification method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112860702A
CN112860702A CN202110228587.1A CN202110228587A CN112860702A CN 112860702 A CN112860702 A CN 112860702A CN 202110228587 A CN202110228587 A CN 202110228587A CN 112860702 A CN112860702 A CN 112860702A
Authority
CN
China
Prior art keywords
work order
target
execution work
execution
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110228587.1A
Other languages
Chinese (zh)
Other versions
CN112860702B (en
Inventor
张博
陈云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China General Nuclear Power Corp
CGN Power Co Ltd
Daya Bay Nuclear Power Operations and Management Co Ltd
Lingdong Nuclear Power Co Ltd
Guangdong Nuclear Power Joint Venture Co Ltd
Lingao Nuclear Power Co Ltd
Original Assignee
China General Nuclear Power Corp
CGN Power Co Ltd
Daya Bay Nuclear Power Operations and Management Co Ltd
Lingdong Nuclear Power Co Ltd
Guangdong Nuclear Power Joint Venture Co Ltd
Lingao Nuclear Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China General Nuclear Power Corp, CGN Power Co Ltd, Daya Bay Nuclear Power Operations and Management Co Ltd, Lingdong Nuclear Power Co Ltd, Guangdong Nuclear Power Joint Venture Co Ltd, Lingao Nuclear Power Co Ltd filed Critical China General Nuclear Power Corp
Priority to CN202110228587.1A priority Critical patent/CN112860702B/en
Publication of CN112860702A publication Critical patent/CN112860702A/en
Application granted granted Critical
Publication of CN112860702B publication Critical patent/CN112860702B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2255Hash tables
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24553Query execution of query operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Human Resources & Organizations (AREA)
  • General Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Tourism & Hospitality (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Computing Systems (AREA)
  • Water Supply & Treatment (AREA)
  • Public Health (AREA)
  • Computational Linguistics (AREA)
  • Software Systems (AREA)
  • Stored Programmes (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application relates to a test execution work order verification method, a test execution work order verification device, computer equipment and a storage medium. The method comprises the following steps: receiving a work order generation request, wherein the work order generation request carries a standard work order identifier; responding to the work order generation request, and acquiring a target test standard work order corresponding to the standard work order identification; generating a target test execution work order according to the target test standard work order; acquiring key information of an execution work order from a target test execution work order; acquiring target verification information corresponding to the key information of the execution work order, wherein the target verification information is obtained according to the key information of the standard work order in the standard work order of the target test; verifying key information of the execution work order according to the target verification information to obtain a target verification result corresponding to the target test execution work order; and when the target verification result is that the verification is passed, sending the target test execution work order to the test terminal. By adopting the method, the accuracy of the generated test execution work order can be improved.

Description

Test execution work order verification method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of data verification technologies, and in particular, to a method and an apparatus for verifying a test execution work order, a computer device, and a storage medium.
Background
Nuclear power plant safety is important to ensure that all faulty components or their substandard performance are not concealed for long periods of time in order to maintain system reliability. Nuclear power plants require periodic testing. The periodic test refers to the work of the nuclear power plant in the operation stage to determine performance parameters or check the availability of the units, systems, components or structures according to the method specified by the test program within a certain time interval according to the requirements of the operation technical specification.
At present, when a periodic test is performed, a test execution work order needs to be generated by using a test standard work order, the generated test execution work order is sent to a terminal for performing the test, and a worker can perform the test according to the test execution work order received by the terminal.
However, when a test execution work order is generated from a test standard work order, a situation where partial information (for example, process information) is omitted due to a system abnormality may occur, resulting in low accuracy of the generated test execution work order.
Disclosure of Invention
In view of the above, it is necessary to provide a test execution work order verification method, a test execution work order verification apparatus, a computer device, and a storage medium, which can improve the accuracy of a generated test execution work order, in order to solve the above-described technical problem that the accuracy of the generated test execution work order is low.
A method of trial execution work order validation, the method comprising: receiving a work order generation request, wherein the work order generation request carries a standard work order identifier; responding to the work order generation request, and acquiring a target test standard work order corresponding to the standard work order identification; generating a target test execution work order according to the target test standard work order; acquiring key information of the execution work order from the target test execution work order; acquiring target verification information corresponding to the key information of the execution work order, wherein the target verification information is obtained according to the key information of the standard work order in the target test standard work order; verifying the key information of the execution work order according to the target verification information to obtain a target verification result corresponding to the target test execution work order; and when the target verification result is that the verification is passed, sending the target test execution work order to a test terminal.
In some embodiments, the target verification information includes a verification hash value obtained by performing hash calculation on the standard work order key information according to a target hash algorithm, and the verifying the execution work order key information according to the target verification information to obtain a target verification result corresponding to the target test execution work order includes: performing hash calculation on the key information of the execution work order by adopting the target hash algorithm to obtain an execution hash value; and comparing the execution hash value with the verification hash value to obtain a target verification result corresponding to the target test execution work order.
In some embodiments, the check hash value includes check hash values corresponding to a plurality of standard work order components, the plurality of standard work order components are obtained by dividing the target test standard work order according to functional differences, and the obtaining of the key information of the execution work order from the target test execution work order includes: dividing the target test execution work order according to the function difference to obtain an execution work order component element set, wherein the execution work order component element set comprises a plurality of execution work order component elements; and selecting execution work order composition elements from the execution work order composition element set as the key information of the execution work order.
In some embodiments, the method further comprises: acquiring element identification information corresponding to each standard work order component element, and taking the element identification information as a hash value query code of a corresponding check hash value; and sending each check hash value and the corresponding hash value query code to a block chain node, so that the block chain node stores the check hash value and the corresponding hash value query code in an associated manner.
In some embodiments, the obtaining target verification information corresponding to the key information of the execution work order includes: acquiring element identification information of standard work order composition elements corresponding to the execution work order key information, and using the element identification information as a target hash value query code; sending a hash value acquisition request to a block link point, wherein the hash value acquisition request carries the target hash value query code; receiving a hash value returned by the block chain node, wherein the hash value returned by the block chain node is obtained by inquiring according to the target hash value inquiry code; and taking the hash value returned by the block chain node as target verification information corresponding to the key information of the execution work order.
In some embodiments, the executing work order key information includes executing work order process information, the target verification information includes target process information, and verifying the executing work order key information according to the target verification information to obtain a target verification result corresponding to the target test executing work order includes: comparing the target process information with the execution work order process information to obtain a comparison result; when the comparison result is inconsistent, determining that the target verification result corresponding to the target test execution work order comprises the execution work order process information generation error; and returning to the step of generating the target test execution work order according to the target test standard work order.
A test execution work order validation apparatus, the apparatus comprising: the work order generation request receiving module is used for receiving a work order generation request, and the work order generation request carries a standard work order identifier; the target test standard work order obtaining module is used for responding to the work order generating request and obtaining a target test standard work order corresponding to the standard work order identification; the target test execution work order generation module is used for generating a target test execution work order according to the target test standard work order; the execution work order key information acquisition module is used for acquiring execution work order key information from the target test execution work order; the target verification information acquisition module is used for acquiring target verification information corresponding to the key information of the execution work order, and the target verification information is obtained according to the key information of the standard work order in the standard work order of the target test; a target verification result obtaining module, configured to verify the key information of the execution work order according to the target verification information, and obtain a target verification result corresponding to the target test execution work order; and the target test execution work order sending module is used for sending the target test execution work order to a test terminal when the target verification result is that the verification is passed.
In some embodiments, the target verification information includes a verification hash value obtained by performing hash calculation on the standard work order key information according to a target hash algorithm, and the target verification result obtaining module includes: an execution hash value obtaining unit, configured to perform hash calculation on the execution work order key information by using the target hash algorithm to obtain an execution hash value; and the target verification result obtaining unit is used for comparing the execution hash value with the verification hash value to obtain a target verification result corresponding to the target test execution work order.
A computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps of the test execution work order verification method when executing the computer program.
A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the above-mentioned trial execution work order verification method.
The test execution work order verification method, the test execution work order verification device, the computer equipment and the storage medium receive a work order generation request, the work order generation request carries a standard work order identifier, a target test standard work order corresponding to the standard work order identifier is obtained in response to the work order generation request, a target test execution work order is generated according to the target test standard work order, key information of the execution work order is obtained from the target test execution work order, target verification information corresponding to the key information of the execution work order is obtained, the target verification information is obtained according to the standard work order key information in the target test standard work order, verification is carried out on the key information of the execution work order according to the target verification information, a target verification result corresponding to the target test execution work order is obtained, and when the target verification result is that verification passes, the target test execution work order is sent to a test terminal. Therefore, the accuracy of the target test execution work order is verified according to the target test standard work order, the accuracy of the generated target test execution work order is improved, and the accuracy of test execution is improved due to the fact that the test execution work order is used for carrying out the test.
Drawings
FIG. 1 is a diagram of an application environment for a method for performing work order validation in a test in some embodiments;
FIG. 2 is a schematic flow chart diagram of a method for performing work order validation for a test in some embodiments;
FIG. 3A is a schematic interface diagram of a test criteria work order in some embodiments;
FIG. 3B is a schematic interface diagram of a test execution order in some embodiments;
FIG. 3C is a schematic flow chart of a method for performing work order validation for a test in some embodiments;
FIG. 4 is a schematic flow chart diagram of a method for performing work order validation for a test in some embodiments;
FIG. 5 is a schematic flow chart diagram of a method for performing work order validation for a test in some embodiments;
FIG. 6 is a schematic flow chart of the test execution work order validation step in some embodiments;
FIG. 7 is a schematic flow chart diagram illustrating a method for performing work order validation for a test in some embodiments;
FIG. 8 is a block diagram of a test execution work order validation apparatus in some embodiments;
FIG. 9 is a diagram of the internal structure of a computer device in some embodiments.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The test execution work order verification method provided by the application can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network.
Specifically, the terminal 102 may send a work order generation request carrying a standard work order identifier to the server 104, and the server 104 may receive the work order generation request, respond to the work order generation request, obtain a target test standard work order corresponding to the standard work order identifier, and generate a target test execution work order according to the target test standard work order. The server 104 may obtain the key information of the execution work order from the target test execution work order, and obtain the target verification information corresponding to the key information of the execution work order, where the target verification information is obtained according to the standard work order key information in the standard work order of the target test. The server 104 may verify the key information of the execution work order according to the target verification information to obtain a target verification result corresponding to the target test execution work order, and when the target verification result is verification passed, send the target test execution work order to the test terminal. The test terminal is a terminal used for performing a test, and the test terminal may be the terminal 102.
The terminal 102 and the testing terminal may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In some embodiments, the server may be a server where the work order management system is located, the work order management system may correspond to a client or a web page, the terminal may install the client corresponding to the work order management system, or may access the web page corresponding to the work order management system, and the user may process the work order through the terminal.
In some embodiments, as shown in fig. 2, a method for performing work order verification in a test is provided, which is illustrated by applying the method to the server 104 in fig. 1, and includes the following steps:
s202, receiving a work order generation request, wherein the work order generation request carries a standard work order identifier.
Specifically, the standard work order identifier is an identifier of a test standard work order, and the standard work order identifier is used for uniquely identifying one test standard work order. And the work order generation request is used for requesting to obtain a test standard work order corresponding to the standard work order identification, and generating a test execution work order for the obtained test standard work order.
In some embodiments, the test standard work order is a work order generated for performing a test and may be used to generate a test execution work order. The test standard work order may include at least one of descriptive information, procedure information, acceptance criteria, an additional form, or an attachment. The description information may include at least one of destination information or authorization information. The destination information includes the purpose of executing the work order. The authorization information includes at least one of a work order execution site or an executive, and may be, for example, at least one of "at a master room, all operations performed by a master room operator" or "on-site, all operations performed by a field operator under the responsibility of a master room operator or an isolation manager. The process information is related information of the process, and may include at least one of a work order number, process description information, functional position information, expected result, actual value, or remark information. The work order number can be used as the identification of the process and is used for uniquely identifying one process. The process description information is process-related description information. The functional position information is used for identifying the test object corresponding to the work order. The acceptance criterion represents an acceptance criterion for evaluating the acceptance test result. The attached table may be a result attached table that cannot be converted into a process method. The attachment may be an attachment document in a work order. As shown in fig. 3A, an interface schematic of a test standard work order is shown.
In some embodiments, the trial execution work order is a work order used in executing the trial. The server may send the generated test execution work order to the test terminal. The user can execute the test according to the test execution work order on the test terminal.
In some embodiments, the test execution order may include at least one of head-up information, description information, procedure information, acceptance criteria, an additional form, or an attachment. The description information, the process information, the acceptance criteria, the attached table and the accessories in the test execution work order are obtained according to the description information, the process information, the acceptance criteria, the attached table and the accessories in the test standard work order. The description information, the process information, the acceptance criteria, the attached table, and the accessories in the test execution work order may be the same as those in the test standard work order, respectively.
In some embodiments, the heads-up information may include at least one of a basic start, a basic completion, a work center, a crew, or a priority, among others. Wherein the base start is used to identify the date and time at which the test execution work order began to execute. The basic completion is used to identify the date and time the test execution work order completed execution. The priority is used to identify a priority level for the trial execution work order. As shown in fig. 3B, an interface schematic of a test execution work order is presented.
And S204, responding to the work order generation request, and acquiring a target test standard work order corresponding to the standard work order identification.
Specifically, the target test standard work order is a work order identified by the standard work order identification. When the server receives the work order generation request, the standard work order identification in the work order generation request can be extracted, and the target test standard work order is obtained according to the standard work order identification.
In some embodiments, the server may store a plurality of test standard work orders, and the server may query from the plurality of test standard work orders according to the standard work order identifier to obtain a target test standard work order corresponding to the standard work order identifier.
And S206, generating a target test execution work order according to the target test standard work order.
Specifically, the server may generate a target test execution work order according to the target test standard work order.
In some embodiments, the heads-up information is generated during the generation of the trial execution order. The corresponding test execution work order can be generated by adding the head-up information on the basis of the test standard work order. Specifically, the server may provide a test execution work order generation interface, the test execution work order generation interface may include a test execution work order generation button and a test standard work order filling position, and the user may access the test execution work order generation interface through the terminal, fill the identifier of the test standard work order in the test standard work order filling position, and select the test execution work order generation button. The terminal can acquire the selection operation of the test execution work order generation button through the interface, jump to the head-up information filling interface, and the user can fill the head-up information in the head-up information filling interface. When the fill is complete, generation of the trial execution order may be triggered by selection of a button indicating the end, such as a "complete" button.
And S208, acquiring key information of the execution work order from the target test execution work order.
Specifically, the key information of the execution work order is information in the target test execution work order, is key information in the work order, plays a critical role in the execution of the test, and specifically, the key information can be set as required. There may be one or more of the execution work order key information.
In some embodiments, the server may divide the test execution work order according to a preset division rule to obtain a plurality of execution work order constituent elements. Wherein the preset segmentation rule comprises segmentation according to functions. For example, since the explanatory information and the process information in the test execution work order have different functions, the explanatory information may be defined as one execution work order component element and the process information may be defined as another execution work order component element. The server can use the execution work order component element corresponding to the target test execution work order as the key information of the execution work order.
In some embodiments, the server may segment the test standard work order according to the same preset segmentation rule to obtain a plurality of standard work order constituent elements. Since the preset segmentation rules are the same, the standard work order component elements and the execution work order component elements may have a correspondence relationship. For example, if the standard work order component element is the specification information, the corresponding execution work order component element is the specification information.
And S210, acquiring target verification information corresponding to the key information of the execution work order, wherein the target verification information is obtained according to the key information of the standard work order in the standard work order of the target test.
Specifically, the target verification information may be standard work order key information corresponding to the execution work order key information in the target test standard work order.
In some embodiments, the target verification information may be a hash value obtained by performing a hash calculation on the standard work order key information.
In some embodiments, the server may store the target verification information and the corresponding query code in the block link point in an associated manner, when the target verification information is needed, the server may send a verification information acquisition request to the block link point, the verification information acquisition request may carry the query code corresponding to the target verification information, and the block link point may acquire the target verification information according to the query code corresponding to the target verification information and return the target verification information to the server.
In some embodiments, element identification information may be set for the key information of the standard work order in the target test standard work order, and the key information of the standard work order is uniquely identified by using the element identification information. The server can use the element identification information set by the key information of the standard work order as the query code of the corresponding target verification information.
S212, verifying the key information of the execution work order according to the target verification information to obtain a target verification result corresponding to the target test execution work order.
Specifically, the target verification result may be one of verification passed or verification failed (verification failure). When the target verification information is the key information of the standard work order in the target test standard work order, the target verification information and the key information of the execution work order can be compared, when the comparison result is consistent, the target verification result corresponding to the target test execution work order is determined to be passed through verification, and when the comparison result is consistent, the target verification result corresponding to the target test execution work order is determined to be failed through verification (verification failure). When the target verification information can be a hash value obtained by performing hash calculation on the key information of the standard work order, the hash value of the key information of the execution work order can be compared with the target verification information, when the comparison result is that the comparison is consistent, the target verification result corresponding to the execution work order of the target test is determined to be passed, and when the comparison result is that the comparison is consistent, the target verification result corresponding to the execution work order of the target test is determined to be failed (verification failure).
In some embodiments, the execution work order key information may be at least one of procedure information, description information, or acceptance criteria in the target test execution work order. The target verification result may include at least one of whether the generated process information is correct, whether the generated description information is correct, or whether the generated acceptance criterion is correct.
In some embodiments, when the target verification result is that the verification fails (verification fails), the step S206 is returned to regenerate the target test execution work order.
S214, when the target verification result is that the verification is passed, the target test execution work order is sent to a test terminal.
Specifically, the test terminal refers to a terminal operated when performing a test. When the target verification result is that the verification is passed, the generated target test execution work order can be determined to be correct, and the target test execution work order can be sent to the test terminal, so that the test execution work order for the test acquired by the test terminal is ensured to be correct.
In some embodiments, when the target verification result is that the verification is passed, the generated target test execution work order may be sent to the corresponding approval terminal for approval, and when the approval is determined to be passed, the target test execution work order is sent to the test terminal. The approval terminal is operated by an approval person to perform approval. The number of the approval terminals can be multiple.
The test execution work order verification method comprises the steps of receiving a work order generation request, wherein the work order generation request carries a standard work order identifier, responding to the work order generation request, obtaining a target test standard work order corresponding to the standard work order identifier, generating a target test execution work order according to the target test standard work order, obtaining key information of the execution work order from the target test execution work order, obtaining target verification information corresponding to the key information of the execution work order, wherein the target verification information is obtained according to the standard work order key information in the target test standard work order, verifying the key information of the execution work order according to the target verification information, obtaining a target verification result corresponding to the target test execution work order, and sending the target test execution work order to a test terminal when the target verification result is that the target verification result passes verification. Therefore, the accuracy of the target test execution work order is verified according to the target test standard work order, the accuracy of the generated target test execution work order is improved, and the accuracy of test execution is improved due to the fact that the test execution work order is used for carrying out the test.
In some embodiments, as shown in fig. 3C, the target verification information includes a verification hash value obtained by performing hash calculation on the key information of the standard work order according to a target hash algorithm, and step S212 is to verify the key information of the execution work order according to the target verification information, and obtaining a target verification result corresponding to the target test execution work order includes:
s302, performing hash calculation on the key information of the execution work order by adopting the target hash algorithm to obtain an execution hash value.
Specifically, the target hash algorithm may be selected from existing hash (hash) algorithms as needed, or may be a self-defined hash algorithm. The hash algorithm is also called hash (hash) algorithm, and is used to map a binary string of any length into a fixed-length binary string, and a binary value obtained after mapping the original data is called a hash value. Common hashing algorithms include at least one of MD4, MD5, SHA, or the like. The server may perform hash calculation on the standard work order key information by using a target hash algorithm to obtain a check hash value, and perform hash calculation on the execution work order key information by using a target hash algorithm to obtain an execution hash value. That is, the server may perform hash calculation using the same hash algorithm to obtain a check hash value and execute the hash value.
S304, comparing the execution hash value with the verification hash value to obtain a target verification result corresponding to the target test execution work order.
Specifically, since the execution hash value and the verification hash value are calculated by using the same hash algorithm, when the execution hash value is consistent with the verification hash value, it is described that the execution work order key information corresponding to the execution hash value is consistent with the standard work order key information corresponding to the verification hash value. Therefore, when the execution hash value is consistent with the check hash value, the target verification result can be determined as verification passing. And when the execution hash value is inconsistent with the verification hash value, the execution work order key information corresponding to the execution hash value is indicated to be inconsistent with the standard work order key information corresponding to the verification hash value. Therefore, when the execution hash value is not consistent with the check hash value, the target verification result can be determined as verification failure (verification failure).
In the above embodiment, since the storage space occupied by the hash value is usually small, the executed hash value is compared with the check hash value to obtain the target verification result corresponding to the target test execution work order, so that the storage space can be saved. And the time consumed for comparing the hash value is less than the time consumed for comparing the execution work order key information with the standard work order key information, and the comparison efficiency is high.
In some embodiments, the check hash value includes check hash values corresponding to a plurality of standard work order components, and the plurality of standard work order components are obtained by dividing the target test standard work order according to the functional difference, as shown in fig. 4, the step S208 of obtaining the key information of the execution work order from the target test execution work order includes:
s402, dividing the target test execution work order according to the function difference to obtain an execution work order component set, wherein the execution work order component set comprises a plurality of execution work order component elements.
Specifically, the server may perform hash calculation on the standard work order constituent elements, and use the calculated hash value as a check hash value corresponding to the standard work order constituent elements. Functional differences refer to differences in function. The contents in the test standard work order may have functional differences, and the test standard work order can be divided according to the functional differences to obtain a plurality of standard work order constituent elements. Similarly, the server may divide the target test execution work order by using the function difference to obtain an execution work order component set composed of the execution work order component elements.
S404, selecting the execution work order component elements from the execution work order component element set as the key information of the execution work order.
Specifically, since the execution work order constituent elements are obtained by dividing the target test execution work order by functional differences, the functions of the execution work order constituent elements are different. The server may select an execution work order constituent element of a preset function from the set of execution work order constituent elements as execution work order key information. Wherein the preset function may be a relatively important function.
In some embodiments, the server may obtain all execution work order constituent elements in the set of execution work order constituent elements, resulting in a plurality of execution work order key information.
In the above embodiment, the execution work order component element set is obtained by dividing the target test execution work order through the function difference, so that the obtained key information of the execution work order has the function attribute.
In some embodiments, as shown in fig. 5, the method further comprises:
and S502, acquiring element identification information corresponding to each standard work order component element, and respectively using the element identification information as a hash value query code of a corresponding check hash value.
Specifically, the element identification information is used to uniquely identify the standard work order component element. The element identification information may be artificially defined.
S504, each check hash value and the corresponding hash value query code are sent to a block chain node, so that the block chain node stores the check hash value and the corresponding hash value query code in an associated manner.
Specifically, the server may send the check hash value and the corresponding hash value query code to the blockchain node, and the blockchain node may store the received check hash value and the corresponding hash value query code in the blockchain in an associated manner.
In some embodiments, the server may send the signature information, the check hash value, and the corresponding hash value query code to the blockchain node. The signature information is obtained according to a private key of a terminal for generating the test standard work order. For example, the verification hash value may be encrypted by a private key of a terminal that generates the test standard work order, and the encrypted verification hash value may be used as the signature information.
In some embodiments, the blockchain node broadcasts the received signature information, so that other blockchain nodes in the belonging blockchain system can acquire the signature information, perform consensus through the signature information, and store the verification hash value and the corresponding hash value query code into the blockchain in an associated manner after the consensus passes.
In the above embodiment, the check hash value and the corresponding hash value query code are stored in the block chain in an associated manner, so that the check hash value and the corresponding hash value query code can be prevented from being tampered, and the accuracy of the check hash value and the corresponding hash value query code is improved.
In some embodiments, as shown in fig. 6, the step S210 of acquiring the target verification information corresponding to the key information of the execution work order includes:
and S602, acquiring element identification information of the standard work order forming elements corresponding to the execution work order key information as a target hash value query code.
S604, sending a hash value acquisition request to the block nodes, wherein the hash value acquisition request carries the target hash value query code.
And S606, receiving the hash value returned by the block chain node, and inquiring the hash value returned by the block chain node according to the target hash value inquiry code to obtain the hash value.
And S608, taking the hash value returned by the block chain node as the target verification information corresponding to the key information of the execution work order.
Specifically, the server may store the target verification information and the corresponding query code association into the block link point. Wherein the query code may be element identification information. When the target verification information is needed, the server can obtain element identification information of a standard work order component element corresponding to the key information of the execution work order as a target hash value query code, and obtain the target verification information from the block chain according to the target hash value query code.
In the above embodiment, the target verification information is obtained from the blockchain, and since the probability that the data in the blockchain is tampered is very small, the accuracy of the obtained target verification information is high.
In some embodiments, the key information of the execution work order includes process information of the execution work order, the target verification information includes target process information, as shown in fig. 7, step S212 is to verify the key information of the execution work order according to the target verification information, and obtaining a target verification result corresponding to the target test execution work order includes:
s702, comparing the target process information with the execution work order process information to obtain a comparison result.
Specifically, the target process information refers to process information in a target test standard work order, and the execution work order process information refers to process information in a target test execution work order.
S704, when the comparison result is that the comparison is inconsistent, determining that the target verification result corresponding to the target test execution work order comprises the execution work order process information generation error; and returning to the step of generating the target test execution work order according to the target test standard work order.
In the above embodiment, when the comparison result is that the comparison is inconsistent, it is determined that the process information of the executed work order is generated incorrectly, and the step of generating the target test execution work order according to the target test standard work order is returned, so that the generated target test execution work order can be regenerated and verified until a correct target test execution work order is obtained.
It should be understood that, although the steps in the flowcharts of the above embodiments are shown in sequence as indicated by the arrows, the steps are not necessarily executed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts of the above embodiments may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a part of the steps or stages in other steps.
In some embodiments, as shown in fig. 8, there is provided a test execution work order validation apparatus comprising: a work order generation request receiving module 802, a target test standard work order obtaining module 804, a target test execution work order generating module 806, an execution work order key information obtaining module 808, a target verification information obtaining module 810, a target verification result obtaining module 812 and a target test execution work order sending module 814, wherein:
the work order generation request receiving module 802 is configured to receive a work order generation request, where the work order generation request carries a standard work order identifier.
And a target test standard work order obtaining module 804, configured to respond to the work order generation request, and obtain a target test standard work order corresponding to the standard work order identifier.
And a target test execution work order generation module 806, configured to generate a target test execution work order according to the target test standard work order.
And an execution work order key information obtaining module 808, configured to obtain the execution work order key information from the target test execution work order.
And a target verification information obtaining module 810, configured to obtain target verification information corresponding to the key information of the execution work order, where the target verification information is obtained according to the key information of the standard work order in the standard work order of the target test.
And a target verification result obtaining module 812, configured to verify the key information of the execution work order according to the target verification information, so as to obtain a target verification result corresponding to the target test execution work order.
And a target test execution work order sending module 814, configured to send the target test execution work order to a test terminal when the target verification result is that verification passes.
In some embodiments, the target verification information includes a verification hash value obtained by performing a hash calculation on the standard work order key information according to a target hash algorithm, and the target verification result obtaining module 812 includes:
and the execution hash value obtaining unit is used for carrying out hash calculation on the key information of the execution work order by adopting the target hash algorithm to obtain an execution hash value.
And the target verification result obtaining unit is used for comparing the execution hash value with the verification hash value to obtain a target verification result corresponding to the target test execution work order.
In some embodiments, the check hash value includes check hash values corresponding to a plurality of standard work order constituent elements, where the plurality of standard work order constituent elements are obtained by dividing the target test standard work order according to a functional difference, and the execution work order key information obtaining module 808 includes:
and the execution work order component element set obtaining unit is used for segmenting the target test execution work order according to the function difference to obtain an execution work order component element set, and the execution work order component element set comprises a plurality of execution work order component elements.
And the execution work order key information obtaining unit is used for selecting execution work order composition elements from the execution work order composition element set to serve as the execution work order key information.
In some embodiments, the apparatus further comprises:
and the hash value query code obtaining module is used for obtaining element identification information corresponding to each standard work order component element and respectively serving as the hash value query code of the corresponding check hash value.
And the check hash value sending module is used for sending each check hash value and the corresponding hash value query code to the block chain node so that the block chain node stores the check hash value and the corresponding hash value query code in an associated manner.
In some embodiments, the target verification information obtaining module 810 includes:
and the target hash value query code obtaining unit is used for obtaining the element identification information of the standard work order composition element corresponding to the key information of the execution work order as the target hash value query code.
And the hash value acquisition request sending unit is used for sending a hash value acquisition request to the block link points, wherein the hash value acquisition request carries the target hash value query code.
And the hash value receiving unit is used for receiving the hash value returned by the block chain node, and the hash value returned by the block chain node is obtained by inquiring according to the target hash value inquiry code.
And the target verification information obtaining unit is used for taking the hash value returned by the block link point as the target verification information corresponding to the key information of the execution work order.
In some embodiments, the execution work order key information includes execution work order process information, the target verification information includes target process information, and the target verification result obtaining module 812 includes:
and the comparison result obtaining unit is used for comparing the target process information with the execution work order process information to obtain a comparison result.
The target verification result determining unit is used for determining that the target verification result corresponding to the target test execution work order comprises the execution work order process information generation error when the comparison result is inconsistent; and returning to the step of generating the target test execution work order according to the target test standard work order.
For specific limitations of the test execution work order verification apparatus, reference may be made to the above limitations of the test execution work order verification method, which are not described herein again. The modules in the test execution work order verification device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In some embodiments, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 9. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a trial execution order validation method.
Those skilled in the art will appreciate that the architecture shown in fig. 9 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In some embodiments, a computer device is provided, comprising a memory having a computer program stored therein and a processor that, when executing the computer program, performs the steps of the above-described trial execution work order validation method.
In some embodiments, a computer-readable storage medium is provided, having stored thereon a computer program that, when executed by a processor, performs the steps of the above-described trial execution work order validation method.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of trial execution work order validation, the method comprising:
receiving a work order generation request, wherein the work order generation request carries a standard work order identifier;
responding to the work order generation request, and acquiring a target test standard work order corresponding to the standard work order identification;
generating a target test execution work order according to the target test standard work order;
acquiring key information of the execution work order from the target test execution work order;
acquiring target verification information corresponding to the key information of the execution work order, wherein the target verification information is obtained according to the key information of the standard work order in the target test standard work order;
verifying the key information of the execution work order according to the target verification information to obtain a target verification result corresponding to the target test execution work order;
and when the target verification result is that the verification is passed, sending the target test execution work order to a test terminal.
2. The method according to claim 1, wherein the target verification information includes a verification hash value obtained by performing hash calculation on the standard work order key information according to a target hash algorithm, and the verifying the execution work order key information according to the target verification information to obtain a target verification result corresponding to the target test execution work order includes:
performing hash calculation on the key information of the execution work order by adopting the target hash algorithm to obtain an execution hash value;
and comparing the execution hash value with the verification hash value to obtain a target verification result corresponding to the target test execution work order.
3. The method according to claim 2, wherein the check hash value includes check hash values corresponding to a plurality of standard work order components, respectively, the plurality of standard work order components are obtained by dividing the target test standard work order according to functional differences, and the obtaining of the key information of the execution work order from the target test execution work order includes:
dividing the target test execution work order according to the function difference to obtain an execution work order component element set, wherein the execution work order component element set comprises a plurality of execution work order component elements;
and selecting execution work order composition elements from the execution work order composition element set as the key information of the execution work order.
4. The method of claim 3, further comprising:
acquiring element identification information corresponding to each standard work order component element, and taking the element identification information as a hash value query code of a corresponding check hash value;
and sending each check hash value and the corresponding hash value query code to a block chain node, so that the block chain node stores the check hash value and the corresponding hash value query code in an associated manner.
5. The method according to claim 4, wherein the obtaining target verification information corresponding to the key information of the execution work order comprises:
acquiring element identification information of standard work order composition elements corresponding to the execution work order key information, and using the element identification information as a target hash value query code;
sending a hash value acquisition request to a block link point, wherein the hash value acquisition request carries the target hash value query code;
receiving a hash value returned by the block chain node, wherein the hash value returned by the block chain node is obtained by inquiring according to the target hash value inquiry code;
and taking the hash value returned by the block chain node as target verification information corresponding to the key information of the execution work order.
6. The method according to claim 1, wherein the execution work order key information includes execution work order process information, the target verification information includes target process information, and the verifying the execution work order key information according to the target verification information to obtain a target verification result corresponding to the target test execution work order includes:
comparing the target process information with the execution work order process information to obtain a comparison result;
when the comparison result is inconsistent, determining that the target verification result corresponding to the target test execution work order comprises the execution work order process information generation error; and returning to the step of generating the target test execution work order according to the target test standard work order.
7. A test execution work order validation apparatus, the apparatus comprising:
the work order generation request receiving module is used for receiving a work order generation request, and the work order generation request carries a standard work order identifier;
the target test standard work order obtaining module is used for responding to the work order generating request and obtaining a target test standard work order corresponding to the standard work order identification;
the target test execution work order generation module is used for generating a target test execution work order according to the target test standard work order;
the execution work order key information acquisition module is used for acquiring execution work order key information from the target test execution work order;
the target verification information acquisition module is used for acquiring target verification information corresponding to the key information of the execution work order, and the target verification information is obtained according to the key information of the standard work order in the standard work order of the target test;
a target verification result obtaining module, configured to verify the key information of the execution work order according to the target verification information, and obtain a target verification result corresponding to the target test execution work order;
and the target test execution work order sending module is used for sending the target test execution work order to a test terminal when the target verification result is that the verification is passed.
8. The apparatus of claim 7, wherein the target verification information includes a verification hash value obtained by performing a hash calculation on the standard work order key information according to a target hash algorithm, and the target verification result obtaining module includes:
an execution hash value obtaining unit, configured to perform hash calculation on the execution work order key information by using the target hash algorithm to obtain an execution hash value;
and the target verification result obtaining unit is used for comparing the execution hash value with the verification hash value to obtain a target verification result corresponding to the target test execution work order.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 6.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN202110228587.1A 2021-03-02 2021-03-02 Test execution work order verification method, device, computer equipment and storage medium Active CN112860702B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110228587.1A CN112860702B (en) 2021-03-02 2021-03-02 Test execution work order verification method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110228587.1A CN112860702B (en) 2021-03-02 2021-03-02 Test execution work order verification method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112860702A true CN112860702A (en) 2021-05-28
CN112860702B CN112860702B (en) 2024-07-19

Family

ID=75990828

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110228587.1A Active CN112860702B (en) 2021-03-02 2021-03-02 Test execution work order verification method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112860702B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113836864A (en) * 2021-08-26 2021-12-24 广西电网有限责任公司来宾供电局 Development work order content comparison method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017050206A1 (en) * 2015-09-25 2017-03-30 中兴通讯股份有限公司 Placement and installation method and device for terminal user
CN110930120A (en) * 2019-11-28 2020-03-27 深圳市智微智能软件开发有限公司 MES test method and system
CN111563365A (en) * 2020-03-31 2020-08-21 岭东核电有限公司 Test standard work order modification information processing method and device and computer equipment
WO2021012552A1 (en) * 2019-07-25 2021-01-28 深圳壹账通智能科技有限公司 Login processing method and related device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017050206A1 (en) * 2015-09-25 2017-03-30 中兴通讯股份有限公司 Placement and installation method and device for terminal user
WO2021012552A1 (en) * 2019-07-25 2021-01-28 深圳壹账通智能科技有限公司 Login processing method and related device
CN110930120A (en) * 2019-11-28 2020-03-27 深圳市智微智能软件开发有限公司 MES test method and system
CN111563365A (en) * 2020-03-31 2020-08-21 岭东核电有限公司 Test standard work order modification information processing method and device and computer equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杜丽艳;武同心;高旭;江知瀚;: "智能变电站SCD/ICD标准化检验方法的研究", 华北电力技术, no. 06 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113836864A (en) * 2021-08-26 2021-12-24 广西电网有限责任公司来宾供电局 Development work order content comparison method and system

Also Published As

Publication number Publication date
CN112860702B (en) 2024-07-19

Similar Documents

Publication Publication Date Title
CN108573371B (en) Data approval method, device, computer equipment and storage medium
CN109474578B (en) Message checking method, device, computer equipment and storage medium
CN111163182B (en) Block chain-based device registration method and apparatus, electronic device, and storage medium
CN110377454B (en) Data verification method and device, computer equipment and storage medium
CN110602239A (en) Block chain information storage method and related equipment
CN111563365B (en) Method and device for processing modification information of test standard worksheet and computer equipment
CN110633160A (en) Interface calling method and device, computer equipment and storage medium
CN110135129B (en) Code segment protection method and device, computer equipment and storage medium
CN112527357B (en) Service hot loading updating method, device, computer equipment and storage medium
CN109101232B (en) Method, device, computer equipment and storage medium for product development
CN112631633A (en) Function module upgrading method and device based on double-core intelligent electric meter
CN112862455A (en) Test execution work order generation method and device, computer equipment and storage medium
CN108389124B (en) Data processing method, data processing device, computer equipment and storage medium
CN112860702B (en) Test execution work order verification method, device, computer equipment and storage medium
CN108776642B (en) Test report generation method and device, computer equipment and storage medium
CN112862449A (en) Structural chemical industry bill generation method and device, computer equipment and storage medium
CN112579591A (en) Data verification method and device, electronic equipment and computer readable storage medium
CN112463620B (en) Coverage rate test method and device in android software integration test
CN112862452A (en) Method and device for executing work order equivalence, computer equipment and storage medium
CN111611002A (en) Data upgrading method and device, computer equipment and storage medium
CN112685077A (en) Data modification method, system, computer device and computer readable storage medium
CN112862454A (en) Test execution work order updating method and device, computer equipment and storage medium
CN114579473B (en) Application testing method, device, equipment and storage medium
CN111736917B (en) Data verification method and device, computer equipment and storage medium
CN115221244A (en) Block chain cross-chain method and device, computer equipment and storage medium

Legal Events

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