Business process automatic test method and device

By linking business work orders with test marking and snapshot patterns, identifying business requests, logical arrangement, and generating logical workflows, the problems of low efficiency and accuracy of traditional automation are solved, and the functions of automated testing and online modification are realized, which improves the Test efficiency and accuracy.

CN118939527APending Publication Date: 2024-11-12INSPUR TIANYUAN COMM INFORMATION SYST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410817493.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

Traditional automated testing requires testers to be familiar with script writing techniques and manually record scripts, resulting in low testing efficiency and accuracy, especially when business functions change, the script needs to be re-recorded, further reducing efficiency and accuracy.

Method used

By testing the business work orders, turning on snapshot mode, identifying and associating business requests, obtaining the associated and discrete parameters of the test requests, performing logical arrangements, generating logical workflows, realizing automated testing, and avoiding manual recording of scripts.

Benefits of technology

It realizes automated generation of test scripts, improves test accuracy and efficiency, allows online modification of logic and takes effect immediately without repeated recording of scripts, and enhances test coverage and traceability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118939527A_ABST
    Figure CN118939527A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of testing, and provides a business process automatic testing method and device. The method comprises the following steps: performing first test marking on a business work order to obtain a test work order; starting a snapshot mode in the circulation process of the test work order to obtain a test recording order; identifying a service request associated with the test recording list to obtain a plurality of test requests; obtaining associated parameters and discrete parameters among the test requests called in sequence according to the time sequence in each test request; performing logic arrangement according to the associated parameters and the discrete parameters, and generating a logic workflow in combination with the calling sequence of each test request; and carrying out business process testing on the test work order corresponding to each test request according to the logic workflow. According to the method, the test script can be automatically generated, the test accuracy and efficiency are improved, logic in the workflow can be modified online in the test process, the modified content takes effect immediately, and the test accuracy and efficiency are further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of testing technology, and in particular to a method and device for automated testing of business processes. Background Art

[0002] With the development of information technology, business process management has become increasingly complex. Traditional automated testing requires testers to be familiar with script writing techniques and manually record scripts for testing, which results in low test efficiency and accuracy. Especially when business functions change, scripts need to be re-recorded and re-tested, which further increases the burden on testers and further reduces test efficiency and accuracy. Summary of the invention

[0003] The embodiments of the present application provide a method and device for automated testing of business processes, which are used to solve the technical problem that traditional automated testing requires testers to be familiar with script writing technology and manually record scripts before testing, resulting in low testing efficiency and accuracy. When business functions change, the scripts need to be re-recorded and re-tested, thereby further reducing testing efficiency and accuracy.

[0004] In a first aspect, an embodiment of the present application provides a business process automation testing method, including: Perform a first test mark on the business work order to obtain a test work order; During the circulation of the test work order, a snapshot mode is enabled to obtain a test recording order; Identify the service request associated with the test recording sheet to obtain multiple test requests; Obtain the associated parameters and discrete parameters between the test requests that are called in chronological order in each test request; Performing logic arrangement according to the associated parameters and the discrete parameters, and generating a logic workflow in combination with the order in which each test request is called; Business process testing is performed on the test work orders corresponding to each test request according to the logical workflow.

[0005] In one embodiment, the identifying the service request associated with the test recording list to obtain multiple test requests includes: Add a second test tag to the header of multiple front-end page requests; If the second test mark is consistent with any of the first test marks, determining that a plurality of foreground page requests corresponding to the second test mark are associated with the test recording sheet corresponding to the first test mark; The multiple foreground page requests corresponding to the second test mark are determined as multiple test requests.

[0006] In one embodiment, the identifying the service request associated with the test recording list to obtain multiple test requests includes: Adding a third test tag to the header of multiple gateway layer service requests; If the third test mark is consistent with any of the first test marks, determining that the plurality of gateway layer service requests corresponding to the third test mark are associated with the test recording sheet corresponding to the first test mark; The multiple gateway layer service requests corresponding to the third test mark are determined as multiple test requests.

[0007] In one embodiment, obtaining the associated parameters and discrete parameters between the test requests that are called in chronological order in each test request includes: Calculate the similarity of parameters of the test requests that are called in chronological order in each test request; If the similarity is greater than the similarity threshold, determining the parameter corresponding to the similarity as a correlation parameter; If the similarity is less than or equal to the similarity threshold, it is determined that the parameter corresponding to the similarity is a discrete parameter.

[0008] In one embodiment, the logic arrangement is performed according to the associated parameters and the discrete parameters, and a logic workflow is generated in combination with the order in which each test request is called, including: Escape the associated parameters into a resolvable JsonPath expression; Creating a target component according to a preset generation rule of the discrete parameters, and generating a mapping relationship between the parameters of the target component and the discrete parameters; A logical workflow is generated according to the JsonPath expression and the mapping relationship and in combination with the order in which each test request is called.

[0009] In one embodiment, performing business process testing on the test work orders corresponding to each test request according to the logical workflow includes: Control the test work orders corresponding to each test request to flow according to the logical workflow to obtain the flow results; If the flow result meets expectations, it is determined that the business process test is successful.

[0010] In one embodiment, after determining that the business process test is successful, the process includes: Verify the integrity of the data transferred during the test according to the business model; If the flow data is complete, the logical workflow is exported as a deployment package for on-site deployment.

[0011] In a second aspect, an embodiment of the present application provides a business process automation testing device, including: A test marking module is used to: perform a first test marking on the business work order to obtain a test work order; A process recording module is used to: start the snapshot mode during the circulation of the test work order to obtain a test recording order; A request identification module, used to: identify the service request associated with the test recording list to obtain multiple test requests; The correlation calculation module is used to obtain correlation parameters and discrete parameters between the test requests that are called in chronological order in each test request; A logic arrangement module, used to: perform logic arrangement according to the associated parameters and the discrete parameters, and generate a logic workflow in combination with the order in which each test request is called; The process testing module is used to: perform business process testing on the test work orders corresponding to each test request according to the logical workflow.

[0012] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory storing a computer program, wherein when the processor executes the program, the steps of the business process automation testing method described in the first aspect are implemented.

[0013] In a fourth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the business process automation testing method described in the first aspect.

[0014] The business process automation testing method and device provided in the present application perform a first test mark on the business work order to obtain a test work order, start the snapshot mode during the circulation of the test work order to obtain a test recording order, identify the business request associated with the test recording order, obtain multiple test requests, obtain the associated parameters and discrete parameters between the test requests called in chronological order in each test request, perform logical arrangement according to the associated parameters and discrete parameters, generate a logical workflow in combination with the order in which each test request is called, and perform business process testing on the test work order corresponding to each test request according to the logical workflow. The present application utilizes snapshot mode to automatically record the flow and operation data of the test work order, obtains the recorded test recording form, associates the business request with the test recording form, associates the parameters and arranges the logic for the associated business requests, and generates a logical workflow in combination with the order in which each test request is called. Using this logical workflow as a test script can describe the actual flow process of the business work order to the greatest extent possible, realize the automatic generation of test scripts, and eliminate the need for testers to be familiar with script writing and manually record test scripts, thereby improving the test accuracy and efficiency. In addition, the logic in the workflow can be modified online during the test process, and the modified content takes effect immediately. There is no need for testers to re-record the script for debugging, thereby further improving the test accuracy and efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0016] Figure 1 This is one of the flowcharts of the business process automation testing method provided in the embodiment of the present application; Figure 2 This is the second flow chart of the business process automation testing method provided in the embodiment of the present application; Figure 3 This is a schematic diagram of association calculation in the business process automation testing method provided in an embodiment of the present application; Figure 4 This is the third flow chart of the business process automation testing method provided in the embodiment of the present application; Figure 5 It is a structural diagram of a business process automation testing device provided in an embodiment of the present application; Figure 6 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0017] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0018] It should be noted that in the description of the embodiments of the present application, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or device including the elements. The orientation or position relationship indicated by the terms "upper", "lower" and the like is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application. Unless otherwise clearly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected, or indirectly connected through an intermediate medium, or it can be a connection between the two elements. For those skilled in the art, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0019] The terms "first", "second", etc. in this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0020] Figure 1 This is one of the flowcharts of the business process automation testing method provided in the embodiment of the present application; Figure 2 This is the second flow chart of the business process automation testing method provided in the embodiment of the present application.

[0021] Reference Figure 1 , the present application embodiment provides a business process automation testing method, which may include: 101. Perform a first test mark on the business work order to obtain a test work order; 102. Enable snapshot mode during the circulation of test work orders to obtain test recording orders; 103. Identify the business request associated with the test recording order and obtain multiple test requests; 104. Obtaining the associated parameters and discrete parameters between the test requests that are called in chronological order in each test request; 105. Performing logical arrangement according to the associated parameters and the discrete parameters, and generating a logical workflow in combination with the order in which each test request is called; 106. Perform business process testing on the test work orders corresponding to each test request according to the logical workflow.

[0022] In step 101, the business work order may be a work order initiated and processed by the unified operation center, referring to Figure 2 A business work order can be a work order sent from the user relationship management system to the unified operation center for processing. During the work order processing process, the unified operation center also needs to reply to the user relationship management system with stage processing information. A business work order can also be a circuit scheduling work order initiated by the unified operation center to the transmission network management or an optical path scheduling work order initiated to the external line resource management system. Similarly, during the work order processing process, the transmission network management or external line resource management system also needs to reply to the unified operation center with stage processing information. A business work order can also be a work order circulated within the unified operation center, which is not limited here.

[0023] It should be noted that the unified operation center is an agent layer, and the specific business work order processing process is embedded in it and executed by specific services or systems, rather than the unified operation center taking on specific logical processing.

[0024] In step 103, after obtaining multiple test requests, each test request can be recorded as a snapshot log and stored in the MongoDB database in the order of the time when each test request is called, wherein the input and output parameters of each test request are stored in JSON format to facilitate subsequent associated calculations and logical arrangement. In this step, the cache of the snapshot log speeds up data access and processing, thereby improving test efficiency.

[0025] The business process automation testing method provided in this embodiment performs a first test mark on the business work order to obtain a test work order, starts a snapshot mode during the circulation of the test work order to obtain a test recording order, identifies a business request associated with the test recording order to obtain multiple test requests, obtains associated parameters and discrete parameters between the test requests that are called in chronological order in each test request, performs logical arrangement based on the associated parameters and discrete parameters, generates a logical workflow based on the order in which each test request is called, and performs business process testing on the test work order corresponding to each test request according to the logical workflow. This embodiment uses the snapshot mode to automatically record the flow and operation data of the test work order, obtains the recorded test recording form, associates the business request with the test recording form, associates the parameters and arranges the logic for the associated business requests, and generates a logical workflow in combination with the order in which each test request is called. Using this logical workflow as a test script can describe the actual flow process of the business work order to the greatest extent possible, realize the automatic generation of test scripts, and does not require testers to be familiar with script writing and manually record test scripts, thereby improving the test accuracy and efficiency. In addition, the logic in the workflow can be modified online during the test process, and the modified content takes effect immediately. There is no need for testers to re-record the script for debugging, further improving the test accuracy and efficiency.

[0026] Furthermore, since each node of the test work order flow is recorded in detail during the logical workflow generation process, the test coverage can be improved, and the test process is made highly traceable, which helps to accurately interpret the test results and quickly locate subsequent problems.

[0027] In one embodiment, identifying a service request associated with a test recording sheet to obtain multiple test requests may include: A second test tag is added to the header of multiple foreground page requests. If the second test tag is consistent with any first test tag, the multiple foreground page requests corresponding to the second test tag are determined to be associated with the test recording sheet corresponding to the first test tag, and the multiple foreground page requests corresponding to the second test tag are determined to be multiple test requests.

[0028] The above steps are applicable to the scenario where the user performs related page request operations on the front-end interface, and can be implemented in the front-end Vue framework. Among them, Vue is a progressive framework for building user interfaces. It is easy to learn and has excellent performance. It is suitable for a web front-end framework with rich scenarios.

[0029] Specifically, refer to Figure 2 , all front-end page requests can be intercepted by the page proxy in the unified operation center, and a second test tag can be added to its header. In addition, work order tags, task tags, etc. can be added to its header to ensure that the front-end page request can be associated with the test recording order to the greatest extent possible.

[0030] This embodiment adds a test tag to the header of the foreground page request to match the test recording list, so that the foreground page request associated with the test recording list can be accurately identified in the scenario where the user performs a related page request operation.

[0031] In one embodiment, identifying a service request associated with a test recording sheet to obtain multiple test requests may include: A third test tag is added to the headers of multiple gateway layer service requests. If the third test tag is consistent with any first test tag, the multiple gateway layer service requests corresponding to the third test tag are determined to be associated with the test recording sheet corresponding to the first test tag, and the multiple gateway layer service requests corresponding to the third test tag are determined to be multiple test requests.

[0032] The above steps are applicable to scenarios triggered by the interaction between the unified operation center and external systems.

[0033] Specifically, refer to Figure 2 At the gateway layer, all service requests are forwarded and processed by calling the API gateway. All service requests can be intercepted by the API proxy in the unified operation center, and a third test tag can be added to its header. In addition, work order tags, task tags, etc. can be added to its header to maximize the guarantee that the gateway layer service request can be associated with the test recording order.

[0034] For the associated gateway layer service request, the API gateway is responsible for recording the call log related to the request, and then forwarding and processing the next gateway layer service request after the recording is completed.

[0035] This embodiment adds a test tag to the header of the gateway layer service request to match the test recording list, so that the gateway layer service request associated with the test recording list can be accurately identified in the scenario triggered by the interaction between the unified operation center and the external system.

[0036] In one embodiment, obtaining the associated parameters and discrete parameters between the test requests that are called in chronological order in each test request may include: The similarity of the parameters of the test requests called in chronological order in each test request is calculated. If the similarity is greater than the similarity threshold, the parameters corresponding to the similarity are determined to be associated parameters. If the similarity is less than or equal to the similarity threshold, the parameters corresponding to the similarity are determined to be discrete parameters.

[0037] Reference Figure 2, that is, calculating the similarity between the input and output parameters of each test request, wherein the similarity can be the similarity between the input parameters of the test request called first and the input parameters of the test request called later, or the similarity between the input parameters of the test request called first and the output parameters of the test request called later, or the similarity between the output parameters of the test request called first and the input parameters of the test request called later, or the similarity between the output parameters of the test request called first and the output parameters of the test request called later, which is not limited here. In this embodiment, the similarity between the input parameters of the test request called first and the input parameters of the test request called later and the similarity between the output parameters of the test request called first and the input parameters of the test request called later can be calculated.

[0038] Figure 3 is a schematic diagram of the correlation calculation in the business process automation testing method provided in the embodiment of the present application; Figure 3 , each test request may exist at each node of the work order flow, taking the business dispatch node, resource allocation node and pre-activation node that arrive in chronological order as an example, among which, see Figure 2 , in the resource allocation node, a resource application work order is opened through the unified operation center, and a resource allocation request is made to the integrated resource management system, and the resource allocation result is obtained for business submission. Assuming that in the business dispatching node, the input parameters of the test request are the customer address and the business level, and the output parameters are the request result and the request description, in the resource allocation node, the input parameters are the customer address, and the output parameters are the access device, the upstream OLT (Optical Line Terminal) and the available port, in the pre-activation node, the input parameters are the access device, the access port and the business level, and the output parameters are the request result and the request description, the similarity between the input parameters of the test request in the business dispatching node and the input parameters of the test request in the resource allocation node can be calculated, the similarity between the input parameters of the test request in the business dispatching node and the input parameters of the test request in the pre-activation node can also be calculated, and the similarity between the output parameters of the test request in the resource allocation node and the input parameters of the test request in the pre-activation node can also be calculated.

[0039] The similarity may be calculated using a Jaccard similarity algorithm or a cosine similarity algorithm, or other similarity algorithms, which are not limited here.

[0040] This embodiment calculates the correlation between input and output parameters of test requests of different time sequences, so that complex data dependencies can be automatically identified, which helps to perform subsequent logical arrangement that conforms to business logic.

[0041] Figure 4 This is the third flow chart of the business process automation testing method provided in the embodiment of the present application; Figure 4In one embodiment, logical arrangement is performed according to the associated parameters and the discrete parameters, and a logical workflow is generated in combination with the order in which each test request is called, which may include: 401. Escape the associated parameters into a resolvable JsonPath expression; 402. Create a target component according to a preset generation rule of discrete parameters, and generate a mapping relationship between the parameters of the target component and the discrete parameters; 403. Generate a logical workflow based on the JsonPath expression and mapping relationship and the order in which each test request is called.

[0042] In step 401, the input parameter in the associated parameter may be escaped into an editable JsonPath expression.

[0043] In step 402 to step 403, refer to Figure 2 , you can extract discrete parameters, configure preset generation rules for the input parameters in the discrete parameters, create the target component of the input parameters according to the preset generation rules, and generate the mapping relationship between the output parameters of the target component and the input parameters, and finally generate the logical workflow according to the JsonPath expression and the mapping relationship, combined with the order in which each test request is called. Among them, the preset generation rules include fixed values, combined expressions, logical operations, etc., and the target components include model components, HTTP request components, database access components, variable components, loop components, conditional branch components, code components, etc.

[0044] In practical applications, there is no strict timing relationship between step 401 and step 402; that is, they can be executed simultaneously, or any one step can be executed first, depending on actual needs and is not limited here.

[0045] This embodiment processes associated parameters and discrete parameters separately. For associated parameters, since there is a mutually dependent logical relationship between the parameters, they can be directly converted into JsonPath expressions to characterize their logical relationship. For discrete parameters, since there is no mutually dependent logical relationship between the parameters, a target component is created according to a preset generation rule of the discrete parameters, and a mapping relationship between the parameters of the target component and the discrete parameters is generated, so that the discrete parameters also have a logical relationship with the target component. On this basis, a logical workflow can be generated quickly and conveniently according to the logical relationship between the associated parameters and the logical relationship between the discrete parameters, thereby optimizing the business process and ensuring that the automatic test complies with the business logic.

[0046] Reference Figure 2 In one embodiment, performing business process testing on the test work orders corresponding to each test request according to the logical workflow may include: Control the test work orders corresponding to each test request to flow according to the logical workflow to obtain the flow results. If the flow results meet expectations, the business process test is determined to be successful.

[0047] You can pre-configure the business verification component, bind it to the business model, configure the positioning conditions for model data query and the judgment conditions for model query results, and execute the verification component after obtaining the flow results to determine whether the flow results meet expectations.

[0048] The entire test process runs in a visual way. When the logic needs to be modified, it can be modified online. The modified content takes effect immediately without restarting or refreshing the cache.

[0049] Further, refer to Figure 2 After confirming that the business process test is successful, the business process verification can include: Verify whether the flow data during the test is complete according to the business model. If the flow data is complete, export the logical workflow as a deployment package for on-site deployment.

[0050] Specifically, the deployment package can be released together with the business upgrade package and automatically deployed through the devops pipeline at the project site. On-site personnel do not need to re-record or adjust the verification script on a large scale. They only need to adjust the business parameter variables related to the on-site environment to automatically execute and verify the integrity of business functions.

[0051] The testing and verification of the business process performed in this embodiment can ensure that the deployed business process meets the expected business needs, reduce the risk of failure, improve the quality of the final product, and reduce the operation and maintenance costs on the project side.

[0052] The following is a description of a business process automation testing device provided in an embodiment of the present application. The business process automation testing device described below and the business process automation testing method described above can be referenced to each other.

[0053] Figure 5 Schematic diagram of the structure of the business process automation testing device provided in the embodiment of the present application. Figure 5 , the embodiment of the present application provides a business process automation testing device, which may include: The test marking module 501 is used to: perform a first test marking on the business work order to obtain a test work order; The process recording module 502 is used to start the snapshot mode during the circulation of the test work order to obtain the test recording order; the request identification module 503 is used to identify the business request associated with the test recording order to obtain multiple test requests; the association calculation module 504 is used to obtain the association parameters and discrete parameters between the test requests called in chronological order in each test request; The logic arrangement module 505 is used to: perform logic arrangement according to the associated parameters and the discrete parameters, and generate a logic workflow in combination with the order in which each test request is called; The process testing module 506 is used to perform business process testing on the test work orders corresponding to each test request according to the logical workflow.

[0054] The business process automation testing device provided in this embodiment performs a first test mark on the business work order to obtain a test work order, turns on the snapshot mode during the circulation of the test work order to obtain a test recording order, identifies the business request associated with the test recording order, obtains multiple test requests, obtains the associated parameters and discrete parameters between the test requests that are called in chronological order in each test request, performs logical arrangement according to the associated parameters and discrete parameters, generates a logical workflow in combination with the order in which each test request is called, and performs business process testing on the test work order corresponding to each test request according to the logical workflow. This embodiment uses the snapshot mode to automatically record the flow and operation data of the test work order, obtains the recorded test recording form, associates the business request with the test recording form, associates the parameters and arranges the logic for the associated business requests, and generates a logical workflow in combination with the order in which each test request is called. Using this logical workflow as a test script can describe the actual flow process of the business work order to the greatest extent possible, realize the automatic generation of test scripts, and does not require testers to be familiar with script writing and manually record test scripts, thereby improving the test accuracy and efficiency. In addition, the logic in the workflow can be modified online during the test process, and the modified content takes effect immediately. There is no need for testers to re-record the script for debugging, further improving the test accuracy and efficiency.

[0055] Furthermore, since each node of the test work order flow is recorded in detail during the logical workflow generation process, the test coverage can be improved, and the test process is made highly traceable, which helps to accurately interpret the test results and quickly locate subsequent problems.

[0056] In one embodiment, the request identification module 503 is specifically configured to: Add a second test tag to the header of multiple front-end page requests; If the second test mark is consistent with any of the first test marks, determining that a plurality of foreground page requests corresponding to the second test mark are associated with the test recording sheet corresponding to the first test mark; The multiple foreground page requests corresponding to the second test mark are determined as multiple test requests.

[0057] In one embodiment, the request identification module 503 is specifically configured to: Adding a third test tag to the header of multiple gateway layer service requests; If the third test mark is consistent with any of the first test marks, determining that the plurality of gateway layer service requests corresponding to the third test mark are associated with the test recording sheet corresponding to the first test mark; The multiple gateway layer service requests corresponding to the third test mark are determined as multiple test requests.

[0058] In one embodiment, the association calculation module 504 is specifically used to: Calculate the similarity of parameters of the test requests that are called in chronological order in each test request; If the similarity is greater than the similarity threshold, determining the parameter corresponding to the similarity as a correlation parameter; If the similarity is less than or equal to the similarity threshold, it is determined that the parameter corresponding to the similarity is a discrete parameter.

[0059] In one embodiment, the logic arrangement module 505 is specifically configured to: Escape the associated parameters into a resolvable JsonPath expression; Creating a target component according to a preset generation rule of the discrete parameters, and generating a mapping relationship between the parameters of the target component and the discrete parameters; A logical workflow is generated according to the JsonPath expression and the mapping relationship and in combination with the order in which each test request is called.

[0060] In one embodiment, the process testing module 506 is specifically used to: Control the test work orders corresponding to each test request to flow according to the logical workflow to obtain the flow results; If the flow result meets expectations, it is determined that the business process test is successful.

[0061] In one embodiment, a process verification module (not shown) is further included, which is used to: Verify the integrity of the data transferred during the test according to the business model; If the flow data is complete, the logical workflow is exported as a deployment package for on-site deployment.

[0062] Figure 6 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, such as Figure 6As shown, the electronic device may include: a processor 610, a communication interface 620, a memory 630 and a communication bus 640, wherein the processor 610, the communication interface 620, and the memory 630 communicate with each other through the communication bus 640. The processor 610 may call a computer program in the memory 630 to execute the steps of the business process automation testing method, for example, including: Perform a first test mark on the business work order to obtain a test work order; During the circulation of the test work order, a snapshot mode is enabled to obtain a test recording order; Identify the service request associated with the test recording sheet to obtain multiple test requests; Obtain the associated parameters and discrete parameters between the test requests that are called in chronological order in each test request; Performing logic arrangement according to the associated parameters and the discrete parameters, and generating a logic workflow in combination with the order in which each test request is called; Business process testing is performed on the test work orders corresponding to each test request according to the logical workflow.

[0063] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.

[0064] On the other hand, an embodiment of the present application further provides a computer program product, the computer program product including a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, and when the computer program is executed by a processor, the computer can perform the steps of the business process automation testing method provided in the above embodiments, for example, including: Perform a first test mark on the business work order to obtain a test work order; During the circulation of the test work order, a snapshot mode is enabled to obtain a test recording order; Identify the service request associated with the test recording sheet to obtain multiple test requests; Obtain the associated parameters and discrete parameters between the test requests that are called in chronological order in each test request; Performing logic arrangement according to the associated parameters and the discrete parameters, and generating a logic workflow in combination with the order in which each test request is called; Business process testing is performed on the test work orders corresponding to each test request according to the logical workflow.

[0065] On the other hand, an embodiment of the present application further provides a non-transitory computer-readable storage medium on which a computer program is stored, wherein the computer program is used to enable a processor to execute the steps of the business process automation testing method provided in the above embodiments, for example, including: Perform a first test mark on the business work order to obtain a test work order; During the circulation of the test work order, a snapshot mode is enabled to obtain a test recording order; Identify the service request associated with the test recording sheet to obtain multiple test requests; Obtain the associated parameters and discrete parameters between the test requests that are called in chronological order in each test request; Performing logic arrangement according to the associated parameters and the discrete parameters, and generating a logic workflow in combination with the order in which each test request is called; Business process testing is performed on the test work orders corresponding to each test request according to the logical workflow.

[0066] The non-transitory computer-readable storage medium can be any available medium or data storage device that can be accessed by the processor, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid-state drive (SSD)), etc.

[0067] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0068] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0069] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A business process automation testing method, It is characterized in that include: Perform a first test mark on the business work order to obtain a test work order; During the circulation of the test work order, a snapshot mode is enabled to obtain a test recording order; Identify the service request associated with the test recording sheet to obtain multiple test requests; Obtain the associated parameters and discrete parameters between the test requests that are called in chronological order in each test request; Performing logic arrangement according to the associated parameters and the discrete parameters, and generating a logic workflow in combination with the order in which each test request is called; Business process testing is performed on the test work orders corresponding to each test request according to the logical workflow.

2. The business process automation testing method according to claim 1, It is characterized in that The identifying the service request associated with the test recording list to obtain multiple test requests includes: Add a second test tag to the header of multiple front-end page requests; If the second test mark is consistent with any of the first test marks, determining that a plurality of foreground page requests corresponding to the second test mark are associated with the test recording sheet corresponding to the first test mark; The multiple foreground page requests corresponding to the second test mark are determined as multiple test requests.

3. The business process automation testing method according to claim 1, It is characterized in that The identifying the service request associated with the test recording list to obtain multiple test requests includes: Adding a third test tag to the header of multiple gateway layer service requests; If the third test mark is consistent with any of the first test marks, determining that the plurality of gateway layer service requests corresponding to the third test mark are associated with the test recording sheet corresponding to the first test mark; The multiple gateway layer service requests corresponding to the third test mark are determined as multiple test requests.

4. The business process automation testing method according to claim 1, It is characterized in that The obtaining of the associated parameters and discrete parameters between the test requests that are called in chronological order in each test request includes: Calculate the similarity of parameters of the test requests that are called in chronological order in each test request; If the similarity is greater than the similarity threshold, determining the parameter corresponding to the similarity as a correlation parameter; If the similarity is less than or equal to the similarity threshold, it is determined that the parameter corresponding to the similarity is a discrete parameter.

5. The business process automation testing method according to claim 1, It is characterized in that The logical arrangement is performed according to the associated parameters and the discrete parameters, and a logical workflow is generated in combination with the order in which each test request is called, including: translating the associated parameters into a parseable JsonPath expression; Creating a target component according to a preset generation rule of the discrete parameters, and generating a mapping relationship between the parameters of the target component and the discrete parameters; A logical workflow is generated according to the JsonPath expression and the mapping relationship and in combination with the order in which each test request is called.

6. The business process automation testing method according to claim 1, It is characterized in that The performing of business process testing on the test work orders corresponding to each test request according to the logical workflow includes: Control the test work orders corresponding to each test request to flow according to the logical workflow to obtain the flow results; If the flow result meets expectations, it is determined that the business process test is successful.

7. The business process automation testing method according to claim 6, It is characterized in that After determining that the business process test is successful, the method includes: Verify the integrity of the data transferred during the test according to the business model; If the flow data is complete, the logical workflow is exported as a deployment package for on-site deployment.

8. A business process automation testing device, It is characterized in that include: A test marking module is used to: perform a first test marking on the business work order to obtain a test work order; A process recording module is used to: start the snapshot mode during the circulation of the test work order to obtain a test recording order; A request identification module, used to: identify the service request associated with the test recording list to obtain multiple test requests; The correlation calculation module is used to obtain correlation parameters and discrete parameters between the test requests that are called in chronological order in each test request; A logic arrangement module, used to: perform logic arrangement according to the associated parameters and the discrete parameters, and generate a logic workflow in combination with the order in which each test request is called; The process testing module is used to: perform business process testing on the test work orders corresponding to each test request according to the logical workflow.

9. An electronic device comprising a processor and a memory storing a computer program, It is characterized in that When the processor executes the computer program, the steps of the business process automation testing method according to any one of claims 1 to 7 are implemented.

10. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the business process automation testing method according to any one of claims 1 to 7 are implemented.