Process form test method, device and equipment and storage medium

By matching process databases and recognizing approval status, the problem of incomplete test coverage of process forms was solved, enabling efficient and accurate test report generation and ensuring the quality of process forms.

CN114741306BActive Publication Date: 2026-03-24PINGAN INT SMART CITY TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-21
Publication Date
2026-03-24

AI Technical Summary

Technical Problem

Existing process form testing methods suffer from incomplete test coverage, resulting in the inability to guarantee the quality of process forms and hindering the improvement of related business operations.

Method used

The system matches the process approval list corresponding to the form to be tested with a preset process database, identifies the flow status of each approval process, obtains approval data and compares it with the baseline approval information, generates a test report, and ensures that all approval processes are tested.

Benefits of technology

It improved the efficiency and coverage of process form testing, ensured test quality and accuracy, reduced form complexity, and improved the efficiency of test report generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114741306B_ABST
    Figure CN114741306B_ABST
Patent Text Reader

Abstract

The present application relates to test, provide a kind of flow form test method, device, equipment and storage medium.The method obtains the form to be tested according to the flow form test request;Matching out the flow approval list corresponding to the form to be tested based on pre-set process database;Identify the flow state of each approval process in the flow approval list;According to the flow state, obtain the reference approval information of the form to be tested;Compare the approval data with the reference approval information, obtain test result;According to the test result, detect whether all approval processes in the flow approval list are completed test;When detecting that all approval processes in the flow approval list are completed test, according to the test result, generate the test report of the form to be tested, improve test efficiency and test quality.In addition, the present application also relates to blockchain technology, and the test report can be stored in blockchain.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of testing technology, and in particular to a method, apparatus, equipment, and storage medium for testing flowcharts. Background Technology

[0002] In current workflow approval testing projects, due to the diversity of approval processes, statistical sampling is usually used to test workflow forms. However, this method has the problem of incomplete test coverage, which makes it impossible to guarantee the quality of workflow forms and makes it difficult to improve business related to workflow forms. Summary of the Invention

[0003] In view of the above, it is necessary to provide a process form testing method, apparatus, equipment, and storage medium that can improve testing efficiency and ensure test coverage.

[0004] On one hand, the present invention proposes a process form testing method, the process form testing method comprising:

[0005] When a process form test request is received, the form to be tested is obtained according to the process form test request;

[0006] Based on a preset process database, a process approval list corresponding to the form to be tested is generated;

[0007] Identify the progress status of each approval process in the process approval list;

[0008] Based on the flow status, obtain the approval data and the baseline approval information of the form to be tested;

[0009] The test results are obtained by comparing the approval data with the benchmark approval information;

[0010] Based on the test results, check whether all approval processes in the process approval list have completed the test;

[0011] When it is detected that all approval processes in the process approval list have completed testing, a test report for the form to be tested is generated based on the test results.

[0012] According to a preferred embodiment of the present invention, obtaining the form to be tested based on the process form test request includes:

[0013] Parse the message of the process form test request to obtain the data information carried by the message;

[0014] The test type of the process form test request is identified based on the data information;

[0015] Obtain the type form template corresponding to the test type;

[0016] Locate the device that triggered the process form test request;

[0017] Obtain the field information of the triggering user input for the process form test request from the triggering device;

[0018] Write the field information into the form template of the specified type to obtain the form to be tested.

[0019] According to a preferred embodiment of the present invention, the form to be tested includes form fields, and the process approval list corresponding to the form to be tested, matched based on a preset process database, includes:

[0020] Traverse multiple preset process lists in the preset process database and obtain the process fields of each preset process list;

[0021] Count the number of process fields in each preset process list that match the form fields;

[0022] The preset process list with the largest number of fields is determined as the process approval list.

[0023] According to a preferred embodiment of the present invention, identifying the flow status of each approval process in the process approval list includes:

[0024] Obtain the process identification code for each approval process;

[0025] Call the status query interface to query the process identification code and obtain the identification information corresponding to the process identification code;

[0026] The state that matches the identification information is determined as the flow state.

[0027] According to a preferred embodiment of the present invention, obtaining approval data based on the circulation status includes:

[0028] If the progress status of any of the approval processes is incomplete, then a target approval process adjacent to any of the approval processes is located from the process approval list. The approval order of the target approval process in the process approval list is less than the approval order of any of the approval processes in the process approval list.

[0029] If the process status of the target approval process is "approved", then the approval information corresponding to the target approval process is obtained from the preset approval path.

[0030] Obtain the preset approval rules that match any of the approval processes;

[0031] The preset approval rules are invoked to process the approval information and the field information to obtain the approval data.

[0032] According to a preferred embodiment of the present invention, obtaining the baseline approval information of the form to be tested includes:

[0033] Locate the page for viewing approval comments;

[0034] Obtain the form identification code and form name of the form to be tested;

[0035] The information corresponding to the form identification code and the form name is obtained from the approval opinion viewing page and used as the baseline approval information.

[0036] According to a preferred embodiment of the present invention, generating a test report for the form to be tested based on the test results includes:

[0037] Establish the correspondence between the process identification code and the test result;

[0038] The corresponding relationship is written into a preset report template to obtain the test report.

[0039] On the other hand, the present invention also proposes a process form testing device, the process form testing device comprising:

[0040] The acquisition unit is used to acquire the form to be tested according to the process form test request when a process form test request is received.

[0041] The matching unit is used to match the process approval list corresponding to the form to be tested based on a preset process database.

[0042] The identification unit is used to identify the flow status of each approval process in the process approval list;

[0043] The acquisition unit is also used to acquire approval data based on the flow status and to acquire the baseline approval information of the form to be tested;

[0044] The comparison unit is used to compare the approval data with the benchmark approval information to obtain test results;

[0045] The detection unit is used to detect whether all approval processes in the process approval list have completed the test based on the test results;

[0046] The generation unit is used to generate a test report for the form to be tested based on the test results when it is detected that all approval processes in the process approval list have completed testing.

[0047] On the other hand, the present invention also proposes an electronic device, the electronic device comprising:

[0048] Memory, which stores computer-readable instructions; and

[0049] The processor executes computer-readable instructions stored in the memory to implement the flowchart testing method.

[0050] On the other hand, the present invention also proposes a computer-readable storage medium storing computer-readable instructions, which are executed by a processor in an electronic device to implement the flowchart testing method.

[0051] As can be seen from the above technical solutions, this invention matches the process approval list corresponding to the form to be tested through the preset process database. Since the process approval list includes multiple approval processes, that is, the entire form to be tested is split into multiple approval processes, the complexity of the form to be tested can be reduced, which is beneficial to the testing of the form to be tested. By identifying the flow status of each approval process, the source of the approval data can be accurately located based on the flow status, thereby improving the efficiency of obtaining the approval data and improving the testing efficiency of the form to be tested. By detecting whether the approval process is completed, the test coverage of the form to be tested can be ensured, thereby ensuring the test quality of the form to be tested. This invention performs dual testing on the form to be tested through the benchmark approval information and the approval data, thereby improving the accuracy of the form to be tested. Attached Figure Description

[0052] Figure 1 This is a flowchart of a preferred embodiment of the process form testing method of the present invention.

[0053] Figure 2 This is a functional block diagram of a preferred embodiment of the process form testing device of the present invention.

[0054] Figure 3 This is a schematic diagram of the structure of an electronic device that implements the process form testing method of the present invention. Detailed Implementation

[0055] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be described in detail below with reference to the accompanying drawings and specific embodiments.

[0056] like Figure 1 The diagram shown is a flowchart of a preferred embodiment of the flowchart form testing method of the present invention. Depending on different requirements, the order of the steps in this flowchart can be changed, and some steps can be omitted.

[0057] The process form testing method described above can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence (AI) is the theory, method, technology, and application system that uses digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to obtain optimal results.

[0058] Foundational technologies for artificial intelligence generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interactive systems, and mechatronics. AI software technologies mainly encompass computer vision, robotics, biometrics, speech processing, natural language processing, and machine learning / deep learning.

[0059] The process form testing method is applied to one or more electronic devices. The electronic device is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored computer-readable instructions. Its hardware includes, but is not limited to, microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.

[0060] The electronic device can be any electronic product that can interact with the user, such as a personal computer, tablet computer, smartphone, personal digital assistant (PDA), game console, interactive network television (IPTV), smart wearable device, etc.

[0061] The electronic devices may include network devices and / or user devices. The network devices include, but are not limited to, single network electronic devices, groups of multiple network electronic devices, or cloud computing-based systems consisting of a large number of hosts or network electronic devices.

[0062] The network in which the electronic device is located includes, but is not limited to: the Internet, wide area network, metropolitan area network, local area network, virtual private network (VPN), etc.

[0063] S10, When a process form test request is received, obtain the form to be tested according to the process form test request.

[0064] In at least one embodiment of the present invention, the process form test request carries relevant information indicating the test type of the process form test request, and the process form test request also carries user information of the user who triggered the process form test request.

[0065] The form to be tested refers to a form that requires process approval testing. The form to be tested includes field information entered by the triggering user on the triggering device.

[0066] In at least one embodiment of the present invention, the electronic device obtains the form to be tested according to the process form test request, including:

[0067] Parse the message of the process form test request to obtain the data information carried by the message;

[0068] The test type of the process form test request is identified based on the data information;

[0069] Obtain the type form template corresponding to the test type;

[0070] Locate the device that triggered the process form test request;

[0071] Obtain the field information of the triggering user input for the process form test request from the triggering device;

[0072] Write the field information into the form template of the specified type to obtain the form to be tested.

[0073] The data information includes, but is not limited to, type identifiers, etc.

[0074] The test type refers to the type of test that the form to be tested needs to undergo. For example, the test type could be a process test type, etc.

[0075] The triggering device may be the device that generates the process form test request.

[0076] The test type can be accurately identified through the data information, thereby improving the accuracy of obtaining the form template of the type. By locating the triggering device, the field information can be accurately captured from the triggering device, improving the accuracy of the form to be tested. In addition, since there is no need to reconstruct the form template of the type, the generation efficiency of the form to be tested can be improved.

[0077] Specifically, the electronic device that locates the triggering device for the process form test request includes:

[0078] Parse the header of the process form test request to obtain the address information carried in the header;

[0079] The address used to generate the process form test request is extracted from the address information and used as the trigger address. The device corresponding to the trigger address is then identified as the trigger device.

[0080] Specifically, the electronic device obtains the field information of the triggering user input for the process form test request from the triggering device, including:

[0081] Based on the process form test request, the input interface is located from the triggering device;

[0082] The information that triggered the user input is obtained from the input interface and used as the field information.

[0083] The field information can be quickly captured through the input interface.

[0084] S11, Based on the preset process database, a process approval list corresponding to the form to be tested is obtained.

[0085] In at least one embodiment of the present invention, the preset process database stores multiple preset process lists, and each preset process list includes multiple preset process nodes.

[0086] The process approval list refers to a pre-defined process list that matches the form to be tested.

[0087] In at least one embodiment of the present invention, the form to be tested includes form fields, and the electronic device matches a process approval list corresponding to the form to be tested based on a preset process database, including:

[0088] Traverse multiple preset process lists in the preset process database and obtain the process fields of each preset process list;

[0089] Count the number of process fields in each preset process list that match the form fields;

[0090] The preset process list with the largest number of fields is determined as the process approval list.

[0091] Among them, the process fields that match the form fields include process fields whose similarity to the form fields is greater than a preset similarity threshold.

[0092] By counting the number of process fields that match the form fields, the inability to accurately determine the process approval list due to inconsistent field naming can be avoided, thereby improving the accuracy of the process approval list.

[0093] S12, identify the flow status of each approval process in the process approval list.

[0094] In at least one embodiment of the present invention, the process approval list includes multiple approval processes and the approval order of each approval process.

[0095] The workflow status includes incomplete approval and completed approval. Incomplete approval means that the approval process is not yet finished, while completed approval means that the approval process is finished and the approval order can be obtained from the preset approval path.

[0096] In at least one embodiment of the present invention, the electronic device identifies the flow status of each approval process in the process approval list, including:

[0097] Obtain the process identification code for each approval process;

[0098] Call the status query interface to query the process identification code and obtain the identification information corresponding to the process identification code;

[0099] The state that matches the identification information is determined as the flow state.

[0100] The process identification code is used to uniquely identify each approval process.

[0101] The status query interface can be any API (Application Programming Interface).

[0102] The identification information can be a color or other identifier. For example, if the identification information is gray, the process status is "approval not completed"; if the identification information is green or red, the process status is "approval completed".

[0103] The status query interface allows for quick retrieval of the identification information, which in turn enables accurate determination of the process status.

[0104] S13, obtain approval data based on the flow status, and obtain the baseline approval information of the form to be tested.

[0105] In at least one embodiment of the present invention, the approval data refers to the information obtained after the approval process is approved using preset approval rules. The preset approval rules can be any approval rules pre-set by the developer.

[0106] The benchmark approval information includes the approval results of the multiple approval processes. The benchmark approval information may be manually annotated.

[0107] In at least one embodiment of the present invention, the electronic device obtains approval data based on the circulation status, including:

[0108] If the progress status of any of the approval processes is incomplete, then a target approval process adjacent to any of the approval processes is located from the process approval list. The approval order of the target approval process in the process approval list is less than the approval order of any of the approval processes in the process approval list.

[0109] If the process status of the target approval process is "approved", then the approval information corresponding to the target approval process is obtained from the preset approval path.

[0110] Obtain the preset approval rules that match any of the approval processes;

[0111] The preset approval rules are invoked to process the approval information and the field information to obtain the approval data.

[0112] The preset approval path stores approval information corresponding to multiple completed approval processes.

[0113] By combining the approval information to process any of the approval processes, the approval result corresponding to the preset approval rules and any of the approval processes can be accurately determined.

[0114] In at least one embodiment of the present invention, after obtaining approval data based on the circulation status, the method further includes:

[0115] The process status of any of the approval processes is updated, and the correspondence between any of the approval processes and the approval data is stored in the preset approval path.

[0116] In at least one embodiment of the present invention, the electronic device acquires the baseline approval information of the form to be tested, including:

[0117] Locate the page for viewing approval comments;

[0118] Obtain the form identification code and form name of the form to be tested;

[0119] The information corresponding to the form identification code and the form name is obtained from the approval opinion viewing page and used as the baseline approval information.

[0120] The baseline approval information can be quickly obtained through the approval opinion viewing page.

[0121] Specifically, the electronic device locates the approval opinion viewing page based on the selenium element.

[0122] The Selenium element allows you to quickly locate the page for viewing the approval comments.

[0123] S14, compare the approval data with the benchmark approval information to obtain the test results.

[0124] In at least one embodiment of the present invention, the test results include both the same and different results.

[0125] In at least one embodiment of the present invention, the electronic device compares the approval data with the benchmark approval information to obtain test results including:

[0126] Compare the approval data for each approval process with the corresponding baseline approval information;

[0127] If the approval data for each approval process is the same as the corresponding baseline approval information, then the test result is determined to be the same; or

[0128] If the approval data for each approval process differs from the corresponding baseline approval information, then the test result is determined to be different.

[0129] S15, based on the test results, check whether all approval processes in the process approval list have completed the test.

[0130] In at least one embodiment of the present invention, the electronic device detects whether all approval processes in the process approval list have completed the test based on the test results, including:

[0131] Check whether each approval process has corresponding test results;

[0132] If each approval process has a corresponding test result, then it is determined that all approval processes in the process approval list have completed the test; or

[0133] If none of the aforementioned approval processes have corresponding test results, then it is determined that there are approval processes in the approval process list that have not completed testing.

[0134] In at least one embodiment of the present invention, when there are approval processes in the process approval list that have not completed testing, the electronic device tests the approval processes that have not completed testing until all approval processes in the process approval list have completed testing.

[0135] S16, when it is detected that all approval processes in the process approval list have completed testing, a test report for the form to be tested is generated based on the test results.

[0136] It should be emphasized that, to further ensure the privacy and security of the above test reports, the test reports can also be stored in a blockchain node.

[0137] In at least one embodiment of the present invention, the test report refers to the test result of the form to be tested.

[0138] In at least one embodiment of the present invention, the electronic device generates a test report for the form to be tested based on the test results, including:

[0139] Establish the correspondence between the process identification code and the test result;

[0140] The corresponding relationship is written into a preset report template to obtain the test report.

[0141] The preset report template can improve the efficiency of test report generation.

[0142] In this embodiment, by comparing the approval data generated by the preset approval rules with the benchmark information, it is possible to test whether the preset approval rules are applicable to the process form of the test type, thereby enabling timely adjustment of the preset approval rules and improving their accuracy.

[0143] As can be seen from the above technical solutions, this invention matches the process approval list corresponding to the form to be tested through the preset process database. Since the process approval list includes multiple approval processes, that is, the entire form to be tested is split into multiple approval processes, the complexity of the form to be tested can be reduced, which is beneficial to the testing of the form to be tested. By identifying the flow status of each approval process, the source of the approval data can be accurately located based on the flow status, thereby improving the efficiency of obtaining the approval data and improving the testing efficiency of the form to be tested. By detecting whether the approval process is completed, the test coverage of the form to be tested can be ensured, thereby ensuring the test quality of the form to be tested. This invention performs dual testing on the form to be tested through the benchmark approval information and the approval data, thereby improving the accuracy of the form to be tested.

[0144] like Figure 2 The diagram shown is a functional block diagram of a preferred embodiment of the flowchart testing device of the present invention. The flowchart testing device 11 includes an acquisition unit 110, a matching unit 111, an identification unit 112, a comparison unit 113, a detection unit 114, a generation unit 115, and a storage unit 116. The module / unit referred to in this invention refers to a series of computer-readable instruction segments that can be acquired by the processor 13 and perform a fixed function, and are stored in the memory 12. In this embodiment, the functions of each module / unit will be described in detail in subsequent embodiments.

[0145] When a process form test request is received, the acquisition unit 110 acquires the form to be tested according to the process form test request.

[0146] In at least one embodiment of the present invention, the process form test request carries relevant information indicating the test type of the process form test request, and the process form test request also carries user information of the user who triggered the process form test request.

[0147] The form to be tested refers to a form that requires process approval testing. The form to be tested includes field information entered by the triggering user on the triggering device.

[0148] In at least one embodiment of the present invention, the acquisition unit 110 acquires the form to be tested according to the process form test request, including:

[0149] Parse the message of the process form test request to obtain the data information carried by the message;

[0150] The test type of the process form test request is identified based on the data information;

[0151] Obtain the type form template corresponding to the test type;

[0152] Locate the device that triggered the process form test request;

[0153] Obtain the field information of the triggering user input for the process form test request from the triggering device;

[0154] Write the field information into the form template of the specified type to obtain the form to be tested.

[0155] The data information includes, but is not limited to, type identifiers, etc.

[0156] The test type refers to the type of test that the form to be tested needs to undergo. For example, the test type could be a process test type, etc.

[0157] The triggering device may be the device that generates the process form test request.

[0158] The test type can be accurately identified through the data information, thereby improving the accuracy of obtaining the form template of the type. By locating the triggering device, the field information can be accurately captured from the triggering device, improving the accuracy of the form to be tested. In addition, since there is no need to reconstruct the form template of the type, the generation efficiency of the form to be tested can be improved.

[0159] Specifically, the acquisition unit 110 locates the triggering device for the process form test request, including:

[0160] Parse the header of the process form test request to obtain the address information carried in the header;

[0161] The address used to generate the process form test request is extracted from the address information and used as the trigger address. The device corresponding to the trigger address is then identified as the trigger device.

[0162] Specifically, the acquisition unit 110 acquires the field information of the triggering user input for the process form test request from the triggering device, including:

[0163] Based on the process form test request, the input interface is located from the triggering device;

[0164] The information that triggered the user input is obtained from the input interface and used as the field information.

[0165] The field information can be quickly captured through the input interface.

[0166] The matching unit 111 matches the process approval list corresponding to the form to be tested based on the preset process database.

[0167] In at least one embodiment of the present invention, the preset process database stores multiple preset process lists, and each preset process list includes multiple preset process nodes.

[0168] The process approval list refers to a pre-defined process list that matches the form to be tested.

[0169] In at least one embodiment of the present invention, the form to be tested includes form fields, and the matching unit 111 matches the process approval list corresponding to the form to be tested based on a preset process database, including:

[0170] Traverse multiple preset process lists in the preset process database and obtain the process fields of each preset process list;

[0171] Count the number of process fields in each preset process list that match the form fields;

[0172] The preset process list with the largest number of fields is determined as the process approval list.

[0173] Among them, the process fields that match the form fields include process fields whose similarity to the form fields is greater than a preset similarity threshold.

[0174] By counting the number of process fields that match the form fields, the inability to accurately determine the process approval list due to inconsistent field naming can be avoided, thereby improving the accuracy of the process approval list.

[0175] The identification unit 112 identifies the flow status of each approval process in the process approval list.

[0176] In at least one embodiment of the present invention, the process approval list includes multiple approval processes and the approval order of each approval process.

[0177] The workflow status includes incomplete approval and completed approval. Incomplete approval means that the approval process is not yet finished, while completed approval means that the approval process is finished and the approval order can be obtained from the preset approval path.

[0178] In at least one embodiment of the present invention, the identification unit 112 identifies the flow status of each approval process in the process approval list, including:

[0179] Obtain the process identification code for each approval process;

[0180] Call the status query interface to query the process identification code and obtain the identification information corresponding to the process identification code;

[0181] The state that matches the identification information is determined as the flow state.

[0182] The process identification code is used to uniquely identify each approval process.

[0183] The status query interface can be any API (Application Programming Interface).

[0184] The identification information can be a color or other identifier. For example, if the identification information is gray, the process status is "approval not completed"; if the identification information is green or red, the process status is "approval completed".

[0185] The status query interface allows for quick retrieval of the identification information, which in turn enables accurate determination of the process status.

[0186] The acquisition unit 110 acquires approval data based on the flow status and acquires the baseline approval information of the form to be tested.

[0187] In at least one embodiment of the present invention, the approval data refers to the information obtained after the approval process is approved using preset approval rules. The preset approval rules can be any approval rules pre-set by the developer.

[0188] The benchmark approval information includes the approval results of the multiple approval processes. The benchmark approval information may be manually annotated.

[0189] In at least one embodiment of the present invention, the acquisition unit 110 acquires approval data according to the circulation status, including:

[0190] If the progress status of any of the approval processes is incomplete, then a target approval process adjacent to any of the approval processes is located from the process approval list. The approval order of the target approval process in the process approval list is less than the approval order of any of the approval processes in the process approval list.

[0191] If the process status of the target approval process is "approved", then the approval information corresponding to the target approval process is obtained from the preset approval path.

[0192] Obtain the preset approval rules that match any of the approval processes;

[0193] The preset approval rules are invoked to process the approval information and the field information to obtain the approval data.

[0194] The preset approval path stores approval information corresponding to multiple completed approval processes.

[0195] By combining the approval information to process any of the approval processes, the approval result corresponding to the preset approval rules and any of the approval processes can be accurately determined.

[0196] In at least one embodiment of the present invention, the storage unit 116 updates the process status of any of the approval processes and stores the correspondence between the approval processes and the approval data in the preset approval path.

[0197] In at least one embodiment of the present invention, the acquisition unit 110 acquires the baseline approval information of the form to be tested, including:

[0198] Locate the page for viewing approval comments;

[0199] Obtain the form identification code and form name of the form to be tested;

[0200] The information corresponding to the form identification code and the form name is obtained from the approval opinion viewing page and used as the baseline approval information.

[0201] The baseline approval information can be quickly obtained through the approval opinion viewing page.

[0202] Specifically, the acquisition unit 110 locates the approval opinion viewing page based on the selenium element.

[0203] The Selenium element allows you to quickly locate the page for viewing the approval comments.

[0204] The comparison unit 113 compares the approval data with the benchmark approval information to obtain the test results.

[0205] In at least one embodiment of the present invention, the test results include both the same and different results.

[0206] In at least one embodiment of the present invention, the comparison unit 113 compares the approval data with the benchmark approval information to obtain test results including:

[0207] Compare the approval data for each approval process with the corresponding baseline approval information;

[0208] If the approval data for each approval process is the same as the corresponding baseline approval information, then the test result is determined to be the same; or

[0209] If the approval data for each approval process differs from the corresponding baseline approval information, then the test result is determined to be different.

[0210] The detection unit 114 detects whether all approval processes in the process approval list have completed the test based on the test results.

[0211] In at least one embodiment of the present invention, the detection unit 114 detects whether all approval processes in the process approval list have completed the test based on the test results, including:

[0212] Check whether each approval process has corresponding test results;

[0213] If each approval process has a corresponding test result, then it is determined that all approval processes in the process approval list have completed the test; or

[0214] If none of the aforementioned approval processes have corresponding test results, then it is determined that there are approval processes in the approval process list that have not completed testing.

[0215] In at least one embodiment of the present invention, when there are approval processes in the process approval list that have not completed testing, the comparison unit 113 tests the approval processes that have not completed testing until all approval processes in the process approval list have completed testing.

[0216] When it is detected that all approval processes in the process approval list have completed testing, the generation unit 115 generates a test report for the form to be tested based on the test results.

[0217] It should be emphasized that, to further ensure the privacy and security of the above test reports, the test reports can also be stored in a blockchain node.

[0218] In at least one embodiment of the present invention, the test report refers to the test result of the form to be tested.

[0219] In at least one embodiment of the present invention, the generation unit 115 generates a test report for the form to be tested based on the test results, including:

[0220] Establish the correspondence between the process identification code and the test result;

[0221] The corresponding relationship is written into a preset report template to obtain the test report.

[0222] The preset report template can improve the efficiency of test report generation.

[0223] In this embodiment, by comparing the approval data generated by the preset approval rules with the benchmark information, it is possible to test whether the preset approval rules are applicable to the process form of the test type, thereby enabling timely adjustment of the preset approval rules and improving their accuracy.

[0224] As can be seen from the above technical solutions, this invention matches the process approval list corresponding to the form to be tested through the preset process database. Since the process approval list includes multiple approval processes, that is, the entire form to be tested is split into multiple approval processes, the complexity of the form to be tested can be reduced, which is beneficial to the testing of the form to be tested. By identifying the flow status of each approval process, the source of the approval data can be accurately located based on the flow status, thereby improving the efficiency of obtaining the approval data and improving the testing efficiency of the form to be tested. By detecting whether the approval process is completed, the test coverage of the form to be tested can be ensured, thereby ensuring the test quality of the form to be tested. This invention performs dual testing on the form to be tested through the benchmark approval information and the approval data, thereby improving the accuracy of the form to be tested.

[0225] like Figure 3 The diagram shown is a schematic representation of the structure of an electronic device that implements the process form testing method of the present invention.

[0226] In one embodiment of the present invention, the electronic device 1 includes, but is not limited to, a memory 12, a processor 13, and computer-readable instructions stored in the memory 12 and executable on the processor 13, such as a flowchart test program.

[0227] Those skilled in the art will understand that the schematic diagram is merely an example of electronic device 1 and does not constitute a limitation on electronic device 1. It may include more or fewer components than shown in the diagram, or combine certain components, or different components. For example, electronic device 1 may also include input / output devices, network access devices, buses, etc.

[0228] The processor 13 can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor. The processor 13 is the computing core and control center of the electronic device 1, connecting various parts of the electronic device 1 through various interfaces and lines, and executing the operating system of the electronic device 1, as well as various installed application programs and program code.

[0229] For example, the computer-readable instructions can be divided into one or more modules / units, which are stored in the memory 12 and executed by the processor 13 to complete the present invention. The one or more modules / units can be a series of computer-readable instruction segments capable of performing a specific function, which describe the execution process of the computer-readable instructions in the electronic device 1. For example, the computer-readable instructions can be divided into an acquisition unit 110, a matching unit 111, an identification unit 112, a comparison unit 113, a detection unit 114, a generation unit 115, and a storage unit 116.

[0230] The memory 12 can be used to store the computer-readable instructions and / or modules. The processor 13 implements various functions of the electronic device 1 by running or executing the computer-readable instructions and / or modules stored in the memory 12 and calling the data stored in the memory 12. The memory 12 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. The memory 12 may include non-volatile and volatile memory, such as: hard disk, memory, plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, at least one disk storage device, flash memory device, or other storage devices.

[0231] The memory 12 can be the external memory and / or internal memory of the electronic device 1. Furthermore, the memory 12 can be a physical memory, such as a memory module, a TF card (Trans-flash Card), etc.

[0232] If the modules / units integrated in the electronic device 1 are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of the present invention can also be implemented by instructing related hardware through computer-readable instructions. The computer-readable instructions can be stored in a computer-readable storage medium, and when executed by a processor, the computer-readable instructions can implement the steps of the various method embodiments described above.

[0233] The computer-readable instructions include computer-readable instruction code, which may be in the form of source code, object code, executable file, or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer-readable instruction code, recording medium, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), and random access memory (RAM).

[0234] The blockchain referred to in this invention is a novel application model of computer technologies such as distributed process form testing, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. Essentially, a blockchain is a decentralized database, a chain of data blocks linked together using cryptographic methods. Each data block contains information about a batch of network transactions, used to verify the validity of the information (anti-counterfeiting) and generate the next block. A blockchain can include an underlying blockchain platform, a platform product service layer, and an application service layer.

[0235] Combination Figure 1 The memory 12 in the electronic device 1 stores computer-readable instructions to implement a flowchart testing method, and the processor 13 can execute the computer-readable instructions to achieve the following:

[0236] When a process form test request is received, the form to be tested is obtained according to the process form test request;

[0237] Based on a preset process database, a process approval list corresponding to the form to be tested is generated;

[0238] Identify the progress status of each approval process in the process approval list;

[0239] Based on the flow status, obtain the approval data and the baseline approval information of the form to be tested;

[0240] The test results are obtained by comparing the approval data with the benchmark approval information;

[0241] Based on the test results, check whether all approval processes in the process approval list have completed the test;

[0242] When it is detected that all approval processes in the process approval list have completed testing, a test report for the form to be tested is generated based on the test results.

[0243] Specifically, the specific implementation method of the processor 13 for the above-mentioned computer-readable instructions can be found in [reference needed]. Figure 1 The descriptions of the relevant steps in the corresponding embodiments are not repeated here.

[0244] In the several embodiments provided by this invention, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and other division methods may be used in actual implementation.

[0245] The computer-readable storage medium stores computer-readable instructions, which, when executed by the processor 13, are used to perform the following steps:

[0246] When a process form test request is received, the form to be tested is obtained according to the process form test request;

[0247] Based on a preset process database, a process approval list corresponding to the form to be tested is generated;

[0248] Identify the progress status of each approval process in the process approval list;

[0249] Based on the flow status, obtain the approval data and the baseline approval information of the form to be tested;

[0250] The test results are obtained by comparing the approval data with the benchmark approval information;

[0251] Based on the test results, check whether all approval processes in the process approval list have completed the test;

[0252] When it is detected that all approval processes in the process approval list have completed testing, a test report for the form to be tested is generated based on the test results.

[0253] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0254] Furthermore, the functional modules in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in the form of hardware plus software functional modules.

[0255] Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description. Thus, all variations falling within the meaning and scope of equivalents of the claims are intended to be embraced within the invention. No appended diagram markings in the claims should be construed as limiting the scope of the claims.

[0256] Furthermore, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. The multiple units or devices described may also be implemented by a single unit or device through software or hardware. Terms such as "first," "second," etc., are used to indicate names and do not indicate any specific order.

[0257] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims

1. A method for testing process forms, characterized in that, The process form testing method includes: When a process form test request is received, the form to be tested is obtained according to the process form test request; Based on a preset process database, a process approval list corresponding to the form to be tested is generated; Identify the progress status of each approval process in the process approval list; Obtaining approval data based on the workflow status includes: if the workflow status of any approval process in the workflow approval list is "incomplete approval", then locating a target approval process adjacent to the "incomplete approval" process from the workflow approval list, wherein the approval order of the target approval process in the workflow approval list is lower than the approval order of the "incomplete approval" process in the workflow approval list; if the workflow status of the target approval process is "complete approval", then obtaining the approval information corresponding to the target approval process from a preset approval path, wherein the preset approval path stores the approval information corresponding to multiple completed approval processes; obtaining a preset approval rule matching the "incomplete approval" process; and calling the preset approval rule to process the approval information and the field information triggered by the user input of the workflow form test request to obtain the approval data. The baseline approval information of the form to be tested is obtained, including: locating the approval opinion viewing page based on the Selenium element; obtaining the form identification code and form name of the form to be tested; and obtaining information corresponding to the form identification code and form name from the approval opinion viewing page as the baseline approval information. The test results are obtained by comparing the approval data with the benchmark approval information; Based on the test results, check whether all approval processes in the process approval list have completed the test; When it is detected that all approval processes in the process approval list have completed testing, a test report for the form to be tested is generated based on the test results.

2. The process form testing method as described in claim 1, characterized in that, The step of obtaining the form to be tested according to the process form test request includes: Parse the message of the process form test request to obtain the data information carried by the message; The test type of the process form test request is identified based on the data information; Obtain the type form template corresponding to the test type; Locate the device that triggered the process form test request; Obtain the field information of the triggering user input from the triggering device; Write the field information into the form template of the specified type to obtain the form to be tested.

3. The process form testing method as described in claim 1, characterized in that, The form to be tested includes form fields, and the process approval list corresponding to the form to be tested, matched based on a preset process database, includes: Traverse multiple preset process lists in the preset process database and obtain the process fields of each preset process list; Count the number of process fields in each preset process list that match the form fields; The preset process list with the largest number of fields is determined as the process approval list.

4. The process form testing method as described in claim 1, characterized in that, The identification of the flow status of each approval process in the process approval list includes: Obtain the process identification code for each approval process; Call the status query interface to query the process identification code and obtain the identification information corresponding to the process identification code; The state that matches the identification information is determined as the flow state.

5. The process form testing method as described in claim 4, characterized in that, The step of generating a test report for the form to be tested based on the test results includes: Establish the correspondence between the process identification code and the test result; The corresponding relationship is written into a preset report template to obtain the test report.

6. A process form testing device, characterized in that, The process form testing device includes: The acquisition unit is used to acquire the form to be tested according to the process form test request when a process form test request is received. The matching unit is used to match the process approval list corresponding to the form to be tested based on a preset process database. The identification unit is used to identify the flow status of each approval process in the process approval list; The acquisition unit is further configured to acquire approval data based on the workflow status, including: if the workflow status of any approval process in the workflow approval list is incomplete, then locate a target approval process adjacent to the incomplete approval process from the workflow approval list, wherein the approval order of the target approval process in the workflow approval list is less than the approval order of the incomplete approval process in the workflow approval list; if the workflow status of the target approval process is completed, then acquire the approval information corresponding to the target approval process from a preset approval path, wherein the preset approval path stores the approval information corresponding to multiple completed approval processes; acquire a preset approval rule matching the incomplete approval process; and call the preset approval rule to process the approval information and the field information triggered by the user input of the workflow form test request to obtain the approval data. The baseline approval information of the form to be tested is obtained, including: locating the approval opinion viewing page based on the Selenium element; obtaining the form identification code and form name of the form to be tested; and obtaining information corresponding to the form identification code and form name from the approval opinion viewing page as the baseline approval information. The comparison unit is used to compare the approval data with the benchmark approval information to obtain test results; The detection unit is used to detect whether all approval processes in the process approval list have completed the test based on the test results; The generation unit is used to generate a test report for the form to be tested based on the test results when it is detected that all approval processes in the process approval list have completed testing.

7. An electronic device, characterized in that, The electronic device includes: Memory, which stores computer-readable instructions; and The processor executes computer-readable instructions stored in the memory to implement the flowchart testing method as described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions that are executed by a processor in an electronic device to implement the flowchart testing method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Data processing method based on information identification technology and related device

    CN110264288A

  • Self-service system docking case guiding test method

    CN111104329A

  • Form filling method and device, equipment and medium

    CN112765944A

  • Process test method and process test system

    CN113360365A