Test data construction method and device

By automating the acquisition and processing of test data for online transaction orders, the problems of low efficiency and poor accuracy of traditional manual test data construction are solved, and efficient and accurate test data construction is achieved.

CN112559320BActive Publication Date: 2024-10-01BEIKE TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202011288116.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-17
Publication Date
2024-10-01
Estimated Expiration
2040-11-17

AI Technical Summary

Technical Problem

In the traditional method, testers need to manually construct test data for the online loan signing system, which is costly, time-consuming, and error-prone. In particular, there is a large amount of information in different cities and needs to be operated across multiple systems, resulting in low data construction efficiency and poor accuracy.

Method used

By obtaining the test data of the online transaction order that matches the target transaction order from the test system database, and querying and processing the test data status of the target transaction order based on the identification information of the online transaction order, the test data is automatically constructed to avoid repeated manual entry. and verification.

Benefits of technology

It greatly improves the efficiency of test data construction, ensures the accuracy of data information, shortens data construction time and reduces costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112559320B_ABST
    Figure CN112559320B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a test data construction method and device, the method comprising: when it is detected that a command for constructing test data for any target transaction order is triggered, obtaining an online transaction order matching any target transaction order from a test system database, and copying the test data of the online transaction order as the test data of the corresponding target transaction order, querying the test data status of the target transaction order according to the identification information of the online transaction order, and constructing the test data of the target transaction order according to the test data status of the target transaction order. The embodiment of the present invention does not need to repeatedly test and verify the manually input part, which not only improves the data construction efficiency, but also ensures the accuracy of the data information in the target transaction order.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data testing technology, and in particular to a test data construction method and device. Background Art

[0002] The online loan signing system moves the original offline loan signing process and operations online. Buyers and sellers can complete the loan signing online, and transaction personnel (transaction managers, brokers) and bank account managers can handle business for customers without leaving home.

[0003] However, in the traditional method, when testing the online loan signing system, testers need to manually construct test data. Different cities need to fill in different amounts of information (up to 40-80 items), and they need to manually operate in multiple systems to construct a test data that meets the needs. The cost of manual data construction is very high, and it requires operations across multiple systems, which is time-consuming and laborious. It takes about 15-30 minutes to complete each data construction based on the online loan signing system. In addition, since the personnel information in the data is manually entered, once an error is made, the constructed test data will be unusable, and all previous efforts will be wasted. Summary of the invention

[0004] In view of the problems existing in the prior art, an embodiment of the present invention provides a test data construction method and device.

[0005] Specifically, the embodiment of the present invention provides the following technical solutions:

[0006] In a first aspect, an embodiment of the present invention provides a test data construction method, comprising:

[0007] When it is detected that a command for constructing test data for any target transaction order is triggered, an online transaction order matching the target transaction order is obtained from the test system database, and the test data of the online transaction order is copied as the test data of the corresponding target transaction order; wherein the test data in the online transaction order has completed the preset business test or is undergoing the preset business test;

[0008] According to the identification information of the online transaction order, query the test data status of the target transaction order;

[0009] According to the test data status of the target transaction order, the test data of the target transaction order is constructed.

[0010] Furthermore, according to the test data status of the target transaction order, data construction is performed on the test data of the target transaction order, including:

[0011] Determine whether there is a first record in the target transaction order for indicating the loan signing and face-to-face signing status. If not, use the test data of the online transaction order copied in the target transaction order as the test data of the target transaction order after the data construction is completed.

[0012] Furthermore, it also includes: if the first record exists in the target transaction order, determining whether the target transaction order contains a second record for the loan signature receipt; if not, using the test data of the online transaction order copied from the target transaction order as the test data of the target transaction order after the data construction is completed.

[0013] Furthermore, it also includes: if there is a second record in the target transaction order for indicating the status of the loan issuance form, it is determined whether the type of the first record is a preset type; if not, the test data of the online transaction order copied in the target transaction order is used as the test data of the target transaction order after the data construction is completed.

[0014] Furthermore, it also includes: if the type of the first record is a preset type, determining whether there is a third record for loan signature and approval in the target transaction order; if not, performing data cleanup on the test data of the target transaction order.

[0015] Furthermore, it also includes: if there is a third record in the target transaction order for indicating the loan approval status, it is determined whether the status in the third record is completed, and if so, the test data of the target transaction order is reset.

[0016] Furthermore, it also includes: if the status in the third record is incomplete, determining whether the time information in the third record exceeds a preset time, and if so, resetting the test data of the target transaction order.

[0017] Furthermore, it also includes: if the time information in the third record does not exceed the preset time, then judging whether the verification room ID information in the third record is a preset value; if so, using the test data of the online transaction order copied in the target transaction order as the test data of the target transaction order after the data construction is completed.

[0018] Furthermore, it also includes: if the verification room ID information in the third record is not a preset value, determining whether there is information of a valid verification room in the third record; if so, using the test data of the online transaction order copied in the target transaction order as the test data of the target transaction order after the data construction is completed, or resetting the test data of the target transaction order.

[0019] In a second aspect, an embodiment of the present invention provides a test data construction device, comprising:

[0020] an acquisition unit, configured to acquire an online transaction order matching any target transaction order from a test system database when detecting that a command for constructing test data for any target transaction order is triggered, and copy the test data of the online transaction order as the test data of the corresponding target transaction order; wherein the test data in the online transaction order has completed a preset business test or is undergoing a preset business test;

[0021] A query unit, configured to query the test data status of the target transaction order according to the identification information of the online transaction order;

[0022] A data construction unit is used to construct the test data of the target transaction order according to the test data status of the target transaction order.

[0023] Furthermore, the data construction unit is used to construct the test data of the target transaction order according to the test data state of the target transaction order, including:

[0024] Determine whether there is a first record in the target transaction order for indicating the loan signing and face-to-face signing status. If not, use the test data of the online transaction order copied in the target transaction order as the test data of the target transaction order after the data construction is completed.

[0025] Furthermore, the data construction unit is also used for:

[0026] If the first record exists in the target transaction order, determine whether the target transaction order contains the second record for the loan receipt. If not, use the test data of the online transaction order copied from the target transaction order as the test data of the target transaction order after the data construction is completed.

[0027] Furthermore, the data construction unit is also used for:

[0028] If there is a second record in the target transaction order for indicating the status of the loan receipt, determine whether the type of the first record is a preset type. If not, use the test data of the online transaction order copied in the target transaction order as the test data of the target transaction order after the data construction is completed.

[0029] Furthermore, the data construction unit is also used for:

[0030] If the type of the first record is a preset type, it is determined whether there is a third record for loan signature and approval in the target transaction order; if not, data cleaning is performed on the test data of the target transaction order.

[0031] Furthermore, the data construction unit is also used for:

[0032] If there is a third record in the target transaction order for indicating the loan approval status, it is determined whether the status in the third record is completed. If so, the test data of the target transaction order is reset.

[0033] Furthermore, the data construction unit is also used for:

[0034] If the status in the third record is not completed, it is determined whether the time information in the third record exceeds the preset time. If so, the test data of the target transaction order is reset.

[0035] Furthermore, the data construction unit is also used for:

[0036] If the time information in the third record does not exceed the preset time, it is determined whether the verification room ID information in the third record is a preset value. If so, the test data of the online transaction order copied in the target transaction order is used as the test data of the target transaction order after the data construction is completed.

[0037] Furthermore, the data construction unit is also used for:

[0038] If the verification room ID information in the third record is not a preset value, determine whether there is information about a valid verification room in the third record. If so, use the test data of the online transaction order copied in the target transaction order as the test data of the target transaction order after the data construction is completed, or reset the test data of the target transaction order.

[0039] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the test data construction method described in the first aspect are implemented.

[0040] In a fourth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the test data construction method described in the first aspect.

[0041] The test data construction method and device provided by the embodiment of the present invention, when detecting that the command for constructing test data for any target transaction order is triggered, obtains the online transaction order matching any target transaction order from the test system database, copies the test data of the online transaction order as the test data of the corresponding target transaction order, queries the test data status of the target transaction order according to the identification information of the online transaction order, and constructs the test data of the target transaction order according to the test data status of the target transaction order. Since the online transaction order has completed the online loan signing test or is undergoing the online loan signing test, that is, the information manually entered in the online transaction order has been tested and verified, for any target transaction order, after copying the test data of the corresponding online transaction order, it is only necessary to perform the corresponding data construction according to the status of the test data. In particular, for test data that requires interactive processing between multiple systems to be completed, the solution provided by the embodiment of the present invention can greatly simplify the data construction process, and there is no need to repeat the test and verification of the manually entered part, thereby not only improving the data construction efficiency, but also ensuring the accuracy of the data information in the target transaction order. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0043] Figure 1 It is a flowchart of a test data construction method provided by the first embodiment of the present invention;

[0044] Figure 2 A schematic diagram of target transaction order test data structure provided by an embodiment of the present invention;

[0045] Figure 3 A schematic diagram of a test data status query provided by an embodiment of the present invention;

[0046] Figure 4 A schematic diagram of a query result of returnType=1 provided in an embodiment of the present invention;

[0047] Figure 5 A schematic diagram of a query result of returnType=2 provided in an embodiment of the present invention;

[0048] Figure 6 A schematic diagram of a query result of returnType=3 provided in an embodiment of the present invention;

[0049] Figure 7A schematic diagram of a query result of returnType=4 provided in an embodiment of the present invention;

[0050] Figure 8 A schematic diagram of a query result of returnType=5 provided in an embodiment of the present invention;

[0051] Fig. 9 A schematic diagram of a display page after successful data reset provided by an embodiment of the present invention;

[0052] Fig.10 A schematic diagram of a query result of returnType=7 provided in an embodiment of the present invention;

[0053] Fig.11 is a schematic diagram of the structure of a test data construction device provided by a second embodiment of the present invention;

[0054] Fig.12 It is a schematic diagram of the structure of an electronic device provided by the third embodiment of the present invention. DETAILED DESCRIPTION

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

[0056] Figure 1 is a flow chart of a test data construction method provided by the first embodiment of the present invention, such as Figure 1 As shown, the test data construction method provided by the first embodiment of the present invention includes the following steps:

[0057] Step 110: When it is detected that a command for constructing test data for any target transaction order is triggered, an online transaction order matching any target transaction order is obtained from the test system database, and the test data of the online transaction order is copied as the test data of the corresponding target transaction order; wherein the test data in the online transaction order has completed the preset business test or is undergoing the preset business test.

[0058] In this step, it should be noted that the online loan signing system refers to the process of signing a loan for a real estate transaction, which makes the interview, information collection and filling, image copying, material signing and other operations that originally required offline signing processes online. Customer owners can go through the loan signing procedures with the bank through online video, reducing the cost and number of travel times of customers during the transaction process. Before using the online loan signing system, it is necessary to construct test data for it. The principle of constructing test data for the traditional online loan signing system is as follows:

[0059] ① The tester fills in the corresponding personnel information (including but not limited to: name, mobile phone number, ID number, etc.) according to the test requirements through the transaction automation test platform (Tanker System, hereinafter referred to as the "Tanker System"). After submitting in the Tanker System, the test data will be pushed to the network test system (Network Test System, hereinafter referred to as the "NTS System") test environment.

[0060] ② The tester opens the NTS system, finds the test data, and checks whether the personnel information is pushed correctly. If not, it is manually corrected according to actual needs, such as changing the buyer's marital status from single to married, and completing other field information (such as nationality, whether the household registration is in this city), etc.

[0061] ③The tester uses the Tanker system’s flowchart generation function to execute the transaction process for the test data until the order is reviewed and approved.

[0062] ④ The tester opens the NTS system, finds the test data, opens the NTS system loan signing workbench, selects the bank and personnel who need to conduct online loan signing, and makes an appointment. At this time, the test data will flow into the online loan signing system.

[0063] ⑤The tester opens the online loan signing system, finds the test data through the online loan signing account manager workbench, and completes the order collection operation.

[0064] ⑥ The tester opens the NTS system, finds the test data, opens the NTS system loan signing workbench, and clicks to enter the meeting room. If you can successfully enter the online signing room, it means that the data construction is successful.

[0065] It can be seen that in the traditional method, when testing the online loan signing system, testers need to manually construct test data, fill in information in the NTS system, Tanker system, and the online loan signing system according to a certain process, and perform process flow operations. The whole process takes a long time and is costly. In addition, the amount of information that needs to be filled in different cities is different (up to 40-80 items), and manual operations are required in multiple systems to construct a test data that meets the needs. The cost of manual data construction is very high, and it needs to be operated across multiple systems. It is time-consuming and laborious overall. It takes about 15-30 minutes to complete each data construction based on the online loan signing system. In addition, since the personnel information in the data is manually entered, once a mistake is made, the constructed test data will be unusable, and all previous efforts will be wasted.

[0066] Therefore, this embodiment provides a method for constructing data based on an online transaction order that has completed an online loan signing test or is undergoing an online loan signing test. This method does not require repeated testing and verification of the manually entered part, thereby not only improving the data construction efficiency but also ensuring the accuracy of the data information in the target transaction order.

[0067] Specifically, when it is detected that a command for constructing test data for any target transaction order is triggered, such as when the target transaction order is created, a command for constructing test data is triggered, and then an online transaction order matching the target transaction order is obtained from the test system database, and the test data of the online transaction order is copied as the test data of the corresponding target transaction order. Among them, the online transaction order can be a transaction order of the same verification type as the target transaction order. Since the test data in the online transaction order has completed the preset business test or is undergoing the preset business test, where the preset business test is a business test that requires interactive processing of multiple systems, such as the online loan signing business requires process interactive processing between the Tanker system and the NTS system, the test data is constructed, and the information manually entered in the online transaction order that has completed the preset business test or is undergoing the preset business test has been tested and verified. If the verification type of the target transaction order is the same as that of the online transaction order, the test data of the target transaction order can be constructed based on the test data of the online transaction order, without the need to repeat the test and verification of the manually entered information, which greatly improves the efficiency of test data construction.

[0068] Step 120: query the test data status of the target transaction order according to the identification information of the online transaction order.

[0069] In this step, since the test data of the target transaction order is obtained by copying the test data of the online transaction order, the test data status of the online transaction order is the test data status of the target transaction order. Therefore, the test data status of the online transaction order can be obtained by querying according to the identification information of the online transaction order, such as the number of the online transaction order, which is the test data status of the target transaction order. Figure 2 A schematic diagram of target transaction order test data structure provided by an embodiment of the present invention, Figure 3 A schematic diagram of a test data status query provided by an embodiment of the present invention is shown in FIG. Figure 2 and Figure 3 As shown, by entering the number of the online transaction order "JY0025012005 110001," and clicking the "Query Status" button, you can query the test data status of the online transaction order.

[0070] Step 130: construct the test data of the target transaction order according to the test data status of the target transaction order.

[0071] In this step, the test data of the target transaction order is constructed according to the test data status of the target transaction order obtained in step 120. For example, if the test data status of the target transaction order is that the approval room has completed the approval, the test data of the target transaction order can be reset to restore to the initial state of the test data, thereby completing the construction of the test data and performing the next step of online loan approval operation.

[0072] This embodiment queries the bank_signs table, meetings table, and meeting_users table under the online loan signing database based on the online transaction order number to see if there are corresponding records, and performs logical verification based on the values ​​in the records to assemble the query results. The backend will return the corresponding returnType value to the frontend based on the query result, and the frontend will determine how to construct the test data of the target transaction order based on the received returnType value; if the backend does not find the corresponding record, the backend will notify the frontend page "The current transaction order has not yet made an appointment for the verification room, please make an appointment at the NTS loan signing workbench". Among them, the bank_signs table is the face-to-face signing record table of the online loan signing system. After the bank is selected at the NTS system loan signing workbench, there will be a record in this table; the meetings table is the verification room record table of the online loan signing system. If an online verification room is reserved, there will be a record in this table; the meeting_users table is the verification room personnel information table of the online loan signing system, which records the personnel information that can enter the verification room.

[0073] It can be seen that since the cost of constructing a new test data is extremely high, this embodiment uses a series of automated checks and data update operations to quickly reset the test data of an online transaction order that has been used or is in use, and restore it to the initial state of constructing a piece of data, thereby maximizing the use of a piece of test data to meet multiple test requirements. Currently, it takes less than 2 seconds to reset a piece of data, which greatly shortens the time required for data construction.

[0074] The test data construction method provided by the embodiment of the present invention, when detecting that the command for constructing test data for any target transaction order is triggered, obtains the online transaction order matching any target transaction order from the test system database, copies the test data of the online transaction order as the test data of the corresponding target transaction order, queries the test data status of the target transaction order according to the identification information of the online transaction order, and constructs the test data of the target transaction order according to the test data status of the target transaction order. Since the online transaction order has completed the online loan signing test or is undergoing the online loan signing test, that is, the information manually entered in the online transaction order has been tested and verified, for any target transaction order, after copying the test data of the corresponding online transaction order, it is only necessary to perform the corresponding data construction according to the status of the test data. In particular, for test data that requires interactive processing between multiple systems to be completed, the scheme provided by the embodiment of the present invention can greatly simplify the data construction process, and there is no need to repeat the test and verification of the manually entered part, thereby not only improving the data construction efficiency, but also ensuring the accuracy of the data information in the target transaction order.

[0075] Based on the contents of the above embodiments, in this embodiment, the test data status of the target transaction order includes: there is no face-to-face signing record data in the face-to-face signing record table, there is face-to-face signing record data in the face-to-face signing record table but there is no order collection record data, there is face-to-face signing record data in the face-to-face signing record table but the face-to-face signing type is not the verification room, the verification room has been disbanded, the verification room has completed the verification, the verification room has expired, there is a order collection record in the verification room and the verification room is not opened, and there is a valid verification room.

[0076] In this embodiment, the test data status of the online transaction order is divided into 7 categories. Correspondingly, the returnType value returned by the backend to the frontend according to the query result has 7 values, corresponding to different statuses, as follows:

[0077] ①returnType=1: The transaction order has not yet been booked in the verification and signing room, there is no record in the bank_signs table, or the face-to-face interview type in the record is not the verification and signing room.

[0078] ②returnType=2: The transaction order is recorded in the bank_signs table, but the account manager has not yet picked it up.

[0079] ③returnType=3: The approval room of the transaction order in the online loan approval system has been disbanded.

[0080] ④returnType=4: The transaction order has been approved by the approval office in the online loan approval system.

[0081] ⑤returnType=5: The verification room of the transaction order in the online loan signing system has expired (the verification room has been created for more than 24 hours).

[0082] ⑥returnType=6: The transaction order is still valid in the online loan signing system and can continue to be used.

[0083] ⑦returnType=7: The transaction order has been received by the account manager in the approval room of the online loan approval system, but has not yet been opened.

[0084] like Figure 2 As shown, the front-end page displays the query results of different test data states. Different states display different contents. Seven states are supported, and the seven states correspond to five different operations, including: go to the account manager's workbench, go to NTS, go to the verification room, reset immediately, and clean up the verification room data. The operations corresponding to the front-end and back-end in this embodiment are as follows:

[0085] ① Visualization platform (Embedded System Test Platform Development, hereinafter referred to as "ETest") (front end): used to enter transaction number information for query, display the status query results of the backend, and provide functional entrances for resetting data, jumping to other systems, and clearing data. (ETest is an automated testing platform for the test team of the external docking direction of the trading platform).

[0086] ② Query service (backend): According to the transaction order number, query the status of the current transaction order in the online loan signing system and return it to the front end for display.

[0087] ③ Reset service (backend): According to the transaction order number, reset the status of the transaction order in multiple data tables of the online loan signing system, and return the reset result to the front end for display.

[0088] ④Cleaning service (backend): According to the transaction order number, clean up the records of the transaction order in multiple data tables in the online loan signing system, erase a test data from the online loan signing, and return the cleaning results to the front end for display.

[0089] It can be seen that the test data construction method provided by the embodiment of the present invention divides the test data status of the target transaction order into: there is no face-to-face signing record data in the face-to-face signing record table, there is face-to-face signing record data in the face-to-face signing record table but there is no order collection record data, there is face-to-face signing record data in the face-to-face signing record table but the face-to-face signing type is not a verification room, the verification room has been disbanded, the verification room has completed the verification, the verification room has expired, the verification room has a order collection record and the verification room is not opened, and there is a valid verification room, so that data can be constructed according to the status of different test data, thereby greatly improving the construction efficiency of test data.

[0090] Based on the content of the above embodiment, in this embodiment, according to the test data state of the target transaction order, data construction is performed on the test data of the target transaction order, including:

[0091] Determine whether there is a first record in the target transaction order for indicating the loan signing and face-to-face signing status. If not, use the test data of the online transaction order copied from the target transaction order as the test data of the target transaction order after the data construction is completed.

[0092] In this embodiment, the first record used to indicate the face-to-face signing status of the loan signing refers to the face-to-face signing record data existing in the face-to-face signing record table, that is, if it is determined that the face-to-face signing record data does not exist in the face-to-face signing record table of the target transaction order, the test data of the online transaction order copied from the target transaction order is used as the test data of the target transaction order after the data construction is completed, and the network testing system NTS is entered to collect the order, and an appointment is made according to the online loan signing information of the target transaction order.

[0093] In this embodiment, the bank_signs table is queried based on the order number of the online transaction order to see if there is a valid face-to-face signature record, and a valid face-to-face signature record refers to the face-to-face signature record data in the face-to-face signature record table). For example, if the back-end query result is select idfrom bank_signswhere business_code="JY0025012005110001"and is_vaild=1, it indicates that no valid face-to-face signature record is found (if a valid record is found, a valid id will be returned, such as id=200. At this time, it will continue to check whether the target transaction order has been picked up by a customer manager. If no valid record is found, the id does not exist). At this time, returnType=1, the query result is notified to the front end, and the back end execution ends.

[0094] Figure 4 A schematic diagram of a query result of returnType=1 provided in an embodiment of the present invention, such as Figure 4As shown, when the front-end page receives the query result of the back-end with returnType=1, it indicates that the first record used to indicate the loan signing and face-to-face signing status does not exist in the target transaction order, and prompts "The current transaction order has not yet made an appointment for the signing room, please make an appointment at the NTS loan signing workbench", and displays the "Go to NTS" button. Clicking the button will jump to the NTS system.

[0095] The test data construction method provided in the embodiment of the present invention constructs data according to the status of the target transaction order test data, so that the initial status of the test data can be obtained based on the online transaction order that has completed the online loan signing test or is undergoing the online loan signing test. This not only greatly improves the test data construction efficiency, but also avoids the errors caused by manual entry of information in traditional methods.

[0096] Based on the contents of the above embodiments, in this embodiment, if there is a first record in the target transaction order, it is determined whether there is a second record for the loan receipt in the target transaction order. If not, the test data of the online transaction order copied in the target transaction order is used as the test data of the target transaction order after the data construction is completed.

[0097] In this embodiment, if it is determined that there is face-to-face signing record data in the face-to-face signing record table of the target transaction order, it is determined whether there is a second record for loan signing and receiving the order in the target transaction order, and the second record refers to the account manager's order receiving record. If there is no account manager's order receiving record in the target transaction order, the test data of the online transaction order copied from the target transaction order is used as the test data of the target transaction order after the data construction is completed, and the network test system NTS is entered to receive the order, and an appointment is made according to the online loan signing information of the target transaction order.

[0098] Figure 5 A schematic diagram of a query result of returnType=2 provided in an embodiment of the present invention, such as Figure 5As shown, if the target transaction order does not have a record of the account manager picking up the order, the manager_name in the query result returned by the backend is empty, that is, if the backend query result is select manager_name, status from bank_signs where id=200and is_valid=1, manager_name is empty, and status=1, it means that the target transaction order has not been picked up by the account manager. At this time, returnType=2, indicating that there is no second record for the loan signing order in the target transaction order. The query result is notified to the front end, and the backend execution ends. When the front-end page receives the query result of the backend with returnType=2, it prompts "The verification and signing room is not open, please use the account manager to pick up the order", and displays the "Go to the account manager's workbench" button. Clicking the button will jump to the account manager's workbench. If manager_name in the query result of the backend is not empty, it means that the target transaction order has been picked up by the account manager. At this time, check whether the face-to-face signing type in the face-to-face signing record table is the verification and signing room.

[0099] Based on the contents of the above embodiments, in this embodiment, if there is a second record in the target transaction order for indicating the status of the loan receipt, it is determined whether the type of the first record is a preset type. If not, the test data of the online transaction order copied in the target transaction order is used as the test data of the target transaction order after the data construction is completed.

[0100] In this embodiment, if it is determined that there is a second record in the target transaction order, it is determined whether the type of the first record is a preset type. The preset type may refer to the face-to-face signing type in the face-to-face signing record table as the verification and signing room. If the face-to-face signing type is not the verification and signing room, the test data of the online transaction order copied in the target transaction order is used as the test data of the target transaction order after the data construction is completed, and the network test system NTS is entered to collect the order, and an appointment is made according to the online loan signing information of the target transaction order.

[0101] For example, if the target transaction order has a second record, that is, a record of the account manager picking up the order, it is determined whether the face-to-face type in the face-to-face record table is the verification room. If the back-end query result is select sign_type from bank_signs whereid=200and is_vaild=1, it indicates that the type of the first record is not the preset type, that is, the face-to-face type in the face-to-face record table is not the verification room, and the target transaction order has not made an appointment for the verification room in the online loan signing. At this time, returnType=1, the query result is notified to the front end, and the back-end execution ends. When the front-end page receives the query result of the back end with returnType=1, it prompts "The current transaction order has not made an appointment for the verification room, please make an appointment at the NTS loan signing workbench", and displays the "Go to NTS" button. Clicking the button will jump to the NTS system. If the query finds that the face-to-face type in the face-to-face record table is the verification room, it means that the target transaction order has made an appointment for the verification room in the online loan signing, and it will further check whether the verification room has been disbanded.

[0102] It can be seen that the test data construction method provided in the embodiment of the present invention constructs data according to the state of the target transaction order test data, so that the initial state of the test data can be obtained based on the online transaction order that has completed the online loan signing test or is undergoing an online loan signing test, which not only greatly improves the test data construction efficiency, but also avoids the errors caused by manual entry of information in traditional methods.

[0103] Based on the contents of the above embodiments, in this embodiment, if the type of the first record is a preset type, it is determined whether there is a third record for loan approval in the target transaction order. If not, the test data of the target transaction order is cleaned up.

[0104] In this embodiment, if the type of the first record is a preset type, that is, the face-to-face signing type in the face-to-face signing record table is the verification room, then it is determined whether there is a third record for loan signing and verification in the target transaction order (the third record refers to the verification room data), that is, it is determined whether the verification room in the target transaction order has been disbanded. If the verification room has been disbanded, the test data of the target transaction order is cleaned up.

[0105] Among them, data cleaning includes: deleting the protocol table records, meeting history table records, full-process video recording table records, screenshot table records, screen recording table records, verification process table records, verification personnel table records, meeting table records, face-to-face signature records and face-to-face signature field table records in the test data of the target transaction order.

[0106] After cleaning the data of the target transaction order, enter the network testing system NTS and make an appointment based on the online loan signing information of the target transaction order.

[0107] In this embodiment, if the third record for loan approval does not exist in the target transaction order, indicating that the approval room has been dissolved, the end_time value in the result queried by the backend is not 0. For example, if the backend query result is select end_timefrom meetings where business_code = "JY0025012005110001" order by id desc limit1, and the queried end_time value is not 0, it means that the current approval room has been dissolved. At this time, returnType = 3, the query result is notified to the front end, and the backend execution ends. If the end_time value queried by the backend is 0, it means that the data status of the target transaction order is that the approval room has not been dissolved, then check whether the approval room has completed the approval.

[0108] Figure 6 A schematic diagram of a query result of returnType=3 provided in an embodiment of the present invention, such as Figure 6 As shown, when the front-end page receives the query result from the back-end with returnType=3, it will prompt "The verification room has been disbanded. Please clean up the verification room data first, and then use the transaction manager to log in to the NTS workbench to re-book. The transaction manager information is as follows", and display the "Clear verification room data" button and the "Go to NTS" button. Click the "Go to NTS" button to jump to the NTS system. Click the "Clear verification room data" button to notify the back-end to perform data cleanup operations. When the user clicks the "Clear verification room data" button on the front-end page, the front-end will notify the back-end to perform data cleanup operations and notify the back-end of the transaction order number. The back-end receives the transaction order number from the front-end through business_code. After the execution is completed, the back-end execution result is returned to the front-end. After the cleanup is successful, the front-end page will display Figure 4 The data cleaning operation involves deleting records in 10 tables, including:

[0109] ① Delete the record of the transaction order in the protocol table: delete from scene_protocols wherebusiness_code="JY0025012005110001";

[0110] ② Delete the record of the transaction in the meeting history table: delete from meeting_historieswhere business_code = "JY0025012005110001";

[0111] ③ Delete the record of the transaction order in the full-time recorded video table: delete from meeting_playback_videoswherebusiness_code="JY0025012005110001";

[0112] ④ Delete the record of the transaction in the screenshot table: delete from meeting_shotscreens wherebusiness_code="JY0025012005110001';

[0113] ⑤ Delete the record of the transaction in the screen recording table: delete from meeting_videoswherebusiness_code="'JY0025012005110001";

[0114] ⑥ Delete the record of the transaction order in the approval process table: delete from meeting_procedureswhere business_code = "JY0025012005110001";

[0115] ⑦ Delete the record of the transaction order in the approval personnel table: delete from meeting_users wherebusiness_code="JY0025012005110001";

[0116] ⑧Delete the record of the transaction order in the meeting table: delete from meetings where business_code = "JY0025012005110001";

[0117] ⑨Delete the record of the transaction order in the face-to-face signing record table: delete from bank_signs wherebusiness_code="JY0025012005110001";

[0118] ⑩Delete the record of the transaction order in the face-to-face signature field table: delete from variables wherebusiness_code="JY0025012005110001".

[0119] It can be seen that the test data construction method provided in the embodiment of the present invention constructs data according to the state of the target transaction order test data, so that the initial state of the test data can be obtained based on the online transaction order that has completed the online loan signing test or is undergoing an online loan signing test, which not only greatly improves the test data construction efficiency, but also avoids the errors caused by manual entry of information in traditional methods.

[0120] Based on the contents of the above embodiments, in this embodiment, if there is a third record in the target transaction order for indicating the loan approval status, it is determined whether the status in the third record is completed. If so, the test data of the target transaction order is reset.

[0121] In this embodiment, if there is a third record in the target transaction order, it indicates that the verification and signing room has not been disbanded, then it is determined whether the status in the third record is completed, that is, it is determined whether there is a record in the third record that the verification and signing room has completed the verification, and if so, the test data of the target transaction order is reset.

[0122] Among them, the test data of the target transaction order is reset, specifically including: deleting the protocol table records, meeting history table records, full-process video recording table records, screenshot table records, and screen recording table records in the test data of the target transaction order, and updating the verification process table records, verification personnel table records, meeting table records, and face-to-face signature records in the test data of the target transaction order.

[0123] In this embodiment, if the status in the third record is completed, indicating that the verification room has completed the verification, the sign_type value exists in the query result returned by the backend. For example: the return result of the backend query is select sign_type frombank_signs where id=200and is_vaild=1and status in(4,5). If the queried sign_type value exists, it means that the current verification room has completed the verification. At this time, returnType=4, the query result is notified to the front end, and the backend execution is completed.

[0124] Figure 7 A schematic diagram of a query result of returnType=4 provided in an embodiment of the present invention, such as Figure 7 As shown, when the front-end page receives the query result from the back-end with returnType=4, it prompts "The approval room has completed the approval, and the customer manager and the end user cannot see the entrance". Click "Reset reused data now" and display the "Reset now" button. Click the "Reset now" button to notify the back-end to reset the data.

[0125] Based on the contents of the above embodiments, in this embodiment, if the status in the third record is incomplete, it is determined whether the time information in the third record exceeds the preset time. If so, the test data of the target transaction order is reset.

[0126] In this embodiment, if the status in the third record is incomplete, it means that the verification and signing room has not completed the verification and signing, then it is determined whether the time information in the third record exceeds the preset time. If the time information exceeds the preset time, it means that the verification and signing room has expired, then the test data of the target transaction order is reset.

[0127] Among them, the test data of the target transaction order is reset, specifically including: deleting the protocol table records, meeting history table records, full-process video recording table records, screenshot table records, and screen recording table records in the test data of the target transaction order, and updating the verification process table records, verification personnel table records, meeting table records, and face-to-face signature records in the test data of the target transaction order.

[0128] For example, if the sign_type value does not exist in the query result returned by the backend, check whether the verification and signing room has expired. If the query result returned by the backend is select start_time from meetings where business_code = "JY0025012005110001" order by id desc limit 1, if the time interval between the start_time value and the current time exceeds 24 hours, it means that the verification and signing room has expired. At this time, returnType = 5, notify the front end of the query result, and the backend execution ends. If the time interval between the queried start_time value and the current time does not exceed 24 hours, check whether the verification and signing room is open.

[0129] Figure 8 A schematic diagram of a query result of returnType=5 provided in an embodiment of the present invention, such as Figure 8 As shown in the figure, when the front-end page receives the query result from the back-end with returnType=5, it prompts "The verification room has expired, and the customer manager and the end user cannot see the entrance". Click "Reset reuse data now" and display the "Reset now" button. Click the "Reset now" button to notify the back-end to reset the data and notify the back-end of the transaction number. The back-end receives the transaction number from the front-end through business_code. The data reset operation involves the deletion of records in 5 tables and the update of records in 4 tables, including:

[0130] ① Delete the record of the transaction order in the protocol table: delete from scene_protocols wherebusiness_code="JY0025012005110001";

[0131] ② Delete the record of the transaction in the meeting history table: delete from meeting_historieswhere business_code = "JY0025012005110001";

[0132] ③ Delete the record of the transaction order in the full-process recorded video table: delete frommeeting_playback_videoswherebusiness_code="JY0025012005110001";

[0133] ④ Delete the record of the transaction in the screenshot table: delete from meeting_shotscreens wherebusiness_code="JY0025012005110001';

[0134] ⑤ Delete the record of the transaction in the screen recording table: delete from meeting_videos wherebusiness_code="'JY0025012005110001";

[0135] ⑥Update the record of the transaction order in the verification process table and restore the status to 0:

[0136] update meeting_procedures set status=0where business_code="'JY00250120 05110001';

[0137] ⑦ Update the record of the transaction order in the approval personnel table and restore confirm_status to 0:

[0138] update meeting_users set confirm_status=0where business_code="JY002501 2005110001";

[0139] ⑧Update the record of the transaction order in the conference table, restore end_time to 0, sign_complete_time to 1970-01-03 00:00:00, result_info to "", summary to "", start_time to the current timestamp, such as 1592533814, this value is the current timestamp obtained by the calendar.timegm(time.gmtime()) function:

[0140] update meetings set end_time=0,sign_complete_time=0,result_info="",summary="",start_time=1592533814where business_code="JY0025012005110001";

[0141] ⑨Update the record of the transaction order in the face-to-face signature table, restore complete_time to "0", attachment_id to "", shotscreen_attachment_id to "", status to 1, manager_status to 1, and steward_status to 1:

[0142] update bank_signs set complete_time="0", attachment_id="", shotscreen_attachment_id="", status=1, manager_status=1, steward_status=1 where business_code="JY0025012005110001" and is_valid=1.

[0143] Fig. 9 A schematic diagram of a display page after successful data reset provided by an embodiment of the present invention, such as Fig. 9 As shown, after the data reset is completed, the back-end execution result is returned to the front-end. After the reset is successful, the front-end page displays "There is a valid verification room, the verification room link is as follows (the data can also be reset according to needs). If the account manager UCID is 0, the account manager needs to log in to the account manager workstation first."

[0144] It can be seen that the test data construction method provided in the embodiment of the present invention constructs data according to the state of the target transaction order test data, so that the initial state of the test data can be obtained based on the online transaction order that has completed the online loan signing test or is undergoing an online loan signing test, which not only greatly improves the test data construction efficiency, but also avoids the errors caused by manual entry of information in traditional methods.

[0145] Based on the contents of the above embodiments, in this embodiment, if the time information in the third record does not exceed the preset time, it is determined whether the verification room ID information in the third record is a preset value. If so, the test data of the online transaction order copied in the target transaction order is used as the test data of the target transaction order after the data construction is completed.

[0146] In this embodiment, if the time information in the third record does not exceed the preset time, it indicates that the verification room has not expired, and then it is determined whether the verification room ID information in the third record is a preset value, where the verification room ID information is used to characterize whether the verification room is open. If the verification room ID information is a preset value, it indicates that the verification room is not open, and the test data of the online transaction order copied in the target transaction order is used as the test data of the target transaction order after the data construction is completed, and the network test system NTS is entered to make an appointment based on the online loan signing information of the target transaction order.

[0147] For example, if the ID information of the verification room in the third record is a preset value, indicating that the verification room has a receipt record and the verification room is not open, the zoom_id value in the query result returned by the backend is 0. For example, the backend query result is select zoom_idfrom meetings where business_code="JY0025012005110001"order by id desc limit1, and the zoom_id value is 0, which means that the current verification room is not open. At this time, returnType=7, the query result is notified to the front end, and the backend execution ends. If the zoom_id value queried is not 0, it means that there is a valid verification room.

[0148] Fig.10 A schematic diagram of a query result of returnType=7 provided in an embodiment of the present invention, such as Fig.10 As shown, when the front-end page receives the query result from the back-end with returnType=7, it will prompt "The approval room is not open. Please use the transaction manager to log in to the NTS loan approval workbench to enter the meeting room". Click the "Go to NTS" button to jump to the NTS system.

[0149] It can be seen that the test data construction method provided in the embodiment of the present invention constructs data according to the state of the target transaction order test data, so that the initial state of the test data can be obtained based on the online transaction order that has completed the online loan signing test or is undergoing an online loan signing test, which not only greatly improves the test data construction efficiency, but also avoids the errors caused by manual entry of information in traditional methods.

[0150] Based on the contents of the above embodiments, in this embodiment, if the verification room ID information in the third record is not a preset value, it is determined whether there is information of a valid verification room in the third record. If so, the test data of the online transaction order copied in the target transaction order is used as the test data of the target transaction order after the data construction is completed, or the test data of the target transaction order is reset.

[0151] In this embodiment, if the verification room ID information in the third record is not a preset value, it indicates that the verification room has been opened. At this time, it is necessary to further determine whether there is valid verification room information in the third record. If so, the test data of the online transaction order copied in the target transaction order is used as the test data of the target transaction order after data construction is completed, and the network test system NTS is entered to collect the order;

[0152] Or if the third record contains information about a valid signing room, the test data of the target transaction order is reset. The data reset specifically includes:

[0153] Delete the agreement table records, meeting history table records, full-process video recording table records, screenshot table records and screen recording table records in the test data of the target transaction order, and update the approval process table records, approval personnel table records, meeting table records and face-to-face signing records in the test data of the target transaction order.

[0154] For example, if the backend query returns a result of returnType=6, it means that the target transaction order has information about a valid verification room. At this time, the query result of returnType=6 is notified to the frontend, and the backend execution ends. When the frontend page receives the query result of returnType=6 from the backend, it displays Fig. 9In the interface "There is a valid verification room, the verification room link is as follows (the data can also be reset as needed), if the account manager UCID is 0, the account manager needs to log in to the account manager workstation first", click the "Go to Account Manager Workstation" button to jump to the account manager workstation, click the "Go to Verification Room" button to enter the verification room, or click the "Reset Now" button to notify the backend to reset the data, where the data reset operation is in accordance with the deletion of records in the 5 tables and the update of records in the 4 tables in the above embodiment. In addition, when there is a valid verification room, the backend will also return the information of the participants in the verification room to the front-end page for display, and the display content includes: name, role, UCID, and mobile phone number.

[0155] It can be seen that the test data construction method provided in the embodiment of the present invention constructs data according to the state of the target transaction order test data, so that the initial state of the test data can be obtained based on the online transaction order that has completed the online loan signing test or is undergoing an online loan signing test, which not only greatly improves the test data construction efficiency, but also avoids the errors caused by manual entry of information in traditional methods.

[0156] Fig.11 is a schematic diagram of the structure of a test data construction device provided by a second embodiment of the present invention. Fig.11 As shown, the test data construction device provided by the second embodiment of the present invention includes:

[0157] The acquisition unit 1110 is used to acquire an online transaction order matching any target transaction order from the test system database when detecting that a command for constructing test data for any target transaction order is triggered, and copy the test data of the online transaction order as the test data of the corresponding target transaction order; wherein the test data in the online transaction order has completed the preset business test or is undergoing the preset business test;

[0158] A query unit 1120, configured to query the test data status of a target transaction order according to the identification information of the online transaction order;

[0159] The data construction unit 1130 is used to construct the test data of the target transaction order according to the test data status of the target transaction order.

[0160] Based on the content of the above embodiment, in this embodiment, the data construction unit 1130 is used to construct the test data of the target transaction order according to the test data state of the target transaction order, including:

[0161] Determine whether there is a first record in the target transaction order for indicating the loan signing and face-to-face signing status. If not, use the test data of the online transaction order copied from the target transaction order as the test data of the target transaction order after the data construction is completed.

[0162] Based on the content of the above embodiment, in this embodiment, the data construction unit 1130 is further used for:

[0163] If the first record exists in the target transaction order, determine whether the second record for the loan signature receipt exists in the target transaction order. If not, use the test data of the online transaction order copied from the target transaction order as the test data of the target transaction order after the data construction is completed.

[0164] Based on the content of the above embodiment, in this embodiment, the data construction unit 1130 is further used for:

[0165] If there is a second record in the target transaction order for indicating the status of the loan receipt, determine whether the type of the first record is the preset type. If not, use the test data of the online transaction order copied in the target transaction order as the test data of the target transaction order after the data construction is completed.

[0166] Based on the content of the above embodiment, in this embodiment, the data construction unit 1130 is further used for:

[0167] If the type of the first record is a preset type, it is determined whether there is a third record for loan signature and approval in the target transaction order. If not, data cleaning is performed on the test data of the target transaction order.

[0168] Based on the content of the above embodiment, in this embodiment, the data construction unit 1130 is further used for:

[0169] If there is a third record in the target transaction order for indicating the loan approval status, it is determined whether the status in the third record is completed. If so, the test data of the target transaction order is reset.

[0170] Based on the content of the above embodiment, in this embodiment, the data construction unit 1130 is further used for:

[0171] If the status in the third record is not completed, it is determined whether the time information in the third record exceeds the preset time. If so, the test data of the target transaction order is reset.

[0172] Based on the content of the above embodiment, in this embodiment, the data construction unit 1130 is further used for:

[0173] If the time information in the third record does not exceed the preset time, determine whether the verification room ID information in the third record is the preset value. If so, use the test data of the online transaction order copied in the target transaction order as the test data of the target transaction order after the data construction is completed.

[0174] Based on the content of the above embodiment, in this embodiment, the data construction unit 1130 is further used for:

[0175] If the verification room ID information in the third record is not the preset value, determine whether there is information about a valid verification room in the third record. If so, use the test data of the online transaction order copied in the target transaction order as the test data of the target transaction order after the data construction is completed, or reset the test data of the target transaction order.

[0176] The test data construction device described in this embodiment can be used to execute the test data construction method described in the first embodiment above. Its principles and technical effects are similar and will not be described in detail here.

[0177] Fig.12 is a schematic diagram of the structure of an electronic device provided by a third embodiment of the present invention, such as Fig.12 As shown, the electronic device may include: a processor 1210, a communication interface 1220, a memory 1230 and a communication bus 1240, wherein the processor 1210, the communication interface 1220 and the memory 1230 communicate with each other through the communication bus 1240. The processor 1210 may call the logic instructions in the memory 1230 to execute the test data construction method, which includes: when it is detected that a command for constructing test data for any target transaction order is triggered, an online transaction order matching the target transaction order is obtained from the test system database, and the test data of the online transaction order is copied as the test data of the corresponding target transaction order; wherein the test data in the online transaction order has completed the preset business test or is undergoing the preset business test; according to the identification information of the online transaction order, the test data status of the target transaction order is queried; according to the test data status of the target transaction order, the test data of the target transaction order is constructed.

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

[0179] On the other hand, an embodiment of the present invention further provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the test data construction method provided by the above-mentioned method embodiments, the method including: when it is detected that a command for constructing test data for any target transaction order is triggered, obtaining an online transaction order matching any target transaction order from a test system database, and copying the test data of the online transaction order as the test data of the corresponding target transaction order; wherein the test data in the online transaction order has completed a preset business test or is performing a preset business test; according to the identification information of the online transaction order, querying the test data status of the target transaction order; according to the test data status of the target transaction order, constructing data for the test data of the target transaction order.

[0180] On the other hand, an embodiment of the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the test data construction method provided in the above-mentioned embodiments, the method comprising: when it is detected that a command for constructing test data for any target transaction order is triggered, obtaining an online transaction order matching any target transaction order from a test system database, and copying the test data of the online transaction order as the test data of the corresponding target transaction order; wherein the test data in the online transaction order has completed a preset business test or is performing a preset business test; according to the identification information of the online transaction order, querying the test data status of the target transaction order; and according to the test data status of the target transaction order, constructing data for the test data of the target transaction order.

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

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

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

Claims

1. A test data construction method, characterized in that: include: When it is detected that a command for constructing test data for any target transaction order is triggered, an online transaction order matching the target transaction order is obtained from the test system database, and the test data of the online transaction order is copied as the test data of the corresponding target transaction order; wherein the test data in the online transaction order has completed the preset business test or is undergoing the preset business test; and the online transaction order has the same verification type as the target transaction order; According to the identification information of the online transaction order, query the test data status of the target transaction order; According to the test data status of the target transaction order, data construction is performed on the test data of the target transaction order; The test data status of the target transaction order includes: there is no face-to-face signing record data in the face-to-face signing record table, there is face-to-face signing record data in the face-to-face signing record table but there is no receipt record data, there is face-to-face signing record data in the face-to-face signing record table but the face-to-face signing type is not a verification room, the verification room has been disbanded, the verification room has completed the verification, the verification room has expired, the verification room has a receipt record and the verification room is not opened, and there is a valid verification room; According to the test data state of the target transaction order, data construction is performed on the test data of the target transaction order, including: Determine whether there is a first record indicating the loan signing and face-to-face signing status in the target transaction order; If the first record exists in the target transaction order, determining whether the second record for the loan receipt exists in the target transaction order; If a second record for indicating the status of the loan receipt exists in the target transaction order, determining whether the type of the first record is a preset type; If the type of the first record is a preset type, determining whether there is a third record for loan approval in the target transaction order, and if not, performing data cleaning on the test data of the target transaction order; Among them, data cleaning includes: deleting the protocol table records, meeting history table records, full-process video recording table records, screenshot table records, screen recording table records, verification process table records, verification personnel table records, meeting table records, face-to-face signature records and face-to-face signature field table records in the test data of the target transaction order.

2. The test data construction method according to claim 1, characterized in that: According to the test data state of the target transaction order, data construction is performed on the test data of the target transaction order, including: Determine whether there is a first record in the target transaction order for indicating the loan signing and face-to-face signing status. If not, use the test data of the online transaction order copied in the target transaction order as the test data of the target transaction order after the data construction is completed.

3. The test data construction method according to claim 2, characterized in that: Also includes: If the first record exists in the target transaction order, determine whether the target transaction order contains the second record for the loan receipt. If not, use the test data of the online transaction order copied from the target transaction order as the test data of the target transaction order after the data construction is completed.

4. The test data construction method according to claim 3, characterized in that: Also includes: If there is a second record in the target transaction order for indicating the status of the loan receipt, determine whether the type of the first record is a preset type. If not, use the test data of the online transaction order copied in the target transaction order as the test data of the target transaction order after the data construction is completed.

5. The test data construction method according to claim 1, characterized in that: Also includes: If there is a third record in the target transaction order for indicating the loan approval status, it is determined whether the status in the third record is completed. If so, the test data of the target transaction order is reset.

6. The test data construction method according to claim 5, characterized in that: Also includes: If the status in the third record is not completed, it is determined whether the time information in the third record exceeds the preset time. If so, the test data of the target transaction order is reset.

7. A test data construction device, characterized in that: include: an acquisition unit, configured to acquire an online transaction order matching any target transaction order from a test system database when detecting that a command for constructing test data for any target transaction order is triggered, and copy the test data of the online transaction order as the test data of the corresponding target transaction order; wherein the test data in the online transaction order has completed a preset business test or is undergoing a preset business test; and the online transaction order has the same verification type as the target transaction order; A query unit, configured to query the test data status of the target transaction order according to the identification information of the online transaction order; A data construction unit, configured to construct the test data of the target transaction order according to the test data state of the target transaction order; The test data status of the target transaction order includes: there is no face-to-face signing record data in the face-to-face signing record table, there is face-to-face signing record data in the face-to-face signing record table but there is no receipt record data, there is face-to-face signing record data in the face-to-face signing record table but the face-to-face signing type is not a verification room, the verification room has been disbanded, the verification room has completed the verification, the verification room has expired, the verification room has a receipt record and the verification room is not opened, and there is a valid verification room; Data construction unit, specifically used for: Determine whether there is a first record indicating the loan signing and face-to-face signing status in the target transaction order; If the first record exists in the target transaction order, determining whether the second record for the loan receipt exists in the target transaction order; If a second record for indicating the status of the loan receipt exists in the target transaction order, determining whether the type of the first record is a preset type; If the type of the first record is a preset type, determining whether there is a third record for loan approval in the target transaction order, and if not, performing data cleaning on the test data of the target transaction order; Among them, data cleaning includes: deleting the protocol table records, meeting history table records, full-process video recording table records, screenshot table records, screen recording table records, verification process table records, verification personnel table records, meeting table records, face-to-face signature records and face-to-face signature field table records in the test data of the target transaction order.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps of the test data construction method according to any one of claims 1 to 6 are implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the test data construction method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Offline data task verification method and device

    CN106201887A

  • Test data obtaining method and system

    CN106250314A

  • Method and device for generating test cases

    CN107908548A

  • Test data automation construction method and device

    CN108320129A

  • Test data construction method and device, electronic device and storage medium

    CN110334004A