Business testing method and device, storage medium and computer program product

By building a business map and using business test cases to test the business, the problem of low quality of business test cases in the existing technology is solved, and effective coverage of functional modules that affect changing information and improvement of test quality is achieved.

CN119415431APending Publication Date: 2025-02-11CCB FINTECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411518631.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-29
Publication Date
2025-02-11

AI Technical Summary

Technical Problem

The quality of business test cases in the prior art is low and it is difficult to effectively cover the functional modules affected by data changes in projects.

Method used

By obtaining the change information of the project to be delivered relative to the original project, building a business map, determining the business involved in the change information, and using business test cases to test the business, comparing whether the execution results are consistent with the expected results, and adjusting the test cases to improve coverage .

Benefits of technology

It effectively improves the quality of business test cases, ensures that the test cases can cover the functional modules affected by the change information, and discover and adjust the uncovered functional modules, thereby improving testing efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119415431A_ABST
    Figure CN119415431A_ABST
Patent Text Reader

Abstract

The invention discloses a business test method and device, a storage medium and a computer program product, which are applied to the technical field of testing, and the method comprises the following steps: obtaining change information that a to-be-delivered project changes relative to an original project; wherein the to-be-delivered item is obtained by modification on the basis of the original item; determining businesses related to the change information from a business map of the to-be-delivered project according to the change information; wherein the business map is constructed according to values created in the operation management link of businesses provided by the to-be-delivered project, the business fields to which the businesses belong and business activities corresponding to the businesses provided by the to-be-delivered project; testing the service by using the service test case for the service to obtain an execution result; comparing whether the execution result is consistent with an expected result corresponding to the service; if yes, the test passes; and if not, outputting difference information between the execution result and the expected result, and adjusting the business test case based on the difference information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of testing technology processing, and in particular to a method, device, storage medium and computer program product for service testing. Background Art

[0002] Business testing is an important part of project delivery. The writing of business test cases is highly subjective, and it is difficult to make quantitative judgments on business test cases and project quality.

[0003] In the prior art, automated testing tools are usually used to convert the test operation behaviors performed by testers into machine behaviors to improve testing efficiency. However, when the data maintained in the project changes, the use of the above-mentioned automated testing tools may not be able to cover the related functional modules affected by the data changes, resulting in low quality of test cases.

[0004] In view of this, how to improve the quality of test cases has become a technical problem that needs to be solved urgently. Summary of the invention

[0005] The present invention provides a service testing method, device, storage medium and computer program product, which are used to solve the technical problem of low quality of test cases existing in the prior art.

[0006] In the first aspect, in order to solve the above technical problems, a technical solution of a service testing method provided by an embodiment of the present invention is as follows:

[0007] Obtaining change information of the project to be delivered relative to the original project; wherein the project to be delivered is modified based on the original project;

[0008] Determine the business involved in the change information from the business map of the project to be delivered according to the change information; wherein the business map is constructed according to the value created by the business provided by the project to be delivered in the operation and management link, the business field to which it belongs, and the business activities corresponding to each business provided by the project to be delivered;

[0009] Testing the business using the business test case associated with the business in the business map to obtain an execution result;

[0010] Compare the execution result with the expected result corresponding to the business to see if they are consistent; if they are consistent, the test passes; if they are inconsistent, output the difference information between the execution result and the expected result, and adjust the business test case based on the difference information.

[0011] In a possible implementation manner, before determining the business involved in the change information from the business map of the project to be delivered according to the change information, the method further includes:

[0012] According to the value created by the business provided by the project to be delivered in the operation and management link, the business included in the project to be delivered is classified into different value scenarios to obtain the value chain layer of the business map;

[0013] According to the business domain included in each value scenario, the business included in each value scenario is classified into different business domains to obtain the business domain layer of the business map;

[0014] According to the business activities implemented by the customer in the business included in the business field, business activities corresponding to each business are created to obtain the business activity layer of the business map; wherein the business is associated with the corresponding test case;

[0015] The business map is obtained by associating each activity node in the business activity with a functional module that realizes the function of the activity node and a user interface corresponding to the activity node.

[0016] In a possible implementation manner, before determining the business involved in the change information from the business map of the project to be delivered according to the change information, the method further includes:

[0017] The original business map of the original project is updated based on the change information to obtain the business map.

[0018] In a possible implementation manner, determining the business involved in the change information from the business map of the project to be delivered according to the change information includes:

[0019] taking at least one of the function module to which the change information belongs and the function module having a dependency relationship with the change information as a relevant function module related to the change information;

[0020] Determine, from the business map, a business activity where a business activity node associated with the relevant function module is located as a relevant business activity related to the change information;

[0021] The business to which the relevant business activity belongs is determined from the business map as the business involved in the change information.

[0022] In a possible implementation manner, determining the business activity where the business activity node associated with the relevant functional module is located from the business map as the relevant business activity related to the change information includes:

[0023] Determine the business activity node associated with each relevant functional module from the business map, remove duplicates, and obtain at least one different business activity node;

[0024] The business activity where each different business activity node in the at least one different business activity node is located is determined, and duplicates are removed to obtain related business activities related to the change information.

[0025] A possible implementation method is to test the business using the business test case associated with the business in the business map to obtain an execution result, including:

[0026] Based on the data group in the business test case, input data into the user interface corresponding to the business in sequence according to the operation sequence corresponding to the data group;

[0027] Recording a data result returned based on the data and all function modules and call-up tracks that are called up from the function module that responds to the data to the process of returning the data result;

[0028] Determine the business key points corresponding to all the functional modules, and remove duplicates of the business key points corresponding to all the functional modules to obtain the business key points actually covered by the business test case;

[0029] Calculate the proportion of the key business points actually covered by the service test case to the total key business points included in the service, and obtain the key business point coverage rate of the service test case;

[0030] All the functional modules, the call-up tracks, the key business points actually covered by the business test cases, and the key business point coverage of the business test cases are taken as the execution results.

[0031] In a possible implementation manner, the business test case includes:

[0032] at least one of the data groups, each data group corresponding to input data required for a business activity;

[0033] A plurality of test cases, wherein the test cases are associated with corresponding business rules and business workflows corresponding to the business activities through test case numbers.

[0034] In a possible implementation manner, the data group and the corresponding operation sequence are generated by collecting historical data and historical operation processes input by the user when the user handles the business in the original project;

[0035] Alternatively, the data groups and corresponding operation sequences are pre-arranged by testers.

[0036] In a possible implementation manner, the change information includes:

[0037] Any one or any combination of the updated part of the code in the functional module, the updated part of the calling relationship between the functional modules, and the updated part of the business rules of the business.

[0038] In a second aspect, an embodiment of the present invention provides a device for service testing, including:

[0039] An acquisition unit, which acquires change information of the project to be delivered relative to the original project; wherein the project to be delivered is modified based on the original project;

[0040] A determination unit, configured to determine the business involved in the change information from the business map of the project to be delivered according to the change information; wherein the business map is constructed according to the value created by the business provided by the project to be delivered in the operation and management link, the business field to which it belongs, and the business activities corresponding to each business provided by the project to be delivered;

[0041] An execution unit, used to test the service using a service test case for the service to obtain an execution result;

[0042] A processing unit is used to compare whether the execution result is consistent with the expected result corresponding to the business; if they are consistent, the test passes; if they are inconsistent, the difference information between the execution result and the expected result is output, and the business test case is adjusted based on the difference information.

[0043] In a possible implementation manner, the device further includes a construction unit, wherein the construction unit is used to:

[0044] According to the change information, before determining the business involved in the change information from the business map of the project to be delivered, the business included in the project to be delivered is classified into different value scenarios according to the value created by the business provided by the project to be delivered in the operation and management link, so as to obtain the value chain layer of the business map;

[0045] According to the business domain included in each value scenario, the business included in each value scenario is classified into different business domains to obtain the business domain layer of the business map;

[0046] According to the business activities implemented by the customer in the business included in the business field, business activities corresponding to each business are created to obtain the business activity layer of the business map; wherein the business is associated with the corresponding test case;

[0047] The business map is obtained by associating each activity node in the business activity with a functional module that realizes the function of the activity node and a user interface corresponding to the activity node.

[0048] In a possible implementation manner, the construction unit is further used for:

[0049] Before determining the business involved in the change information from the business map of the project to be delivered according to the change information, the original business map of the original project is updated based on the change information to obtain the business map.

[0050] In a possible implementation manner, the acquisition unit is further configured to:

[0051] taking at least one of the function module to which the change information belongs and the function module having a dependency relationship with the change information as a relevant function module related to the change information;

[0052] Determine, from the business map, a business activity where a business activity node associated with the relevant function module is located as a relevant business activity related to the change information;

[0053] The business to which the relevant business activity belongs is determined from the business map as the business involved in the change information.

[0054] In a possible implementation manner, the acquisition unit is further configured to:

[0055] Determine the business activity node associated with each relevant functional module from the business map, remove duplicates, and obtain at least one different business activity node;

[0056] The business activity where each different business activity node in the at least one different business activity node is located is determined, and duplicates are removed to obtain related business activities related to the change information.

[0057] In a possible implementation manner, the execution unit is further configured to:

[0058] Based on the data group in the business test case, input data into the user interface corresponding to the business in sequence according to the operation sequence corresponding to the data group;

[0059] Recording a data result returned based on the data and all function modules and call-up tracks that are called up from the function module that responds to the data to the process of returning the data result;

[0060] Determine the business key points corresponding to all the functional modules, and remove duplicates of the business key points corresponding to all the functional modules to obtain the business key points actually covered by the business test case;

[0061] Calculate the proportion of the key business points actually covered by the service test case to the total key business points included in the service, and obtain the key business point coverage rate of the service test case;

[0062] All the functional modules, the call-up tracks, the key business points actually covered by the business test cases, and the key business point coverage of the business test cases are taken as the execution results.

[0063] In a possible implementation manner, the business test case includes:

[0064] at least one of the data groups, each data group corresponding to input data required for a business activity;

[0065] A plurality of test cases, wherein the test cases are associated with corresponding business rules and business workflows corresponding to the business activities through test case numbers.

[0066] In a possible implementation manner, the data group and the corresponding operation sequence are generated by collecting historical data and historical operation processes input by the user when the user handles the business in the original project;

[0067] Alternatively, the data groups and corresponding operation sequences are pre-arranged by testers.

[0068] In a possible implementation manner, the change information includes:

[0069] Any one or any combination of the updated part of the code in the functional module, the updated part of the calling relationship between the functional modules, and the updated part of the business rules of the business.

[0070] In a third aspect, an embodiment of the present invention further provides a device for service testing, including:

[0071] at least one processor, and

[0072] a memory coupled to the at least one processor;

[0073] The memory stores instructions that can be executed by the at least one processor, and the at least one processor executes the method as described in the first aspect above by executing the instructions stored in the memory.

[0074] In a fourth aspect, an embodiment of the present invention further provides a readable storage medium, including:

[0075] Memory,

[0076] The memory is used to store instructions. When the instructions are executed by the processor, the device including the readable storage medium performs the method described in the first aspect above.

[0077] In a fifth aspect, an embodiment of the present invention further provides a computer program product, comprising a program code. When a computer runs the computer program, the program code executes the method described in the first aspect.

[0078] Through the technical solutions in one or more of the above embodiments of the embodiments of the present invention, the embodiments of the present invention have at least the following technical effects:

[0079] In the embodiment provided by the present invention, by obtaining change information of the project to be delivered relative to the original project; wherein the project to be delivered is modified on the basis of the original project; according to the change information, the business involved in the change information is determined from the business map of the project to be delivered; wherein the business map is constructed according to the value created by the business provided by the project to be delivered in the operation and management link, the business field to which it belongs, and the business activities corresponding to each business provided by the project to be delivered; the business is tested with a business test case for the business to obtain an execution result; the execution result is compared with the expected result corresponding to the business for consistency; if consistent, the test passes; if inconsistent, the difference information between the execution result and the expected result is output, and the business test case is adjusted based on the difference information, so that it can be determined whether the business test case associated with the business involved in the change information in the project to be delivered covers the functional modules affected by the above-mentioned change information, and the functional modules not covered by the business test case can also be discovered and adjusted in time, thereby effectively improving the quality of the business test case. BRIEF DESCRIPTION OF THE DRAWINGS

[0080] Figure 1 An embodiment of the present invention provides a flow chart of a service testing method;

[0081] Figure 2 A schematic diagram of some relevant contents included in a project to be delivered provided in an embodiment of the present invention;

[0082] Figure 3 A schematic diagram of the relationship between a business activity, a functional module and a user interface provided by an embodiment of the present invention;

[0083] Figure 4 A schematic diagram of mapping business activities, business workflows and user interfaces included in a business provided in an embodiment of the present invention;

[0084] Figure 5 A schematic diagram of a user interface associated with a business workflow provided in an embodiment of the present invention, and a schematic diagram of its operation instructions and associated test cases;

[0085] Figure 6 A schematic diagram of the structure of a business map provided by an embodiment of the present invention;

[0086] Figure 7 An embodiment of the present invention provides a structural schematic diagram of a service testing device. DETAILED DESCRIPTION

[0087] The present invention provides a method, device, storage medium and computer program product for service testing to solve the technical problem of low quality of test cases in the prior art. The acquisition, storage, use and processing of data in the technical solution of this application are in compliance with the relevant provisions of national laws and regulations.

[0088] In order to better understand the above technical scheme, the technical scheme of the present invention is described in detail below through the accompanying drawings and specific embodiments. It should be understood that the embodiments of the present invention and the specific features in the embodiments are detailed descriptions of the technical scheme of the present invention, rather than limitations on the technical scheme of the present invention. In the absence of conflict, the embodiments of the present invention and the technical features in the embodiments can be combined with each other.

[0089] Please refer to Figure 1 , an embodiment of the present invention provides a flowchart of a business testing method, and the processing process of the method is as follows.

[0090] Step 101: Obtain change information of the project to be delivered relative to the original project; wherein the project to be delivered is modified based on the original project;

[0091] The project to be delivered and the original project are different versions of the same application, which can be installed on a computer, a mobile phone, or other devices; the project to be delivered and the original project can also be different versions of the same device, such as an ATM, a deposit machine, a cash machine, etc.

[0092] In some embodiments, the change information includes:

[0093] Any one or any combination of the code update part in the functional module, the call relationship update part between the functional modules, and the business rule update part of the business.

[0094] Exemplarily, the change information of the project to be delivered relative to the original project includes software change information, such as functions, services (such as new services, modified services), business rules, etc., and may also include hardware change information, such as new peripherals, replaced peripherals, etc., without specific limitation.

[0095] For example, the project to be delivered and the original project are both mobile applications of a bank. The original project is version 2.0 of the mobile application, and the project to be delivered is version 2.1 of the mobile application. Compared with version 2.0 of the mobile application, version 2.1 of the mobile application has added a face recognition function, and has modified the corresponding business rules in login, transaction, authentication and other related businesses. The modified business rules are all related to the face recognition function. The above-mentioned face recognition function and modified business rules are the change information of the mobile application version 2.1 compared with the mobile application version 2.0.

[0096] For another example, the project to be delivered and the original project are both bank ATMs. The original project is ATM version 1.0, and the project to be delivered is ATM version 1.1. Compared with ATM version 1.0, ATM version 1.1 adds a near field communication (NFC) identification function and an NFC peripheral for NFC identification. The above-mentioned NFC function, NFC peripheral, and drivers related to the NFC peripheral are change information of ATM version 1.1 compared with ATM version 1.0.

[0097] In addition, if the project to be delivered is a preliminary version of the product, that is, the project to be delivered has no corresponding original project, and the project to be delivered is a brand new project, then the original project can be regarded as 0. In this way, the information that has changed in the project to be delivered relative to the original project is the project to be delivered, and the business test performed is to test the entire business of the project to be delivered.

[0098] After obtaining the change information of the to-be-delivered project relative to the original project, step 102 may be executed.

[0099] Step 102: According to the change information, determine the business involved in the change information from the business map of the project to be delivered; wherein the business map is constructed according to the value created by the business provided by the project to be delivered in the operation and management link, the business field to which it belongs, and the business activities corresponding to each business provided by the project to be delivered;

[0100] In some embodiments, before determining the business involved in the change information from the business map of the project to be delivered according to the change information, it is necessary to construct the business map of the project to be delivered, which can be specifically achieved in the following ways:

[0101] According to the value created by the services provided by the projects to be delivered in the operation and management links, the services included in the projects to be delivered are classified into different value scenarios to obtain the value chain layer of the business map;

[0102] According to the business domains included in each value scenario, the businesses included in each value scenario are classified into different business domains to obtain the business domain layer of the business map;

[0103] According to the business activities implemented by the customer in the business included in the business field, business activities corresponding to each business are created to obtain the business activity layer of the business map; wherein the business is associated with the corresponding test case;

[0104] The activity nodes in the business activities, the functional modules that realize the functions of the activity nodes, and the user interfaces corresponding to the activity nodes are associated to obtain a business map.

[0105] The business association between business test cases and business maps is equivalent to the business map, which makes it easier to maintain the heterogeneity between business test cases and business calibers and improve the readability of business test cases; the business association between business test cases and business maps can also be equivalent to the association with business map subcategories, which allows business test cases to be classified by business caliber and improves the systematic nature of business test cases. In addition, business test cases are also associated with specific business rules, which allows business test cases to reflect business-related mappings and improve the accuracy of business test cases.

[0106] See also Figure 2 A schematic diagram of some relevant contents included in a project to be delivered provided in an embodiment of the present invention.

[0107] Assume that the project to be delivered is a business system. The services provided by the business system include deposit account opening, deposit deposit, dormant account management, salary payment, fund trading, foreign exchange trading, employee management, product sales, financial accounting, etc. Based on the value created by these businesses in the operation and management links, the businesses included in the business system can be classified into different value scenarios, such as Figure 2 The value scenarios shown may include marketing support, product management, product operation, business support, reporting decision-making, risk management, etc. The above value scenarios can be further subdivided into smaller value scenarios, such as marketing support can be subdivided into customer management, channel management, and marketing. Both the above value scenarios of large categories and the small value scenarios under large value scenarios belong to the value chain layer; in addition, the business value scenarios of large categories may not include the value scenarios of small categories. In this case, the value scenarios of large categories can be directly used in the value scenarios of small categories, such as Figure 2 The value scenario of product management in the diagram is not divided into major and minor categories. In this case, the major and minor categories corresponding to product management can be directly recorded as product management. In this way, the value chain layer of the business map is constructed.

[0108] Then, the businesses included in each value scenario can be classified into different business areas according to the business areas included in each value scenario. Figure 2 The businesses in the value scenario of product operation include deposit account opening, deposit deposit, dormant account management, salary payment, fund trading, and foreign exchange trading. The business areas of product operation include product 1, product 2, and product 3. For example, if product 1 is a deposit, the above deposit account opening, deposit deposit, and dormant account management can be classified into the deposit business area. Similarly, the remaining businesses can be classified into other business areas in a similar way, and will not be described one by one here. In this way, the business area layer of the business map is constructed.

[0109] Taking the deposit business as an example, the deposit business includes deposit account opening, deposit deposit, and dormant account management. The business activities included in the above business include: corporate current account opening activities, corporate regular account opening activities, and personal current account opening activities. The above business activities can be classified into the business activity layer. Similarly, the business activities included in other businesses can also be classified into the business activity layer, so that the business activity layer of the business map can be obtained.

[0110] Usually, each business activity includes multiple activity nodes, which need to be implemented by corresponding (program) function modules. When the function modules implement the corresponding activity node functions, users may need to input data. Therefore, the activity nodes may not only need to be associated with the corresponding function modules, but also with the corresponding user interfaces. Figure 3 FIG. 1 is a schematic diagram showing the relationship between a business activity, a functional module and a user interface provided by an embodiment of the present invention. Figure 3 As shown, the business activity is an account opening activity, and the activity nodes of the business activity include identifying customer identity, establishing customer information, reviewing account opening applications, and establishing deposit contracts; the functional module for realizing the identification of customer identity is to query customer information, the functional module for realizing the establishment of customer information function is to add customer information, the functional module for realizing the review of account opening applications function includes checking customer qualifications and checking the screening list, and the functional module for realizing the establishment of deposit contracts function includes checking the saleable products, checking the duplicate and empty status, and adding a new deposit contract, so it is necessary to associate the above-mentioned activity nodes with the functional modules they contain. When realizing the identification of customer identity, it is necessary to call the user interface for querying customers, in which the user input of the identification method and query conditions of customer identification is required; when realizing the creation of customer information, it is necessary to obtain the user input in the user interface for creating customers; when realizing the review of account opening applications and the establishment of deposit contracts, it is necessary to obtain the user input information from the user interface for opening accounts, so it is necessary to associate the above-mentioned activity nodes with their corresponding user interfaces. Among them, the duplicate and empty status refers to whether the account is repeated or empty.

[0111] See also Figure 4 A schematic diagram of mapping business activities, business workflows and user interfaces included in a business provided in an embodiment of the present invention. Figure 4 The business in the example includes multiple business activities, and is also associated with a business valuation corresponding to the business; each business activity includes at least one associated business workflow, and each business workflow is mapped to a data input area of ​​the user interface, and data is obtained from the corresponding area and the corresponding workflow is executed through the business workflow.

[0112] See also Figure 5 A schematic diagram of a user interface associated with a business workflow and a schematic diagram of its operation instructions and associated test cases provided by an embodiment of the present invention.

[0113] Figure 5 The business workflow in Figure 4 In the business workflow 1, the associated user interface is user interface 1 and its operation instructions, and the associated test cases include test cases 1 to 3, and the number of each test case is shown. Business workflow 1 is mapped to the selection input box corresponding to the query condition to obtain the user selection, and points to the test case associated with business workflow 1 based on the above selection. The business test case associates the business and business rules through the test case number of the above test case to achieve accurate association between the test case and the verification object. The coverage of the business points corresponding to the test case can be detected through factors such as entities, conditions, customers, products, channels, etc. related to the business rules. When determining the business points covered by the business test case in the future, it can be determined based on the business points covered by each test case associated with the business test case.

[0114] According to the above method, the business map of the project to be delivered can be constructed. Figure 6 A schematic diagram of the structure of a business map provided by an embodiment of the present invention, in which the solid lines represent associations, and N, m, n, t, q, and s are all greater than 1. A value scenario can be associated with multiple business areas, or one business area; a business area can be associated with one business activity, or multiple business activities; a business activity includes multiple activity nodes, an activity node can be associated with at least one functional module, and can also be associated with a user interface, a user interface can be associated with one activity node, or more than one activity node, and the specific association relationship between them can be set according to actual needs and is not limited here.

[0115] It is important to understand that Figure 6 Although the relationship between business and business domains and business activities is not shown, in fact, there is a relationship between business and business domains and business activities. The relationship between them can be implicit or explicit. Figure 6 It can be regarded as an implicit association relationship.

[0116] Of course, in addition to being constructed from top to bottom (i.e. from the value chain layer to the business activity layer) as described above, the business map can also be constructed from bottom to top (i.e. from the business activity layer to the value chain layer). There is no restriction on the specific construction method.

[0117] In other embodiments, the business map of the project to be delivered may also be obtained by updating the original business map of the original project based on the change information.

[0118] For example, the original business map of the original project is assumed to be Figure 6 The business map shown in the figure shows that the information about the project to be delivered has changed compared to the original project. Figure 6 A new business and new business activities corresponding to the new business are added in Business Area 2 of Figure 6 Based on the business map shown in , add new business activities corresponding to the new business in the business activity layer and associate them with business area 2. At the same time, associate the function modules corresponding to each activity node of business activity 2, and associate the activity nodes corresponding to the user interface corresponding to the function module, so that the business map of the project to be delivered can be obtained.

[0119] For example, the original business map of the original project is assumed to be Figure 6 The business map shown in the figure shows that the information about the project to be delivered has changed compared to the original project. Figure 6 If the program in functional module 1 has changed, the business map of the project to be delivered is the same as the original business map of the original project.

[0120] After obtaining the business map of the project to be delivered, step 102 may be executed.

[0121] In some embodiments, determining the business involved in the change information from the business map of the project to be delivered according to the change information can be achieved in the following ways:

[0122] taking at least one of the function module to which the change information belongs and the function module having a dependency relationship with the change information as a related function module related to the change information;

[0123] Determine from the business map the business activity where the business activity node associated with the relevant functional module is located as the relevant business activity related to the change information;

[0124] Determine the business to which the relevant business activities belong from the business map as the business involved in the change information.

[0125] For example, the change information is that the business rules for generating bank card numbers have changed, and the function module corresponding to generating bank card numbers is assumed to be Figure 3 A new deposit contract is added in the , then the function module to which the above change information belongs is the new deposit contract, and the new deposit contract is a related function module corresponding to the above change information; through query, it can be determined that other function modules that have a calling relationship (i.e., dependency relationship) with generating the bank card number (change information) include the card number writing module, the card number verification module, etc., and these modules are collectively regarded as other function modules corresponding to the above change information.

[0126] Then, according to the business map of the project to be delivered, the business activity nodes associated with each other functional module corresponding to the above change information and the business activities of each business activity node are obtained. For example, the business node associated with the newly added deposit contract is to establish a deposit contract. The business activities where the deposit contract is established include public account opening activities and private account opening activities. These business activities are used as related business activities for generating bank card numbers (change information). After that, the business associated with the above related business activities is queried from the business map as the business involved in the change information.

[0127] In the embodiment provided by the present invention, by using at least one of the function module to which the change information belongs and the function modules that have a dependency relationship with the change information as the relevant function module related to the change information; determining the business activity where the business activity node associated with the relevant function module is located from the business map as the relevant business activity related to the change information; determining the business to which the relevant business activity belongs from the business map as the business involved in the change information, the business involved in the change information can be quickly determined based on the association relationship between the various parts recorded in the business map in the project to be delivered.

[0128] In some embodiments, determining the business activity where the business activity node associated with the relevant functional module is located from the business map as the relevant business activity related to the change information can also be implemented in the following manner:

[0129] Determine the business activity node associated with each relevant functional module from the business map, remove duplicates, and obtain at least one different business activity node;

[0130] The business activities where each different business activity node in at least one different business activity node is located are determined, and duplicates are removed to obtain related business activities related to the change information.

[0131] For example, the relevant functional modules are Figure 3 In the detection of saleable products, detection of duplicate and empty status, and addition of deposit contracts, it can be determined from the business map that the activity nodes associated with the above three related functional modules are all for establishing deposit contracts. Therefore, there are 3 identical business activity nodes. At this time, after deduplication, only one business activity node for establishing a deposit contract is retained.

[0132] Similarly, the business activity nodes determined based on the business activity nodes may be deduplicated to obtain related business activity nodes.

[0133] In the embodiment provided by the present invention, by deduplicating the business activity nodes after obtaining each business activity node corresponding to each relevant functional module, and then determining the business activities of each deduplicated business node based on the deduplicated business activity nodes, and deduplicating the business activities of the duplicated business nodes, the data processing volume can be effectively reduced, resources can be saved, and the processing speed can be improved.

[0134] After determining the business involved in the change information of the project to be delivered relative to the original project, step 103 may be executed.

[0135] Step 103: Test the business using the business test case associated with the business in the business map to obtain the execution result;

[0136] Business test cases can be written by staff according to the corresponding business, or generated by other programs, or can be test cases associated with the same business in the original project, or modified based on test cases associated with the same business in the original project, with no specific restrictions. After obtaining the test case of each business, it will be associated with the corresponding business in the business map, which makes it easier to manage business test cases and avoid repeated testing or missed testing.

[0137] In some embodiments, the test cases include:

[0138] at least one data group, each data group corresponding to input data required for a business activity;

[0139] A plurality of test cases, wherein the test cases are associated with corresponding business rules and business workflows corresponding to the business activities through test case numbers.

[0140] In a possible implementation mode, the data group and the corresponding operation sequence are generated by collecting historical data and historical operation processes input by the user when the user handles the business in the original project;

[0141] Or, the data groups and corresponding operation sequences are pre-arranged by the tester.

[0142] In some embodiments, testing a business using a business test case associated with the business in the business map to obtain an execution result can be achieved in the following ways:

[0143] Based on the data groups in the business test case, input data into the user interface corresponding to the business in sequence according to the operation sequence corresponding to the data groups;

[0144] Record the data results returned based on the data and all the function modules and call-up tracks that are called up from the function module that responds to the data to the process of returning the data results;

[0145] Determine the business points corresponding to all functional modules, and remove the duplication of the business points corresponding to all functional modules to obtain the business points actually covered by the business test cases;

[0146] Calculate the proportion of the business points actually covered by the business test case to the total business points included in the business, and obtain the business point coverage rate of the business test case;

[0147] All functional modules, call-up traces, business points actually covered by business test cases, and business point coverage rates of business test cases are taken as execution results.

[0148] For example, if the business is to open an account, the user needs to Figure 2 In the user interface for querying customers shown in the figure, select the identification method and query conditions, then enter the information A, B, and C in the user interface for creating customers, and then enter the information X and M in the user interface for opening an account. Each piece of information that needs to be manually input in each user interface is data, and these data together constitute the database of the account opening business. The input order of the above data is recorded as the operation order corresponding to the data group of the account opening business.

[0149] The data and operation sequence in the above data group can be generated by recording the data and operation sequence actually input by the user when handling the same business in the original project through a screen recording tool, or can be arranged by a tester. For example, for a newly added business, there is no restriction on how to obtain the data group and operation sequence in the business test case.

[0150] When testing the above account opening business in the project to be delivered, by calling Figure 3 In the user interface corresponding to the query customer, the data corresponding to the query customer interface in the data group is input into the data input area of ​​the corresponding data, and the data results returned based on the above data and all the function modules and the call-up tracks from the function module responding to the above data to the process of returning the data results are recorded, so that the business points related to each function module can be determined. Similarly, the return results corresponding to the data input in other user interfaces, the called function modules, and the call-up tracks are determined in a similar manner as described above, which will not be repeated here.

[0151] According to the above functional modules, the corresponding business points can be determined, and all business points corresponding to each functional module can be deduplicated, and the deduplicated business points can be used as the business points actually covered by the business test case. After that, by calculating the proportion of the business points actually covered by the business test case to the total business points included in the business, the business point coverage rate of the business test case can be obtained, and all functional modules used in the above business testing process, call-up tracks, business points actually covered by the business test case, and the business point coverage rate of the business test case are used as the execution result of the business test case.

[0152] After the test result of the business test case is obtained, step 104 may be executed.

[0153] Step 104: Compare the execution result with the expected result corresponding to the business to see if they are consistent; if they are consistent, the test passes; if they are inconsistent, output the difference information between the execution result and the expected result, and adjust the business test case based on the difference information.

[0154] When comparing, the execution result is compared with similar information in the expected result corresponding to the business involved in the relevant information to obtain a comparison result. If the execution result is consistent with the expected result, it can be determined that the quality of the business test case associated with the business involved in the change information in the to-be-delivered project is good and the test has passed, and this test case can be used to test the business involved in the change information in the to-be-delivered project; if it is inconsistent, the difference information between the execution result and the expected result is output, such as the data output by a functional module in the expected result is different from the actual output data of the same functional module in the execution result, or the functional module included in the execution result does not exist in the expected result, etc. These information that are inconsistent with the expected result and the execution result can be determined as difference information, and the business test case can be scored based on the difference information, and the quality of the business test case can be determined based on the scoring result. For example, each information in the difference information can be scored, and the corresponding weight can be set, and then the weighted calculation of each information contained in the difference information can be performed to obtain the final score of the business test case.

[0155] For example, if the difference information is that a business rule in the expected result is not covered, the business test case can be adjusted for the business rule.

[0156] In the embodiment provided by the present invention, by obtaining change information of the project to be delivered relative to the original project; wherein the project to be delivered is modified on the basis of the original project; according to the change information, the business involved in the change information is determined from the business map of the project to be delivered; wherein the business map is constructed according to the value created by the business provided by the project to be delivered in the operation and management link, the business field to which it belongs, and the business activities corresponding to each business provided by the project to be delivered; the business is tested with a business test case for the business to obtain an execution result; the execution result is compared with the expected result corresponding to the business for consistency; if consistent, the test passes; if inconsistent, the difference information between the execution result and the expected result is output, and the business test case is adjusted based on the difference information, so that it can be determined whether the business test case associated with the business involved in the change information in the project to be delivered covers the functional modules affected by the above-mentioned change information, and the functional modules not covered by the business test case can also be discovered and adjusted in time, thereby effectively improving the quality of the business test case.

[0157] Based on the same inventive concept, an embodiment of the present invention provides a device for service testing. The specific implementation of the service testing method of the device can refer to the description of the method embodiment part, and the repeated parts will not be repeated. Figure 7 , the device comprises:

[0158] An acquisition unit 701 acquires change information of a to-be-delivered project relative to an original project; wherein the to-be-delivered project is modified based on the original project;

[0159] The determination unit 702 is used to determine the business involved in the change information from the business map of the project to be delivered according to the change information; wherein the business map is constructed according to the value created by the business provided by the project to be delivered in the operation and management link, the business field to which it belongs, and the business activities corresponding to each business provided by the project to be delivered;

[0160] An execution unit 703 is used to test the service using a service test case for the service to obtain an execution result;

[0161] Processing unit 704 is used to compare whether the execution result is consistent with the expected result corresponding to the business; if they are consistent, the test passes; if they are inconsistent, the difference information between the execution result and the expected result is output, and the business test case is adjusted based on the difference information.

[0162] In a possible implementation manner, the device further includes a construction unit 705, and the construction unit 705 is used to:

[0163] According to the change information, before determining the business involved in the change information from the business map of the project to be delivered, the business included in the project to be delivered is classified into different value scenarios according to the value created by the business provided by the project to be delivered in the operation and management link, so as to obtain the value chain layer of the business map;

[0164] According to the business domain included in each value scenario, the business included in each value scenario is classified into different business domains to obtain the business domain layer of the business map;

[0165] According to the business activities implemented by the customer in the business included in the business field, business activities corresponding to each business are created to obtain the business activity layer of the business map; wherein the business is associated with the corresponding test case;

[0166] The business map is obtained by associating each activity node in the business activity with a functional module that realizes the function of the activity node and a user interface corresponding to the activity node.

[0167] In a possible implementation manner, the construction unit 705 is further used for:

[0168] Before determining the business involved in the change information from the business map of the project to be delivered according to the change information, the original business map of the original project is updated based on the change information to obtain the business map.

[0169] In a possible implementation manner, the determining unit 702 is further configured to:

[0170] taking at least one of the function module to which the change information belongs and the function module having a dependency relationship with the change information as a relevant function module related to the change information;

[0171] Determine, from the business map, a business activity where a business activity node associated with the relevant function module is located as a relevant business activity related to the change information;

[0172] The business to which the relevant business activity belongs is determined from the business map as the business involved in the change information.

[0173] In a possible implementation manner, the determining unit 702 is further configured to:

[0174] Determine the business activity node associated with each relevant functional module from the business map, remove duplicates, and obtain at least one different business activity node;

[0175] The business activity where each different business activity node in the at least one different business activity node is located is determined, and duplicates are removed to obtain related business activities related to the change information.

[0176] In a possible implementation manner, the execution unit 703 is further configured to:

[0177] Based on the data group in the business test case, input data into the user interface corresponding to the business in sequence according to the operation sequence corresponding to the data group;

[0178] Recording a data result returned based on the data and all function modules and call-up tracks that are called up from the function module that responds to the data to the process of returning the data result;

[0179] Determine the business key points corresponding to all the functional modules, and remove duplicates of the business key points corresponding to all the functional modules to obtain the business key points actually covered by the business test case;

[0180] Calculate the proportion of the key business points actually covered by the service test case to the total key business points included in the service, and obtain the key business point coverage rate of the service test case;

[0181] All the functional modules, the call-up tracks, the key business points actually covered by the business test cases, and the key business point coverage of the business test cases are taken as the execution results.

[0182] In a possible implementation manner, the business test case includes:

[0183] at least one of the data groups, each data group corresponding to input data required for a business activity;

[0184] A plurality of test cases, wherein the test cases are associated with corresponding business rules and business workflows corresponding to the business activities through test case numbers.

[0185] In a possible implementation manner, the data group and the corresponding operation sequence are generated by collecting historical data and historical operation processes input by the user when the user handles the business in the original project;

[0186] Alternatively, the data groups and corresponding operation sequences are pre-arranged by testers.

[0187] In a possible implementation manner, the change information includes:

[0188] Any one or any combination of the updated part of the code in the functional module, the updated part of the calling relationship between the functional modules, and the updated part of the business rules of the business.

[0189] It should be noted that the division of units in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0190] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a processor-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (RandomAccess Memory, RAM), disk or optical disk and other media that can store program code.

[0191] It should be noted here that the above-mentioned device provided in the embodiment of the present invention can implement all the method steps implemented in the above-mentioned method embodiment, and can achieve the same technical effect. The parts and beneficial effects that are the same as the method embodiment in this embodiment will not be described in detail here.

[0192] Based on the same inventive concept, an embodiment of the present invention provides a service testing device, including: at least one processor, and

[0193] a memory coupled to the at least one processor;

[0194] The memory stores instructions that can be executed by the at least one processor, and the at least one processor executes the service testing method as described above by executing the instructions stored in the memory.

[0195] Based on the same inventive concept, an embodiment of the present invention further provides a readable storage medium, including:

[0196] Memory,

[0197] The memory is used to store instructions. When the instructions are executed by the processor, the device including the readable storage medium completes the service testing method as described above.

[0198] The readable storage medium may be any available medium or data storage device that the processor can access, including volatile memory or non-volatile memory, or may include both volatile memory and non-volatile memory. As an example and not limitation, non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory, solid state disk (SSD), magnetic storage (e.g., floppy disk, hard disk, magnetic tape, magneto-optical disc (MO), etc.), optical storage (e.g., CD, DVD, BD, HVD, etc.). Volatile memory may include random access memory (RAM), which may act as an external cache memory. By way of example and not limitation, RAM is available in a variety of forms, such as dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced synchronous DRAM (ESDRAM), and synchronous link DRAM (SLDRAM). The memory devices of the disclosed aspects are intended to include, but are not limited to, these and other suitable types of memory.

[0199] Based on the same inventive concept, an embodiment of the present invention further provides a computer program product, including program code. When a computer runs the computer program, the program code executes the service testing method as described above.

[0200] Those skilled in the art will appreciate that the embodiments of the present invention may be provided as methods, systems, or program products. Therefore, the embodiments of the present invention may be in the form of complete hardware embodiments, complete software embodiments, or embodiments combining software and hardware. Moreover, the embodiments of the present invention may be in the form of machine program products implemented on one or more readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer / processor available program codes.

[0201] The embodiments of the present invention are described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the 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 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 generate 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.

[0202] These program instructions may also be stored in a readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the readable memory produce a manufactured product including 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.

[0203] These program instructions may 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 / processor-implemented process, thereby providing instructions executed on the computer / processor or other programmable device 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.

[0204] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for service testing, characterized in that: include: Obtaining change information of the project to be delivered relative to the original project; wherein the project to be delivered is modified based on the original project; Determine the business involved in the change information from the business map of the project to be delivered according to the change information; wherein the business map is constructed according to the value created by the business provided by the project to be delivered in the operation and management link, the business field to which it belongs, and the business activities corresponding to each business provided by the project to be delivered; Testing the business using the business test case associated with the business in the business map to obtain an execution result; Compare the execution result with the expected result corresponding to the business to see if they are consistent; if they are consistent, the test passes; if they are inconsistent, output the difference information between the execution result and the expected result, and adjust the business test case based on the difference information.

2. The method according to claim 1, characterized in that Before determining the business involved in the change information from the business map of the project to be delivered according to the change information, the method further includes: According to the value created by the business provided by the project to be delivered in the operation and management link, the business included in the project to be delivered is classified into different value scenarios to obtain the value chain layer of the business map; According to the business domain included in each value scenario, the business included in each value scenario is classified into different business domains to obtain the business domain layer of the business map; According to the business activities implemented by the customer in the business included in the business field, business activities corresponding to each business are created to obtain the business activity layer of the business map; wherein the business is associated with the corresponding test case; The business map is obtained by associating each activity node in the business activity with a functional module that realizes the function of the activity node and a user interface corresponding to the activity node.

3. The method according to claim 1, characterized in that Before determining the business involved in the change information from the business map of the project to be delivered according to the change information, the method further includes: The original business map of the original project is updated based on the change information to obtain the business map.

4. The method according to claim 2, characterized in that Determining the business involved in the change information from the business map of the project to be delivered according to the change information includes: taking at least one of the function module to which the change information belongs and the function module having a dependency relationship with the change information as a relevant function module related to the change information; Determine, from the business map, a business activity where a business activity node associated with the relevant function module is located as a relevant business activity related to the change information; The business to which the relevant business activity belongs is determined from the business map as the business involved in the change information.

5. The method according to claim 4, characterized in that Determining from the business map the business activity at which the business activity node associated with the relevant function module is located as the relevant business activity related to the change information includes: Determine the business activity node associated with each relevant functional module from the business map, remove duplicates, and obtain at least one different business activity node; The business activity where each different business activity node in the at least one different business activity node is located is determined, and duplicates are removed to obtain related business activities related to the change information.

6. The method according to claim 2, characterized in that The business is tested using the business test case associated with the business in the business map to obtain an execution result, including: Based on the data group in the business test case, input data into the user interface corresponding to the business in sequence according to the operation sequence corresponding to the data group; Recording a data result returned based on the data and all function modules and call-up tracks that are called up from the function module that responds to the data to the process of returning the data result; Determine the business key points corresponding to all the functional modules, and remove the duplication of the business key points corresponding to all the functional modules to obtain the business key points actually covered by the business test case; Calculate the proportion of the key business points actually covered by the service test case to the total key business points included in the service, and obtain the key business point coverage rate of the service test case; All the functional modules, the call-up tracks, the key business points actually covered by the business test cases, and the key business point coverage of the business test cases are taken as the execution results.

7. The method according to claim 6, characterized in that The business test cases include: at least one of the data groups, each data group corresponding to input data required for a business activity; A plurality of test cases, wherein the test cases are associated with corresponding business rules and business workflows corresponding to the business activities through test case numbers.

8. The method according to claim 7, characterized in that The data group and the corresponding operation sequence are generated by collecting the historical data and historical operation process input by the user when the user handles the business in the original project; Alternatively, the data set and the corresponding operation sequence are pre-arranged by a tester.

9. The method according to any one of claims 2 to 8, characterized in that: The change information includes: Any one or any combination of the updated part of the code in the functional module, the updated part of the calling relationship between the functional modules, and the updated part of the business rules of the business.

10. A device for service testing, characterized in that: include: An acquisition unit, used to acquire change information of the project to be delivered relative to the original project; wherein the project to be delivered is modified based on the original project; A determination unit, configured to determine the business involved in the change information from the business map of the project to be delivered according to the change information; wherein the business map is constructed according to the value created by the business provided by the project to be delivered in the operation and management link, the business field to which it belongs, and the business activities corresponding to each business provided by the project to be delivered; An execution unit, used to test the service using a service test case for the service to obtain an execution result; A processing unit is used to compare whether the execution result is consistent with the expected result corresponding to the business; if they are consistent, the test passes; if they are inconsistent, the difference information between the execution result and the expected result is output, and the business test case is adjusted based on the difference information.

11. A device for service testing, characterized in that: include: at least one processor, and a memory coupled to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the at least one processor executes the method according to any one of claims 1 to 9 by executing the instructions stored in the memory.

12. A readable storage medium, characterized in that: Including memory, The memory is used to store instructions. When the instructions are executed by the processor, the device including the readable storage medium implements the method according to any one of claims 1 to 9.

13. A computer program product, characterized in that The computer program comprises program codes, and when a computer runs the computer program, the program codes execute the method according to any one of claims 1 to 9.