A test number generation platform, method, computer device and storage medium

By automating the processing of user-input data through the front-end UI layer, presentation layer, and business layer of the test data generation platform, the platform generates target data that meets the needs of business application systems, achieving "one-click" user-friendly data generation. This solves the problems of low efficiency, high difficulty, and poor accuracy in traditional test data preparation, thereby improving test efficiency and accuracy.

CN119537208BActive Publication Date: 2025-11-18HUNAN SANXIANG BANK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411476964.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-22
Publication Date
2025-11-18
Estimated Expiration
2044-10-22

AI Technical Summary

Technical Problem

Traditional test data preparation requires relevant personnel to be very familiar with the associated system, which consumes a lot of manpower, resources and time, resulting in low efficiency and high error rate, leading to low test efficiency and poor accuracy.

Method used

A test data generation platform is provided, including a front-end UI layer, a presentation layer, and a business layer. By automatically processing the initial business dataset and business environment requirements input by the user, it generates target data that meets the business application system and performs automatic testing, realizing "one-click" foolproof data generation with 100% data validity and correctness.

Benefits of technology

It improves the efficiency and accuracy of test data generation, simplifies the process, optimizes the platform structure, reduces redundancy, enhances response speed and user experience, and solves the problems of low efficiency, high difficulty and poor accuracy in traditional test data preparation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119537208B_ABST
    Figure CN119537208B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of automatic data generation, and discloses a test data generation platform and method, a computer device and a storage medium. The present application can automatically generate a plurality of target data sets that satisfy corresponding business application systems according to the initial business data set input by a user on a front-end UI layer, business system requirements and business environment requirements received by a business layer, achieve so-called "one-key" foolproof data generation, and the validity and correctness of the data reach 100%. Furthermore, through the interaction between the business layer and the target business application system, the user only needs to tell the system what data is needed, and the platform can automatically simulate real user operations to generate target data, achieving "what you think is what you get", and avoiding the problem that the traditional test data preparation not only requires relevant personnel to be very familiar with the related system, but also requires a large amount of manpower, material resources and time to do repetitive work.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of automated data generation technology, specifically to a test data generation platform, method, computer equipment, and storage medium. Background Technology

[0002] As internal business needs within different enterprises become increasingly numerous and complex, involving multiple customer terminals, lengthy processes, and strong interrelationships, with development, testing, acceptance, and regression environments operating independently, and with ever-increasing agility and shorter delivery cycles, the quality requirements for development and testing are becoming increasingly stringent. Traditional test data preparation not only requires relevant personnel to be highly familiar with the related systems but also expends significant manpower, resources, and time on repetitive tasks, resulting in low efficiency and high error rates, which further contributes to low testing efficiency and high error rates. Summary of the Invention

[0003] In view of this, the present invention provides a test data generation platform, method, computer equipment and storage medium to solve the problem that traditional test data preparation not only requires relevant personnel to be very familiar with the related system, but also requires a lot of manpower, material resources and time to do repetitive work, which is not only inefficient and has a high error rate, but also further leads to low test efficiency and a high error rate.

[0004] In a first aspect, the present invention provides a test data generation platform for any business application system; the test data generation platform includes: a front-end UI layer, a presentation layer, and a business layer;

[0005] The front-end UI layer is used to acquire the initial business dataset, business system requirements, and business environment requirements input by the user, and to transmit these requirements to the business layer through the presentation layer. The business layer is used to generate multiple target datasets based on the initial business dataset, business system requirements, and business environment requirements, and to determine the corresponding business application system interfaces based on the business system requirements and business environment requirements. The business layer also transmits the multiple target datasets to the corresponding target business application systems through the business application system interfaces, enabling the target business application systems to test and generate initial business data based on the multiple target datasets. The business layer also receives the initial business data transmitted from the target business application systems, converts the format of the initial business data to obtain the target business data, and sends the target business data to the presentation layer. The presentation layer renders the target business data and displays it to the corresponding user through the front-end UI layer.

[0006] The test data generation platform provided by this invention allows users to input initial business datasets, business system requirements, and business environment requirements at the front-end UI layer. It then automatically generates multiple target data sets that satisfy the corresponding business application systems based on these received data at the business layer, achieving a so-called "one-click" user-friendly data generation process with 100% data validity and accuracy. Furthermore, the platform can determine the corresponding business application system interface at the business layer based on the received business system and environment requirements. Through this interface, the generated target data sets are sent to the corresponding target business application systems for automatic testing and data generation. This improves the efficiency and accuracy of automatic testing and data generation for business application systems. Simultaneously, users only need to tell the system what data they need, and the platform automatically simulates real user operations to generate the target data, achieving "what you want is what you get." This avoids the problems of traditional test data preparation, which requires personnel to be very familiar with the relevant systems and involves significant manpower, resources, and time spent on repetitive work. Furthermore, the initial business data returned by the target business application system can be formatted and rendered in the presentation layer before being displayed through the front-end UI layer for the corresponding users to view. Therefore, by implementing this invention, the platform structure is optimized, the process is simplified, redundancy is reduced, and response speed is accelerated, improving the overall performance and user experience of the test data generation platform. Simultaneously, it solves the problems of low efficiency, high difficulty, and poor accuracy in traditional test data preparation, further improving the efficiency and accuracy of automated testing.

[0007] In one optional implementation, the business layer includes: an environment management unit, a data generation management unit, and a message processing unit;

[0008] The environment management unit is used to determine system environment information based on business system requirements and business environment requirements, and send the system environment information to the data generation management unit. The data generation management unit is used to determine the corresponding business application system interface information based on the system environment information, and send the business application system interface information to the message processing unit. The data generation management unit is also used to generate multiple initial data sets based on the initial business dataset and system environment information, and send these multiple initial data sets to the message processing unit. The message processing unit is used to determine the business application system interface based on the business application system interface information, and when establishing communication with the corresponding target business application system through the business application system interface, convert the format of the multiple initial data sets to obtain multiple target data sets, and transmit the multiple target data sets to the target business application system through the business application system interface. The message processing unit is also used to receive the initial business data transmitted by the target business application system and convert the format of the initial business data to obtain the target business data.

[0009] The test data generation platform provided by this invention, combining business system requirements and business environment requirements, allows the environment management unit to query and determine the corresponding business system environment information. Then, combining the obtained business system environment information and the initial business dataset, data generation can be directly performed in the data generation management unit, effectively solving the problems of low efficiency, high difficulty, and poor accuracy in traditional test data preparation. Furthermore, the data generation management unit manages the system interfaces of different business systems and sends multiple target data generated through data generation to the target business application system corresponding to the system interface to achieve the generation of the final business data. Finally, the message processing unit converts the received initial business data into a different format before transmitting it to the presentation layer. Therefore, by implementing this invention, a so-called "one-click" foolproof data generation is achieved, with 100% data validity and correctness.

[0010] In one optional implementation, the business layer further includes: a database management unit, a statistics unit, and a log management unit;

[0011] The database management unit is used to record user operation information and transmit multiple recorded user operation information to the statistics unit; the statistics unit is used to perform statistics on the usage information of the front-end UI layer, presentation layer and business layer based on user operation information and generate log files, and transmit the log files to the log management unit; the log management unit is used to manage the log management unit.

[0012] The test data generation platform provided by this invention can collect and generate log files by combining a data management unit and a statistics unit to collect usage information of the front-end UI layer, presentation layer and business layer. The log files can then be managed through the log management unit, providing a comprehensive understanding of the usage of the test data generation platform and supporting the enhancement of the platform's security and compliance.

[0013] In one alternative implementation, the database management unit is also used to manage connection pools for the local database and the databases of any business application system.

[0014] The test data generation platform provided by this invention can also manage the connection pool of the local database and the database of any business application system through the database management unit, which facilitates data generation and shortens the response time, improves the performance of the test data generation platform, enhances stability, and simplifies the development process.

[0015] In one alternative implementation, the business layer further includes a file management unit for receiving and storing images or files generated by the data generation management unit.

[0016] The test data generation platform provided by this invention can store images or files generated by the data generation management unit during the data generation process through a file management unit, ensuring data security and improving data management efficiency.

[0017] In one alternative implementation, the test data generation platform further includes:

[0018] The data layer is used to cache common business data using Redis and Mybatis caching mechanisms. The data layer is also used to receive multiple target data transmissions from the business layer and transmit the multiple target data transmissions to the corresponding databases for storage.

[0019] The test data generation platform provided by this invention significantly improves data retrieval speed by caching common business data using Redis and Mybatis caching mechanisms in the data layer. When business applications need to access this common data, they retrieve it directly from the cache, avoiding the overhead of frequently reading data from the database, thereby significantly shortening response time and improving system performance and user experience. Furthermore, transmitting data to the corresponding database for storage through the data layer ensures data consistency and accuracy.

[0020] Secondly, the present invention provides a test data generation method for use in the business layer of a test data generation platform as described in the first aspect or any corresponding embodiment; the method includes:

[0021] The system receives initial business datasets, business system requirements, and business environment requirements from the user input transmitted from the front-end UI layer; it generates multiple target data sets based on these data sets; it determines the corresponding business application system interfaces based on the business system requirements and business environment requirements; it transmits the multiple target data sets to the corresponding target business application systems through the business application system interfaces, enabling the target business application systems to generate initial business data based on the multiple target data sets; it receives the initial business data transmitted from the target business application systems and converts the format of the initial business data to obtain the target business data; and it sends the target business data to the presentation layer, enabling the presentation layer to render the target business data and display it to the corresponding user through the front-end UI layer.

[0022] The test data generation method provided by this invention generates test data through the business layer within the test data generation platform. This allows users to simply tell the system what data they need, and the platform can automatically simulate real user operations to generate the target data, achieving "what you want is what you get". This avoids the problem that traditional test data preparation not only requires relevant personnel to be very familiar with the related system, but also requires a lot of manpower, material resources and time to do repetitive work.

[0023] In an optional implementation, the method further includes: transmitting multiple target data sets to a corresponding database for storage via a data layer.

[0024] The test data generation method provided by this invention transmits multiple target data sets to the corresponding database for storage through a data layer, ensuring data consistency and accuracy.

[0025] Thirdly, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to perform the test data generation method of the second aspect above or any corresponding embodiment thereof.

[0026] Fourthly, the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to perform the test data generation method of the second aspect above or any corresponding embodiment thereof.

[0027] Fifthly, the present invention provides a computer program product, including computer instructions for causing a computer to execute the test data generation method of the second aspect above or any corresponding embodiment thereof. Attached Figure Description

[0028] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0029] Figure 1 This is a schematic diagram of the structure of the test data generation platform according to an embodiment of the present invention;

[0030] Figure 2 This is a schematic diagram of the business layer structure according to an embodiment of the present invention;

[0031] Figure 3 This is a schematic diagram of the structure of a test data generation platform based on the "short, quick, and efficient" model according to an embodiment of the present invention;

[0032] Figure 4 This is a flowchart illustrating the test number generation method according to an embodiment of the present invention;

[0033] Figure 5 This is a structural block diagram of a test data generation device according to an embodiment of the present invention;

[0034] Figure 6This is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. Detailed Implementation

[0035] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0036] This invention provides a test data generation platform that achieves "one-click" foolproof data generation through a front-end UI layer, a display layer, and a business layer, with 100% data validity and accuracy.

[0037] This embodiment provides a test data generation platform for any business application system; such as Figure 1 As shown, the test data generation platform 1 includes: front-end UI layer 11, display layer 12, business layer 13 and data layer 14.

[0038] Optionally, the front-end UI layer 11 is used to obtain the initial business dataset, business system requirements, and business environment requirements input by the user, and to transmit the initial business dataset, business system requirements, and business environment requirements to the business layer 13 through the presentation layer.

[0039] The front-end UI layer 11 can integrate HTML, CSS, and jQuery (not shown in this embodiment).

[0040] HTML, or Hypertext Markup Language, is the foundation for building web page structures. It defines the layout of various parts of a web page, such as headings, paragraphs, lists, and images. By using different tags, page content can be organized to create a clear hierarchical structure. <h1> arrive< / h1> <h6>Tags are used to define different levels of headings. Tags are used for paragraph text. and The `<list>` tag is used to create unordered lists. HTML provides a basic framework for web pages, determining what content is displayed on the page and how it is arranged. Therefore, HTML can be used to build a basic structural framework for the front-end UI layer.

[0041] CSS (Cascading Style Sheets) is a set of tools used to manage the appearance and style of web pages. It controls the color, font, size, layout, spacing, and other properties of HTML elements. CSS allows for the enhancement and personalization of page designs. For example, it allows setting the background color, text color, and font style for the entire page, as well as adjusting the styles of specific elements. Furthermore, CSS supports responsive design, ensuring that web pages display well on different devices and screen sizes. For instance, media queries can adjust the layout and styles based on screen width, ensuring good display on mobile phones, tablets, and computers. Therefore, CSS can give the front-end UI layer a beautiful appearance and a reasonable layout.

[0042] jQuery is a fast and concise JavaScript framework that optimizes HTML document manipulation, event handling, animation design, and Ajax (Asynchronous JavaScript and XML) interactions. Therefore, jQuery can play a crucial role in enhancing interactivity at the front-end UI layer.

[0043] By integrating HTML, CSS, and jQuery into the front-end UI layer 11, a perfect combination of structure, style, and interaction can be achieved, creating a powerful, beautiful, and highly interactive web interface for users.

[0044] Furthermore, the initial business dataset is used to represent the relevant data of the corresponding user-input pending business, which may include the user's basic information or relevant transaction information, etc.

[0045] Business system requirements are used to specify the business application systems that users need to use to process pending business. For example, in a corporate management scenario, if a user needs to submit an expense reimbursement application, then the business system requirements will indicate that the user needs to process the pending business through the financial management system.

[0046] Business environment requirements are used to define the business environment that users need to rely on to process pending business. For example, in some enterprise project management scenarios, business environment requirements may include specific project phases, team collaboration requirements, and resource allocation.

[0047] Furthermore, the presentation layer 12 can use Ajax technology to enable efficient communication between the front-end UI layer 11 and the business layer 13, breaking the traditional page refresh mode and bringing users a smoother interactive experience.

[0048] Therefore, when a user inputs the corresponding initial business dataset, business system requirements, and business environment requirements in the front-end UI layer 11, the presentation layer 12 can use asynchronous Ajax requests to send this data to the business layer 13 for processing, without waiting for the entire page to reload. Simultaneously, after the business layer 11 finishes processing the data, the presentation layer 12 can also receive the returned data via Ajax and update the displayed content of the front-end UI layer 11 without refreshing the page, greatly improving the system's response speed.

[0049] Furthermore, the presentation layer 12 can improve input / output responsiveness by using Thymeleaf pre-configured page templates. Thymeleaf is a modern server-side Java template engine that effectively combines dynamic data with static page templates. When processing user input, the presentation layer 12 can utilize Thymeleaf's template functionality to quickly generate input form pages, reducing page load time. When outputting data, Thymeleaf can dynamically populate page templates based on data returned by the business layer 13, quickly presenting the user with the required information and improving output responsiveness.

[0050] Optionally, the business layer 13 is used to generate multiple target data based on the initial business dataset, business system requirements, and business environment requirements, and to determine the corresponding business application system interface based on the business system requirements and business environment requirements.

[0051] Specifically, after the business layer 13 receives the initial business dataset, business system requirements, and business environment requirements sent by the front-end UI layer 11, it can first analyze and process the initial business dataset. This may involve extracting key information, cleaning and transforming the data to ensure its accuracy and usability. For example, if the initial business dataset contains incomplete or erroneous data, the business layer 13 can perform data repair or remove this invalid data.

[0052] Secondly, data can be generated based on the needs of the business system and the business environment. This may involve simulating different business scenarios and generating data that conforms to specific rules. For example, if the business system requirement is to test a trading system, the business layer may generate a large amount of simulated trading data based on different trading types and market conditions. Simultaneously, the business environment requirements must also be considered during data generation. For instance, if the business environment requires testing under high concurrency, the business layer will generate sufficient data to simulate high-concurrency scenarios, ensuring the platform can operate normally under such conditions.

[0053] Finally, multiple target data sets can be generated through data creation, which can be used for subsequent business application system testing, data analysis, business decision-making, etc.

[0054] Furthermore, combining the requirements of the business system and the business environment can help determine the corresponding business application system interfaces. In particular, considering the business environment can significantly improve the accuracy of interface selection. For example, in specific business environments with high security requirements, it may be necessary to choose business application system interfaces with stronger encryption and authentication mechanisms.

[0055] Optionally, the business layer 13 is also used to transmit multiple target data to the corresponding target business application system through the business application system interface, so that the target business application system generates initial business data based on the multiple target data.

[0056] Specifically, after the business layer 13 sends multiple target data to the corresponding target business application system through the business application system interface, it can automatically test based on the received multiple target data in the target business application system.

[0057] This approach improves testing efficiency and coverage. Compared to manual testing, automated testing can execute a large number of test cases in a shorter time, covering more business scenarios and boundary conditions. Secondly, automated testing offers higher consistency and repeatability. Each test execution ensures the use of the same input data and operational procedures, making it easier to discover potential problems in the system.

[0058] Furthermore, once the automatic test is passed, the target business application system can automatically simulate real user operations and generate multiple initial business data based on multiple target data, and then send the obtained multiple initial business data back to the business layer 13.

[0059] Optionally, the business layer 13 is also used to receive initial business data transmitted by the target business application system, convert the format of the initial business data to obtain target business data, and send the target business data to the presentation layer 12.

[0060] Specifically, when the business layer 13 receives the initial business data transmitted by the target business application system, since different target business application systems may use different data formats, and the presentation layer 12 usually requires data in a specific format for effective display and interaction, the business layer 13 needs to convert the received initial business data according to the requirements of the presentation layer to ensure that the converted target business data can be correctly understood and used by the presentation layer 12.

[0061] Optionally, the presentation layer 12 is used to render the target business data and then display it to the corresponding user through the front-end UI layer 11.

[0062] Specifically, after the presentation layer 12 receives the target business data fed back by the business layer 13, it can render the target business data through Thymeleaf and display the rendered target business data to the corresponding user through the front-end UI layer 11.

[0063] Thymeleaf is a powerful template engine that combines dynamic target business data with a pre-designed front-end UI layer. During rendering, Thymeleaf can populate the corresponding positions in the front-end UI layer based on the content and structure of the target business data. It can also format and format the target business data to present a more aesthetically pleasing and readable page.

[0064] Furthermore, the rendered target business data is displayed through the front-end UI layer 11 for easy viewing by users.

[0065] Optionally, data layer 14 is used to cache common business data using Redis and Mybatis caching mechanisms.

[0066] Redis (Remote Dictionary Server) is a high-performance in-memory database with fast data read / write speeds and rich data structures. Caching common business data in Redis can significantly improve data access speed. When this data is needed, it is first searched in Redis; if the required data is found, it can be returned directly, avoiding time-consuming queries from the database.

[0067] Furthermore, the Redis caching mechanism refers to a method that utilizes the characteristics of the Redis database to store and manage frequently accessed data in order to improve data access speed and system performance.

[0068] MyBatis' caching mechanism represents a design strategy to improve data access efficiency, which can be divided into first-level caching and second-level caching. First-level caching is at the SqlSession level. When executing the same query within the same SqlSession, if the data is in the cache, it is retrieved directly from the cache, avoiding repeated database queries. Second-level caching is at the Mapper level, allowing cached data to be shared across multiple SqlSessions. For frequently used query results, MyBatis' caching mechanism can reduce the number of database accesses and improve system performance.

[0069] By combining Redis and Mybatis caching mechanisms in data layer 14 to cache common business data, the caching effect of common business data can be further improved, thereby improving system performance and response speed and providing users with a better service experience.

[0070] Specifically, Redis, as an external cache, can store large amounts of common business data and share cached data across different systems and services. MyBatis' caching mechanism, on the other hand, can cache database query results within the application, reducing database access pressure. Furthermore, by properly setting cache expiration times and update strategies, it's possible to ensure that cached data is always up-to-date, improving system reliability and stability.

[0071] Optionally, the data layer 14 is also used to receive multiple target data transmitted by the business layer 13 and transmit the multiple target data to the corresponding database for storage.

[0072] Specifically, after receiving multiple target data from the business layer 13, the data layer 14 can first perform necessary processing and verification on the multiple target data, such as checking the integrity, accuracy and consistency of the data, to ensure that the data meets the storage requirements and business rules of the database, and to prevent invalid or erroneous data from entering the database.

[0073] Secondly, multiple target data sources can be transferred to corresponding databases for storage. During storage, the appropriate storage method and data model can be selected based on the type and structure of the database. For example, in a relational database, data may need to be inserted or updated according to the table structure; in a NoSQL database, appropriate collections or documents can be selected for storage based on the characteristics of the data.

[0074] The test data generation platform provided in this embodiment allows users to input initial business datasets, business system requirements, and business environment requirements at the front-end UI layer. It then automatically generates multiple target data sets that satisfy the corresponding business application systems based on these data, achieving a so-called "one-click" user-friendly data generation process with 100% data validity and accuracy. Furthermore, the platform can determine the corresponding business application system interface at the business layer based on the received business system and environment requirements. Through this interface, the generated target data sets are sent to the corresponding target business application systems for automatic testing and data generation. This improves the efficiency and accuracy of automatic testing and data generation for business application systems. Simultaneously, users only need to tell the system what data they need, and the platform automatically simulates real user operations to generate the target data, achieving "what you want is what you get." This avoids the problems of traditional test data preparation, which requires personnel to be very familiar with the related systems and involves significant manpower, resources, and time spent on repetitive work. Furthermore, the initial business data returned by the target business application system can be formatted and rendered in the presentation layer before being displayed through the front-end UI layer for the corresponding users to view. Therefore, by implementing this invention, the platform structure is optimized, the process is simplified, redundancy is reduced, and response speed is accelerated, improving the overall performance and user experience of the test data generation platform. Simultaneously, it solves the problems of low efficiency, high difficulty, and poor accuracy in traditional test data preparation, further improving the efficiency and accuracy of automated testing.

[0075] In an alternative implementation, such as Figure 2 As shown, the business layer 13 includes: an environment management unit 131, a data management unit 132, and a message processing unit 133.

[0076] By combining the environment management unit 131, the data creation management unit 132, and the message processing unit 133, a so-called "one-click" foolproof data creation can be achieved, and the validity and correctness of the data can reach 100%, while also improving the accuracy of automatic testing.

[0077] First, the environment management unit 131 determines the system environment information based on the business system requirements and business environment requirements, and sends the system environment information to the data creation management unit 132.

[0078] Specifically, the environment management unit 131 is used to manage application server information, database information, file server information, and other information for different business environments of different business application systems. Therefore, when a user selects which business application system and business environment to process business (i.e., to generate data) on the front-end UI layer 11, the environment management unit 131 can query the corresponding system environment information according to the selection on the front-end UI layer 11, assemble it, and continue communication. Then, when the communication is successful, the obtained system environment information is sent to the data generation management unit 132.

[0079] Secondly, the data generation management unit 132 is used to determine the corresponding business application system interface information based on the system environment information, and send the business application system interface information to the message processing unit 133. At the same time, the data generation management unit 132 is also used to generate multiple initial data based on the initial business dataset and system environment information, and send the multiple initial data to the message processing unit 133.

[0080] Specifically, the data management unit 132 is used to manage the API interfaces of various business application systems, data generation data, and related data of various business application systems. Therefore, the data management unit 132 can determine the corresponding API interfaces of various business application systems by combining the obtained system environment information.

[0081] Furthermore, the obtained initial business dataset, system environment information, data generation metadata, and related data from various business application systems can be combined to generate new data.

[0082] In this context, data generation metadata refers to descriptive information about the data involved in the data generation process. This can include the definition and description of various key elements used to generate the target generated data. For example, the source information of the data generation, i.e., detailed descriptions of the initial business dataset, business system requirements, and business environment requirements, as well as the format, scope, and meaning of this data.

[0083] Furthermore, the determined business application system interface information and the multiple initial data generated from the data generation can be sent to the corresponding message processing unit 133.

[0084] Then, the message processing unit 133 is used to determine the business application system interface based on the business application system interface information, and when establishing communication with the corresponding target business application system through the business application system interface, it converts the format of multiple initial data to obtain multiple target data, and transmits the multiple target data to the target business application system through the business application system interface.

[0085] Specifically, after the message processing unit 133 receives the business application system interface information, it can determine the corresponding business application system interface by parsing and matching the business application system interface information. For example, the message processing unit 133 can find the specific business application system interface corresponding to the target business application system based on the key information such as the interface identifier, address, and protocol contained in the business application system interface information.

[0086] Once the business application system interface is determined, the message processing unit 133 can establish communication with the corresponding target business application system through that interface. The communication can take various forms, such as data transmission, sending requests, and receiving responses via network protocols.

[0087] Meanwhile, during the communication process, the message processing unit 133 also needs to ensure the stability and reliability of the communication, which may involve handling various possible problems, such as network failures and data transmission errors, to ensure that subsequent data can be accurately and timely transmitted to the target business application system.

[0088] Furthermore, after the message processing unit 133 establishes communication with the corresponding target business application system through the business application system interface, since different business application systems may have different requirements for data format, the message processing unit 133 can adjust multiple initial data according to the specific format specifications of different business application systems. For example, it can convert the data type of multiple initial data or adjust the arrangement order and field length of multiple initial data.

[0089] Furthermore, the converted target data sets are transmitted to the corresponding target business application systems via the business application system interface. Precise format conversion ensures that the target data sets can be correctly identified and processed by the target business application systems. During data transmission, data verification and error handling mechanisms can be employed to ensure that the data arrives at the target business application systems securely and reliably.

[0090] Furthermore, once the target business application system receives multiple target data sets, it automatically simulates real user operations using these data sets, i.e., performs automatic testing and generates corresponding initial business data. The specific process is detailed in the functional description of the target business application system described above, and will not be repeated here.

[0091] Finally, after the message processing unit 133 receives the initial service data transmitted by the target service application system, it performs format conversion on the received initial service data and generates the corresponding target service data.

[0092] In an alternative implementation, such as Figure 2 As shown, the business layer 13 also includes: a database management unit 134, a statistics unit 135, and a log management unit 136.

[0093] Optionally, the database management unit 134 is used to record user operation information and transmit multiple recorded user operation information to the statistics unit 135.

[0094] Specifically, the database management unit 134 can record user operation information, such as the user's login time, accessed pages, executed functions, and input data. By recording this detailed user operation information, it is possible to better understand user habits and needs, thereby providing a basis for subsequent statistical analysis.

[0095] Furthermore, the database management unit 134 will send the data to the statistics unit 135.

[0096] Optionally, the statistics unit 135 is used to collect statistics on the usage information of the front-end UI layer 11, the presentation layer 12 and the business layer 13 based on user operation information and generate log files, and to transmit the log files to the log management unit 136.

[0097] Specifically, the statistics unit 135 can collect statistics on the usage information of the front-end UI layer 11, the display layer 12, and the business layer 13, such as the number of users, the number of times, and the time, and generate corresponding log files after analyzing the saved manpower, material resources, and time costs.

[0098] Furthermore, the statistics unit 135 can send the generated log files to the log management unit 136 for management. Moreover, managing the log files through the log management unit 136 facilitates problem location and analysis. For example, if abnormal behavior or errors occur on the platform, the administrator can quickly find the corresponding log records through the log management unit to understand the time, location, and specific circumstances of the problem. Usage information recorded in the logs, such as users, frequency, and time, can help determine whether the problem is related to the actions of a specific user or whether it occurs frequently within a specific time period.

[0099] Optionally, the database management unit 134 is also used to manage connection pools for the local database and the databases of any business application system.

[0100] Specifically, connection pooling can improve the efficiency of database access. When interaction with the local database or the database of any business application system is required, it is not necessary to establish a new connection every time; instead, an existing connection can be obtained from the connection pool. This can greatly reduce the time overhead of connection establishment, and especially under high concurrency, it can significantly improve the system's response speed.

[0101] Furthermore, connection pool management can effectively manage connection resources for local databases or databases of any business application system. By setting parameters such as the maximum and minimum number of connections for the connection pool, connection resources can be allocated reasonably according to actual needs, avoiding excessive database load due to too many connections or system performance impact due to insufficient connections.

[0102] Furthermore, connection pool management can improve the stability and reliability of the platform. If a connection encounters a problem, the connection pool can automatically reclaim the connection and re-establish a new connection, ensuring that the platform can continuously and stably access the local database or the database of any business application system.

[0103] By managing the connection pool for the local database and the database of any business application system in the database management unit 134, the access performance of the local database and the database of any business application system can be optimized, resources can be allocated reasonably, and thus the stability and reliability of the platform can be improved.

[0104] In an alternative implementation, such as Figure 2 As shown, the business layer 13 also includes a file management unit 137, which is used to receive and store images or files generated by the data management unit 132.

[0105] Specifically, various types of images and files may be generated during data creation in the data creation management unit 132, such as screenshots of data visualization charts and generated report documents. Centralizing these files in the file management unit 137 allows for convenient unified management and retrieval, avoiding the clutter and difficulty in searching caused by files being scattered in different locations.

[0106] Furthermore, when storing images or files generated by the data generation management unit 132 using the file management unit 137, a suitable storage medium and storage method can be selected based on factors such as the type, size, and frequency of use of the images or files. For example, frequently accessed files can be stored on high-speed storage devices to improve access speed; infrequently used files can be compressed or transferred to low-cost storage devices to save storage space.

[0107] Furthermore, when storing images or files generated by the data generation management unit 132 using the file management unit 137, various security measures can be taken to ensure the security of the stored images or files, such as access control and data encryption. Furthermore, for important images or files, backup and recovery operations can be performed to ensure that they are not lost in the event of a malfunction or unexpected situation involving the file management unit 137.

[0108] The test data generation platform provided in this embodiment, combining business system requirements and business environment requirements, allows the environment management unit to query and determine the corresponding business system environment information. Then, combining the obtained business system environment information and the initial business dataset, data generation can be directly performed within the data generation management unit, effectively solving the problems of low efficiency, high difficulty, and poor accuracy in traditional test data preparation. Furthermore, the data generation management unit manages the system interfaces of different business systems and sends multiple target data sets obtained from data generation to the target business application systems corresponding to the system interfaces to achieve the final business data generation. Finally, the message processing unit converts the received initial business data into a format before transmitting it to the presentation layer, achieving a so-called "one-click" foolproof data generation, with 100% data validity and correctness. Simultaneously, by combining the data management unit and the statistics unit, usage information of the front-end UI layer, presentation layer, and business layer can be statistically analyzed and log files generated. These log files can then be managed through the log management unit, providing a comprehensive understanding of the test data generation platform's usage and supporting enhanced security and compliance.

[0109] In one instance, such as Figure 3 As shown, a one-click data generation platform for testing based on a "short, quick, and efficient" model is provided, including a front-end UI layer, a presentation layer, a business layer, and a data layer:

[0110] 1. Front-end UI layer for user input and data display: Design the front-end page to provide data input and output, while guiding user operations and explaining some rules.

[0111] 2. The presentation layer transforms and transmits front-end data to the business layer, and renders the data returned by the business layer using Thymeleaf before displaying it to the front-end. Specifically, Ajax is used to connect the front-end and back-end, and Thymeleaf pre-set page templates are used to improve the response speed of input and output.

[0112] 3. The business layer includes the environment management unit, data generation management unit, message processing unit, database management unit, file management unit, statistics unit, and log management unit.

[0113] (31) Environment Management Unit: Used to manage application server information, database information, file server information, etc. in different environments of various systems. It allows users to select which system and environment to create data on at the front end. The back end queries the environment information through this unit based on the front end's selection, assembles the data, and communicates with the back end.

[0114] (32) Data creation management unit: used to manage the API interfaces of each system, the data creation metadata, the system-related data, the batch data creation data, and to process the data creation data according to scenarios and rules;

[0115] (33) Message processing unit: After establishing communication with the backend, the data of the data management unit is converted into the format required by the backend and sent to the backend through API call. It waits to receive the response from the backend, analyzes and processes the response, and converts it into a unified format for the frontend.

[0116] (34) Database Management Unit: Used to manage the connection pool of the databases of this system and various environments. This system records user operation information for statistical, analytical, and reporting purposes; if no interface is available in any system or if there are many prerequisites for interface processing, data is directly inserted into the application system database;

[0117] (35) File Management Unit: Stores and manages images, files, etc. generated during the data creation process;

[0118] (36) Statistics Unit: Statistically analyze the number of users, frequency, and time of each function, analyze the saved manpower, material resources and time costs, and generate reports;

[0119] (37) Log Management Unit: Manages the generated log files to facilitate problem location and analysis;

[0120] 4. The data layer includes a data caching / storage management unit, utilizing Redis and Mybatis caching mechanisms to cache frequently used data and improve system responsiveness. Generated data is stored in the corresponding database through a database connection pool.

[0121] This example provides a one-click data generation platform for testing based on a "quick, efficient, and efficient" model. Users select the corresponding scenario and environment on the front-end page, and the back-end prepares the data through API calls or database insertion, reducing error rates and significantly improving production efficiency. Simultaneously, user operation information is recorded, and continuous optimization and upgrades are performed through data statistical analysis, further improving production efficiency. Therefore, by implementing this invention, through a series of standardized, componentized, modular, and unified service processes, users only need to select the environment on the front-end page, without needing to understand the underlying system logic or inter-system relationships, to meet the data generation needs of different business scenarios and environments. Furthermore, the user-friendly front-end page, clear and concise prompts, and extremely simple data input reduce the difficulty of operation, and the sub-second impact speed improves the quality and efficiency of data generation.

[0122] According to an embodiment of the present invention, a test number generation method embodiment is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0123] This embodiment provides a test data generation method, which can be used in the business layer 13 of the test data generation platform 1 provided in the above embodiments of the present invention. Figure 4 This is a flowchart of a test number generation method according to an embodiment of the present invention, such as... Figure 4 As shown, the process includes the following steps:

[0124] Step S401: Receive the initial business dataset, business system requirements, and business environment requirements transmitted by the front-end UI layer from the user input.

[0125] For the specific process, please refer to the above description of the functions of the front-end UI layer 11 in the test data generation platform 1, as well as the description of the interaction process between the front-end UI layer 11 and the business layer 13. It will not be repeated here.

[0126] Step S402: Based on the initial business dataset, business system requirements, and business environment requirements, multiple target data are generated.

[0127] For the specific process, please refer to the above description of the functions of the business layer 13 within the test data generation platform 1, which will not be repeated here.

[0128] Step S403: Determine the corresponding business application system interfaces based on business system requirements and business environment requirements.

[0129] For the specific process, please refer to the above description of the functions of the business layer 13 within the test data generation platform 1, which will not be repeated here.

[0130] Step S404: The multiple target data sources are transmitted to the corresponding target business application system through the business application system interface, so that the target business application system generates initial business data based on the multiple target data sources.

[0131] For the specific process, please refer to the above description of the functions of the business layer 13 and the target business application system in the test data generation platform 1, as well as the description of the interaction process between the business layer 13 and the target business application system. It will not be repeated here.

[0132] Step S405: Receive the initial service data transmitted by the target service application system, and convert the format of the initial service data to obtain the target service data.

[0133] For the specific process, please refer to the above description of the functions of the business layer 13 within the test data generation platform 1, as well as the description of the interaction process between the business layer 13 and the target business application system. It will not be repeated here.

[0134] Step S406: Send the target business data to the presentation layer, so that the presentation layer renders the target business data and displays it to the corresponding user through the front-end UI layer.

[0135] For the specific process, please refer to the above description of the interaction process between the business layer 13 and the presentation layer 12 in the test data generation platform 1, the functional description of the presentation layer 12, and the interaction process between the presentation layer 12 and the front-end UI layer. It will not be repeated here.

[0136] In some optional implementations, the above test data generation method further includes: transmitting multiple target data sets to a corresponding database for storage via a data layer.

[0137] For the specific process, please refer to the above description of the interaction process between the business layer 13 and the data layer 14 in the test data generation platform 1, as well as the functional description of the data layer 14, which will not be repeated here.

[0138] The test data generation method provided in this embodiment generates test data through the business layer within the test data generation platform. This allows users to simply tell the system what data they need, and the platform can automatically simulate real user operations to generate the target data, achieving "what you want is what you get". This avoids the problem that traditional test data preparation not only requires relevant personnel to be very familiar with the associated system, but also requires a lot of manpower, material resources and time to do repetitive work.

[0139] This embodiment also provides a test data generation device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0140] This embodiment provides a test data generation device, which can be used in the business layer 13 of the test data generation platform 1 provided in the above embodiment of the present invention, such as... Figure 5 As shown, the device includes:

[0141] The receiving module 501 is used to receive the initial business dataset, business system requirements, and business environment requirements transmitted by the user input from the front-end UI layer.

[0142] The data generation module 502 is used to generate multiple target data based on the initial business dataset, business system requirements, and business environment requirements.

[0143] The determination module 503 is used to determine the corresponding business application system interfaces based on business system requirements and business environment requirements.

[0144] The transmission module 504 is used to transmit multiple target data to the corresponding target business application system through the business application system interface, so that the target business application system generates initial business data based on the multiple target data.

[0145] The receiving and conversion module 505 is used to receive the initial business data transmitted by the target business application system and convert the format of the initial business data to obtain the target business data.

[0146] The sending and display module 506 is used to send the target business data to the display layer, so that the display layer can render the target business data and display it to the corresponding user through the front-end UI layer.

[0147] In some alternative embodiments, the device further includes:

[0148] The transmission and storage module is used to transmit multiple target data to the corresponding database for storage through the data layer.

[0149] Further functional descriptions of the above modules and units are the same as those in the corresponding embodiments described above, and will not be repeated here.

[0150] In this embodiment, the test data generation device is presented in the form of a functional unit. Here, a unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.

[0151] This invention also provides a computer device having the above-described features. Figure 5 The test data generation device shown.

[0152] Please see Figure 6 , Figure 6 This is a schematic diagram of the structure of a computer device provided in an optional embodiment of the present invention, such as... Figure 6 As shown, the computer device includes one or more processors 10, memory 20, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components communicate with each other via different buses and can be mounted on a common motherboard or otherwise installed as needed. The processors can process instructions executed within the computer device, including instructions stored in or on memory to display graphical information of a GUI on external input / output devices (such as display devices coupled to the interfaces). In some alternative implementations, multiple processors and / or multiple buses can be used with multiple memories, if desired. Similarly, multiple computer devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). Figure 6 Take a processor 10 as an example.

[0153] Processor 10 may be a central processing unit, a network processor, or a combination thereof. Processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The programmable logic device may be a complex programmable logic device (CAMP), a field-programmable gate array (FPGA), a general-purpose array logic (GPA), or any combination thereof.

[0154] The memory 20 stores instructions executable by at least one processor 10 to cause at least one processor 10 to perform the method shown in the above embodiments.

[0155] The memory 20 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the computer device. Furthermore, the memory 20 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, the memory 20 may optionally include memory remotely located relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0156] The memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk or solid-state drive; the memory 20 may also include a combination of the above types of memory.

[0157] The computer device also includes a communication interface 30 for communicating with other devices or communication networks.

[0158] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code, which, when accessed and executed by the computer, processor, or hardware, implements the methods shown in the above embodiments.

[0159] A portion of this invention can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to the invention through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.

[0160] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and all such modifications and variations fall within the scope defined by the appended claims. < / h6>

Claims

1. A test data generation platform, characterized in that, For use in any business application system; The test data generation platform includes: a front-end UI layer, a presentation layer, and a business layer; The front-end UI layer is used to obtain the initial business dataset, business system requirements, and business environment requirements input by the user, and to transmit the initial business dataset, the business system requirements, and the business environment requirements to the business layer through the presentation layer. The business layer is used to generate multiple target data based on the initial business dataset, the business system requirements, and the business environment requirements, and to determine the corresponding business application system interface based on the business system requirements and the business environment requirements. The business layer is also used to transmit the multiple target data to the corresponding target business application system through the business application system interface, so that the target business application system can test and generate initial business data based on the multiple target data. The business layer is also used to receive the initial business data transmitted by the target business application system, convert the format of the initial business data to obtain target business data, and send the target business data to the presentation layer. The presentation layer is used to render the target business data and then display it to the corresponding user through the front-end UI layer; The business layer includes: an environment management unit, a data generation management unit, and a message processing unit; The environment management unit is used to determine system environment information based on the business system requirements and the business environment requirements, and send the system environment information to the data generation management unit. The data generation management unit is used to determine the corresponding business application system interface information based on the system environment information, and send the business application system interface information to the message processing unit. The data generation management unit is also used to generate multiple initial data based on the initial business dataset and the system environment information, and to send the multiple initial data to the message processing unit. The message processing unit is used to determine the business application system interface based on the business application system interface information, and when establishing communication with the corresponding target business application system through the business application system interface, convert the format of the multiple initial data to obtain the multiple target data, and transmit the multiple target data to the target business application system through the business application system interface. The message processing unit is also configured to receive the initial service data transmitted by the target service application system, and convert the format of the initial service data to obtain the target service data. The test data generation platform also includes: The data layer is used to cache common business data using Redis and Mybatis caching mechanisms; The data layer is also used to receive the multiple target data transmissions from the business layer and transmit the multiple target data transmissions to the corresponding database for storage.

2. The test data generation platform according to claim 1, characterized in that, The business layer also includes: a database management unit, a statistics unit, and a log management unit; The database management unit is used to record user operation information and transmit multiple recorded user operation information to the statistics unit. The statistics unit is used to collect statistics on the usage information of the front-end UI layer, the display layer and the business layer based on the user operation information and generate a log file, and to transmit the log file to the log management unit. The log management unit is used to manage the log management unit.

3. The test data generation platform according to claim 2, characterized in that, The database management unit is also used to manage connection pools for the local database and the databases of any business application system.

4. The test data generation platform according to claim 1, characterized in that, The business layer also includes: The file management unit is used to receive and store the images or files generated by the data generation management unit.

5. A method for testing number generation, characterized in that, For use in the business layer of the test data generation platform as described in any one of claims 1 to 4; the method includes: Receive the initial business dataset, business system requirements, and business environment requirements transmitted by the front-end UI layer from the user input. Multiple target data sets are generated based on the initial business dataset, the business system requirements, and the business environment requirements. The corresponding business application system interfaces are determined based on the business system requirements and the business environment requirements. The multiple target data sources are transmitted to the corresponding target business application system through the business application system interface, so that the target business application system generates initial business data based on the multiple target data sources. Receive the initial service data transmitted by the target service application system, and convert the format of the initial service data to obtain the target service data; The target business data is sent to the presentation layer, so that the presentation layer renders the target business data and displays it to the corresponding user through the front-end UI layer; This process involves generating multiple target datasets based on the initial business dataset, the business system requirements, and the business environment requirements; and determining the corresponding business application system interfaces based on the business system requirements and the business environment requirements, including: Based on the business system requirements and the business environment requirements, system environment information is determined; based on the system environment information, corresponding business application system interface information is determined; multiple initial data are generated based on the initial business dataset and the system environment information; based on the business application system interface information, the business application system interface is determined, and when communication is established with the corresponding target business application system through the business application system interface, the format of the multiple initial data is converted to obtain the multiple target data. The method also includes: using Redis and Mybatis caching mechanisms to cache general business data; The method further includes: transmitting the multiple target data to the corresponding database for storage through a data layer.

6. A computer device, characterized in that, include: The system includes a memory and a processor, which are interconnected. The memory stores computer instructions, and the processor executes the computer instructions to perform the test data generation method of claim 5.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing a computer to execute the test data generation method of claim 5.

Citation Information

Patent Citations

  • Measurement and control system capable of being developed quickly, and measurement and control system board

    CN113434425A

  • Test data generation platform based on banking business

    CN113485911A