Simulation test method and device, equipment and storage medium
By obtaining and querying the test data structure templates and identification of the financial business application platform, the problem of mismatch between the test data and the environment scenario is solved, and more efficient matching of the test data and the scene is achieved, and testing efficiency and accuracy are improved.
Patent Information
- Application Number
- CN202311001435.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-09
- Publication Date
- 2025-01-17
AI Technical Summary
In the testing of financial business application platform, the test data does not match the environment scenario, resulting in test failure and inefficiency.
By obtaining the test data structure template and identification of the target test scenario, querying the characteristics of historical test data, obtaining the target test data from the test database, and populating it into the test case, and entering the simulation test platform to improve the matching degree.
It improves the matching degree between the test data and the test scenario, reduces the error of the test results, ensures the rationality and correctness of the test data, and shortens the test cycle.
Smart Images

Figure CN119322738A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the fields of testing technology and financial technology, and in particular to a simulation testing method, device, equipment and storage medium. Background Art
[0002] As the business of financial institutions continues to expand, in the process of testing the application platform for financial business, it is easy for the test data itself to cause errors, resulting in the failure of the financial business application platform test. At the same time, since the test is affected by factors such as the environment, it is easy to cause the test data to not match the environmental scenario.
[0003] In the process of realizing the above-mentioned inventive concept, the inventors found that when testing the application platform, the relevant technology has technical problems such as low matching degree between test data and application scenarios, long test cycle and low test efficiency. Summary of the invention
[0004] In view of the above problems, the present disclosure provides a simulation test method, apparatus, device and storage medium.
[0005] According to a first aspect of the present disclosure, a simulation testing method is provided, comprising: in response to a selection operation for a target test scenario, obtaining a test data structure template of the target test scenario and an identifier of the target test scenario, wherein the test data structure template includes field attribute information for constituting test data; querying target test data from a test database according to the identifier and the field attribute information of the target test scenario, wherein the test database is constructed based on data features of historical test data of the target test scenario; filling the target test data into the test data structure template according to the field attribute information to generate a test case; and inputting the test case into a node to be tested in a simulation test platform to obtain a first test result.
[0006] According to an embodiment of the present disclosure, target test data is queried from a test database based on an identification and field attribute information of a target test scenario, including: determining data features of the test data based on the identification of the target test scenario, wherein the data features characterize input data features of a transaction start node of the target test scenario; and querying the target test data from the test database based on the data features.
[0007] According to an embodiment of the present disclosure, target test data is queried from a test database based on data characteristics, including: querying from the test database based on the data characteristics a plurality of candidate test data and a plurality of historical test version information corresponding to the plurality of candidate test data; querying the version information of the node to be tested based on an identification of the node to be tested; and obtaining the target test data from the plurality of candidate test data based on the version information of the node to be tested and the historical test version information.
[0008] According to an embodiment of the present disclosure, target test data is obtained from multiple candidate test data based on version information of the node to be tested and multiple historical test version information, including: querying current change information of the node to be tested based on the version information of the node to be tested; querying multiple historical change information of the node to be tested corresponding to multiple historical test version information based on multiple historical test version information; determining target historical change information and target historical test version information corresponding to the target historical change information from multiple historical change information based on the type of current change information; and obtaining target test data from multiple candidate test data based on the target historical test version information.
[0009] According to an embodiment of the present disclosure, the test data structure template also includes associated field attribute information that has an association relationship with the target test data, and also includes: obtaining data difference information based on the field attribute information and the attribute information of the associated field; generating associated test data based on the target test data and the data difference information; and filling the target test data and the associated test data into the test data structure template according to the field attribute information and the associated field attribute information to generate a test case.
[0010] According to an embodiment of the present disclosure, the nodes to be tested may include N, where N is an integer greater than 1; the test case is input into the node to be tested in the simulation test platform to obtain a first test result, including: the test case is input into the node to be tested in the simulation test platform to obtain N output data; the N output data are compared with the standard output data of each node to be tested to obtain the first test result.
[0011] According to an embodiment of the present disclosure, when it is determined that the nth output data is different from the standard output data of the nth node to be tested, the n-1th output data is compared with the standard output data of the n-1th node to be tested to obtain a first test result of the n-1th node to be tested, wherein n is an integer greater than 1 and less than N; when it is determined that the first test result of the n-1th node to be tested is that the output is normal, the n-1th node to be tested is determined to be an abnormal test node; the abnormal test node is retested to generate a second test result.
[0012] According to an embodiment of the present disclosure, retesting the abnormal test node to generate a second test result includes: generating a test path based on the abnormal test node and other test nodes associated with the abnormal test node; and processing the target test data according to the test path to obtain the second test result.
[0013] The second aspect of the present disclosure provides a simulation test device, including: an acquisition module, used to obtain a test data structure template and an identifier of a target test scenario in response to a selection operation for a target test scenario, wherein the test data structure template includes field attribute information for constituting test data; a query module, used to query target test data from a test database according to the identifier and field attribute information of the target test scenario, wherein the test database is constructed based on data features of historical test data of the target test scenario; a generation module, used to fill the target test data into the test data structure template according to the field attribute information to generate a test case; and a test module, used to input the test case into a node to be tested in a simulation test platform to obtain a first test result.
[0014] A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors execute the above method.
[0015] The fourth aspect of the present disclosure also provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the above method.
[0016] The fifth aspect of the present disclosure also provides a computer program product, including a computer program, which implements the above method when executed by a processor.
[0017] According to the simulation test method, device, equipment and storage medium disclosed in the present invention, since the application platform obtains the test data structure template and the identification of the target test scenario according to the target test scenario, and queries the target test data from the feature database with the test data structure template and the identification of the target test scenario, the test case is tested according to the test case generated by the target test data to obtain the first test result, thereby achieving the technical effect of improving the matching degree between the target test data and the target test scenario, and reducing the error in the test result caused by the inconsistency between the test scenario and the data. At the same time, since the feature database is constructed based on the data features of the historical test data, the test data in the feature database includes the verified test data and the test data obtained based on the data features of the verified test data, so as to ensure the rationality and correctness of the called test data in subsequent tests, and further improve the matching degree between the target test data and the target test scenario. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The above contents and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0019] Figure 1 The application scenario diagram of the simulation test method, device, equipment and storage medium according to the embodiment of the present disclosure is schematically shown;
[0020] Figure 2 A flowchart of a simulation test method according to an embodiment of the present disclosure is schematically shown;
[0021] Figure 3 Schematically shows a flow chart of querying target test data according to an embodiment of the present disclosure;
[0022] Figure 4 A flowchart of querying target test data according to data features according to an embodiment of the present disclosure is schematically shown;
[0023] Figure 5 Schematically shows a flow chart of obtaining target test data according to an embodiment of the present disclosure;
[0024] Figure 6 A flowchart of generating a test case according to an embodiment of the present disclosure is schematically shown;
[0025] Figure 7 A flowchart for obtaining a first test result according to an embodiment of the present disclosure is schematically shown;
[0026] Figure 8 A flowchart for determining abnormal test points according to an embodiment of the present disclosure is schematically shown;
[0027] Fig. 9 A flowchart of generating a second test result according to an embodiment of the present disclosure is schematically shown;
[0028] Fig.10 A schematic diagram schematically shows a simulation test method according to an embodiment of the present disclosure;
[0029] Fig.11 A structural block diagram of a simulation test device according to an embodiment of the present disclosure is schematically shown; and
[0030] Fig.12 A block diagram of an electronic device suitable for implementing a simulation test method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0031] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0032] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0033] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.
[0034] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0035] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision, disclosure and application of the data involved (including but not limited to user personal information) comply with the provisions of relevant laws and regulations, take necessary confidentiality measures, and do not violate public order and good morals.
[0036] In the actual application process, because the business of financial institutions is constantly expanding, in order for users to have a good experience of the financial business application platform, R&D personnel need to test the financial business application platform. R&D personnel repeatedly conduct simulation tests in the target scenarios to obtain a suitable financial business application platform.
[0037] However, since the test data is manually written by different testers, the test data itself is prone to errors. At the same time, since the test is affected by factors such as the environment, it is easy for the test data to not match the environmental scenario. Therefore, there are technical problems in the related art that the test data is prone to defects, cannot match the application scenario, and has a long test cycle.
[0038] In view of this, an embodiment of the present disclosure provides a simulation testing method, comprising: in response to a selection operation for a target test scenario, obtaining a test data structure template of the target test scenario and an identifier of the target test scenario, wherein the test data structure template includes field attribute information for constituting test data; querying the target test data from a test database according to the identifier and the field attribute information of the target test scenario, wherein the test database is constructed based on data features of historical test data of the target test scenario; filling the target test data into the test data structure template according to the field attribute information to generate a test case; and inputting the test case into a node to be tested in a simulation test platform to obtain a first test result.
[0039] Figure 1 The application scenario diagram of the simulation test method according to an embodiment of the present disclosure is schematically shown.
[0040] like Figure 1 As shown, the application scenario 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0041] The user may use at least one of the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications may be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).
[0042] For example, the user may use the bank client installed in the first terminal device 101 , the second terminal device 102 , and the third terminal device 103 to send a service request to the server 105 equipped with the service system.
[0043] The first terminal device 101, the second terminal device 102, and the third terminal device 103 may be various electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0044] The server 105 may be a server that provides various services, such as a background management server (only as an example) that provides support for websites browsed by users using the first terminal device 101, the second terminal device 102, and the third terminal device 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.
[0045] For example, the server 105 may be a distributed server, a cloud server, or a centralized server. The server 105 may be installed with an old version of the business system and a new version of the business server at the same time, and the storage method of the business data is tested.
[0046] It should be noted that the simulation test method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the simulation test device provided in the embodiment of the present disclosure can generally be set in the server 105. The simulation test method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105. Accordingly, the simulation test device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105.
[0047] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0048] The following will be based on Figure 1 The scene described by Figure 2 to Figure 6 The simulation test method of the disclosed embodiment is described in detail.
[0049] Figure 2 The flowchart of the simulation test method according to the embodiment of the present disclosure is schematically shown.
[0050] like Figure 2 As shown, the simulation test method of this embodiment includes operations S210 to S240.
[0051] In operation S210 , in response to a selection operation on a target test scenario, a test data structure template of the target test scenario and an identifier of the target test scenario are acquired.
[0052] According to an embodiment of the present disclosure, the target test scenario can be characterized as a simulation test scenario of the application platform. R&D personnel test the application platform under the simulation test scenario to obtain test results of the application platform under the simulation test scenario.
[0053] For example, the target test scenario is that users make payments to multiple merchants, where users can make small payments without password at merchant A, users need to enter passwords to verify payments at merchant B, and users use facial recognition to verify payments at merchant C. R&D personnel need to conduct simulation tests on the payment application platform of the financial institution under this target test scenario.
[0054] According to an embodiment of the present disclosure, the test data structure template may be a template for constructing simulated real data in a simulation test scenario.
[0055] For example, when the application platform is tested in a simulated user investment scenario, the specific data in the actual user investment scenario is the application date, investment product code, investment product amount and processing date. The template simulating the real data can be: Application Date_Investment Product Code_Investment Product Amount_Processing Date.
[0056] According to an embodiment of the present disclosure, the test data may be characterized as simulated real data in a simulation test scenario, and the test data may be composed of one or more field attribute information.
[0057] The test data may include fields with the same attributes as the actual transaction data in the real transaction scenario, such as application date field, transaction date field, transaction type field, etc. It may also include the value range of the attribute value of the field, for example, the value range corresponding to the application date field may be XX / XX / 20XX to YY / YY / 20XX
[0058] For example: for subscription trading products, the value of the real data subscription share field is greater than 0, so the value range of the attribute value of the subscription share attribute field can be configured in the test data structure template as a positive integer greater than 0.
[0059] According to the embodiments of the present disclosure, the actual application scenarios can be characterized as business scenarios of financial institutions in reality. For example, the actual application scenarios can include user transfer scenarios, user payment scenarios, and user investment scenarios.
[0060] According to an embodiment of the present disclosure, specific data is composed of multiple field attribute information in actual application scenarios.
[0061] According to an embodiment of the present disclosure, the field attribute information may be characterized as information that a financial institution needs to input when handling related business in an actual application scenario.
[0062] For example, field attribute information A is the application date information, field attribute information B is the processing date information, field attribute information C is the transaction date information, and field attribute information D is the reminder arrival date information.
[0063] For example, when user A transfers money to user B, the specific data may be the application date 20XX-YY-24 when user A submits the transfer request, the bank card number of user B is 1575******5413, the transfer amount of user A is 50,000, the latest transfer date is 20XX-YY-30, the processing date of the transfer request is 20XX-YY-26, the payment date 20XX-YY-27 when user B receives the transfer, and the arrival date 20XX-YY-27 when user B is reminded to collect the payment.
[0064] In operation S220, target test data is queried from a test database according to the identifier of the target test scenario and field attribute information.
[0065] According to an embodiment of the present disclosure, the identifier of the target test scenario can be used to distinguish different test scenarios, so that when executing test tasks for different test scenarios, target test data matching the test scenario can be queried according to the identifier.
[0066] For example, user mobile banking transfer scenario a, user counter transfer scenario aa, user financial securities investment scenario b, user wealth management product investment scenario bb, user small merchant payment scenario c, user large merchant payment scenario cc.
[0067] According to an embodiment of the present disclosure, the test database may be characterized as a collection containing all test data.
[0068] For example, the test database contains application date 20XX-YY-01, investment product code 52245, investment product amount 50000 and processing date 20XX-YY-15; application date 20XX-YY-17, investment product code 78496, investment product amount 10000 and processing date 20XX-YY-25; application date 20XX-YY-06, payee bank card number 1526******4697, transfer amount 7000, transfer date 20XX-YY-07 and notification date 20XX-YY-07.
[0069] According to an embodiment of the present disclosure, the target test data may be characterized as test data in a simulation test scenario ultimately selected for testing an application platform.
[0070] For example, the test database contains 20XX-YY-01, 52245, 50000, and 20XX-YY-15; 20XX-YY-17, 78496, 10000, and 20XX-YY-25; 20XX-YY-06, 1526******4697, 7000, 20XX-YY-07, and 20XX-YY-07, while the target test data is 20XX-YY-17, 78496, 10000, and 20XX-YY-25.
[0071] According to an embodiment of the present disclosure, the test database is constructed based on data features of historical test data of a target test scenario.
[0072] According to an embodiment of the present disclosure, the historical test data may be characterized as simulated real data in a simulation test scenario that has been used to test the application platform.
[0073] According to the embodiments of the present disclosure, the data feature can be characterized as the data having fixed symbols, numbers, letters and other identifiers in fixed positions, and the order of the symbols, numbers, letters and other identifiers will not be changed, that is, the data has a fixed structure, and the structural order will not change.
[0074] For example, the data feature of "20XX-YY-ZZ" may be a string of 10 characters in which the fifth and eighth characters are fixed to "-" and the remaining characters are fixed to numbers.
[0075] For example, the test database includes historical test data "20XX-YY-ZZ", "845543", "4155552 yuan", "20XX-YY-18, 20XX-YY-22", "20XX-01-ZZ, bonds, 600"; "20XX-08-ZZ, stocks, 10000", "20XX-08-ZZ, financial management, 23000, 20XX-08-ZZ", in the user investment scenario of the 1.0 test version According to the data feature of "the test data for transactions applying for fund products is the application date of XXXX / XX / XX, and the subscription of A shares of Class M products; the test data for transactions applying for fund products is the application date of YYYY / YY / YY, and the subscription of B shares of Class N products", that is, "application date_product type_number of copies applied for", the target test data "20XX-01-ZZ, bonds, 600"; 20XX-08-ZZ, stocks, 10000" are queried from the test database.
[0076] In operation S230, the target test data is filled into the test data structure template according to the field attribute information to generate a test case.
[0077] For example, the target test data 20XX-YY-16, 50,000 yuan, 578,466, 20XX-YY-20, 24 hours is filled into the data structure template Application Date_Investment Product Code_Investment Product Amount_Processing Date_Settlement Period according to the field attribute information of Application Date, Investment Amount, Investment Product Code, Processing Date, and Settlement Period to generate the test case 20XX-YY-16_578466_50,000 yuan_20XX-YY-20_24 hours.
[0078] In operation S240, the test case is input into the node to be tested in the simulation test platform to obtain a first test result.
[0079] According to an embodiment of the present disclosure, a simulation test platform may be characterized as a platform for testing platform applications.
[0080] According to an embodiment of the present disclosure, for a target test scenario, many nodes to be tested may be included in the entire test of the test platform application.
[0081] For example, in a user investment scenario, the nodes to be tested in all tests of the test platform application include input information nodes, storage information nodes, upload information nodes, and processing information nodes.
[0082] According to the embodiment of the present disclosure, since the application platform obtains the test data structure template and the identification of the target test scenario according to the target test scenario, and queries the target test data from the feature database with the test data structure template and the identification of the target test scenario, the test case is tested according to the test case generated by the target test data to obtain the first test result, thereby improving the matching degree between the target test data and the target test scenario, and avoiding the occurrence of a large error in the test result due to the inconsistency between the test scenario and the data. At the same time, since the feature database is constructed based on the data features of the historical test data, the test data in the feature database includes the verified test data and the test data obtained based on the data features of the verified test data, so as to ensure the rationality and correctness of the test number called in the subsequent test, and further improve the matching degree between the target test data and the target test scenario.
[0083] Figure 3 The flowchart of querying target test data according to an embodiment of the present disclosure is schematically shown.
[0084] like Figure 3 As shown, the simulation test method of this embodiment includes operations S310 to S320.
[0085] According to an embodiment of the present disclosure, querying target test data from a test database according to an identifier and field attribute information of a target test scenario includes:
[0086] In operation S310 , data features of test data are determined according to an identification of a target test scenario.
[0087] According to an embodiment of the present disclosure, the data feature characterizes the input data feature of the transaction initiation node of the target test scenario.
[0088] According to an embodiment of the present disclosure, the transaction start node may be characterized as the first node of all nodes to be tested in a target test scenario.
[0089] For example, if the nodes to be tested include an input information node, a storage information node, an upload information node, and a processing information node, then the transaction start node is the input information node.
[0090] According to an embodiment of the present disclosure, the input data features of the transaction initiation node may be characterized as data features of the target test data input to the transaction initiation node.
[0091] For example, the transaction start node is the input information node, and the target test data of the input information node includes the application date, investment product code, investment amount and processing period, that is, "20XX-YY-ZZ; 788387; 30000; 7". The data characteristics of the target test data are a total of 25 characters, the 5th and 8th characters are fixed to "-", the 11th, 18th and 24th separator characters are fixed to ";", and the remaining characters are all numbers.
[0092] In operation S320, target test data is searched from a test database according to the data characteristics.
[0093] For example, according to the data characteristics of "20XX-YY-ZZ; 788387; 30000; 7", there are 25 characters in total, the 5th and 8th characters are fixed to "-", the 11th, 18th and 24th separator characters are fixed to ";", and the remaining characters are all numbers. The target test data queried from the test database is "20XX-YY-ZZ; 284867; 50000; 7".
[0094] According to the embodiments of the present disclosure, the data features of the test data are determined according to the identification of the target test scenario, thereby determining the target test data so as to improve the matching degree between the test data and the scenario. At the same time, the data features are the input data features of the transaction start node. In the test database, the target test data is selected according to the data features, so that the target test data has high similarity and high quality similar to the historical test data. By selecting the target test data in the test database, the selection range of the target test data can be expanded, and the optimal selection of the target test data can be achieved.
[0095] Figure 4Schematically shows a flow chart of querying target test data according to data features according to an embodiment of the present disclosure
[0096] like Figure 4 As shown, the simulation test method of this embodiment includes operations S410 to S430.
[0097] According to an embodiment of the present disclosure, querying target test data from a test database according to data features includes:
[0098] In operation S410 , a plurality of candidate test data and a plurality of historical test version information corresponding to the plurality of candidate test data are queried from a test database according to data characteristics.
[0099] According to an embodiment of the present disclosure, the plurality of candidate test data may be characterized as a plurality of test data that meet the data characteristics in the test data.
[0100] For example, the test database contains "20XX-YY-18", "20XX-YY-19", "19XX-YY-26", "20XX-YY-25", "486328", "786534", "784130", "7", "5", "24", and the data feature is a total of 10 characters, among which the 5th and 8th characters are fixed to "-", and the remaining characters are fixed to numbers. Then, the multiple candidate test data that meet the data feature are "20XX-YY-18", "20XX-YY-19", "19XX-YY-26", and "20XX-YY-25".
[0101] According to an embodiment of the present disclosure, the historical test version information may be characterized as the test platform version information of the test data that has been tested.
[0102] According to an embodiment of the present disclosure, the historical test version information may include the historical test version number, the historical test version application time, the historical test version deactivation time, the to-be-tested nodes included in the historical test version, and the historical test version identifier.
[0103] According to an embodiment of the present disclosure, the historical test version identification can be characterized as each historical test version having a representative mark, and the representative mark can be represented by symbols, numbers, letters, but is not limited to the above representation methods.
[0104] For example, the historical test version information of A includes the historical test version number 2010, the historical test version application time 2010-YY-ZZ, the historical test version deactivation time 2015-YY-ZZ, the nodes to be tested included in the historical test version, the input information node, the storage information node, the processing information node, and the historical test version identifier A.
[0105] For example, the historical test version number corresponding to candidate test data A is 1988, the historical test version application time is 1988-YY-ZZ, the historical test version deactivation time is 1990-YY-ZZ, the historical test version includes the nodes to be tested, the input information node, the processing information node, and the historical test version identification A; the historical test version corresponding to candidate test data B is 2015, the historical test version application time is 2015-YY-ZZ, the historical test version deactivation time is 2020-YY-ZZ, the historical test version includes the nodes to be tested, the input information node, the storage information node, the processing information node, and the historical test version identification B.
[0106] In operation S420, version information of the node to be tested is queried according to the identifier of the node to be tested.
[0107] According to an embodiment of the present disclosure, the identification of the node to be tested can be characterized as each node to be tested having a representative mark, and the representative mark can be represented by symbols, numbers, letters, but is not limited to the above representation methods.
[0108] For example, the identifier of the input information node is A, and the identifier of the storage information node is B.
[0109] According to an embodiment of the present disclosure, the version information of the node to be tested may be characterized as test version information of the node to be tested. The test version information may include an identifier corresponding to the identifier of the node to be tested and a version number of the node to be tested.
[0110] For example, according to the node to be tested being A, the queried test version information of the corresponding node to be tested includes an identifier A corresponding to the identifier of the node to be tested and a version number 2020 of the node to be tested.
[0111] In operation S430 , target test data is obtained from a plurality of candidate test data according to version information of the node to be tested and historical test version information.
[0112] For example, based on the version number 2015 of the node to be tested and the historical test version number 2015, the historical test version application time 2015-YY-ZZ, and the historical test version deactivation time 2020-YY-ZZ, find the corresponding target test data "2015-YY-ZZ" from multiple candidate test data "2015-YY-ZZ", "2005-YY-ZZ", "1918-YY-ZZ", and "2020-YY-ZZ".
[0113] According to the embodiments of the present disclosure, since multiple candidate test data and multiple historical test version information are queried from the test database, the target test data is obtained through the version information of the node to be tested and the historical test version information, so as to find the target test data from larger data and improve the quality of the target test data. At the same time, since the test program will be upgraded, more accurate target test data can be found through the version information, thereby improving the matching degree between the test data and the scenario.
[0114] Figure 5 The flowchart of obtaining target test data according to an embodiment of the present disclosure is schematically shown.
[0115] like Figure 5 As shown, the simulation test method of this embodiment includes operations S510 to S540.
[0116] According to an embodiment of the present disclosure, obtaining target test data from multiple candidate test data according to version information of a node to be tested and multiple historical test version information includes:
[0117] In operation S510, current change information of the node to be tested is queried according to the version information of the node to be tested.
[0118] According to an embodiment of the present disclosure, the version information of the node to be tested may include test data of the node to be tested under the version.
[0119] For example, the version information of the node A to be tested includes application date, investment product code, investment amount, processing cycle, and processing date.
[0120] According to an embodiment of the present disclosure, the current change information of the node to be tested may be represented as the change test data of the node to be tested under the version.
[0121] According to an embodiment of the present disclosure, the change information can be queried by comparing the currently input test data of the node to be tested with the version information of the node to be tested.
[0122] For example, the version information of the node A to be tested includes the application date, investment product code, investment amount, processing cycle, and processing date. The input test data of the node A to be tested is the application date, investment product code, investment amount, termination date, and processing date. The current change information of the node A to be tested is the termination date.
[0123] In operation S520, based on the multiple pieces of historical test version information, multiple pieces of historical change information of the node to be tested corresponding to the multiple pieces of historical test version information are queried.
[0124] According to an embodiment of the present disclosure, the historical test version information may include test data of the node to be tested under the historical version.
[0125] According to an embodiment of the present disclosure, the historical change information may be represented as the changed test data of the node to be tested under the historical version.
[0126] According to an embodiment of the present disclosure, by comparing the currently input test data of the node to be tested with a plurality of historical test version information, a plurality of historical change information can be queried.
[0127] For example, the historical test version information of A is the application date, investment product amount, and processing date; the historical test version information of B is the application date, expected settlement amount of the investment product, and processing date; the currently input test data of the node to be tested is the application date, investment product amount, and transaction date, then the historical change information of A is the transaction date, and the historical change information of B is the expected settlement amount of the investment product and processing date.
[0128] In operation S530 , target historical change information and target historical test version information corresponding to the target historical change information are determined from a plurality of historical change information according to the type of the current change information.
[0129] According to an embodiment of the present disclosure, the type of current change information may include deleting a specific data, adding a specific data, and changing a specific data.
[0130] According to an embodiment of the present disclosure, the target historical change information may be characterized as the change test data of the node to be tested under the historical version selected according to the type of the current change information.
[0131] According to an embodiment of the present disclosure, the target historical test version information may be characterized as all test data of the node to be tested under the historical version determined according to the target historical change information.
[0132] For example, the current change information types may include deleting the application date, adding the application date, changing the application date to the start date, changing the application date to the transaction date, deleting the processing date, adding the processing date, changing the processing date to the arrival date, changing the processing date to the transaction end date, deleting the investment amount date, adding the investment amount date, changing the investment amount to the investment product code, and changing the investment amount to the investment product quantity.
[0133] For example, the application date is deleted according to the type of change information, and the target historical change information is determined to be the A historical change information from the investment amount and processing date of the A historical change information and the application date, investment amount and processing date of the B historical change information. And based on the A historical change information, the A historical test version information is determined to be the A target historical test version information, i.e., the investment amount, investment product code, processing cycle, processing date, historical test version number 2010, historical test version application time 2010-YY-ZZ, and historical test version deactivation time 2015-YY-ZZ.
[0134] In operation S540 , target test data is obtained from a plurality of candidate test data according to the target historical test version information.
[0135] For example, based on the historical test version information of target A, investment amount, investment product code, processing cycle, processing day, historical test version number 2010, historical test version application time 2010-YY-ZZ, and historical test version deactivation time 2015-YY-ZZ, find the corresponding target test data "2015-YY-ZZ" from multiple candidate test data "2015-YY-ZZ", "2005-YY-ZZ", "1918-YY-ZZ", and "2020-YY-ZZ".
[0136] According to the embodiments of the present disclosure, by querying the current change information of the node to be tested, the target historical test version information is determined according to the type of the current change information, and then the target test data is determined. This ensures that when a logical change in the test data occurs at a certain test node, the target test data can be accurately found, thereby achieving a high degree of matching between the test data and the scenario.
[0137] Figure 6 The flowchart of generating test cases according to an embodiment of the present disclosure is schematically shown.
[0138] like Figure 6 As shown, the simulation test method of this embodiment includes operations S610 to S630.
[0139] According to an embodiment of the present disclosure, the test data structure template further includes associated field attribute information associated with the target test data, and further includes:
[0140] In operation S610, data difference information is obtained according to the field attribute information and the attribute information of the associated field.
[0141] According to an embodiment of the present disclosure, the attribute information of the associated field can be characterized as, in the server, for a certain field attribute information, there is default or manually set information in the server, and the attribute information of a certain field combined with the default or manually set information in the server can automatically generate the attribute information of another field associated with the attribute information of the certain field.
[0142] For example, the attribute information of field A is the application date information. In the server, the default is that application date + 7 = processing date. Then the attribute information of the associated field associated with the attribute information of field A is the processing date information.
[0143] According to an embodiment of the present disclosure, the data difference information may be characterized as information that distinguishes the field attribute information from the attribute information of the associated field.
[0144] For example, if the field attribute information is application date information, and the attribute information of the associated field is processing date information, then the data difference information between the application date information and the processing date information is the time difference between the application date information and the processing date information.
[0145] In operation S620, associated test data is generated according to the target test data and the data difference information.
[0146] For example, in a user investment scenario, the target test data is 20XX-YY-09, the data difference information is 7 days, and the associated test data is 20XX-YY-16.
[0147] In operation S630, the target test data and the associated test data are filled into the test data structure template according to the field attribute information and the associated field attribute information to generate a test case.
[0148] For example, the test data structure template is application date_investment product code_investment product amount_processing date. The target test data are 20XX-YY-13, 584697, 60,000 yuan and the associated test data 20XX-YY-20 are filled into the test data structure template according to the field attribute information application date information, investment product code information, investment product amount information and associated field attribute information processing date information to generate the test case 20XX-YY-13_584697_60,000 yuan_20XX-YY-20.
[0149] According to the embodiments of the present disclosure, data difference information is obtained through field attribute information and attribute information of associated fields, associated test data is obtained based on the data difference information, and test cases are generated based on target test data and associated test data, thereby achieving test cases including more and more accurate test data and avoiding omission of test data.
[0150] Figure 7 The flowchart for obtaining the first test result according to the embodiment of the present disclosure is schematically shown.
[0151] like Figure 7 As shown, the simulation test method of this embodiment includes operations S710 to S720.
[0152] According to an embodiment of the present disclosure, the nodes to be tested may include N, where N is an integer greater than 1; a test case is input into the nodes to be tested in the simulation test platform to obtain a first test result, including:
[0153] In operation S710, a test case is input into a node to be tested in a simulation test platform, and N output data can be obtained.
[0154] According to an embodiment of the present disclosure, the output data can be characterized as test result data obtained by inputting the test case into the node to be tested. Since there are N nodes to be tested, there are also N test result data.
[0155] In operation S720, the N output data are compared with the standard output data of each node to be tested to obtain a first test result.
[0156] According to an embodiment of the present disclosure, the standard output data may be characterized as standard test result data existing in the server for the node to be tested.
[0157] According to an embodiment of the present disclosure, the first test result can be characterized as whether the comparison between the output data and the standard output data is consistent. If the output data and the standard output data are consistent, the first test result is that the output data is normal. If the output data and the standard output data are inconsistent, the first test result is that the output data is abnormal.
[0158] For example, if the output data is 485443 and the standard output data is 485443, then the first test result is that the output data is normal; if the output data is 485443 and the standard output data is 723805, then the first test result is that the output data is abnormal.
[0159] According to an embodiment of the present disclosure, since the output data of the node to be tested is compared with the standard output data, the first test result is generated based on the comparison result, which improves the accuracy of the output test result. At the same time, if the first test result is an abnormal situation, it can also promptly draw the user's attention to the abnormal test result.
[0160] Figure 8 A program judgment diagram for determining abnormal test points according to an embodiment of the present disclosure is schematically shown.
[0161] like Figure 8 As shown, the simulation test method of this embodiment includes operations S810 to S830.
[0162] In operation S810, when it is determined that the nth output data is different from the standard output data of the nth node to be tested, the n-1th output data is compared with the standard output data of the n-1th node to be tested to obtain a first test result of the n-1th node to be tested.
[0163] According to an embodiment of the present disclosure, n is an integer greater than 1 and less than N.
[0164] In operation S820, when it is determined that the first test result of the n-1th node to be tested is a normal output, the nth node to be tested is determined to be an abnormal test node.
[0165] According to an embodiment of the present disclosure, an abnormal test node may be characterized as a node that outputs abnormal test data and whose test data output by the node to be tested cannot match the standard test data.
[0166] In operation S830, a retest is performed on the abnormal test node to generate a second test result.
[0167] According to an embodiment of the present disclosure, retesting the abnormal test node may be characterized as re-inputting the test case of the abnormal test node into the abnormal test node in the simulation test platform for testing.
[0168] According to an embodiment of the present disclosure, the second test result may be characterized as test data obtained after retesting the abnormal test node.
[0169] According to the embodiments of the present disclosure, since the n-1th node to be tested is tested to verify whether the first test result of the n-1th node to be tested is normal, when the first test result of the n-1th node to be tested is normal, the nth node to be tested is confirmed to be an abnormal test node, thereby narrowing the scope of abnormal test nodes and improving the efficiency of accurately judging abnormal nodes.
[0170] Fig. 9 The flowchart of generating the second test result according to the embodiment of the present disclosure is schematically shown.
[0171] like Fig. 9 As shown, the simulation test method of this embodiment includes operations S910 to S920.
[0172] According to an embodiment of the present disclosure, retesting the abnormal test node to generate a second test result includes:
[0173] In operation S910 , a test path is generated according to an abnormal test node and other test nodes associated with the abnormal test node.
[0174] According to an embodiment of the present disclosure, other test nodes associated with the abnormal test node may be characterized as other test nodes associated with the abnormal test node generated according to data difference information for the abnormal test node.
[0175] According to an embodiment of the present disclosure, a test path may be characterized as including only an abnormal test node and other test nodes associated with the abnormal test node, and test data only needs to test the nodes in the test path during retesting.
[0176] For example, the nodes to be tested include input information nodes, storage information nodes, upload information nodes, verification information nodes, and processing information nodes, among which the abnormal test node is the input information node, and other test nodes associated with the abnormal test node are verification information nodes and processing information nodes. Then the generated test path is the input information node, verification information node, and processing information node.
[0177] In operation S920, the target test data is processed according to the test path to obtain a second test result.
[0178] According to an embodiment of the present disclosure, target test data is filled into a test data structure template to generate a test case, the test case is input into a test path in a simulation test platform, and retesting is performed to obtain a second test result for an abnormal test node.
[0179] According to the embodiments of the present disclosure, a test path is constructed based on the abnormal test node and other test nodes associated with the abnormal test node, and the target test data is input into the test path for retesting, thereby achieving accurate testing of the abnormal test node, avoiding the waste of resources caused by repeated testing of normal test nodes, and improving testing efficiency.
[0180] Fig.10 A schematic diagram of a simulation test method according to an embodiment of the present disclosure is schematically shown.
[0181] like Fig.10 As shown, in embodiment 1000, a user version interface and a program version interface may be included. The user version interface only displays input controls 1010 and output controls 1050. The program version interface displays the output data of each node to be tested during the simulation test and the output data of the complete test process for test backtracking. For example: input test case 1020 in input control 1010, process test case 1020 through N nodes to be tested, and obtain test result 1040. Test result 1040 is transmitted to output control 1050 of the user version, and the user can view the test result in the output control of the user version.
[0182] Based on the above simulation test method, the present disclosure also provides a simulation test device. Fig.11 The device is described in detail.
[0183] Fig.11 The structural block diagram of the simulation test device according to the embodiment of the present disclosure is schematically shown.
[0184] like Fig.11 As shown, the simulation test device 1100 of this embodiment includes an acquisition module 1110 , a query module 1120 , a generation module 1130 and a test module 1140 .
[0185] The acquisition module 1110 is used to obtain the test data structure template of the target test scenario and the identification of the target test scenario in response to the selection operation for the target test scenario, wherein the test data structure template includes field attribute information for constituting the test data. In one embodiment, the acquisition module 1110 can be used to perform the operation S210 described above, which will not be repeated here.
[0186] The query module 1120 is used to query the target test data from the test database according to the identification and field attribute information of the target test scenario, wherein the test database is constructed based on the data features of the historical test data of the target test scenario. In one embodiment, the query module 1120 can be used to perform the operation S220 described above, which will not be repeated here.
[0187] The generating module 1130 is used to fill the target test data into the test data structure template according to the field attribute information to generate a test case. In one embodiment, the generating module 1130 can be used to perform the operation S230 described above, which will not be described in detail here.
[0188] The test module 1140 is used to input the test case into the node to be tested in the simulation test platform to obtain the first test result. In one embodiment, the test module 1140 can be used to perform the operation S240 described above, which will not be described in detail here.
[0189] According to an embodiment of the present disclosure, any multiple modules of the acquisition module 1110, the query module 1120, the generation module 1130 and the test module 1140 can be combined in one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the acquisition module 1110, the query module 1120, the generation module 1130 and the test module 1140 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in a suitable combination of any of them. Alternatively, at least one of the acquisition module 1110 , the query module 1120 , the generation module 1130 , and the test module 1140 may be at least partially implemented as a computer program module, and when the computer program module is executed, a corresponding function may be performed.
[0190] Fig.12A block diagram of an electronic device suitable for implementing a simulation test method according to an embodiment of the present disclosure is schematically shown.
[0191] like Fig.12 As shown, the electronic device 1200 according to an embodiment of the present disclosure includes a processor 1201, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1202 or a program loaded from a storage part 1208 into a random access memory (RAM) 1203. The processor 1201 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 1201 may also include an onboard memory for caching purposes. The processor 1201 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0192] In RAM 1203, various programs and data required for the operation of electronic device 1200 are stored. Processor 1201, ROM 1202 and RAM 1203 are connected to each other via bus 1204. Processor 1201 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 1202 and / or RAM 1203. It should be noted that the program can also be stored in one or more memories other than ROM 1202 and RAM 1203. Processor 1201 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.
[0193] According to an embodiment of the present disclosure, the electronic device 1200 may further include an input / output (I / O) interface 1205, which is also connected to the bus 1204. The electronic device 1200 may further include one or more of the following components connected to the I / O interface 1205: an input portion 1206 including a keyboard, a mouse, etc.; an output portion 1207 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 1208 including a hard disk, etc.; and a communication portion 1209 including a network interface card such as a LAN card, a modem, etc. The communication portion 1209 performs communication processing via a network such as the Internet. A drive 1210 is also connected to the I / O interface 1205 as needed. A removable medium 1211, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1210 as needed, so that a computer program read therefrom is installed into the storage portion 1208 as needed.
[0194] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0195] According to an embodiment of the present disclosure, a computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus, or a device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 1202 and / or RAM 1203 described above and / or one or more memories other than ROM 1202 and RAM 1203.
[0196] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the item recommendation method provided by the embodiment of the present disclosure.
[0197] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 1201. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0198] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 1209, and / or installed from the removable medium 1211. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0199] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1209, and / or installed from the removable medium 1211. When the computer program is executed by the processor 1201, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.
[0200] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).
[0201] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0202] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0203] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. A simulation test method, comprising: In response to a selection operation on a target test scenario, obtaining a test data structure template of the target test scenario and an identifier of the target test scenario, wherein the test data structure template includes field attribute information for constituting test data; According to the identifier of the target test scenario and the field attribute information, query the target test data from the test database, wherein the test database is constructed based on data features of historical test data of the target test scenario; Filling the target test data into the test data structure template according to the field attribute information to generate a test case; and The test case is input into a node to be tested in a simulation test platform to obtain a first test result.
2. The method according to claim 1, wherein: The step of querying target test data from a test database according to the identifier of the target test scenario and the field attribute information includes: Determining data features of the test data according to the identifier of the target test scenario, wherein the data features represent input data features of a transaction start node of the target test scenario; and The target test data is queried from the test database according to the data feature.
3. The method according to claim 2, wherein: The step of querying the target test data from the test database according to the data feature includes: According to the data features, querying from the test database a plurality of candidate test data and a plurality of historical test version information corresponding to the plurality of candidate test data; According to the identification of the node to be tested, query the version information of the node to be tested; and The target test data is obtained from the plurality of candidate test data according to the version information of the node to be tested and the historical test version information.
4. The method according to claim 3, wherein: The step of obtaining the target test data from the plurality of candidate test data according to the version information of the node to be tested and the plurality of historical test version information includes: According to the version information of the node to be tested, query the current change information of the node to be tested; According to the multiple historical test version information, multiple historical change information of the node to be tested corresponding to the multiple historical test version information is queried; determining, according to the type of the current change information, target historical change information and target historical test version information corresponding to the target historical change information from the plurality of historical change information; and The target test data is obtained from the plurality of candidate test data according to the target historical test version information.
5. The method according to claim 1, wherein: The test data structure template also includes associated field attribute information associated with the target test data, and also includes: Obtaining data difference information according to the field attribute information and the attribute information of the associated field; generating the associated test data according to the target test data and the data difference information; and The target test data and the associated test data are filled into the test data structure template according to the field attribute information and the associated field attribute information to generate a test case.
6. The method according to claim 1, wherein: The nodes to be tested may include N, where N is an integer greater than 1; and the step of inputting the test case into the nodes to be tested in the simulation test platform to obtain a first test result includes: The test case is input into the node to be tested in the simulation test platform to obtain N output data; The N output data are compared with standard output data of each node to be tested to obtain the first test result.
7. The method according to claim 6, further comprising: When it is determined that the nth output data is different from the standard output data of the nth node to be tested, compare the n-1th output data with the standard output data of the n-1th node to be tested to obtain a first test result of the n-1th node to be tested, where n is an integer greater than 1 and less than N; When it is determined that the first test result of the n-1th node to be tested is a normal output, determining the nth node to be tested as an abnormal test node; Retest the abnormal test node to generate a second test result.
8. The method according to claim 7, wherein: The retesting the abnormal test node to generate a second test result includes: generating a test path according to the abnormal test node and other test nodes associated with the abnormal test node; and The target test data is processed according to the test path to obtain the second test result.
9. A simulation test device, comprising: an acquisition module, configured to acquire, in response to a selection operation on a target test scenario, a test data structure template of the target test scenario and an identifier of the target test scenario, wherein the test data structure template includes field attribute information for constituting test data; A query module, configured to query target test data from a test database according to the identifier of the target test scenario and the field attribute information, wherein the test database is constructed based on data features of historical test data of the target test scenario; A generating module, used to fill the target test data into the test data structure template according to the field attribute information to generate a test case; and The test module is used to input the test case into the node to be tested in the simulation test platform to obtain a first test result.
10. An electronic device, comprising: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors are enabled to execute the method according to any one of claims 1 to 8.
11. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the method according to any one of claims 1 to 8.
Citation Information
Cited By
Electric tool anthropomorphized automatic test method based on six-dimensional force sensor
CN122709159A