Test data generation platform and method, computer equipment and storage medium

Through the automated data creation and data transmission functions of the test data creation platform, the problems of low preparation efficiency and high error rate of traditional test data are solved, and efficient and accurate automatic testing and automatic data generation are achieved.

CN119537208AActive Publication Date: 2025-02-28HUNAN SANXIANG BANK CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Traditional test data preparation requires relevant personnel to be very familiar with the correlation system, and it requires a lot of manpower, material resources and time to do repetitive work, resulting in inefficiency and high error rate, which in turn affects the testing efficiency and accuracy rate.

Method used

It provides a test data creation platform, including the front-end UI layer, display layer and business layer. It obtains the initial business data set, business system requirements and business environment requirements input by users through automated means, and generates target data, and transmits it to the target business application system through the service application system interface for automatic testing and data generation.

Benefits of technology

The "one-click" fool-made numbers are realized, and the data is valid and correct. The efficiency and accuracy of automatic testing and automatic data generation of business application systems are improved, user operations are simplified, and the cumbersome and errors in the preparation of traditional test data is avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119537208A_ABST
    Figure CN119537208A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of automatic data creation, and discloses a test data creation platform and method, computer equipment and a storage medium. According to the invention, automatic data generation can be carried out on the service layer according to the received initial service data set, the service system requirement and the service environment requirement input by the user on the front-end UI layer, and a plurality of corresponding target data generation data meeting the corresponding service application system are generated, so-called'one-key 'fool type data generation is achieved; and the validity and correctness of the data reach 100%. Furthermore, through interaction of a business layer and a target business application system, a user only needs to tell the system about what data is needed, the platform can automatically simulate real user operation to generate target data, the purpose that the data can be obtained as desired is achieved, and the problems that in traditional test data preparation, related personnel need to be very familiar with an associated system, and the test efficiency is high are solved. And a large amount of manpower, material resources and time are needed to do repeated work.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automatic number generation technology, and in particular to a test number generation platform, method, computer equipment and storage medium. Background Art

[0002] As the business needs of different enterprises increase and become more complex, there are many customer terminals involved, long processes, strong correlations, and independent development, testing, acceptance, and regression environments. With the continuous improvement of 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 very familiar with the associated systems, 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 high error rate. Summary of the invention

[0003] In view of this, the present invention provides a test data generation platform, method, computer device and storage medium to solve 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, which is not only inefficient and has a high error rate, but also further leads to low test efficiency and high error rate.

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

[0005] The front-end UI layer is used to obtain the initial business data set, business system requirements and business environment requirements input by the user, and transmit the initial business data set, business system requirements and business environment requirements to the business layer through the display layer; the business layer is used to generate multiple target generated data based on the initial business data set, business system requirements and business environment requirements, and determine the corresponding business application system interface based on the business system requirements and business environment requirements; the business layer is also used to transmit the multiple target generated data to the corresponding target business application system through the business application system interface, so that the target business application system performs testing based on the multiple target generated data and generates initial business 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 the target business data, and send the target business data to the display layer; the display layer is used to render the target business data and display it to the corresponding user through the front-end UI layer.

[0006] The test number-making platform provided by the present invention can automatically make numbers and generate corresponding target number-making data that meet the corresponding business application system according to the received initial business data set, business system requirements and business environment requirements at the business layer after the user inputs the initial business data set, business system requirements and business environment requirements at the front-end UI layer, achieving the so-called "one-key" fool-style number-making, and the validity and correctness of the data reach 100%. Further, the corresponding business application system interface can also be determined at the business layer according to the received business system requirements and business environment requirements, and the generated multiple target number-making data can be sent to the corresponding target business application system through the business application system interface for automatic testing and automatic generation of corresponding business data, thereby improving the efficiency and accuracy of automatic testing and automatic data generation of the business application system. At the same time, 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 want is what you get", avoiding 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 repeated work. Furthermore, the initial business data returned by the target business application system can be converted into a format and rendered in a display layer before being displayed through a front-end UI layer for viewing by corresponding users. Therefore, by implementing the present invention, the platform structure is optimized, the process is simplified, redundancy is reduced, and the response speed is accelerated, thereby improving the overall performance and user experience of the test data generation platform. At the same time, the problems of low efficiency, high difficulty, and poor accuracy in traditional test data preparation are solved, thereby further improving the efficiency and accuracy of automatic testing.

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

[0008] The environment management unit is used to determine the system environment information based on the business system requirements and the business environment requirements, and send the system environment information to the number generation management unit; the number 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 number generation management unit is also used to generate numbers based on the initial business data set and the system environment information to obtain multiple initial number generation data, and send the multiple initial number generation 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 number generation data to obtain multiple target number generation data, and transmit the multiple target number generation data 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 number-making platform provided by the present invention can use the environment management unit to query and determine the corresponding business system environment information in combination with the business system requirements and the business environment requirements, and then directly make numbers in the number-making management unit in combination with the obtained business system environment information and the initial business data set, which well solves the problems of low efficiency, great difficulty and poor accuracy in the preparation of traditional test data. Further, the system interfaces of different business systems are managed by the number-making management unit, and the multiple target number-making data obtained by number-making are sent to the target business application system corresponding to the system interface to realize the generation of final business data. Finally, the received initial business data is format-converted by the message processing unit and transmitted to the display layer. Therefore, by implementing the present invention, the so-called "one-key" fool-style number-making is achieved, and the validity and correctness of the data reach 100%.

[0010] In an 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 the recorded multiple user operation information to the statistical unit; the statistical unit is used to count the usage information of the front-end UI layer, display layer and business layer based on the 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 number-generating platform provided by the present invention can count the usage information of the front-end UI layer, display layer and business layer and generate log files by combining the data management unit and the statistical unit, which can then be managed through the log management unit, so that the usage of the test number-generating platform can be fully understood, providing support for enhancing the security and compliance of the test number-generating platform.

[0013] In an optional implementation, the database management unit is further used to perform connection pool management on the local database and the database of any business application system.

[0014] The test number generation platform provided by the present invention can also realize the connection pool management of the local database and the database of any business application system through the database management unit, which is convenient for dropping numbers and shortening the response time, thereby improving the performance of the test number generation platform, enhancing the stability and simplifying the development process.

[0015] In an optional implementation, the business layer further includes: a file management unit, configured to receive and store the images or files generated by the number generation management unit.

[0016] The test number-generating platform provided by the present invention can store pictures or files generated by the number-generating management unit in the number-generating process through the file management unit, thereby ensuring data security and improving data management efficiency.

[0017] In an optional implementation, the test number-making platform further includes:

[0018] The data layer is used to cache common business data using Redis and Mybatis cache mechanisms; the data layer is also used to receive multiple target number-generating data transmitted by the business layer, and transmit the multiple target number-generating data to the corresponding database for storage.

[0019] The test number-making platform provided by the present invention can greatly improve the data reading speed by caching the business common data in the data layer using Redis and Mybatis cache mechanisms. When the business application needs to access these common data, it is directly obtained from the cache, avoiding the overhead of frequently reading data from the database, thereby significantly shortening the response time and improving the system performance and user experience. Furthermore, by transmitting the data to the corresponding database for storage through the data layer, the consistency and accuracy of the data can be guaranteed.

[0020] In a second aspect, the present invention provides a test number generation method, which is used in a business layer in a test number generation platform of the first aspect or any corresponding embodiment thereof; the method comprises:

[0021] Receive the initial business data set, business system requirements and business environment requirements input by the user transmitted by the front-end UI layer; generate data based on the initial business data set, business system requirements and business environment requirements to obtain multiple target generated data; determine the corresponding business application system interface based on the business system requirements and business environment requirements; transmit the multiple target generated 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 generated data; 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; send the target business data to the display layer, so that the display layer renders the target business data and then displays it to the corresponding user through the front-end UI layer.

[0022] The test data generation method provided by the present invention performs test data generation through the business layer in the test data generation platform, so that 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 want is what you get", avoiding 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.

[0023] In an optional implementation, the method further includes: transmitting the plurality of target number-generating data to a corresponding database through a data layer for storage.

[0024] The test number-generating method provided by the present invention transmits a plurality of target number-generating data to a corresponding database through a data layer for storage, thereby ensuring the consistency and accuracy of the data.

[0025] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the test number generation method of the above-mentioned second aspect or any corresponding embodiment thereof by executing the computer instructions.

[0026] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to cause a computer to execute the test number-generating method of the second aspect or any corresponding embodiment thereof.

[0027] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions for causing a computer to execute the test number generation method of the second aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0029] Figure 1 is a schematic diagram of the structure of a test number-making platform according to an embodiment of the present invention;

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

[0031] Figure 3 It is a structural schematic diagram of a test number-making platform based on a "short, flat and fast" model according to an embodiment of the present invention;

[0032] Figure 4 is a flow chart of a test number-making method according to an embodiment of the present invention;

[0033] Figure 5 is a structural block diagram of a test number-generating device according to an embodiment of the present invention;

[0034] Figure 6It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0035] 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 those skilled in the art without creative work are within the scope of protection of the present invention.

[0036] The embodiment of the present invention provides a test number-making platform, which achieves "one-key" fool-proof number-making through the front-end UI layer, the display layer and the business layer, and the validity and correctness of the data reach 100%.

[0037] In this embodiment, a test number generation platform is provided for any business application system; Figure 1 As shown, the test data generation platform 1 includes: a front-end UI layer 11, a display layer 12, a business layer 13 and a data layer 14.

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

[0039] The front-end UI layer 11 may be integrated with Html, CSS, and jQuery (not shown in this embodiment).

[0040] Html is Hypertext Markup Language, which is the basis for building the structure of web pages. It defines the layout of various parts of a web page, such as titles, paragraphs, lists, images and other elements. By using different tags, the content of the page can be organized to have a clear hierarchical structure. <h1> arrive< / h1> <h6>Tags are used to define different levels of headings. Tags are used for paragraph text. and Tags are used to create unordered lists. Html provides a basic framework for web pages, which determines what content is displayed on the page and how they are arranged. Therefore, Html can be used to build a basic structural framework for the front-end UI layer 11.

[0041] CSS (Cascading Style Sheets) is a language responsible for the appearance and style of web pages, which can control the color, font, size, layout, spacing and other attributes of HTML elements. Through CSS, the beautification and personalized design of the page can be achieved. For example, the background color, text color and font style of the entire web page can be set, and the style of specific elements can also be adjusted. Furthermore, CSS also supports responsive design, so that web pages can show good effects on different devices and screen sizes. For example, using media queries, the layout and style can be adjusted according to the screen width to ensure that the web page can have a good display effect on devices such as mobile phones, tablets and computers. Therefore, CSS can be used to give the front-end UI layer 11 an aesthetically pleasing appearance and a reasonable layout.

[0042] jQuery is a fast and concise JavaScript framework that can optimize HTML document operations, event handling, animation design and Ajax (Asynchronous Javascript And XML) interaction. Therefore, jQuery can play a key role in enhancing interactivity at the front-end UI layer.

[0043] By integrating Html, CSS, and jQuery in 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 page interface for users.

[0044] Furthermore, the initial business data set is used to represent the relevant data of the pending business input by the corresponding user, and may include the basic information of the user or relevant transaction information, etc.;

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

[0046] Business environment requirements are used to clarify the business environment that users need to rely on to handle pending business. For example, in the project management scenarios of some enterprises, business environment requirements may include specific project stages, team collaboration requirements, and resource allocation.

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

[0048] Therefore, when the user enters the corresponding initial business data set, business system requirements and business environment requirements in the front-end UI layer 11, the presentation layer 12 can use Ajax asynchronous request to send these data to the business layer 13 for processing without waiting for the entire page to be reloaded. At the same time, when the business layer 11 has processed the data, the presentation layer 12 can also receive the returned data through Ajax and update the display content of the front-end UI layer 11 without refreshing the page, which greatly improves the response speed of the system.

[0049] Furthermore, the presentation layer 12 can also improve the response speed of input and output through Thymeleaf preset page templates. Among them, Thymeleaf is a modern server-side Java template engine that can effectively combine dynamic data with static page templates. When processing user input, the presentation layer 12 can use Thymeleaf's template function to quickly generate input form pages and reduce page loading time. When outputting data, Thymeleaf can dynamically fill in the page template according to the data returned by the business layer 13, quickly present the information required by the user, and improve the output response speed.

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

[0051] Specifically, after the business layer 13 receives the initial business data set, business system requirements, and business environment requirements sent by the front-end UI layer 11, it can first analyze and process the initial business data set, possibly extract key information, and perform data cleaning and conversion to ensure the accuracy and availability of the data. For example, if the initial business data set contains some incomplete or erroneous data, the business layer 13 can perform data repair or remove these invalid data.

[0052] Secondly, data can be generated according to the business system requirements and business environment requirements, which may involve simulating different business scenarios, generating data that conforms to specific rules, etc. 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 transaction types and market conditions. At the same time, in the process of generating data, the business environment requirements also need to be considered. For example, if the business environment requires testing under high concurrency, the business layer 13 will generate enough data to simulate high concurrency scenarios to ensure that the platform can operate normally in this environment.

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

[0054] Furthermore, the corresponding business application system interface can be determined by combining the business system requirements and the business environment requirements. Among them, the combination of business environment requirements can better improve the accuracy of the business application system interface determination. For example, in a specific business environment with high security requirements, it may be necessary to select a business application system interface with a stronger encryption and authentication mechanism.

[0055] Optionally, the business layer 13 is further configured to transmit the plurality of target number-generating data to a corresponding target business application system through a business application system interface, so that the target business application system generates initial business data based on the plurality of target number-generating data.

[0056] Specifically, after the business layer 13 sends a plurality of target number-generating data to a corresponding target business application system through a business application system interface, an automatic test can be performed in the target business application system according to the received plurality of target number-generating data.

[0057] This way, the efficiency and coverage of testing can be improved. Compared with 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 has higher consistency and repeatability. Each time a test is executed, it can be ensured that the same input data and operation process are used, making it easier to discover potential problems in the system.

[0058] Furthermore, when the automatic test passes, the target business application system can automatically simulate real user operations according to the multiple target data and generate multiple initial business data, and then feed back the obtained multiple initial business data to the business layer 13.

[0059] Optionally, the business layer 13 is further configured 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 presentation and interaction, the business layer 13 needs to convert the format of the received initial business data according to the requirements of the presentation layer to ensure that the target business data after format conversion 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 present 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 present the rendered target business data to the corresponding user through the front-end UI layer 11 .

[0063] Among them, Thymeleaf is a powerful template engine that can combine dynamic target business data with a pre-designed front-end UI layer. During the rendering process, Thymeleaf can fill the target business data into the corresponding position of the front-end UI layer according to its content and structure, and can also format and layout the target business data to present a more beautiful and readable page effect.

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

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

[0066] Redis (Remote Dictionary Server) is a high-performance in-memory database with fast data read and write speed and rich data structure. By caching common business data in Redis, the access speed of data can be greatly improved. When you need to access this data, you will first search in Redis. If the required data is found, it can be directly returned, avoiding time-consuming query operations from the database.

[0067] Furthermore, the Redis cache mechanism refers to a method of using the characteristics of the Redis database to store and manage frequently accessed data to improve data access speed and system performance.

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

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

[0070] Specifically, Redis, as an external cache, can store a large amount of common business data and share cached data between different systems and services. MyBatis's cache mechanism can cache database query results within the application to reduce database access pressure. Furthermore, by reasonably setting the cache expiration time and update strategy, you can ensure that the data in the cache is always up to date, improving the reliability and stability of the system.

[0071] Optionally, the data layer 14 is further configured to receive a plurality of target number-generating data transmitted by the business layer 13, and transmit the plurality of target number-generating data to a corresponding database for storage.

[0072] Specifically, after the data layer 14 receives the multiple target number-generating data transmitted by the business layer 13, it can first perform necessary processing and verification on the multiple target number-generating data, such as checking the integrity, accuracy and consistency of the data to ensure that the data complies with the storage requirements and business rules of the database and prevent invalid or erroneous data from entering the database.

[0073] Secondly, multiple target data can be transferred to the corresponding database for storage. During the storage process, the appropriate storage method and data model can be selected according to the type and structure of the corresponding database. For example, if it is a relational database, the data may need to be inserted or updated according to the table structure; if it is a NoSQL database, the appropriate collection or document can be selected for storage according to the characteristics of the data.

[0074] The test number-generating platform provided in this embodiment can automatically generate numbers and generate corresponding target number-generating data that meet the corresponding business application system according to the received initial business data set, business system requirements and business environment requirements at the business layer after the user inputs the initial business data set, business system requirements and business environment requirements at the front-end UI layer, achieving the so-called "one-click" fool-style number-generating, and the validity and correctness of the data reach 100%. Further, the corresponding business application system interface can be determined at the business layer according to the received business system requirements and business environment requirements, and the generated multiple target number-generating data can be sent to the corresponding target business application system through the business application system interface for automatic testing and automatic generation of corresponding business data, thereby improving the efficiency and accuracy of automatic testing and automatic data generation of the business application system. At the same time, 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 want is what you get", avoiding 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 repeated work. Furthermore, the initial business data returned by the target business application system can be converted into a format and rendered in a display layer before being displayed through a front-end UI layer for viewing by corresponding users. Therefore, by implementing the present invention, the platform structure is optimized, the process is simplified, redundancy is reduced, and the response speed is accelerated, thereby improving the overall performance and user experience of the test data generation platform. At the same time, the problems of low efficiency, high difficulty, and poor accuracy in traditional test data preparation are solved, thereby further improving the efficiency and accuracy of automatic testing.

[0075] In an optional embodiment, if Figure 2 As shown, the business layer 13 includes: an environment management unit 131, a number management unit 132 and a message processing unit 133.

[0076] By combining the environment management unit 131, the number generation management unit 132 and the message processing unit 133, the so-called "one-key" fool-style number generation 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 is used to determine system environment information based on business system requirements and business environment requirements, and send the system environment information to the number generation management unit 132.

[0078] Specifically, the environment management unit 131 is used to manage the application server information, database information, file server information and other information of different business environments of different business application systems. Therefore, when the user selects which business application system and each business environment to conduct business, i.e., to make a number, in the front-end UI layer 11, the environment management unit 131 can query the corresponding system environment information according to the selection of the front-end UI layer 11 and continue to communicate after assembling, and then when the communication is successful, the obtained system environment information is sent to the number management unit 132.

[0079] Secondly, the number 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 number generation management unit 132 is also used to generate numbers based on the initial business data set and the system environment information to obtain multiple initial number generation data, and send the multiple initial number generation data to the message processing unit 133.

[0080] Specifically, the number generation management unit 132 is used to manage each business application system interface API, number generation metadata, each business application system related data, etc. Therefore, the number generation management unit 132 can determine the corresponding business application system interface API in combination with the obtained system environment information.

[0081] Furthermore, the obtained initial business data set, system environment information and data for creating numbers, data related to each business application system, and other data may be combined and created.

[0082] The data generation metadata refers to the descriptive information about the data involved in the data generation process, which may include the definition and description of various key elements used to generate the target data generation data. For example, the source information of the data generation, i.e., the detailed description of the initial business data set, business system requirements and business environment requirements, and the format, scope, meaning, etc. of these data.

[0083] Furthermore, the determined business application system interface information and the multiple initial number-generating data obtained by number generation may 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, convert the format of multiple initial number-generating data to obtain multiple target number-generating data, and transmit the multiple target number-generating data to the target business application system through the business application system interface.

[0085] Specifically, when 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 identification, address, protocol, etc. contained in the business application system interface information.

[0086] After determining the service application system interface, the message processing unit 133 can establish communication with the corresponding target service application system through the service application system interface. The communication method can adopt various methods, such as data transmission, sending requests and receiving responses through network protocols.

[0087] At the same time, in the process of establishing communication, the message processing unit 133 also needs to ensure the stability and reliability of communication, that is, it may need to deal with various possible problems, such as network failures, data transmission errors, etc., to ensure that subsequent data can be accurately and timely transmitted to the target business application system.

[0088] Further, 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 formats, the message processing unit 133 can adjust the multiple initial number-generating data according to the specific format specifications of different business application systems, such as converting the data types of the multiple initial number-generating data or adjusting the arrangement order, field length, etc. of the multiple initial number-generating data.

[0089] Furthermore, the multiple target number-making data after format conversion are transmitted to the corresponding target business application system through the business application system interface. Through accurate format conversion, it can be ensured that the multiple target number-making data can be correctly identified and processed by the target business application system. In the data transmission process, some data verification and error handling mechanisms can be used to ensure that the data can reach the target business application system safely and reliably.

[0090] Further, when the target business application system receives multiple target number-generating data, it automatically simulates real user operations using the received multiple target number-generating data, that is, automatically tests and generates corresponding initial business data. The specific process refers to the specific functional description of the target business application system above, which will not be repeated here.

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

[0092] In an optional embodiment, if 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 the recorded multiple user operation information to the statistical unit 135.

[0094] Specifically, the database management unit 134 can record the user's operation information, such as the user's login time, visited pages, executed functions, input data, etc. By recording these detailed user operation information, the user's usage habits and needs can be better understood, which can provide a basis for subsequent statistical analysis.

[0095] Further, the database management unit 134 sends it to the statistics unit 135 .

[0096] Optionally, the statistical unit 135 is used to collect statistics on 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 transmit the log files to the log management unit 136 .

[0097] Specifically, the statistical unit 135 can collect statistics on the usage information of the front-end UI layer 11, the presentation layer 12 and the business layer 13, such as the users, the number of times, the time, etc., 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 file to the log management unit 136 for management. Furthermore, managing the log file through the log management unit 136 can facilitate the location and analysis of problems. For example, if the platform has abnormal behavior or errors, 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. The usage information recorded in the log, such as the user, number of times, time, etc., can help determine whether the problem is related to the operation 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 perform connection pool management on the local database and the database of any business application system.

[0100] Specifically, connection pool management can improve the efficiency of database access. When you need to interact with a local database or any business application system's database, you don't have to establish a new connection every time, but get an existing connection from the connection pool. This can greatly reduce the time overhead of connection establishment, especially in high concurrency situations, and can significantly improve the system's response speed.

[0101] Furthermore, connection pool management can also effectively manage the connection resources of the local database or any business application system database. By setting the maximum number of connections, minimum number of connections and other parameters of the connection pool, connection resources can be reasonably allocated according to actual needs to avoid excessive database load caused by too many connections, or insufficient connections affecting system performance.

[0102] Furthermore, connection pool management can also improve the stability and reliability of the platform. If a connection problem occurs, the connection pool can automatically recycle the connection and re-establish a new connection to ensure that the platform can continue to stably access the local database or the database of any business application system.

[0103] By performing connection pool management on 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 arranged reasonably, and the stability and reliability of the platform can be improved.

[0104] In an optional embodiment, if Figure 2 As shown, the business layer 13 further includes: a file management unit 137 for receiving and storing pictures or files generated by the number management unit 132.

[0105] Specifically, when the number generation management unit 132 generates numbers, various types of pictures and files may be generated, such as screenshots of data visualization charts, generated report documents, etc. These files are centrally stored in the file management unit 137, which can be conveniently managed and searched in a unified manner, avoiding confusion and difficulty in retrieval caused by files being scattered in different locations.

[0106] Furthermore, when the file management unit 137 is used to store the pictures or files generated by the number management unit 132, a suitable storage medium and storage method can be selected according to factors such as the type, size, and frequency of use of the pictures or files. For example, frequently accessed files can be stored on a high-speed storage device to increase access speed; infrequently used files can be compressed and stored or transferred to a low-cost storage device to save storage space.

[0107] Furthermore, when the file management unit 137 is used to store the pictures or files generated by the number management unit 132, various security measures can be taken to ensure the security of the stored pictures or files, such as access control, data encryption, etc. Furthermore, for important pictures or files, backup and recovery operations can be performed to ensure that they will not be lost when the file management unit 137 fails or an unexpected situation occurs.

[0108] The test number-making platform provided in this embodiment can use the environment management unit to query and determine the corresponding business system environment information in combination with the business system requirements and the business environment requirements, and then directly make numbers in the number-making management unit in combination with the obtained business system environment information and the initial business data set, which well solves the problems of low efficiency, high difficulty and poor accuracy in the preparation of traditional test data. Further, the number-making management unit manages the system interfaces of different business systems and sends the multiple target number-making data obtained by number-making to the target business application system corresponding to the system interface to realize the generation of final business data. Finally, the received initial business data is format-converted and transmitted to the display layer by the message processing unit, achieving the so-called "one-click" fool-style number-making, and the validity and correctness of the data reach 100%. At the same time, the use information of the front-end UI layer, the display layer and the business layer can be counted and a log file can be generated by combining the data management unit and the statistical unit, and then it can be managed by the log management unit, and the use of the test number-making platform can be fully understood, which provides support for enhancing the security and compliance of the test number-making platform.

[0109] In one example, if Figure 3 As shown, a one-click test data generation platform based on the "short, flat and fast" model is provided, including the front-end UI layer, display layer, business layer and data layer:

[0110] 1. The front-end UI layer allows users to input and display data: Design the front-end page, provide data input and output, and provide guidance for user operations and explain some rules.

[0111] 2. The presentation layer converts and transmits the front-end data to the business layer, and renders the data returned by the business layer through Thymeleaf and displays it to the front-end. Specifically, Ajax is used to connect the front and back, and Thymeleaf presets page templates to improve the response speed of input and output.

[0112] 3. The business layer includes environment management unit, number 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 each system. Users can choose which system and environment to create data in the front end. The back end queries the environment information through this unit according to the front end selection, and communicates with the back end after assembly;

[0114] (32) Number creation management unit: used to manage the system interface APIs, number creation metadata, system-related data, batch number creation data, and process number creation data according to scenarios and rules;

[0115] (33) Message processing unit: after establishing communication with the backend, it converts the number-generating data of the number-generating management unit into the format required by the backend and sends it to the backend through an API call, waits for 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 database of this system and each environment. This system records the user's operation information for statistics, analysis, and reporting. If there is no available interface or the interface processing preconditions are too many, the data is directly inserted into the application system database;

[0117] (35) File management unit: to store and manage the pictures and files generated during the number-generating process;

[0118] (36) Statistics unit: Count the number of people using each function, the number of times, the time, etc., 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 cache / storage management unit, which uses Redis and Mybatis cache mechanisms to cache commonly used data and improve system response. The number-generating data is stored in the corresponding database through the database connection pool.

[0121] This example provides a one-click number-making platform for testing based on the "short, flat and fast" model. Users select the corresponding scenario and environment on the front-end page, and the back-end implements data preparation by calling the interface or inserting data into the database, which reduces the error rate and significantly improves production efficiency. At the same time, user operation information is recorded, and through data statistical analysis, it is continuously optimized and upgraded to further improve production efficiency. Therefore, through the implementation of the present invention, through a series of standardized, componentized, modularized and unified service processing, users only need to select the environment on the front-end page, without having to understand the underlying logic of the system and the relationship between systems, they can meet the number-making services of different business scenarios and different environments. Furthermore, the fool-proof front-end page, clear and concise prompts and guidance, and extremely simple data input reduce the difficulty of operation, and the impact speed of seconds improves the quality and efficiency of number-making.

[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 of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0123] In this embodiment, a test number generation method is provided, which can be used in the business layer 13 in the test number generation platform 1 provided in the above embodiment of the present invention. Figure 4 is a flow chart of a test number-making method according to an embodiment of the present invention. Figure 4 As shown, the process includes the following steps:

[0124] Step S401, receiving an initial business data set, business system requirements and business environment requirements input by a user and transmitted by a front-end UI layer.

[0125] The specific process refers to the above functional description of the front-end UI layer 11 in the test data generation platform 1, and the description of the interaction process between the front-end UI layer 11 and the business layer 13, which will not be repeated here.

[0126] Step S402: Generate multiple target data based on the initial business data set, business system requirements and business environment requirements.

[0127] The specific process can refer to the above functional description of the business layer 13 in the test data generation platform 1, which will not be repeated here.

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

[0129] The specific process can refer to the above functional description of the business layer 13 in the test data generation platform 1, which will not be repeated here.

[0130] Step S404: transmitting the plurality of target number-generating 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 plurality of target number-generating data.

[0131] The specific process can refer to the above-mentioned functional description 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, which will not be repeated here.

[0132] Step S405: receiving the initial business data transmitted by the target business application system, and converting the format of the initial business data to obtain target business data.

[0133] The specific process can refer to the above-mentioned functional description of the business layer 13 in the test data generation platform 1, and the description of the interaction process between the business layer 13 and the target business application system, which 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 then presents 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, which will not be repeated here.

[0136] In some optional implementations, the test number generation method further includes: transmitting the plurality of target number generation data to a corresponding database through a data layer for storage.

[0137] The specific process can 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 performs test data generation through the business layer in the test data generation platform, so that 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 want is what you get", avoiding 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] In the present embodiment, a test number generating device is also provided, which is used to implement the above-mentioned embodiment and preferred implementation mode, and the descriptions which have been made are omitted. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

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

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

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

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

[0144] The transmission module 504 is used to transmit the multiple target number-generating 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 number-generating data.

[0145] The receiving and converting 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 displaying module 506 is used to send the target business data to the display layer, so that the display layer renders the target business data and then displays it to the corresponding user through the front-end UI layer.

[0147] In some optional embodiments, the device further comprises:

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

[0149] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

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

[0151] The embodiment of the present invention also provides a computer device having the above Figure 5 The test number-making device shown.

[0152] See also Figure 6 , Figure 6 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 6 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 A processor 10 is taken as an example.

[0153] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0154] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.

[0155] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

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

[0157] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0158] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0159] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

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

Claims

1. A test number-making platform, characterized in that: Used in any business application system; The test data generation platform includes: front-end UI layer, display layer and business layer; The front-end UI layer is used to obtain the initial business data set, business system requirements and business environment requirements input by the user, and transmit the initial business data set, the business system requirements and the business environment requirements to the business layer through the presentation layer; The business layer is used to generate data based on the initial business data set, the business system requirements and the business environment requirements to obtain multiple target generated data, and to determine the corresponding business application system interface based on the business system requirements and the business environment requirements; The business layer is further used to transmit the multiple target number-generating data to the corresponding target business application system through the business application system interface, so that the target business application system performs a test based on the multiple target number-generating data and generates initial business data; The business layer is further 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 present it to the corresponding user through the front-end UI layer.

2. The test number-generating platform according to claim 1, characterized in that: The business layer includes: an environment management unit, a number 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 number generation management unit; The number 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 number generation management unit is further used to generate numbers based on the initial business data set and the system environment information to obtain multiple initial number generation data, and send the multiple initial number generation 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 number-generating data to obtain the multiple target number-generating data, and transmit the multiple target number-generating data to the target business application system through the business application system interface; The message processing unit is further used 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.

3. The test number-generating platform according to claim 2, 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 the recorded multiple user operation information to the statistical unit; The statistical unit is used to collect statistics on the usage information of the front-end UI layer, the presentation layer and the business layer based on the user operation information and generate a log file, and transmit the log file to the log management unit; The log management unit is used to manage the log management unit.

4. The test number-generating platform according to claim 3, characterized in that: The database management unit is also used to manage the connection pools of the local database and the database of any business application system.

5. The test number-generating platform according to claim 2, characterized in that: The business layer also includes: The file management unit is used to receive and store the pictures or files generated by the number management unit.

6. The test number-generating platform according to claim 1, characterized in that: The test number-making platform also includes: The data layer is used to cache common business data using Redis and Mybatis cache mechanisms; The data layer is further used to receive the multiple target number-generating data transmitted by the business layer, and transmit the multiple target number-generating data to a corresponding database for storage.

7. A test number generation method, characterized in that: Used for the business layer in the test number-making platform according to any one of claims 1 to 6; the method comprises: Receive the initial business data set, business system requirements, and business environment requirements input by users transmitted by the front-end UI layer; Based on the initial business data set, the business system requirements and the business environment requirements, a plurality of target data are generated; Determine the corresponding business application system interface based on the business system requirements and the business environment requirements; Transmitting the plurality of target number-generating data to a 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 plurality of target number-generating data; Receiving the initial business data transmitted by the target business application system, and converting the format of the initial business data to obtain target business data; The target business data is sent to the presentation layer, so that the presentation layer renders the target business data and then presents it to the corresponding user through the front-end UI layer.

8. The method according to claim 7, characterized in that The method further comprises: The plurality of target number-generating data are transmitted to a corresponding database through a data layer for storage.

9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the test number generation method according to claim 7 or 8 by executing the computer instructions.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the test number generation method according to claim 7 or 8.

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

  • Data generation method, business application test method and related equipment thereof

    CN114281707A

  • Data creation system and data creation method

    CN118093424A