Function test method and device, electronic equipment and storage medium
By obtaining the test case set to be optimized from the test case library, and constructing optimization scenarios based on equivalence class update types and associated equivalence classes, the problem of independence in test case design and management of bank application systems is solved, realizing the integrity and scientific nature of functional testing and adapting to the rapid iteration of system functions.
Patent Information
- Application Number
- CN202511064129.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-31
- Publication Date
- 2025-11-14
AI Technical Summary
Existing test case design and management techniques are relatively independent and lack specificity, failing to effectively cover the potential risks brought about by the functional optimization of bank application systems, resulting in a lack of overall coherence and scientific rigor in testing tasks.
By obtaining the test case set to be optimized from the test case library, determining the equivalence class update type and associated equivalence class of input and output items based on the optimization content, constructing the test case optimization scenario, and updating the test case set to be optimized, the updated test case set is formed to execute functional testing tasks.
This improves the scientific rigor, sufficiency, and effectiveness of functional testing for bank application systems, ensuring the integrity of test case design and execution, and adapting to the rapid iteration needs of bank application system functions.
Smart Images

Figure CN120950394A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of functional testing technology, and in particular to a functional testing method, apparatus, electronic device, and storage medium. Background Technology
[0002] For testing bank application systems, after the system is deployed, the test equivalence classes of each input and output item in the system transaction are not fixed as business rules are continuously updated and adjusted. Instead, they need to be updated with system optimizations. When the test equivalence classes are updated, a scientific and effective testing methodology is needed to cover the potential risks that may be brought about by this optimization update to the greatest extent possible, while taking into account economy and the return on investment of test design.
[0003] For testing bank application systems, existing technical solutions include test case design and test case management, each relatively independent. Regarding test case design, existing techniques include equivalence class testing and boundary value testing. Equivalence class testing divides the input domain (i.e., the set of input data) into several disjoint subsets (equivalence classes), where the data in each subset is equivalent in revealing errors in the program. Therefore, a small number of representative data points can be selected from each equivalence class as test cases to cover a larger range of input data with fewer test cases. Boundary value testing is a black-box testing method based on the practical fact that "many errors occur at the boundaries of the input or output range, not within the input range," testing the boundary values of input or output. For test case management, existing technologies refer to database management methods, building a test asset library based on system transactions. Authorized testers can add, modify, delete, query, and export test cases from the library as needed.
[0004] Existing test case design and test case management technologies are relatively independent, and the testing tasks for optimizing the functions of bank application systems lack specificity and have not formed an organic whole. Summary of the Invention
[0005] This invention provides a functional testing method, apparatus, electronic device, and storage medium to address the problem that existing test case design and test case management technologies are relatively independent and lack specificity for testing tasks aimed at optimizing the functions of bank application systems, thus failing to form an organic whole.
[0006] According to one aspect of the present invention, a functional testing method is provided, the method comprising:
[0007] Based on the optimization requirements, obtain the set of test cases to be optimized from the test case library;
[0008] Based on the optimization content, determine the equivalence class update type and associated equivalence classes of the input and output items involved in the update in the test case set to be optimized;
[0009] Based on the equivalence class update type and associated equivalence classes, the corresponding test case optimization scenario is determined, and the test case set to be optimized is updated according to the test case optimization scenario to obtain the updated test case set.
[0010] Control the execution of functional test tasks using the updated test case set.
[0011] According to another aspect of the present invention, a functional testing apparatus is provided, the apparatus comprising:
[0012] The test case set acquisition module is used to obtain the test case set to be optimized from the test case library based on the optimization content;
[0013] The equivalence class update determination module is used to determine the equivalence class update type and associated equivalence class of the input and output items involved in the update in the test case set to be optimized, based on the optimization content.
[0014] The test case set update module is used to determine the corresponding test case optimization scenario based on the equivalence class update type and the associated equivalence class, and update the test case set to be optimized according to the test case optimization scenario to obtain the updated test case set.
[0015] The test case set functional testing module is used to control the execution of functional testing tasks by the updated test case set.
[0016] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0017] At least one processor; and
[0018] A memory communicatively connected to the at least one processor; wherein,
[0019] The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the functional testing method described in any embodiment of the present invention.
[0020] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the functional testing method described in any embodiment of the present invention.
[0021] According to another aspect of the present invention, a computer program product is provided, the computer program product comprising a computer program that, when executed by a processor, implements the functional testing method as described in any embodiment of the present invention.
[0022] The technical solution of this invention involves obtaining a set of test cases to be optimized from a test case library based on the optimization content; determining the equivalence class update type and associated equivalence classes of the input and output items involved in the update in the test case set based on the optimization content; determining the corresponding test case optimization scenario based on the equivalence class update type and associated equivalence classes; updating the test case set to be optimized according to the test case optimization scenario to obtain an updated test case set; and controlling the updated test case set to execute functional testing tasks. This solves the problem that existing test case design and management technologies are relatively independent and lack specificity for testing tasks related to the functional optimization of banking application systems, failing to form an organic whole. It provides a holistic approach to testing for functional updates and optimizations of banking application systems, offering specific operational steps in requirements analysis, test case set selection, test case set maintenance, and test case set execution, demonstrating comprehensiveness and improving the scientific rigor, sufficiency, and effectiveness of functional test design and execution.
[0023] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0024] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0025] Figure 1 This is a flowchart of a functional testing method provided in Embodiment 1 of the present invention;
[0026] Figure 2 This is a flowchart of a functional testing method provided according to Embodiment 2 of the present invention;
[0027] Figure 3 This is a flowchart of another functional testing method provided in Embodiment 2 of the present invention;
[0028] Figure 4 This is a flowchart of a test case set selection and maintenance method provided in Embodiment 2 of the present invention;
[0029] Figure 5 This is a schematic diagram of the structure of a functional testing device according to Embodiment 3 of the present invention;
[0030] Figure 6 This is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. Detailed Implementation
[0031] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0032] The acquisition, storage, use, and processing of data in the technical solution of this application all comply with relevant laws and regulations. It should be noted that the terms "first," "second," "target," and "original," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising," "etc.," and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0033] Example 1
[0034] Figure 1 This is a flowchart of a functional testing method provided in Embodiment 1 of the present invention. This embodiment is applicable to situations where test cases are updated based on equivalence class update types and associated equivalence classes, and functional testing tasks are executed based on the updated test cases. This method can be executed by a functional testing device, which can be implemented in hardware and / or software, and can be configured in any electronic device with network communication capabilities. Figure 1 As shown, the method includes:
[0035] S110. Obtain the set of test cases to be optimized from the test case library based on the optimization content.
[0036] Generally, the initial setup of a bank application system creates a relatively complete test case library, covering all the system's functions. However, as business rules change and the system's functionality is updated, from a testing perspective, this often manifests as changes in the test equivalence classes corresponding to the system's inputs and outputs, including additions, modifications, and deletions. For example, if a system update adds a new supported account type for transfer transactions, from a testing perspective, this is reflected in the "Account Type" input item having an added equivalence class type, requiring the addition of corresponding test cases. Furthermore, updates to the test equivalence classes corresponding to inputs and outputs may also affect existing test equivalence classes, necessitating updates to related test cases as well.
[0037] In existing technologies, equivalence class test design techniques and boundary value test design techniques for testing scenarios optimizing banking application systems mainly consider the design of new test cases, providing specific methods for covering different equivalence classes during test case design. These techniques do not specifically discuss various update and optimization scenarios such as adding, modifying, and deleting equivalence classes, or whether updates affect existing equivalence classes, or how to adjust existing test cases. Furthermore, test case management techniques for testing scenarios optimizing banking application systems primarily focus on the construction and maintenance of test case libraries, without addressing how to update test cases during maintenance, or the different scenarios that might be involved in updating test cases.
[0038] Therefore, based on the above problems, this embodiment of the invention constructs a standard functional testing method for optimizing the functions of a banking application system, including requirements analysis, test case set selection, test case set maintenance, and test case set execution. First, the requirements for optimizing the functions of the banking application system are analyzed, and based on the optimization content, the test case set to be optimized is obtained from the test case library.
[0039] The test case library can refer to a collection of test cases gradually built up during the system transaction construction and updates, covering all functions of the corresponding system transaction. The test case set can refer to a collection of test cases selected from the test case library that are related to the functional modifications and optimizations of the system transaction.
[0040] S120. Based on the optimization content, determine the equivalence class update type and associated equivalence class of the input and output items involved in the update in the test case set to be optimized.
[0041] Input and output items refer to the input and output items of a transaction in the application system under test. A transaction includes multiple input and output items. An equivalence class refers to the smallest test unit derived and analyzed using test design techniques such as equivalence classes and boundary value analysis for the input and output items of a system transaction. An input and output item should contain one or more test equivalence classes.
[0042] The equivalence class update type of the input / output item can refer to the update type of the related equivalence class corresponding to the input / output item when it is updated. The equivalence class update type includes, but is not limited to, adding an equivalence class, modifying an equivalence class, and deleting an equivalence class. The associated equivalence class refers to other equivalence classes that undergo related changes when the related equivalence class of the input / output item changes.
[0043] For example, a bank's system is optimizing its wealth management function. The optimization involves removing the lower limit of the daily redemption amount (which was previously 5,000 yuan and 100,000 yuan) and retaining only the upper limit. Testers analyze the changes and their impact, selecting n test cases from the test case library. The optimization type is then analyzed. Before the optimization, the relevant equivalence classes for the input item "daily redemption amount" included: "redemption amount equals 0", "redemption amount greater than 0 and less than 5,000", "redemption amount equals 5,000", "redemption amount greater than 5,000 and less than 100,000", "redemption amount equals 100,000", and "redemption amount greater than 100,000", totaling six relevant equivalence classes. After the optimization, the relevant equivalence classes for the input item "daily redemption amount" include: "redemption amount equals 0", "redemption amount greater than 0 and less than 100,000", and so on. There are four related equivalence classes: "Redemption amount equal to 100,000" and "Redemption amount greater than 100,000". This modification does not involve adding or modifying equivalence classes, but it involves deleting three equivalence classes: "Redemption amount greater than 0 and less than 5,000", "Redemption amount equal to 5,000", and "Redemption amount greater than 5,000 and less than 100,000". At the same time, the association of "Redemption amount greater than 0 and less than 5,000" has changed to "Redemption amount greater than 0 and less than 100,000", so "Redemption amount greater than 0 and less than 100,000" is the corresponding related equivalence class.
[0044] S130. Determine the corresponding test case optimization scenario based on the equivalence class update type and associated equivalence classes, and update the test case set to be optimized based on the test case optimization scenario to obtain the updated test case set.
[0045] Among them, the test case optimization scenario can refer to the scenario determined based on the equivalence class update type and associated equivalence classes. The test case optimization scenario includes, but is not limited to, adding an equivalence class and other equivalence classes undergoing associated changes, adding an equivalence class and other equivalence classes not undergoing associated changes, modifying an equivalence class and other equivalence classes undergoing associated changes, modifying an equivalence class and other equivalence classes not undergoing associated changes, deleting an equivalence class and other equivalence classes undergoing associated changes, deleting an equivalence class and other equivalence classes not undergoing associated changes, and equivalence classes not being updated.
[0046] In this embodiment of the invention, based on the equivalence class update type and associated equivalence class of the input and output items involved in the update, a corresponding test case optimization scenario is selected, and the test case set to be optimized is updated according to the test case optimization scenario to obtain the updated test case set.
[0047] S140. Control the updated test case set to execute functional test tasks.
[0048] Specifically, after obtaining the updated test case set, the updated test case set is controlled to execute functional test tasks.
[0049] This invention provides a functional testing method. The method involves: obtaining a set of test cases to be optimized from a test case library based on optimization content; determining the equivalence class update types and associated equivalence classes of the updated input / output items in the test case set based on the optimization content; determining the corresponding test case optimization scenario based on the equivalence class update types and associated equivalence classes; updating the test case set based on the optimization scenario to obtain an updated test case set; and controlling the updated test case set to execute functional testing tasks. This invention, targeting the functional update and optimization of a banking application system, provides specific operational steps for the overall testing process, including requirements analysis, test case set selection, test case set maintenance, and test case set execution. This comprehensive approach improves the scientific rigor, sufficiency, and effectiveness of functional test design and execution.
[0050] Example 2
[0051] Figure 2 This is a flowchart of a functional testing method provided in Embodiment 2 of the present invention. The embodiments of the present invention further optimize the aforementioned embodiments, and can be combined with various optional solutions from one or more of the above embodiments. For example... Figure 2 As shown, the method includes:
[0052] S210. Obtain the set of test cases to be optimized from the test case library based on the optimization content.
[0053] S220. Based on the optimization content, determine the equivalence class update type and associated equivalence class of the input and output items involved in the update in the test case set to be optimized.
[0054] This involves analyzing the need for functional optimization of the bank application system, and based on the optimization content, determining the equivalence class update type and associated equivalence classes of the updated input and output items involved in the test cases to be optimized.
[0055] As an optional but non-limiting implementation, the step of determining the equivalence class update type and associated equivalence classes of the updated input and output items in the test case set to be optimized, based on the optimization content, includes, but is not limited to, steps A1-A3:
[0056] Step A1: Based on the optimization content, determine whether the set of test cases to be optimized involves updating the equivalence classes of input and output items.
[0057] Step A2: If it involves updating the equivalence classes of input and output items, determine the equivalence class update type and associated equivalence classes of the input and output items.
[0058] Step A3: If the update of the input / output equivalence class is not involved, then control the set of test cases to be optimized to execute the functional test task.
[0059] Among them, see Figure 3 The requirements are analyzed, and it is determined whether the optimization involves updating the equivalence classes of input and output items. If it does not involve updating the equivalence classes of input and output items, the functional test tasks are executed by controlling the obtained test case set to be optimized. If it involves updating the equivalence classes of input and output items, the update type of the equivalence classes of input and output items and the associated equivalence classes need to be determined in order to execute the subsequent test case maintenance and execution tasks.
[0060] S230. Optimize the scenario by constructing test cases based on the updated type of the equivalence class and the associated equivalence class.
[0061] In the test case maintenance phase of this embodiment of the invention, seven test case optimization scenarios are constructed based on two dimensions: equivalence class update type and associated equivalence classes. The equivalence class update type includes adding an equivalence class, modifying an equivalence class, and deleting an equivalence class. The test case optimization scenarios include adding an equivalence class and other equivalence classes undergoing associated changes, adding an equivalence class and other equivalence classes not undergoing associated changes, modifying an equivalence class and other equivalence classes undergoing associated changes, modifying an equivalence class and other equivalence classes not undergoing associated changes, deleting an equivalence class and other equivalence classes undergoing associated changes, deleting an equivalence class and other equivalence classes not undergoing associated changes, and equivalence classes not being updated.
[0062] The optimization methods for the seven test case scenarios are shown in Table 1.
[0063] Table 1. Seven test case optimization scenarios and their corresponding working methods
[0064]
[0065]
[0066] In the overall functional testing method of this invention, two dimensions are comprehensively considered, including whether equivalence class updates exist. In the test case set selection and maintenance stage, seven test case optimization scenarios are comprehensively considered based on two dimensions: equivalence class update type and associated equivalence classes. The consideration and handling of different branch test case optimization scenarios ensures that this invention can cover all possible situations, improving the sufficiency of functional testing in this embodiment.
[0067] S240. Determine the corresponding test case optimization scenario based on the equivalence class update type and associated equivalence classes, and update the test case set to be optimized based on the test case optimization scenario to obtain the updated test case set.
[0068] With the rapid development of financial services and the continuous deepening of digital transformation, the iteration frequency of banking application systems is also increasing rapidly. This requires testing to keep pace with this fast-paced change, ensuring that the system can provide stable and accurate services after each iteration. From a system testing perspective, application system function updates and optimizations triggered by adjustments to business rules mainly involve the addition, modification, and deletion of equivalence class types corresponding to various input and output items in system transactions. Faced with updates to equivalence class types, improving the scientific and rational nature of testing, determining corresponding test case optimization scenarios based on the updated equivalence class types and associated equivalence classes, and updating the test case set to be optimized according to these optimization scenarios are crucial for coping with rapid system iteration and ensuring system testing quality.
[0069] Among them, see Figure 4 Based on the equivalence class update type and associated equivalence classes, the corresponding test case optimization scenario is determined, and the test case set to be optimized is updated according to the working method corresponding to the test case optimization scenario, so as to obtain the updated test case set.
[0070] As an optional but non-limiting implementation, the step of determining the corresponding test case optimization scenario based on the equivalence class update type and associated equivalence classes, and updating the test case set to be optimized according to the test case optimization scenario to obtain the updated test case set, includes but is not limited to steps B1-B4:
[0071] Step B1: Determine whether the test case set to be optimized involves adding new equivalence classes based on the equivalence class update type.
[0072] Step B2: After determining that the test case set to be optimized involves a new equivalence class, determine whether there exists a first associated equivalence class related to the new equivalence class.
[0073] Step B3: If there exists a first associated equivalence class related to the newly added equivalence class, then supplement the first test case generated by the newly added equivalence class, update the second test case involved in the first associated equivalence class, and obtain the updated test case set based on the first test case and the second test case; wherein, if there is an associated equivalence class, it indicates that other equivalence classes have undergone association changes.
[0074] Step B4: If there is no first associated equivalence class related to the newly added equivalence class, then supplement the first test case generated by the newly added equivalence class to obtain the updated test case set; wherein, if there is no associated equivalence class, it indicates that other equivalence classes have not undergone association changes.
[0075] The optimization process involves analyzing whether it includes adding, modifying, or deleting equivalence classes. First, it determines if any new equivalence classes have been added. If so, it further determines if there are any related changes to other equivalence classes; these are defined as changes to unrelated equivalence classes. When related equivalence classes are identified, the test case set needs to be updated. This includes adding first test cases generated by the newly added equivalence class and updating second test cases related to the first related equivalence class. The updated test case set is then obtained based on the first and second test cases. If no first related equivalence class exists associated with the newly added equivalence class, then first test cases generated by the newly added equivalence class are added to obtain the updated test case set.
[0076] As an optional but non-limiting implementation, the step of determining the corresponding test case optimization scenario based on the equivalence class update type and associated equivalence classes, and updating the test case set to be optimized according to the test case optimization scenario to obtain the updated test case set, also includes, but is not limited to, steps C1-C4:
[0077] Step C1: Determine whether the test case set to be optimized involves modifying the equivalence class based on the equivalence class update type.
[0078] Step C2: After determining that the test case set to be optimized involves a modified equivalence class, determine whether there is a second associated equivalence class related to the modified equivalence class.
[0079] Step C3: If a second associated equivalence class exists that is related to the modified equivalence class, then supplement the third test case generated by the modified equivalence class, update the fourth test case involved in the second associated equivalence class, and delete the fifth test case that is invalid in the modified equivalence class. Based on the third, fourth, and fifth test cases, obtain the updated test case set.
[0080] Step C4: If there is no second associated equivalence class related to the modified equivalence class, then supplement the third test case generated by the modified equivalence class and delete the fifth test case that is invalid, so as to obtain the updated test case set.
[0081] Specifically, the process involves determining whether a modified equivalence class exists. If a modified equivalence class is involved, it determines whether a second associated equivalence class exists. If a second associated equivalence class exists, a third test case generated by the modified equivalence class is added, a fourth test case involving the second associated equivalence class is updated, and a fifth test case that is invalid due to the modified equivalence class is deleted. An updated test case set is then obtained based on the third, fourth, and fifth test cases. If no second associated equivalence class exists, a third test case generated by the modified equivalence class is added, and a fifth test case that is invalid due to the modified equivalence class is deleted, resulting in an updated test case set.
[0082] In one optional embodiment of the present invention, taking the test case optimization scenario of "modifying equivalence classes while other equivalence classes have not undergone associated changes" as an example, the test case set to be optimized is updated to obtain the updated test case set.
[0083] For example, a bank's system is optimizing its transfer transaction function. The optimization involves increasing the maximum number of characters for transfer remarks from 50 to 100. Testers analyze the changes and their related impacts, then select n test cases from the test case library.
[0084] Next, we analyze the optimization type. Before the optimization, the relevant equivalence classes for the "Transfer Remarks" input field included: "Remarks input is empty", "Remarks input is less than 50 characters", "Remarks input is equal to 50 characters", and "Remarks input is greater than 50 characters", totaling 4. After the optimization, the relevant equivalence classes for the "Transfer Remarks" input field include: "Remarks input is empty", "Remarks input is less than 100 characters", "Remarks input is equal to 100 characters", and "Remarks input is greater than 100 characters", totaling 4. This modification did not involve adding new equivalence classes, but rather modifying 3 equivalence classes, and did not cause changes to associated equivalence classes.
[0085] Update the test case set to be optimized: add test cases (k1) added due to the modification of equivalence classes, delete test cases (k2) that became invalid due to the modification of equivalence classes, and obtain the updated test case set (n+k1-k2), which will be used as the test case set to be executed this time, and update it to the test case library.
[0086] As an optional but non-limiting implementation, the step of determining the corresponding test case optimization scenario based on the equivalence class update type and associated equivalence classes, and updating the test case set to be optimized according to the test case optimization scenario to obtain the updated test case set, also includes, but is not limited to, steps D1-D4:
[0087] Step D1: Determine whether the test case set to be optimized involves deleting equivalence classes based on the equivalence class update type.
[0088] Step D2: After determining that the test case set to be optimized involves deletion equivalence class, determine whether there is a third association equivalence class associated with the deletion equivalence class.
[0089] Step D3: If a third association equivalence class exists that is associated with the deletion equivalence class, then delete the sixth test case generated by the deletion equivalence class, update the seventh test case involved in the third association equivalence class, and obtain the updated test case set based on the sixth test case and the seventh test case.
[0090] Step D4: If there is no third association equivalence class associated with the deletion equivalence class, then delete the sixth test case generated by the deletion equivalence class to obtain the updated test case set.
[0091] Specifically, the process involves determining whether an equivalence class deletion occurs. If so, it determines whether a third associated equivalence class exists. If such a class exists, the sixth test case generated by the deleted equivalence class is deleted, the seventh test case related to the third associated equivalence class is updated, and an updated test case set is obtained based on the sixth and seventh test cases. If no third associated equivalence class exists, the sixth test case generated by the deleted equivalence class is deleted, resulting in an updated test case set.
[0092] In one optional embodiment of the present invention, taking the test case optimization scenario of "deleting equivalence classes and other equivalence classes undergoing related changes" as an example, the test case set to be optimized is updated to obtain the updated test case set.
[0093] For example, a bank's system is optimizing its wealth management function. The optimization involves removing the lower limit of the daily redemption amount for a certain product (which was previously 5,000 yuan and 100,000 yuan) and retaining only the upper limit. Testers analyze the changes and their impact, then select n test cases from the test case library.
[0094] Next, we analyze the optimization type. Before the optimization, the relevant equivalence classes for the "Redemption Amount of the Day" input item included: "Redemption Amount = 0", "Redemption Amount > 0 < 5000", "Redemption Amount = 5000", "Redemption Amount > 5000 < 100000", "Redemption Amount = 100000", and "Redemption Amount > 100000", totaling 6. After the optimization, the relevant equivalence classes for the "Redemption Amount of the Day" input item include: "Redemption Amount = 0", "Redemption Amount > 0 < 100000", "Redemption Amount = 100000", and "Redemption Amount > 100000", totaling 4. This modification does not involve adding or modifying equivalence classes. Three equivalence classes, "Redemption Amount > 0 < 5000", "Redemption Amount = 5000", and "Redemption Amount > 5000 < 100000", were deleted. At the same time, a new equivalence class, "Redemption Amount > 0 < 100000", was introduced.
[0095] Update the selected test case set: Delete the test cases (k) that became invalid due to this "delete equivalence class" operation, update the test cases (Δt) that changed due to the newly introduced equivalence classes associated with this equivalence class deletion operation, and obtain the updated test case set (n-k+Δt). Use the updated test case set as the test case set to be executed this time, and update it to the test case library.
[0096] This invention addresses the functional updates and optimizations of banking application systems. During the test case set maintenance phase, it provides specific operational steps and considers various possible test case optimization scenarios to ensure the entire process is standardized and effective, avoiding arbitrariness. Given the increasingly frequent functional updates and optimizations of banking application systems, this invention provides more targeted guidance on how to conduct testing for these tasks.
[0097] S250, Control the updated test case set to execute functional test tasks.
[0098] Specifically, after determining the updated test case set, the updated test case set is controlled to execute functional test tasks.
[0099] As an optional but non-limiting implementation, controlling the updated test case set to execute functional test tasks includes, but is not limited to, steps E1-E2:
[0100] Step E1: Replace the test case set to be optimized with the updated test case set, and archive the test case set to be optimized in history.
[0101] Step E2: Store the updated test case set in the test case library and control the updated test case set to execute functional test tasks.
[0102] Specifically, after determining the updated test case set, the original obtained test case set to be optimized is replaced with the updated test case set, and the original obtained test case set to be optimized is archived in history; the updated test case set is stored in the test case library, and the updated test case set is controlled to execute functional test tasks.
[0103] This invention provides a functional testing method, including requirements analysis, test case set selection, test case set maintenance, and test case set execution. This method helps testers of bank application systems to consider various possible test case optimization scenarios when facing system function updates and optimizations, ensuring that the entire process is standardized and effective, avoiding arbitrariness, and improving the scientific rigor, sufficiency, and effectiveness of functional test design and execution.
[0104] Example 3
[0105] Figure 5 This is a schematic diagram of the structure of a functional testing device provided in Embodiment 3 of the present invention. Figure 5 As shown, the device includes:
[0106] The test case set acquisition module 510 is used to acquire the test case set to be optimized from the test case library based on the optimization content;
[0107] The equivalence class update determination module 520 is used to determine the equivalence class update type and associated equivalence class of the input and output items involved in the update in the test case set to be optimized, based on the optimization content.
[0108] The test case set update module 530 is used to determine the corresponding test case optimization scenario based on the equivalence class update type and the associated equivalence class, and update the test case set to be optimized according to the test case optimization scenario to obtain the updated test case set.
[0109] The test case set functional testing module 540 is used to control the updated test case set to perform functional testing tasks.
[0110] Optional, the equivalence class update determination module, specifically used for:
[0111] Based on the optimization content, determine whether the set of test cases to be optimized involves updating the equivalence classes of input and output items;
[0112] If the update involves the equivalence classes of input and output items, then determine the equivalence class update type and associated equivalence class of the input and output items;
[0113] If the update of the input / output equivalence classes is not involved, then the functional test task is executed on the test case set to be optimized.
[0114] Optionally, before determining the corresponding test case optimization scenario based on the equivalence class update type and associated equivalence classes, and updating the test case set to be optimized according to the test case optimization scenario to obtain the updated test case set, the device further includes a test case optimization scenario construction module, specifically used for:
[0115] Test case optimization scenarios are constructed based on equivalence class update types and associated equivalence classes. The equivalence class update types include adding an equivalence class, modifying an equivalence class, and deleting an equivalence class. The test case optimization scenarios include adding an equivalence class and other equivalence classes undergoing associated changes, adding an equivalence class and other equivalence classes not undergoing associated changes, modifying an equivalence class and other equivalence classes undergoing associated changes, modifying an equivalence class and other equivalence classes not undergoing associated changes, deleting an equivalence class and other equivalence classes undergoing associated changes, deleting an equivalence class and other equivalence classes not undergoing associated changes, and equivalence classes not being updated.
[0116] Optional, the test case set update module is specifically used for:
[0117] Determine whether the test case set to be optimized involves adding a new equivalence class based on the equivalence class update type;
[0118] After determining that the test case set to be optimized involves a newly added equivalence class, it is determined whether there is a first associated equivalence class related to the newly added equivalence class;
[0119] If a first associated equivalence class exists that is associated with the newly added equivalence class, then the first test case generated by the newly added equivalence class is added, the second test case involved in the first associated equivalence class is updated, and the updated test case set is obtained based on the first test case and the second test case; wherein, if an associated equivalence class exists, it indicates that other equivalence classes have undergone association changes;
[0120] If there is no first associated equivalence class related to the newly added equivalence class, then the first test case generated by the newly added equivalence class is added to obtain the updated test case set; where, if there is no associated equivalence class, it indicates that other equivalence classes have not undergone any association changes.
[0121] Optional, the test case set update module is specifically used for:
[0122] Determine whether the test case set to be optimized involves modifying the equivalence class based on the equivalence class update type;
[0123] After determining that the test case set to be optimized involves a modified equivalence class, it is determined whether there is a second associated equivalence class related to the modified equivalence class;
[0124] If a second associated equivalence class exists that is related to the modified equivalence class, then a third test case generated by the modified equivalence class is added, a fourth test case involving the second associated equivalence class is updated, and a fifth test case that is invalid due to the modified equivalence class is deleted. An updated test case set is obtained based on the third, fourth, and fifth test cases.
[0125] If there is no second associated equivalence class related to the modification equivalence class, then supplement the third test case generated by the modification equivalence class and delete the fifth test case that is invalid for the modification equivalence class to obtain the updated test case set.
[0126] Optional, the test case set update module is specifically used for:
[0127] Determine whether the test case set to be optimized involves deleting equivalence classes based on the equivalence class update type;
[0128] After determining that the test case set to be optimized involves deletion equivalence classes, determine whether there is a third association equivalence class associated with the deletion equivalence class;
[0129] If a third association equivalence class exists that is associated with the deletion equivalence class, then delete the sixth test case generated by the deletion equivalence class, update the seventh test case involved in the third association equivalence class, and obtain the updated test case set based on the sixth test case and the seventh test case.
[0130] If there is no third association equivalence class associated with the deletion equivalence class, then delete the sixth test case generated by the deletion equivalence class to obtain an updated test case set.
[0131] Optional, the test case set functional testing module, specifically used for:
[0132] Replace the test case set to be optimized with the updated test case set, and archive the test case set to be optimized into history.
[0133] The updated test case set is stored in the test case library, and the updated test case set is controlled to execute functional test tasks.
[0134] The functional testing device provided in the embodiments of the present invention can execute the functional testing method provided in any of the embodiments of the present invention, and has the corresponding functions and beneficial effects of executing the functional testing method. For details, please refer to the relevant operations of the functional testing method in the foregoing embodiments.
[0135] Example 4
[0136] Figure 6A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0137] like Figure 6 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0138] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0139] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as functional testing methods.
[0140] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication unit 19, or installed from storage unit 18, or installed from ROM 12. When the computer program is executed by processor 11, it performs the functions defined in the methods of the embodiments of the present invention.
[0141] In some embodiments, the functional testing method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the functional testing method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the functional testing method by any other suitable means (e.g., by means of firmware).
[0142] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transferring data and instructions to the storage system, the at least one input device, and the at least one output device.
[0143] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0144] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0145] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0146] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0147] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through a communication network. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0148] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0149] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A functional testing method, characterized in that, The method includes: Based on the optimization requirements, obtain the set of test cases to be optimized from the test case library; Based on the optimization content, determine the equivalence class update type and associated equivalence classes of the input and output items involved in the update in the test case set to be optimized; Based on the equivalence class update type and associated equivalence classes, the corresponding test case optimization scenario is determined, and the test case set to be optimized is updated according to the test case optimization scenario to obtain the updated test case set. Control the execution of functional test tasks using the updated test case set.
2. The method according to claim 1, characterized in that, Based on the optimization content, the equivalence class update type and associated equivalence classes of the updated input and output items involved in the test case set to be optimized are determined, including: Based on the optimization content, determine whether the set of test cases to be optimized involves updating the equivalence classes of input and output items; If the update involves the equivalence classes of input and output items, then determine the equivalence class update type and associated equivalence class of the input and output items; If the update of the input / output equivalence classes is not involved, then the functional test task is executed on the test case set to be optimized.
3. The method according to claim 1, characterized in that, Before determining the corresponding test case optimization scenario based on the equivalence class update type and associated equivalence classes, and updating the test case set to be optimized according to the test case optimization scenario to obtain the updated test case set, the method includes: Test case optimization scenarios are constructed based on equivalence class update types and associated equivalence classes. The equivalence class update types include adding an equivalence class, modifying an equivalence class, and deleting an equivalence class. The test case optimization scenarios include adding an equivalence class and other equivalence classes undergoing associated changes, adding an equivalence class and other equivalence classes not undergoing associated changes, modifying an equivalence class and other equivalence classes undergoing associated changes, modifying an equivalence class and other equivalence classes not undergoing associated changes, deleting an equivalence class and other equivalence classes undergoing associated changes, deleting an equivalence class and other equivalence classes not undergoing associated changes, and equivalence classes not being updated.
4. The method according to any one of claims 1-3, characterized in that, The step involves determining the corresponding test case optimization scenario based on the equivalence class update type and associated equivalence classes, and updating the test case set to be optimized according to the test case optimization scenario to obtain the updated test case set, including: Determine whether the test case set to be optimized involves adding a new equivalence class based on the equivalence class update type; After determining that the test case set to be optimized involves a newly added equivalence class, it is determined whether there is a first associated equivalence class related to the newly added equivalence class; If a first associated equivalence class exists that is associated with the newly added equivalence class, then the first test case generated by the newly added equivalence class is added, the second test case involved in the first associated equivalence class is updated, and the updated test case set is obtained based on the first test case and the second test case; wherein, if an associated equivalence class exists, it indicates that other equivalence classes have undergone association changes; If there is no first associated equivalence class related to the newly added equivalence class, then the first test case generated by the newly added equivalence class is added to obtain the updated test case set; where, if there is no associated equivalence class, it indicates that other equivalence classes have not undergone any association changes.
5. The method according to any one of claims 1-3, characterized in that, The step of determining the corresponding test case optimization scenario based on the equivalence class update type and associated equivalence classes, and updating the test case set to be optimized according to the test case optimization scenario to obtain the updated test case set, further includes: Determine whether the test case set to be optimized involves modifying the equivalence class based on the equivalence class update type; After determining that the test case set to be optimized involves a modified equivalence class, it is determined whether there is a second associated equivalence class related to the modified equivalence class; If a second associated equivalence class exists that is related to the modified equivalence class, then a third test case generated by the modified equivalence class is added, a fourth test case involving the second associated equivalence class is updated, and a fifth test case that is invalid due to the modified equivalence class is deleted. An updated test case set is obtained based on the third, fourth, and fifth test cases. If there is no second associated equivalence class related to the modification equivalence class, then supplement the third test case generated by the modification equivalence class and delete the fifth test case that is invalid for the modification equivalence class to obtain the updated test case set.
6. The method according to any one of claims 1-3, characterized in that, The step of determining the corresponding test case optimization scenario based on the equivalence class update type and associated equivalence classes, and updating the test case set to be optimized according to the test case optimization scenario to obtain the updated test case set, further includes: Determine whether the test case set to be optimized involves deleting equivalence classes based on the equivalence class update type; After determining that the test case set to be optimized involves deletion equivalence classes, determine whether there is a third association equivalence class associated with the deletion equivalence class; If a third association equivalence class exists that is associated with the deletion equivalence class, then delete the sixth test case generated by the deletion equivalence class, update the seventh test case involved in the third association equivalence class, and obtain the updated test case set based on the sixth test case and the seventh test case. If there is no third association equivalence class associated with the deletion equivalence class, then delete the sixth test case generated by the deletion equivalence class to obtain an updated test case set.
7. The method according to claim 1, characterized in that, The process of controlling the updated test case set to execute functional test tasks includes: Replace the test case set to be optimized with the updated test case set, and archive the test case set to be optimized into history. The updated test case set is stored in the test case library, and the updated test case set is controlled to execute functional test tasks.
8. A functional testing device, characterized in that, The device includes: The test case set acquisition module is used to obtain the test case set to be optimized from the test case library based on the optimization content; The equivalence class update determination module is used to determine the equivalence class update type and associated equivalence class of the input and output items involved in the update in the test case set to be optimized, based on the optimization content. The test case set update module is used to determine the corresponding test case optimization scenario based on the equivalence class update type and the associated equivalence class, and update the test case set to be optimized according to the test case optimization scenario to obtain the updated test case set. The test case set functional testing module is used to control the execution of functional testing tasks by the updated test case set.
9. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the functional test method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the functional test method according to any one of claims 1-7.