A testing method and device for approval workflow

By sorting the access frequency of links and roles in the approval workflow, determining the target links and roles, and carrying out targeted test cases, the problem of excessive and omissions of test cases in the existing technology is solved, and efficient test coverage and resource conservation is achieved.

CN114490379BActive Publication Date: 2025-04-11INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210084844.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-25
Publication Date
2025-04-11
Estimated Expiration
2042-01-25

AI Technical Summary

Technical Problem

In the existing test methods for approval workflows, there are problems such as excessive test cases, increasing the workload and time consumption of testers, and at the same time, key testing links may be missed, resulting in hidden dangers in subsequent use.

Method used

By determining the access frequency of each approval link and role in the work approval flow, sorting it in the order of frequency from high to low, obtaining the target approval link and role, determining the corresponding test cases, and conducting tests, reducing the number of test cases, and ensuring the test coverage of key links and roles.

Benefits of technology

It reduces the number of test cases, reduces the workload of testers, reduces system resource consumption, and ensures the smooth progress of the approval workflow, avoiding test omissions in key links and roles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114490379B_ABST
    Figure CN114490379B_ABST
Patent Text Reader

Abstract

The present invention provides a testing method and device for an approval workflow, which relates to the field of data processing technology and can be used in the financial field or other technical fields. The method comprises: determining the first access frequency of each approval link in the work approval flow, sorting each first access frequency in order from high to low according to the first access frequency, and obtaining a first sorting result; determining the target approval link for obtaining the approval role according to the first sorting result, determining the second access frequency of each approval role in the target approval link, sorting each second access frequency in order from high to low according to the second access frequency, and obtaining a second sorting result; determining the target approval role to be tested according to the second sorting result, determining the test case corresponding to the target approval role, and testing the test case. The device executes the above method. The method and device provided by the embodiment of the present invention ensure that the use process of the approval workflow proceeds smoothly.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a testing method and device for approval workflow. Background Art

[0002] Organizations such as enterprises are characterized by scale and complex approval processes, which makes testing of approval workflows particularly important.

[0003] Some existing testing methods for approval workflows conduct comprehensive testing on all test links, resulting in too many test cases, increasing the workload of testers, and wasting time and system resources. Some existing testing methods for approval workflows also miss some key test links, bringing hidden dangers to the subsequent use of approval workflows. Summary of the invention

[0004] In view of the problems in the prior art, an embodiment of the present invention provides a method and device for testing an approval workflow, which can at least partially solve the problems in the prior art.

[0005] In one aspect, the present invention provides a testing method for an approval workflow, comprising:

[0006] Determine the first access frequency of each approval link in the work approval flow, sort the first access frequencies in descending order of the first access frequencies, and obtain a first sorting result;

[0007] Determine the target approval link for obtaining the approval role according to the first sorting result, determine the second access frequency of each approval role in the target approval link, sort the second access frequencies in descending order of the second access frequencies, and obtain a second sorting result;

[0008] The target approval role to be tested is determined according to the second sorting result, the test case corresponding to the target approval role is determined, and the test case is tested.

[0009] The determining of the first access frequency of each approval link in the work approval flow and sorting the first access frequencies in descending order of the first access frequencies include:

[0010] Calculate the first visit frequency ratio corresponding to each approval link according to the first visit frequency;

[0011] The first access frequencies are sorted in descending order according to the first access frequency proportion.

[0012] The determining of the second access frequency of each approval role in the target approval link and sorting the second access frequencies in descending order of the second access frequencies include:

[0013] Calculate the proportion of the second access frequency corresponding to each approval role according to the second access frequency;

[0014] The second access frequencies are sorted in descending order according to the second access frequency proportion.

[0015] Wherein, the weights corresponding to the respective approval roles are determined; accordingly, the testing method of the approval workflow further includes:

[0016] A first calculation result of the second access frequency proportion and the corresponding weight is obtained, and the second access frequencies are sorted in descending order according to the first calculation result.

[0017] The testing method of the approval workflow further includes:

[0018] Determine the third access frequency of each approval role in the work approval flow, sort the third access frequencies in descending order of the third access frequency, and obtain a third sorting result;

[0019] The approval roles to be selected are determined according to the third sorting result, and the approval roles not included in the target approval roles are selected from the approval roles to be selected, and the approval roles not included in the target approval roles are added to obtain the updated target approval roles.

[0020] The determining of the third access frequency of each approval role in the work approval flow and sorting the third access frequencies in descending order of the third access frequencies includes:

[0021] Calculate the third access frequency ratio corresponding to each approval role according to the third access frequency;

[0022] The third access frequencies are sorted in descending order according to the third access frequency proportion.

[0023] Wherein, the weights corresponding to the respective approval roles are determined; accordingly, the testing method of the approval workflow further includes:

[0024] A second calculation result of the third access frequency proportion and the corresponding weight is obtained, and the third access frequencies are sorted in descending order according to the second calculation result.

[0025] In one aspect, the present invention provides a testing device for approval workflow, comprising:

[0026] A first sorting unit is used to determine the first access frequency of each approval link in the work approval flow, and sort the first access frequencies in descending order of the first access frequencies to obtain a first sorting result;

[0027] A second sorting unit is used to determine a target approval link for obtaining the approval role according to the first sorting result, determine the second access frequency of each approval role in the target approval link, and sort the second access frequencies in descending order of the second access frequencies to obtain a second sorting result;

[0028] The testing unit is used to determine the target approval role to be tested according to the second sorting result, determine the test case corresponding to the target approval role, and test the test case.

[0029] In another aspect, an embodiment of the present invention provides an electronic device, including: a processor, a memory, and a bus, wherein:

[0030] The processor and the memory communicate with each other via the bus;

[0031] The memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the following method:

[0032] Determine the first access frequency of each approval link in the work approval flow, sort the first access frequencies in descending order of the first access frequencies, and obtain a first sorting result;

[0033] Determine the target approval link for obtaining the approval role according to the first sorting result, determine the second access frequency of each approval role in the target approval link, sort the second access frequencies in descending order of the second access frequencies, and obtain a second sorting result;

[0034] The target approval role to be tested is determined according to the second sorting result, the test case corresponding to the target approval role is determined, and the test case is tested.

[0035] An embodiment of the present invention provides a non-transitory computer-readable storage medium, including:

[0036] The non-transitory computer-readable storage medium stores computer instructions, which cause the computer to execute the following method:

[0037] Determine the first access frequency of each approval link in the work approval flow, sort the first access frequencies in descending order of the first access frequencies, and obtain a first sorting result;

[0038] Determine the target approval link for obtaining the approval role according to the first sorting result, determine the second access frequency of each approval role in the target approval link, sort the second access frequencies in descending order of the second access frequencies, and obtain a second sorting result;

[0039] The target approval role to be tested is determined according to the second sorting result, the test case corresponding to the target approval role is determined, and the test case is tested.

[0040] The testing method and device of the approval workflow provided by the embodiment of the present invention determine the first access frequency of each approval link in the work approval flow, sort the first access frequencies in descending order according to the first access frequencies, and obtain a first sorting result; determine the target approval link for obtaining the approval role according to the first sorting result, determine the second access frequency of each approval role in the target approval link, sort the second access frequencies in descending order according to the second access frequency, and obtain a second sorting result; determine the target approval role to be tested according to the second sorting result, determine the test case corresponding to the target approval role, and test the test case. By determining the test case corresponding to the key approval role in the key approval link and testing these test cases, it is not necessary to determine all the test cases corresponding to all the approval roles in all the approval links, thereby reducing the number of test cases, alleviating the workload of testers, and reducing the consumption of time and system resources. In addition, no test case corresponding to the key approval role in the key approval link is omitted, thereby ensuring the smooth use of the approval workflow. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0042] Figure 1 The figure is a flowchart of a method for testing an approval workflow provided by an embodiment of the present invention.

[0043] Figure 2 It is a structural schematic diagram of a testing device for approval workflow provided by an embodiment of the present invention.

[0044] Figure 3 A schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention. It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other arbitrarily.

[0046] Figure 1 FIG. 1 is a flow chart of a method for testing an approval workflow provided by an embodiment of the present invention. Figure 1 As shown, the testing method of the approval workflow provided by the embodiment of the present invention includes:

[0047] Step S1: determining the first access frequency of each approval link in the work approval flow, and sorting the first access frequencies in descending order of the first access frequencies to obtain a first sorting result.

[0048] Step S2: Determine the target approval link for obtaining the approval role according to the first sorting result, determine the second access frequency of each approval role in the target approval link, sort the second access frequencies in descending order of the second access frequencies, and obtain a second sorting result.

[0049] Step S3: Determine the target approval role to be tested according to the second sorting result, determine the test case corresponding to the target approval role, and test the test case.

[0050] In the above step S1, the device determines the first access frequency of each approval link in the work approval flow, sorts each first access frequency in descending order of the first access frequency, and obtains a first sorting result. The device can be a computer device that executes the method, etc. It should be noted that the work approval flow related data involved in the embodiment of the present invention are all authorized by the user. The first access frequency of each approval link in the work approval flow can be determined by obtaining log information. Taking the data of the past month as an example, the first access frequencies corresponding to the approval links X1 to X5 are recorded as x1 to x5, and the first sorting results are x3, x2, x5, x4 and x1.

[0051] In the above step S2, the device determines the target approval link for obtaining the approval role according to the first sorting result, determines the second access frequency of each approval role in the target approval link, and sorts each second access frequency in descending order of the second access frequency to obtain the second sorting result. The top P approval links in the first sorting result can be selected as the target approval links, where P can be selected as 3. Referring to the above example, the target approval links are x3, x2, and x5. Taking the case where the approval roles corresponding to each approval link are the same as an example, the following description is given:

[0052] The approval roles corresponding to x3 are Y31~Y33, which can correspond to ordinary staff, department heads and financial heads of x3 respectively, and the corresponding second access frequencies are y31~y33. If the order of the second access frequencies from high to low is also the above order, the second sorting result is y31~y33.

[0053] The approval roles corresponding to x2 are Y21~Y23, which can correspond to ordinary staff, department heads and financial heads of x2 respectively, and the corresponding second access frequencies are y21~y23. If the order of sorting from high to low according to the second access frequency is also the above order, the second sorting result is y21~y23.

[0054] The approval roles corresponding to x5 are Y51~Y53, which can correspond to ordinary staff, department heads and financial heads of x5 respectively, and the corresponding second access frequencies are y51~y53. If the order of sorting from high to low according to the second access frequency is also the above order, the second sorting result is y51~y53.

[0055] In the above step S3, the device determines the target approval role to be tested according to the second sorting result, determines the test case corresponding to the target approval role, and tests the test case. The top Q approval roles in the second sorting result can be selected as the target approval roles, Q can be selected as 2, and referring to the above example, the target approval roles are y31, y32, y21, y22, y51 and y52.

[0056] Determine the test cases corresponding to y31, y32, y21, y22, y51 and y52 respectively, and test the test cases. Determine the test cases and test the test cases are conventional methods in the art, and the embodiments of the present invention will not be described in detail.

[0057] The testing method of the approval workflow provided by the embodiment of the present invention determines the first access frequency of each approval link in the work approval flow, sorts each first access frequency in descending order of the first access frequency, and obtains a first sorting result; determines the target approval link for obtaining the approval role according to the first sorting result, determines the second access frequency of each approval role in the target approval link, sorts each second access frequency in descending order of the second access frequency, and obtains a second sorting result; determines the target approval role to be tested according to the second sorting result, determines the test case corresponding to the target approval role, and tests the test case. By determining the test case corresponding to the key approval role in the key approval link and testing these test cases, it is not necessary to determine all the test cases corresponding to all the approval roles in all the approval links, thereby reducing the number of test cases, alleviating the workload of testers, and reducing the consumption of time and system resources. In addition, no test case corresponding to the key approval role in the key approval link is omitted, thereby ensuring the smooth use of the approval workflow.

[0058] Furthermore, the determining of the first access frequency of each approval link in the work approval flow and sorting the first access frequencies in descending order of the first access frequencies includes:

[0059] The first access frequency ratio corresponding to each approval link is calculated according to the first access frequency; referring to the above example, the first access frequency ratio corresponding to X1 is x1 / (x1+x2+x3+x4+x5); the calculation process of the first access frequency ratios corresponding to X2~X5 will not be repeated.

[0060] The first access frequencies are sorted in descending order of the first access frequency proportion. It is understandable that the order of the first access frequency proportion from high to low and the order of the first access frequency from high to low have no effect on the first sorting result, referring to the above examples, which are x3 / (x1+x2+x3+x4+x5), x2 / (x1+x2+x3+x4+x5) and x5 / (x1+x2+x3+x4+x5).

[0061] Furthermore, the determining of the second access frequency of each approval role in the target approval link and sorting the second access frequencies in descending order of the second access frequencies include:

[0062] Calculate the proportion of the second access frequency corresponding to each approval role according to the second access frequency;

[0063] The second access frequencies are sorted in descending order according to the second access frequency ratio. Please refer to the description of the first access frequency ratio above, and no further description is given. The second sorting result is:

[0064] For X3: y31 / (y31+y32+y33), y32 / (y31+y32+y33) and y33 / (y31+y32+y33).

[0065] For X2: y21 / (y21+y22+y23), y22 / (y21+y22+y23) and y23 / (y21+y22+y23).

[0066] For X5: y51 / (y51+y52+y53), y52 / (y51+y52+y53) and y53 / (y51+y52+y53).

[0067] Furthermore, the weights corresponding to the respective approval roles are determined; accordingly, the testing method of the approval workflow further includes:

[0068] Obtain the first calculation result of the second access frequency ratio and the corresponding weights, and sort the second access frequencies in descending order according to the first calculation result. The weights corresponding to the three types of approval roles are denoted as W1 to W3, and the weight values are W1 < W2 < W3. The weight corresponding to y31 / (y31 + y32 + y33) is W31; the weight corresponding to y32 / (y31 + y32 + y33) is W32; the weight corresponding to y33 / (y31 + y32 + y33) is W33. The above W31, W32, and W33 are equal to the corresponding values of W1, W2, and W3. Similarly, W21, W22, and W23, etc. are equal to the corresponding values of W1, W2, and W3. The first calculation result is:

[0069] y31 / (y31 + y32 + y33) × W31; y32 / (y31 + y32 + y33) × W32; y33 / (y31 + y32 + y33) × W33; It should be noted that although y31 / (y31 + y32 + y33) > y33 / (y31 + y32 + y33), but W31 < W33. Therefore, it is possible that y31 / (y31 + y32 + y33) × W31 > y33 / (y31 + y32 + y33) × W33; it is also possible that y31 / (y31 + y32 + y33) × W31 < y33 / (y31 + y32 + y33) × W33.

[0070] If it is the former, the previous sorting result remains unchanged; if it is the latter, the previous sorting result is changed. For example, if y31 / (y31 + y32 + y33) × W31 < y33 / (y31 + y32 + y33) × W33 and y31 / (y31 + y32 + y33) × W31 > y32 / (y31 + y32 + y33) × W32, then the sorting result of the second access frequencies in descending order according to the first calculation result is y33 / (y31 + y32 + y33) × W33, y31 / (y31 + y32 + y33) × W31, and y32 / (y31 + y32 + y33) × W32.

[0071] Furthermore, the test method of the approval workflow further includes:

[0072] Determine the third access frequency of each approval role in the work approval flow, and sort the third access frequencies in descending order to obtain the third sorting result; It should be noted that the method of determining test cases based on sorting by approval role on the basis of sorting in the approval link has the following defects:

[0073] A special case may be overlooked. For example, there is an approval role with a high access frequency in a non-target approval process. For example, in approval process X4, although x4 is less than x5, this is because y41 + y42 + y43 < y51 + y52 + y53 in x4, but the access frequency of y41 is high and may be greater than any one of y51, y52, and y53.

[0074] Determine the third access frequencies y11~y13, y21~y23, y31~y33, y41~y43, and y51~y53. The third sorting result is y31~y33, y21~y23, y41, y51~y53, y11…….

[0075] Determine the candidate approval roles according to the third sorting result, select the approval roles that do not exist in the target approval roles from the candidate approval roles, and add the non-existent approval roles to the target approval roles to obtain the updated target approval roles. The top M approval roles in the third sorting result can be selected as the candidate approval roles. M can be selected as 10. Then the candidate approval roles are y31~y33, y21~y23, y41, y51~y53. The above target approval roles are y31, y32, y21, y22, y51, and y52. Among them, y33, y23, y41, and y53 do not exist. The updated target approval roles are y31, y32, y21, y22, y51, y52, y33, y23, y41, and y53.

[0076] The updated target approval roles can more accurately and reasonably determine the target approval roles, thus avoiding omissions in the testing process.

[0077] Furthermore, the test cases corresponding to the updated target approval roles can be determined and the test cases can be tested.

[0078] Furthermore, to determine the third access frequencies of each approval role in the work approval process and sort the third access frequencies in descending order of the third access frequency, it includes:

[0079] Calculate the proportion of the third access frequency corresponding to each approval role according to the third access frequency;

[0080] Sort the third access frequencies in descending order of the proportion of the third access frequency. The description of the proportion of the first access frequency can be referred to above and will not be elaborated here.

[0081] Furthermore, determine the weights corresponding to each approval role respectively; correspondingly, the test method for the approval workflow further includes:

[0082] Obtain the second calculation result of the third access frequency ratio and the corresponding weight, and sort each third access frequency in descending order according to the second calculation result. Refer to the description of the above first calculation result, which will not be elaborated here. If y41 / (y41 + y42 + y43)×W41 < y43 / (y41 + y42 + y43)×W43, then y41 / (y41 + y42 + y43)×W41 < y53 / (y51 + y52 + y53)×W53. For the second calculation results of other approval roles in the above third sorting results y31~y33, y21~y23, y41, y51~y53, y11 that do not change the original sorting, update the target approval roles to y31, y32, y21, y22, y51, y52, y33, y23, y53, and y43.

[0083] It should be noted that the test method for the approval workflow provided by the embodiments of the present invention can be used in the financial field and can also be used in any technical field other than the financial field. The embodiments of the present invention do not limit the application field of the test method for the approval workflow.

[0084] Figure 2 It is a schematic structural diagram of a test device for an approval workflow provided by an embodiment of the present invention, as Figure 2 shown, the test device for the approval workflow provided by the embodiments of the present invention includes a first sorting unit 201, a second sorting unit 202, and a test unit 203, where:

[0085] The first sorting unit 201 is used to determine the first access frequency of each approval link in the work approval flow, sort each first access frequency in descending order according to the first access frequency, and obtain a first sorting result; the second sorting unit 202 is used to determine the target approval link for obtaining the approval role according to the first sorting result, determine the second access frequency of each approval role in the target approval link, sort each second access frequency in descending order according to the second access frequency, and obtain a second sorting result; the test unit 203 is used to determine the target approval role to be tested according to the second sorting result, determine the test case corresponding to the target approval role, and test the test case.

[0086] Specifically, the first sorting unit 201 in the device is used to determine the first access frequency of each approval link in the work approval flow, and sort the first access frequencies in descending order according to the first access frequencies to obtain a first sorting result; the second sorting unit 202 is used to determine the target approval link for obtaining the approval role according to the first sorting result, determine the second access frequency of each approval role in the target approval link, and sort the second access frequencies in descending order according to the second access frequencies to obtain a second sorting result; the testing unit 203 is used to determine the target approval role to be tested according to the second sorting result, determine the test case corresponding to the target approval role, and test the test case.

[0087] The testing device for the approval workflow provided by the embodiment of the present invention determines the first access frequency of each approval link in the work approval flow, sorts each first access frequency in descending order according to the first access frequency, and obtains a first sorting result; determines the target approval link for obtaining the approval role according to the first sorting result, determines the second access frequency of each approval role in the target approval link, sorts each second access frequency in descending order according to the second access frequency, and obtains a second sorting result; determines the target approval role to be tested according to the second sorting result, determines the test case corresponding to the target approval role, and tests the test case. By determining the test case corresponding to the key approval role in the key approval link and testing these test cases, it is not necessary to determine all the test cases corresponding to all the approval roles in all the approval links, thereby reducing the number of test cases, alleviating the workload of testers, and reducing the consumption of time and system resources. In addition, no test case corresponding to the key approval role in the key approval link is omitted, thereby ensuring the smooth use of the approval workflow.

[0088] The embodiment of the testing device for approval workflow provided by the embodiment of the present invention can be specifically used to execute the processing flow of the above-mentioned method embodiments. Its functions are not described in detail here, and reference can be made to the detailed description of the above-mentioned method embodiments.

[0089] Figure 3 A schematic diagram of the physical structure of an electronic device provided in an embodiment of the present invention, such as Figure 3 As shown, the electronic device includes: a processor (processor) 301, a memory (memory) 302 and a bus 303;

[0090] The processor 301 and the memory 302 communicate with each other via a bus 303;

[0091] The processor 301 is used to call the program instructions in the memory 302 to execute the methods provided by the above method embodiments, for example, including:

[0092] Determine the first access frequency of each approval link in the work approval flow, sort the first access frequencies in descending order of the first access frequencies, and obtain a first sorting result;

[0093] Determine the target approval link for obtaining the approval role according to the first sorting result, determine the second access frequency of each approval role in the target approval link, sort the second access frequencies in descending order of the second access frequencies, and obtain a second sorting result;

[0094] The target approval role to be tested is determined according to the second sorting result, the test case corresponding to the target approval role is determined, and the test case is tested.

[0095] This embodiment discloses a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the computer can perform the methods provided by the above method embodiments, for example, including:

[0096] Determine the first access frequency of each approval link in the work approval flow, sort the first access frequencies in descending order of the first access frequencies, and obtain a first sorting result;

[0097] Determine the target approval link for obtaining the approval role according to the first sorting result, determine the second access frequency of each approval role in the target approval link, sort the second access frequencies in descending order of the second access frequencies, and obtain a second sorting result;

[0098] The target approval role to be tested is determined according to the second sorting result, the test case corresponding to the target approval role is determined, and the test case is tested.

[0099] This embodiment provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program enables the computer to execute the methods provided by the above method embodiments, for example, including:

[0100] Determine the first access frequency of each approval link in the work approval flow, sort the first access frequencies in descending order of the first access frequencies, and obtain a first sorting result;

[0101] Determine the target approval link for obtaining the approval role according to the first sorting result, determine the second access frequency of each approval role in the target approval link, sort the second access frequencies in descending order of the second access frequencies, and obtain a second sorting result;

[0102] The target approval role to be tested is determined according to the second sorting result, the test case corresponding to the target approval role is determined, and the test case is tested.

[0103] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0104] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0105] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0106] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0107] In the description of this specification, the description with reference to the terms "one embodiment", "a specific embodiment", "some embodiments", "for example", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0108] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A testing method for approval workflow, characterized in that: include: Determine the first access frequency of each approval link in the work approval flow, sort the first access frequencies in descending order of the first access frequencies, and obtain a first sorting result; Determine the target approval link for obtaining the approval role according to the first sorting result, determine the second access frequency of each approval role in the target approval link, sort the second access frequencies in descending order of the second access frequencies, and obtain a second sorting result; Determine the target approval role to be tested according to the second sorting result, determine the test case corresponding to the target approval role, and test the test case, wherein determining the target approval role to be tested also includes: determining the third access frequency of each approval role in the work approval flow, sorting each third access frequency in order from high to low according to the third access frequency, and obtaining a third sorting result; determine the selected approval role according to the third sorting result, select the approval role that is not included in the target approval role from the selected approval roles, and add the missing approval role to the target approval role to obtain an updated target approval role, and the updated target approval role is used to update the target approval role.

2. The testing method for approval workflow according to claim 1, characterized in that: The determining of the first access frequency of each approval link in the work approval flow and sorting the first access frequencies in descending order of the first access frequencies includes: Calculate the first visit frequency ratio corresponding to each approval link according to the first visit frequency; The first access frequencies are sorted in descending order according to the first access frequency proportion.

3. The testing method for approval workflow according to claim 1, characterized in that: The determining of the second access frequency of each approval role in the target approval link and sorting the second access frequencies in descending order of the second access frequencies include: Calculate the proportion of the second access frequency corresponding to each approval role according to the second access frequency; The second access frequencies are sorted in descending order according to the second access frequency proportion.

4. The testing method for approval workflow according to claim 3, characterized in that: Determine the weights corresponding to the respective approval roles; accordingly, the testing method of the approval workflow further includes: A first calculation result of the second access frequency proportion and the corresponding weight is obtained, and the second access frequencies are sorted in descending order according to the first calculation result.

5. The testing method for approval workflow according to claim 1, characterized in that: The determining the third access frequency of each approval role in the work approval flow and sorting the third access frequencies in descending order of the third access frequencies includes: Calculate the third access frequency ratio corresponding to each approval role according to the third access frequency; The third access frequencies are sorted in descending order according to the third access frequency proportion.

6. The testing method for approval workflow according to claim 5, characterized in that: Determine the weights corresponding to the respective approval roles; accordingly, the testing method of the approval workflow further includes: A second calculation result of the third access frequency proportion and the corresponding weight is obtained, and the third access frequencies are sorted in descending order according to the second calculation result.

7. A testing device for approval workflow, characterized in that: include: A first sorting unit is used to determine the first access frequency of each approval link in the work approval flow, and sort the first access frequencies in descending order of the first access frequencies to obtain a first sorting result; A second sorting unit is used to determine a target approval link for obtaining the approval role according to the first sorting result, determine the second access frequency of each approval role in the target approval link, and sort the second access frequencies in descending order of the second access frequencies to obtain a second sorting result; The testing unit is used to determine the target approval role to be tested according to the second sorting result, determine the test case corresponding to the target approval role, and test the test case, wherein determining the target approval role to be tested also includes: determining the third access frequency of each approval role in the work approval flow, sorting each third access frequency in order from high to low according to the third access frequency, and obtaining a third sorting result; determining the approval role to be selected according to the third sorting result, selecting the approval role that is not included in the target approval role from the approval roles to be selected, and adding the approval role that is not included in the target approval role to obtain an updated target approval role, and the updated target approval role is used to update the target approval role.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Software testing method and device, computer equipment and storage medium

    CN111240976A

  • Parking space reservation distribution method based on LoRa intelligent parking system

    CN113611150A