System acceptance test method and device, computer equipment and storage medium
Through systematic acceptance testing methods, efficiency and quality issues in the acceptance testing phase are solved. By classifying and sorting test cases, the efficient execution of target test cases is ensured, and business quality and efficiency are improved.
Patent Information
- Application Number
- CN202410861303.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-09-27
AI Technical Summary
Due to the lack of clear rules and systems during the acceptance testing phase, the quality of screening target test cases is not high, resulting in users being unable to effectively judge whether the system business meets business expectations. Moreover, due to the strong correlation of system data, users need to communicate with the project team in real time for data construction. It consumes a lot of time and affects efficiency and quality.
Provides a system acceptance testing method that receives user demand information, generates acceptance testing questionnaires, filters and sorts test cases based on module and use case classification, ensures that users execute target test cases according to priority, and improves acceptance testing efficiency and quality.
Through the systematic acceptance testing method, the overall efficiency and business quality of the acceptance testing phase are improved, the communication time between users and the project team is reduced, and the accuracy and coverage of the test results are ensured.
Smart Images

Figure CN118708495A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of system testing, and in particular to a system acceptance testing method, apparatus, computer equipment and storage medium. Background Art
[0002] Software quality is usually a combination of product quality and process quality. Software testing is an effective means to ensure the quality of software products. The definition of "software testing" in IEEE software engineering terminology is "the process of running or measuring a system using manual or automatic means, the purpose of which is to verify whether it meets the specified requirements or to clarify the difference between the expected results and the actual results." The objects of software testing usually include programs, data and documents. From the perspective of testing phases, software testing is generally divided into system testing phase and acceptance testing phase.
[0003] In order to achieve the ultimate goal of launching the software system, it is a critical step to pass the acceptance test phase efficiently and with high quality. The system test phase is often performed by members of the project team. The execution is based on system test cases. System test cases are usually reviewed by all members of the project team, and their functions cover 100% of all system functions, such as Figure 1 As shown, the software system includes multiple functional modules, for example, the software system includes a customer management functional module C1, an order management functional module C2, a payment management functional module C3 and a ledger management functional module C4, and all test cases are divided into multiple test case groups according to their attributes. For example, test cases tc1 and tc2 belong to the process class t1 group, and each functional module includes multiple test case groups. For example, the customer management functional module C1 includes the process class test case group t1, the button operation class test case group t2, the data calculation class test case group t3 and the interface display class test case group t4, and the test cases are associated with the system functional modules.
[0004] The acceptance test phase is performed by external members of the project team, that is, the final users of the system, based on target test cases, which are usually provided by the project team or written by the user. Because there are no clear rules or system requirements, and the project team members may not understand the actual business operations, the target test cases cannot be screened in a high-quality and effective manner, resulting in users being unable to judge whether the implementation of the system business meets business expectations through the acceptance test results. In addition, since the data in the system is often strongly correlated, users need to communicate with the project team in real time to construct data before testing can be performed. This communication process is extremely time-consuming.
[0005] Therefore, there is an urgent need to propose a system acceptance testing method, apparatus, computer equipment and storage medium that can improve the overall efficiency and service quality of the acceptance testing phase. Summary of the invention
[0006] Based on this, it is necessary to provide a system acceptance testing method, device, computer equipment and storage medium that can improve the overall efficiency and service quality of the acceptance testing phase in response to the above technical problems.
[0007] In a first aspect, a system acceptance test method is provided, wherein the system comprises at least one functional module, each functional module comprises at least one test case group, each test case group comprises at least one test case, and the method comprises:
[0008] Receive demand information of at least one user, and generate an acceptance test survey questionnaire according to the demand information of the at least one user and a survey questionnaire generation rule, wherein the demand information includes a target function module, and one user corresponds to one acceptance test survey questionnaire;
[0009] Based on the target functional modules, classifying the functional modules according to module classification rules, and classifying the test cases according to use case classification rules according to use case execution roles;
[0010] According to the functional module classification results, the test case classification results and the target functional module, the target test cases corresponding to each acceptance test survey questionnaire are screened out according to the test case screening rules;
[0011] For each acceptance test survey questionnaire, sort the target test cases according to the number of users and the use case execution priority rule;
[0012] For each user, the target test cases are executed in sequence according to the sorting results.
[0013] In one embodiment, each functional module is implemented by at least one page, and the function of each page is implemented by at least one test case, and the acceptance test survey questionnaire is generated according to the requirement information of the at least one user and the survey questionnaire generation rules, including:
[0014] In response to the requirement information of the at least one user further including at least one page of the target functional module, all test cases corresponding to the at least one page are acquired, and all test cases corresponding to the at least one page are sorted according to the business process;
[0015] An acceptance test survey questionnaire is generated according to the ranking results of all test cases corresponding to the at least one page.
[0016] In one embodiment, generating the acceptance test survey questionnaire according to the requirement information of the at least one user and the survey questionnaire generation rule includes:
[0017] In response to the requirement information of the at least one user also including at least one test case group of the target functional module, all test cases corresponding to the at least one test case group are acquired, and all test cases corresponding to the at least one test case group are sorted according to the business process;
[0018] An acceptance test survey questionnaire is generated according to the sorting results of all test cases corresponding to the at least one test case group.
[0019] In one embodiment, the functional module classification result includes modules directly associated with the target functional module, modules indirectly associated with the target functional module, and modules not associated with the target functional module, and the functional modules are classified according to the module classification rule based on the target functional module, including:
[0020] In response to the functional module being a target functional module, dividing the functional module into modules directly associated with the target functional module;
[0021] In response to the functional module not being the target functional module, determining whether any test case in the functional module has an association relationship with a test case in the target functional module, wherein the association relationship refers to an execution result of one test case being used as pre-data of another test case;
[0022] In response to a test case in the functional module being associated with a test case in a target functional module, dividing the functional module into modules indirectly associated with the target functional module;
[0023] In response to all the test cases in the functional module not having an association relationship with the test cases in the target functional module, dividing the functional module into modules not associated with the target functional module;
[0024] The test case classification result includes use cases that need to be executed by the user and use cases that do not need to be executed by the user. The test cases are classified according to the use case execution roles and use case classification rules, including:
[0025] In response to the test case requiring user operation to be executed, dividing the test case into test cases that require user execution;
[0026] In response to the test case being actively pushed for execution through an asynchronous task, database initialization or other system, the test case is divided into test cases that do not require user execution.
[0027] In one embodiment, the test case includes a positive test case and a negative test case, and the target test case corresponding to each acceptance test survey questionnaire is screened out according to the functional module classification result, the test case classification result and the target functional module according to the test case screening rule, including:
[0028] In response to the functional module being a module unrelated to the target functional module, removing all test cases under the functional module;
[0029] In response to the function module being a module indirectly associated with the target function module, all test cases under the function module that are not associated with the pre-data and operation steps that the test cases in the target function module depend on are removed, and all anti-test cases under the function module that are associated with the pre-data and operation steps that the test cases in the target function module depend on are removed;
[0030] In response to the test case group not being in the requirement information, removing all test cases in the test case group;
[0031] In response to the test case being a test case that does not need to be executed by the user, removing the test case;
[0032] Use the remaining test cases of the system as the target test cases for each acceptance test questionnaire.
[0033] In one embodiment, the use case execution priority rule includes a single-user use case execution priority rule, and in response to the number of users being 1, sorting the target test cases according to the use case execution priority rule includes:
[0034] The number of the target functional modules is set to n, where n is a positive integer and n≥2;
[0035] The initial priority score of the target test case is set to 0, and the target function modules are ranked and scored according to the business process. The priority score of all target test cases under the target function module ranked m is (n-m+1) 2 , where m is a positive integer and m≤n;
[0036] For each target functional module, determine whether any target test case has an associated target test case;
[0037] In response to no association relationship existing between all target test cases, maintaining priority scores of all target test cases;
[0038] In response to a target test case being associated with P target test cases, and the execution result of the target test case being used as the pre-data of the corresponding P target test cases, the priority score of the target test case is increased by P, where P is a positive integer;
[0039] In response to a target test case being associated with Q target test cases, and the pre-data of the target test case being the execution results of the corresponding Q target test cases, the priority score of the target test case is reduced by Q, where Q is a positive integer;
[0040] The target test cases are sorted according to the priority scores from large to small.
[0041] In one embodiment, the use case execution priority rule includes a multi-user use case execution priority rule, and in response to the number of users being greater than 1, sorting the target test cases according to the use case execution priority rule includes:
[0042] For each user, the number of the target function modules is set to n, where n is a positive integer and n≥2;
[0043] The initial priority score of the target test case is set to 0, and the target function modules are ranked and scored according to the business process. The priority score of all target test cases under the target function module ranked m is (n-m+1) 2 , where m is a positive integer and m≤n;
[0044] For all users, determine whether any target test case has an associated target test case;
[0045] In response to no association relationship existing between all target test cases, maintaining priority scores of all target test cases;
[0046] In response to a target test case of a user being associated with target test cases of P other users, and an execution result of the target test case being used as pre-data of the target test cases of the P other users, a priority score of the target test case of the user is increased by P, where P is a positive integer;
[0047] In response to a target test case of a user being associated with target test cases of Q other users, and the pre-data of the target test case being the execution result of the target test cases of the Q other users, the priority score of the target test case of the user is reduced by Q, where Q is a positive integer;
[0048] The target test cases are sorted according to the priority scores from large to small.
[0049] In a second aspect, a system acceptance test device is provided, the device comprising:
[0050] A receiving and generating module, the receiving and generating module is used to receive demand information of at least one user, and generate an acceptance test survey questionnaire according to the demand information of the at least one user and the survey questionnaire generation rules, wherein the demand information includes a target function module, and one user corresponds to one acceptance test survey questionnaire;
[0051] A classification module, the classification module is used to classify the functional modules according to the module classification rules based on the target functional modules, and classify the test cases according to the use case classification rules based on the use case execution roles;
[0052] A screening module, the screening module is used to screen out target test cases corresponding to each acceptance test survey questionnaire according to the functional module classification results, the test case classification results and the target functional module according to the test case screening rules;
[0053] A sorting module, the sorting module is used to sort the target test cases according to the number of users and the use case execution priority rule for each acceptance test survey questionnaire;
[0054] An execution module is used to execute the target test cases in sequence according to the sorting results for each user.
[0055] In a third aspect, a computer device is provided, comprising one or more processors; and a memory associated with the one or more processors, the memory being used to store program instructions, which, when read and executed by the one or more processors, execute the steps of the method described in any one of the first aspects above.
[0056] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described in any one of the first aspects are performed.
[0057] In a fifth aspect, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the steps of the method described in any one of the above-mentioned first aspects are implemented.
[0058] The above-mentioned system acceptance test method, device, computer equipment and storage medium generate an acceptance test survey questionnaire according to the survey questionnaire generation rules; classify the functional modules and test cases according to the module classification rules and the use case classification rules; filter out the target test cases according to the test case screening rules; sort the target test cases according to the use case execution priority sorting rules; and execute the corresponding target test cases in sequence according to the sorting results, thereby improving the overall efficiency and business quality of the acceptance test stage. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 It is the structural diagram of the system;
[0060] Figure 2 A schematic diagram of a flow chart of a system acceptance test method in an embodiment;
[0061] Figure 3 is a detailed flow chart of a system acceptance test method in another embodiment;
[0062] Figure 4 is a structural block diagram of a system acceptance test device in one embodiment;
[0063] Figure 5 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0064] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0065] Embodiment 1
[0066] In one embodiment, Figure 2 As shown, a system acceptance test method is provided, the system includes at least one functional module, each functional module includes at least one test case group, each test case group includes at least one test case, and the method includes:
[0067] Receive demand information of at least one user, and generate an acceptance test survey questionnaire according to the demand information of the at least one user and a survey questionnaire generation rule, wherein the demand information includes a target function module, and one user corresponds to one acceptance test survey questionnaire;
[0068] Based on the target functional modules, classifying the functional modules according to module classification rules, and classifying the test cases according to use case classification rules according to use case execution roles;
[0069] According to the functional module classification results, the test case classification results and the target functional module, the target test cases corresponding to each acceptance test survey questionnaire are screened out according to the test case screening rules;
[0070] For each acceptance test survey questionnaire, sort the target test cases according to the number of users and the use case execution priority rule;
[0071] For each user, the target test cases are executed in sequence according to the sorting results.
[0072] Specifically, an acceptance test survey questionnaire is generated according to the survey questionnaire generation rules; functional modules and test cases are classified according to the module classification rules and use case classification rules; target test cases are screened out according to the test case screening rules; target test cases are sorted according to the use case execution priority sorting rules; and corresponding target test cases are executed in sequence according to the sorting results, thereby improving the overall efficiency and business quality of the acceptance test phase.
[0073] In one embodiment, each functional module is implemented by at least one page, and the function of each page is implemented by at least one test case. The generation of the acceptance test survey questionnaire according to the requirement information of the at least one user and the survey questionnaire generation rule includes:
[0074] In response to the requirement information of the at least one user further including at least one page of the target functional module, all test cases corresponding to the at least one page are acquired, and all test cases corresponding to the at least one page are sorted according to the business process;
[0075] An acceptance test survey questionnaire is generated according to the ranking results of all test cases corresponding to the at least one page.
[0076] In one embodiment, generating the acceptance test survey questionnaire according to the requirement information of the at least one user and according to the survey questionnaire generation rule includes:
[0077] In response to the requirement information of the at least one user also including at least one test case group of the target functional module, all test cases corresponding to the at least one test case group are acquired, and all test cases corresponding to the at least one test case group are sorted according to the business process;
[0078] An acceptance test survey questionnaire is generated according to the sorting results of all test cases corresponding to the at least one test case group.
[0079] Specifically, based on at least one page and / or at least one test case group in the requirement information, all corresponding test cases are sorted according to the business process, and an acceptance test survey questionnaire is generated based on the sorting results, so as to subsequently screen out target test cases that meet the user requirement information.
[0080] In one embodiment, the functional module classification result includes modules directly associated with the target functional module, modules indirectly associated with the target functional module, and modules not associated with the target functional module, and the functional modules are classified according to the module classification rule based on the target functional module, including:
[0081] In response to the functional module being a target functional module, dividing the functional module into modules directly associated with the target functional module;
[0082] In response to the functional module not being the target functional module, determining whether any test case in the functional module has an association relationship with a test case in the target functional module, wherein the association relationship refers to an execution result of one test case being used as pre-data of another test case;
[0083] In response to a test case in the functional module being associated with a test case in a target functional module, dividing the functional module into modules indirectly associated with the target functional module;
[0084] In response to all the test cases in the functional module not having an association relationship with the test cases in the target functional module, dividing the functional module into modules not associated with the target functional module;
[0085] The test case classification result includes use cases that need to be executed by the user and use cases that do not need to be executed by the user. The test cases are classified according to the use case execution roles and use case classification rules, including:
[0086] In response to the test case requiring user operation to be executed, dividing the test case into test cases that require user execution;
[0087] In response to the test case being actively pushed for execution through an asynchronous task, database initialization or other system, the test case is divided into test cases that do not require user execution.
[0088] Specifically, according to the module classification rules and the use case classification rules, the functional modules and the test cases are classified respectively, and the functional module classification results and the test case classification results are used as the basis for subsequent screening of target test cases.
[0089] Specifically, Figure 1As shown, there is an association relationship between the test cases in different test case groups. For example, tc3 needs the execution result of tc1 as the pre-data, and tc2 needs the execution results of tc5 and tc6 as the pre-data.
[0090] In one embodiment, the test cases include positive test cases and negative test cases, and the target test cases corresponding to each acceptance test survey questionnaire are screened out according to the functional module classification results, the test case classification results and the target functional module according to the test case screening rules, including:
[0091] In response to the functional module being a module unrelated to the target functional module, removing all test cases under the functional module;
[0092] In response to the function module being a module indirectly associated with the target function module, all test cases under the function module that are not associated with the pre-data and operation steps that the test cases in the target function module depend on are removed, and all anti-test cases under the function module that are associated with the pre-data and operation steps that the test cases in the target function module depend on are removed;
[0093] In response to the test case group not being in the requirement information, removing all test cases in the test case group;
[0094] In response to the test case being a test case that does not need to be executed by the user, removing the test case;
[0095] Use the remaining test cases of the system as the target test cases for each acceptance test questionnaire.
[0096] Specifically, target test cases that meet user requirement information or are associated with user requirement information are screened out according to the test case screening rules, thereby improving the service quality in the system acceptance test phase.
[0097] Specifically, target test cases are usually used to verify whether the system functions meet business expectations. Target test cases can be selected based on system test cases using different strategies:
[0098] Execute all: In this case, all test cases in the system can be used as target test cases;
[0099] Association-based test case selection: In this case, only system test cases that have an association relationship with the selected target test cases can be used as target test cases;
[0100] Test case priority: Select key test cases for acceptance testing based on their importance and priority. Prioritize test cases that have a significant impact on system functions and performance, as well as test cases related to target functional modules, to ensure that target test cases can effectively cover the core functions and processes of the system;
[0101] Test case differentiation: To achieve comprehensiveness of acceptance testing, each user is given priority to use different test cases for acceptance testing.
[0102] Specifically, the following information is taken as input to obtain the target test cases:
[0103] a) System test cases: used to verify whether the system meets business requirements, including test objectives, test environment, input data, test steps, and expected results. Usually, system test cases fully cover system functions;
[0104] b) Acceptance test survey questionnaire: A survey questionnaire covering the business acceptance test objectives, including the pages of the target functional module, the test case group of the target functional module, etc.
[0105] Specifically, use cases that do not require user execution are assigned to internal test users of the project team for execution as part of the basic data preparation phase for the environment, which is performed prior to acceptance testing.
[0106] In one embodiment, Figure 3 As shown, the use case execution priority rule includes a single-user use case execution priority rule. In response to the number of users being 1, the target test cases are sorted according to the use case execution priority rule, including:
[0107] The number of the target functional modules is set to n, where n is a positive integer and n≥2;
[0108] The initial priority score of the target test case is set to 0, and the target function modules are ranked and scored according to the business process. The priority score of all target test cases under the target function module ranked m is (n-m+1) 2 , where m is a positive integer and m≤n;
[0109] For each target functional module, determine whether any target test case has an associated target test case;
[0110] In response to no association relationship existing between all target test cases, maintaining priority scores of all target test cases;
[0111] In response to a target test case being associated with P target test cases, and the execution result of the target test case being used as the pre-data of the corresponding P target test cases, the priority score of the target test case is increased by P, where P is a positive integer;
[0112] In response to a target test case being associated with Q target test cases, and the pre-data of the target test case being the execution results of the corresponding Q target test cases, the priority score of the target test case is reduced by Q, where Q is a positive integer;
[0113] The target test cases are sorted according to the priority scores from large to small.
[0114] Specifically, suppose user A selects target functional modules C1 and C2, which are ranked C1 and C2 according to business processes. Therefore, the priority score of all target test cases in C1 is 4, and the priority score of all target test cases in C2 is 1. The target test cases in C1 include tc1 and tc2. Assuming that the execution result of tc1 is used as the prerequisite data of tc2, the priority score of tc1 is added by 1 to get 5, and the priority score of tc2 is subtracted by 1 to get 3. Therefore, the execution order of the target test cases is tc1, tc2, tc3 / tc4.
[0115] In one embodiment, Figure 3 As shown, the use case execution priority rule includes a multi-user use case execution priority rule. In response to the number of users being greater than 1, the target test cases are sorted according to the use case execution priority rule, including:
[0116] For each user, the number of the target function modules is set to n, where n is a positive integer and n≥2;
[0117] The initial priority score of the target test case is set to 0, and the target function modules are ranked and scored according to the business process. The priority score of all target test cases under the target function module ranked m is (n-m+1) 2 , where m is a positive integer and m≤n;
[0118] For all users, determine whether any target test case has an associated target test case;
[0119] In response to no association relationship existing between all target test cases, maintaining priority scores of all target test cases;
[0120] In response to a target test case of a user being associated with target test cases of P other users, and an execution result of the target test case being used as pre-data of the target test cases of the P other users, a priority score of the target test case of the user is increased by P, where P is a positive integer;
[0121] In response to a target test case of a user being associated with target test cases of Q other users, and the pre-data of the target test case being the execution result of the target test cases of the Q other users, the priority score of the target test case of the user is reduced by Q, where Q is a positive integer;
[0122] The target test cases are sorted according to the priority scores from large to small.
[0123] Specifically, through the above single-user use case execution priority rule or multi-user use case execution priority rule, it is ensured that the target test cases in the target functional modules with higher priorities will be executed first, and the target test cases with lower dependencies will be executed before the target test cases with higher dependencies, thereby improving the overall efficiency and business quality of the user acceptance test phase.
[0124] Specifically, assuming users A and B, the target functional modules selected by A are C1 and C2, which are ranked in order of business processes. Therefore, the priority score of all target test cases in C1 is 4, and the priority score of all target test cases in C2 is 1. The target test cases in C1 include tc1 and tc2. If the execution result of tc1 is used as the prerequisite data of the target test case in user B, the priority score of tc1 is increased by 1 to obtain 5. If the prerequisite data of tc2 is the execution result of the target test case in user B, the priority score of tc2 is reduced by 1 to obtain 3. Therefore, the execution order of user A's target test cases is tc1, tc2, tc3 / tc4.
[0125] In one embodiment, the use case execution priority rule includes a multi-user use case execution priority rule, and in response to the number of users being greater than 1, sorting the target test cases according to the use case execution priority rule includes:
[0126] For each user, the number of the target function modules is set to n, where n is a positive integer and n≥2;
[0127] The initial priority score of the target test case is set to 0, and the target function modules are ranked and scored according to the business process. The priority score of all target test cases under the target function module ranked m is (n-m+1) 2 , where m is a positive integer and m≤n;
[0128] For each target functional module, determine whether any target test case has an associated target test case;
[0129] In response to no association relationship existing between all target test cases, maintaining priority scores of all target test cases;
[0130] In response to a target test case being associated with P target test cases, and the execution result of the target test case being used as the pre-data of the corresponding P target test cases, the priority score of the target test case is increased by P, where P is a positive integer;
[0131] In response to a target test case being associated with Q target test cases, and the pre-data of the target test case being the execution results of the corresponding Q target test cases, the priority score of the target test case is reduced by Q, where Q is a positive integer;
[0132] For all users, determine whether any target test case has an associated target test case;
[0133] In response to no association relationship existing between all target test cases, maintaining priority scores of all target test cases;
[0134] In response to a target test case of a user being associated with target test cases of X other users, and an execution result of the target test case being used as pre-data of the target test cases of the X other users, a priority score of the target test case of the user is increased by X, where X is a positive integer;
[0135] In response to a target test case of a user being associated with target test cases of Y other users, and the pre-data of the target test case being the execution result of the target test cases of Y other users, the priority score of the target test case of the user is reduced by Y, where Y is a positive integer;
[0136] The target test cases are sorted according to the priority scores from large to small.
[0137] Specifically, compared with the previous multi-user use case execution priority rule, this multi-user use case execution priority rule not only takes into account the association relationship between the target test cases of each user, but also takes into account whether there is an association relationship between the target test cases within each target functional module, further improving the service quality in the acceptance test phase.
[0138] Specifically, suppose users A and B, and the target function modules selected by A are C1 and C2, which are ranked in order of business process in order of C1 and C2. Therefore, the priority score of all target test cases in C1 is 4, and the priority score of all target test cases in C2 is 1. The target test cases in C1 include tc1 and tc2, and the target test cases in C2 include tc3 and tc4. Assuming that the execution result of tc1 is used as the pre-data of tc2, the priority score of tc1 is increased by 1 to obtain 5, and the priority score of tc2 is reduced by 1 to obtain 3; and the execution result of tc1 is also used as the pre-data of the target test case in user B, the priority score of tc1 is increased by 1 to obtain 6, and the pre-data of tc2 is the execution result of the target test case in user B, and the priority score of tc2 is reduced by 1 to obtain 2. Therefore, the execution order of the target test cases of user A is tc1, tc2, tc3 / tc4.
[0139] It should be understood that although Figure 2 , Figure 3 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 , Figure 3 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0140] Embodiment 2
[0141] In one embodiment, Figure 4 As shown, a system acceptance test device is provided, the device comprising:
[0142] A receiving and generating module, the receiving and generating module is used to receive demand information of at least one user, and generate an acceptance test survey questionnaire according to the demand information of the at least one user and the survey questionnaire generation rules, wherein the demand information includes a target function module, and one user corresponds to one acceptance test survey questionnaire;
[0143] A classification module, the classification module is used to classify the functional modules according to the module classification rules based on the target functional modules, and classify the test cases according to the use case classification rules based on the use case execution roles;
[0144] A screening module, the screening module is used to screen out target test cases corresponding to each acceptance test survey questionnaire according to the functional module classification results, the test case classification results and the target functional module according to the test case screening rules;
[0145] A sorting module, the sorting module is used to sort the target test cases according to the number of users and the use case execution priority rule for each acceptance test survey questionnaire;
[0146] An execution module is used to execute the target test cases in sequence according to the sorting results for each user.
[0147] In one embodiment, the receiving and generating module is specifically used for:
[0148] In response to the requirement information of the at least one user further including at least one page of the target functional module, all test cases corresponding to the at least one page are acquired, and all test cases corresponding to the at least one page are sorted according to the business process;
[0149] An acceptance test survey questionnaire is generated according to the ranking results of all test cases corresponding to the at least one page.
[0150] In one embodiment, the receiving and generating module is specifically used for:
[0151] In response to the requirement information of the at least one user also including at least one test case group of the target functional module, all test cases corresponding to the at least one test case group are acquired, and all test cases corresponding to the at least one test case group are sorted according to the business process;
[0152] An acceptance test survey questionnaire is generated according to the sorting results of all test cases corresponding to the at least one test case group.
[0153] In one embodiment, the classification module is specifically used for:
[0154] In response to the functional module being a target functional module, dividing the functional module into modules directly associated with the target functional module;
[0155] In response to the functional module not being the target functional module, determining whether any test case in the functional module has an association relationship with a test case in the target functional module, wherein the association relationship refers to an execution result of one test case being used as pre-data of another test case;
[0156] In response to a test case in the functional module being associated with a test case in a target functional module, dividing the functional module into modules indirectly associated with the target functional module;
[0157] In response to all the test cases in the functional module not having an association relationship with the test cases in the target functional module, dividing the functional module into modules not associated with the target functional module;
[0158] In response to the test case requiring user operation to be executed, dividing the test case into test cases that require user execution;
[0159] In response to the test case being actively pushed for execution through an asynchronous task, database initialization or other system, the test case is divided into test cases that do not require user execution.
[0160] In one embodiment, the screening module is specifically used for:
[0161] In response to the functional module being a module unrelated to the target functional module, removing all test cases under the functional module;
[0162] In response to the function module being a module indirectly associated with the target function module, all test cases under the function module that are not associated with the pre-data and operation steps that the test cases in the target function module depend on are removed, and all anti-test cases under the function module that are associated with the pre-data and operation steps that the test cases in the target function module depend on are removed;
[0163] In response to the test case group not being in the requirement information, removing all test cases in the test case group;
[0164] In response to the test case being a test case that does not need to be executed by the user, removing the test case;
[0165] Use the remaining test cases of the system as the target test cases for each acceptance test questionnaire.
[0166] In one embodiment, the sorting module is specifically used to:
[0167] The number of the target functional modules is set to n, where n is a positive integer and n≥2;
[0168] The initial priority score of the target test case is set to 0, and the target function modules are ranked and scored according to the business process. The priority score of all target test cases under the target function module ranked m is (n-m+1) 2 , where m is a positive integer and m≤n;
[0169] For each target functional module, determine whether any target test case has an associated target test case;
[0170] In response to no association relationship existing between all target test cases, maintaining priority scores of all target test cases;
[0171] In response to a target test case being associated with P target test cases, and the execution result of the target test case being used as the pre-data of the corresponding P target test cases, the priority score of the target test case is increased by P, where P is a positive integer;
[0172] In response to a target test case being associated with Q target test cases, and the pre-data of the target test case being the execution results of the corresponding Q target test cases, the priority score of the target test case is reduced by Q, where Q is a positive integer;
[0173] The target test cases are sorted according to the priority scores from large to small.
[0174] In one embodiment, the sorting module is specifically used to:
[0175] For each user, the number of the target function modules is set to n, where n is a positive integer and n≥2;
[0176] The initial priority score of the target test case is set to 0, and the target function modules are ranked and scored according to the business process. The priority score of all target test cases under the target function module ranked m is (n-m+1) 2 , where m is a positive integer and m≤n;
[0177] For all users, determine whether any target test case has an associated target test case;
[0178] In response to no association relationship existing between all target test cases, maintaining priority scores of all target test cases;
[0179] In response to a target test case of a user being associated with target test cases of P other users, and an execution result of the target test case being used as pre-data of the target test cases of the P other users, a priority score of the target test case of the user is increased by P, where P is a positive integer;
[0180] In response to a target test case of a user being associated with target test cases of Q other users, and the pre-data of the target test case being the execution result of the target test cases of the Q other users, the priority score of the target test case of the user is reduced by Q, where Q is a positive integer;
[0181] The target test cases are sorted according to the priority scores from large to small.
[0182] For the specific definition of the system acceptance test device, please refer to the definition of the system acceptance test method above, which will not be repeated here. Each module in the above system acceptance test device can be implemented in whole or in part by software, hardware and their combination. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0183] Embodiment 3
[0184] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0185] Receive demand information of at least one user, and generate an acceptance test survey questionnaire according to the demand information of the at least one user and a survey questionnaire generation rule, wherein the demand information includes a target function module, and one user corresponds to one acceptance test survey questionnaire;
[0186] Based on the target functional modules, classifying the functional modules according to module classification rules, and classifying the test cases according to use case classification rules according to use case execution roles;
[0187] According to the functional module classification results, the test case classification results and the target functional module, the target test cases corresponding to each acceptance test survey questionnaire are screened out according to the test case screening rules;
[0188] For each acceptance test survey questionnaire, sort the target test cases according to the number of users and the use case execution priority rule;
[0189] For each user, the target test cases are executed in sequence according to the sorting results.
[0190] When the program instructions are read and executed by the one or more processors, the program instructions may also perform operations corresponding to the steps in the above method embodiments, and the above description may be referred to, which will not be repeated here. Figure 5 , which exemplarily shows the architecture of a computer device, which may specifically include a processor 510, a video display adapter 511, a disk drive 512, an input / output interface 513, a network interface 514, and a memory 520. The processor 510, the video display adapter 511, the disk drive 512, the input / output interface 513, the network interface 514, and the memory 520 may be communicatively connected via a communication bus 530.
[0191] Among them, the processor 510 can be implemented by a general-purpose central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solution provided in this application.
[0192] The memory 520 can be implemented in the form of a read-only memory (ROM), a random access memory (RAM), a static storage device, a dynamic storage device, etc. The memory 520 can store an operating system 521 for controlling the operation of the computer device 500, and a basic input and output system (BIOS) 522 for controlling the low-level operation of the computer device 500. In addition, a web browser 523, a data storage manager 524, and an icon font processing system 525, etc. can also be stored. The above-mentioned icon font processing system 525 can be an application program that specifically implements the operations of the aforementioned steps in the embodiment of the present application. In short, when the technical solution provided by the present application is implemented by software or firmware, the relevant program code is stored in the memory 520 and is called and executed by the processor 510.
[0193] The input / output interface 513 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0194] The network interface 514 is used to connect to a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0195] The bus 530 comprises a pathway for transmitting information between the various components of the device (eg, the processor 510, the video display adapter 511, the disk drive 512, the input / output interface 513, the network interface 514, and the memory 520).
[0196] In addition, the computer device 500 can also obtain information on specific collection conditions from the virtual resource object collection condition information database 541 for use in condition judgment, etc.
[0197] It should be noted that, although the above-mentioned computer device 500 only shows a processor 510, a video display adapter 511, a disk drive 512, an input / output interface 513, a network interface 514, a memory 520, a bus 530, etc., in the specific implementation process, the computer device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above-mentioned device may also only include components necessary for implementing the solution of the present application, and does not necessarily include all the components shown in the figure.
[0198] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., including several instructions for enabling a computer device (which can be a personal computer, a cloud server, or a network device, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.
[0199] Embodiment 4
[0200] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0201] Receive demand information of at least one user, and generate an acceptance test survey questionnaire according to the demand information of the at least one user and a survey questionnaire generation rule, wherein the demand information includes a target function module, and one user corresponds to one acceptance test survey questionnaire;
[0202] Based on the target functional modules, classifying the functional modules according to module classification rules, and classifying the test cases according to use case classification rules according to use case execution roles;
[0203] According to the functional module classification results, the test case classification results and the target functional module, the target test cases corresponding to each acceptance test survey questionnaire are screened out according to the test case screening rules;
[0204] For each acceptance test survey questionnaire, sort the target test cases according to the number of users and the use case execution priority rule;
[0205] For each user, the target test cases are executed in sequence according to the sorting results.
[0206] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0207] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0208] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
[0209] Embodiment 5
[0210] In one embodiment, a computer program product is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0211] Receive demand information of at least one user, and generate an acceptance test survey questionnaire according to the demand information of the at least one user and a survey questionnaire generation rule, wherein the demand information includes a target function module, and one user corresponds to one acceptance test survey questionnaire;
[0212] Based on the target functional modules, classifying the functional modules according to module classification rules, and classifying the test cases according to use case classification rules according to use case execution roles;
[0213] According to the functional module classification results, the test case classification results and the target functional module, the target test cases corresponding to each acceptance test survey questionnaire are screened out according to the test case screening rules;
[0214] For each acceptance test survey questionnaire, sort the target test cases according to the number of users and the use case execution priority rule;
[0215] For each user, the target test cases are executed in sequence according to the sorting results.
[0216] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through a computer program. The computer program can be stored in a computer program product. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods.
[0217] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0218] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A system acceptance test method, It is characterized in that The system comprises at least one functional module, each functional module comprises at least one test case group, each test case group comprises at least one test case, and the method comprises: Receive demand information of at least one user, and generate an acceptance test survey questionnaire according to the demand information of the at least one user and a survey questionnaire generation rule, wherein the demand information includes a target function module, and one user corresponds to one acceptance test survey questionnaire; Based on the target functional modules, classifying the functional modules according to module classification rules, and classifying the test cases according to use case classification rules according to use case execution roles; According to the functional module classification results, the test case classification results and the target functional module, the target test cases corresponding to each acceptance test survey questionnaire are screened out according to the test case screening rules; For each acceptance test survey questionnaire, sort the target test cases according to the number of users and the use case execution priority rule; For each user, the target test cases are executed in sequence according to the sorting results.
2. The method according to claim 1, It is characterized in that Each functional module is implemented by at least one page, and the function of each page is implemented by at least one test case. The acceptance test survey questionnaire is generated according to the requirement information of the at least one user and the survey questionnaire generation rules, including: In response to the requirement information of the at least one user further including at least one page of the target functional module, all test cases corresponding to the at least one page are acquired, and all test cases corresponding to the at least one page are sorted according to the business process; An acceptance test survey questionnaire is generated according to the ranking results of all test cases corresponding to the at least one page.
3. The method according to claim 1, It is characterized in that Generating the acceptance test survey questionnaire according to the requirement information of the at least one user and the survey questionnaire generation rule includes: In response to the requirement information of the at least one user also including at least one test case group of the target functional module, all test cases corresponding to the at least one test case group are acquired, and all test cases corresponding to the at least one test case group are sorted according to the business process; An acceptance test survey questionnaire is generated according to the sorting results of all test cases corresponding to the at least one test case group.
4. The method according to claim 1, It is characterized in that The functional module classification result includes modules directly associated with the target functional module, modules indirectly associated with the target functional module, and modules not associated with the target functional module, and the functional modules are classified according to the module classification rule based on the target functional module, including: in response to the functional module being the target functional module, the functional module is divided into modules directly associated with the target functional module; In response to the functional module not being the target functional module, determining whether any test case in the functional module has an association relationship with a test case in the target functional module, wherein the association relationship refers to an execution result of one test case being used as pre-data of another test case; In response to a test case in the functional module being associated with a test case in a target functional module, dividing the functional module into modules indirectly associated with the target functional module; In response to all the test cases in the functional module not having an association relationship with the test cases in the target functional module, dividing the functional module into modules not associated with the target functional module; The test case classification result includes use cases that need to be executed by the user and use cases that do not need to be executed by the user. The test cases are classified according to the use case execution roles and use case classification rules, including: In response to the test case requiring user operation to be executed, dividing the test case into test cases that require user execution; In response to the test case being actively pushed for execution through an asynchronous task, database initialization or other system, the test case is divided into test cases that do not require user execution.
5. The method according to claim 4, It is characterized in that The test cases include positive test cases and negative test cases. The target test cases corresponding to each acceptance test survey questionnaire are screened out according to the functional module classification results, the test case classification results and the target functional module according to the test case screening rules, including: In response to the functional module being a module unrelated to the target functional module, removing all test cases under the functional module; In response to the function module being a module indirectly associated with the target function module, all test cases under the function module that are not associated with the pre-data and operation steps that the test cases in the target function module depend on are removed, and all anti-test cases under the function module that are associated with the pre-data and operation steps that the test cases in the target function module depend on are removed; In response to the test case group not being in the requirement information, removing all test cases in the test case group; In response to the test case being a test case that does not need to be executed by the user, removing the test case; Use the remaining test cases of the system as the target test cases for each acceptance test questionnaire.
6. The method according to claim 1, It is characterized in that The use case execution priority rule includes a single-user use case execution priority rule. In response to the number of users being 1, sorting the target test cases according to the use case execution priority rule includes: The number of the target functional modules is set to n, where n is a positive integer and n≥2; The initial priority score of the target test case is set to 0, and the target function modules are ranked and scored according to the business process. The priority score of all target test cases under the target function module ranked m is (n-m+1) 2 , where m is a positive integer and m≤n; For each target functional module, determine whether any target test case has an associated target test case; In response to no association relationship existing between all target test cases, maintaining priority scores of all target test cases; In response to a target test case being associated with P target test cases, and the execution result of the target test case being used as the pre-data of the corresponding P target test cases, the priority score of the target test case is increased by P, where P is a positive integer; In response to a target test case being associated with Q target test cases, and the pre-data of the target test case being the execution results of the corresponding Q target test cases, the priority score of the target test case is reduced by Q, where Q is a positive integer; The target test cases are sorted according to the priority scores from large to small.
7. The method according to claim 1, It is characterized in that The use case execution priority rule includes a multi-user use case execution priority rule. In response to the number of users being greater than 1, the target test cases are sorted according to the use case execution priority rule, including: For each user, the number of the target function modules is set to n, where n is a positive integer and n≥2; the initial priority score of the target test case is set to 0, and the target function modules are ranked and scored according to the business process. The priority score of all target test cases under the target function module ranked m is (n-m+1) 2 , where m is a positive integer and m≤n; For all users, determine whether any target test case has an associated target test case; In response to no association relationship existing between all target test cases, maintaining priority scores of all target test cases; In response to a target test case of a user being associated with target test cases of P other users, and an execution result of the target test case being used as pre-data of the target test cases of the P other users, a priority score of the target test case of the user is increased by P, where P is a positive integer; In response to a target test case of a user being associated with target test cases of Q other users, and the pre-data of the target test case being the execution result of the target test cases of the Q other users, the priority score of the target test case of the user is reduced by Q, where Q is a positive integer; The target test cases are sorted according to the priority scores from large to small.
8. A system acceptance test device, It is characterized in that The device comprises: A receiving and generating module, the receiving and generating module is used to receive demand information of at least one user, and generate an acceptance test survey questionnaire according to the demand information of the at least one user and the survey questionnaire generation rules, wherein the demand information includes a target function module, and one user corresponds to one acceptance test survey questionnaire; A classification module, the classification module is used to classify the functional modules according to the module classification rules based on the target functional modules, and classify the test cases according to the use case classification rules based on the use case execution roles; a screening module, the screening module is used to screen out the target test cases corresponding to each acceptance test survey questionnaire according to the function module classification results, the test case classification results and the target functional modules according to the test case screening rules; A sorting module, the sorting module is used to sort the target test cases according to the number of users and the use case execution priority rule for each acceptance test survey questionnaire; An execution module is used to execute the target test cases in sequence according to the sorting results for each user.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
