Financial futures software development testing method and system based on environment and data simulation
By building and updating the template machine, verifying its component connectivity, and pushing the template machine to the development platform, the problem of high maintenance costs and numerous versions of the financial futures software development and testing environment is solved, and the effect of quickly generating basic test data and improving development and testing efficiency is achieved.
Patent Information
- Application Number
- CN202411878310.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-19
- Publication Date
- 2025-04-11
AI Technical Summary
The financial futures software development and testing environment has high maintenance costs, and the numerous versions have led to the lack of dependent versions in the test environment, which reduces the development and testing efficiency.
By building and updating template machines, running the automated verification use case set to verify the connectivity of template machines components, and push the template machines to the development platform to create a test environment. In view of data security and system operation rules in the financial futures industry, the security baseline is strengthened, and the test environment is deleted after the development and testing is completed to release resources.
It realizes the rapid generation of basic test data, reduces the time spent by developers and testers on maintaining the test environment, improves the efficiency of development and testing, and ensures the effectiveness of the test environment through automated verification.
Smart Images

Figure CN119807079A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of application software testing, and in particular to a financial futures software development testing method and system based on environment and data simulation. Background Art
[0002] Since financial futures companies have their own online production environments, some companies may have two online environments, production and simulation. The versions are frequently changed on a daily basis and there are many versions. The workload of maintaining the online versions in the development and testing environment is large. There are many developers and testers who only maintain one test environment, which results in high maintenance costs and the test environment may lack dependent versions, resulting in reduced development and testing efficiency.
[0003] Therefore, it is particularly important to implement a development and testing environment that can be built on demand, destroyed after use, and in which basic test data can be quickly generated. This can greatly reduce the time spent by development and test personnel in maintaining the basic test environment, which is conducive to improving the efficiency of development and test personnel and focusing more on software development and software quality itself. Summary of the invention
[0004] The purpose of the present invention is to overcome the defects of the above-mentioned prior art that there are many software versions and the workload of developing and testing the environment and maintaining the online versions is large, and to provide a financial futures software development and testing method and system based on environment and data simulation.
[0005] The purpose of the present invention can be achieved by the following technical solutions:
[0006] A financial futures software development and testing method based on environment and basic data simulation includes the following steps:
[0007] According to the system online version of the software to be developed and tested and the basic financial futures data, the corresponding template machine is built and updated, and the template machine automated verification use case set is run to verify the connectivity between the various components of the template machine. The verified template mechanism is used as a template machine image and pushed to various development platforms;
[0008] Each development platform creates a test environment based on the latest template machine image to carry out development and testing work; in view of the data security and system operation rules of the financial futures industry, if there is a need to strengthen the security baseline, batch operations are performed on the created test environment to update the corresponding security baseline; after the development and testing work is completed, the test environment is deleted to release resources.
[0009] Furthermore, the constructed template machine includes a production template machine and a simulation template machine. The production template machine is used for updating production applications, maintaining basic financial futures data, and maintaining new products; the simulation template machine is used for updating simulation applications, maintaining basic financial futures data, and maintaining new simulation products.
[0010] Furthermore, the update mode of the template machine image includes regular update and emergency update, and the regular update process includes the following steps:
[0011] S101: Determine whether the online version of the software to be developed and tested is a monthly version. If so, execute step S102; otherwise, execute step S104;
[0012] S102: Obtain a list of online versions, and deploy each online version to the template machine;
[0013] S103: Perform special steps after the monthly version is launched on each development platform and verify the integrity of the special steps; strengthen the security baseline of the template machine based on the data security and system operation rules of the financial futures industry.
[0014] S104: Run the template machine automated verification use case set to verify the connectivity of multiple core systems such as the trading system and the settlement core system on the template machine, as well as whether the basic functions are normal;
[0015] S105: The verified template mechanism is used as a template machine image and pushed to various development platforms.
[0016] Furthermore, the emergency update process includes the following steps:
[0017] S111: Obtain template machine update requirements;
[0018] S112: Evaluate and determine whether the template machine update requirement is reasonable. If so, execute step S113; otherwise, generate an unreasonable feedback result;
[0019] S114: completing the operation steps corresponding to the template machine update requirements on the corresponding template machine, and verifying the correctness of the operation; strengthening the security baseline of the template machine in accordance with the data security and system operation rules of the financial futures industry;
[0020] S115: For the template machine that has passed the operation verification, run the template machine automated verification use case set to verify the connectivity of multiple core systems such as the transaction system and the settlement core system on the template machine, and whether the basic functions are normal;
[0021] S116: The verified template mechanism is used as a template machine image and pushed to various development platforms.
[0022] Furthermore, the process of each development platform performing the development and testing work includes:
[0023] S201: Determine whether the available memory and resources of each development platform are sufficient, if so, execute step S202; otherwise, execute step S202 after coordinating the memory and resources;
[0024] S202: Select the latest template machine image and create a test environment using the template machine image;
[0025] S203: Start developing and testing work in the created test environment;
[0026] S204: After the development and testing work is completed, the corresponding test environment can be deleted to release resources.
[0027] Furthermore, the process of creating a test environment in step S202 also includes:
[0028] S211: Determine whether the test environment to be created is configured with a container cloud environment, if so, execute step S213; otherwise, execute step S212;
[0029] S212: Create a basic test environment based on the template machine image;
[0030] S213: Create a development and testing environment with a container environment on the container cloud platform. After the container environment is created, modify the basic settings on the corresponding template machine in the container environment, including changing the IP addresses in all basic applications on the template machine to real machine IP addresses, and configuring corresponding container-related information in each application of the template machine to ensure connectivity between container applications on the template machine.
[0031] Furthermore, the template machine is simultaneously deployed with four databases, namely, Oracle database, MySQL database, Kingbase database and GBase, for generating basic test data for corresponding industries, and there is a business logic relationship between the basic data in the four databases to maintain the continuity and integrity of the basic data and business of financial futures.
[0032] Furthermore, the financial futures software development and testing method is used for financial futures software development and testing in the financial futures industry, and the test data includes basic data: member data, customer data, contract data and position data, and also includes personalized test data: treasury bond delivery;
[0033] The template machine also has built-in:
[0034] The automated trading day switching tool switches trading days by calling the stored procedure for switching trading day status, so as to always keep the trading day of the template machine synchronized with the online environment.
[0035] The trading system automatic order placing tool encapsulates the external interface of the financial futures industry trading system, which is used to realize the self-service order placing of the trading system and provide the position data of designated members and customers;
[0036] Million-customer batch account opening tool, used for batch account opening for customers, provides personalized data for development and testing personnel to conduct performance testing;
[0037] The delivery simulation tool simulates the rolling delivery and centralized delivery process of treasury bond futures products during the delivery period, and realizes the rapid and automatic generation of test data for the delivery process.
[0038] The above test tools also share data to help development testers quickly generate basic data. The details are as follows:
[0039] (1) Use the automated trading day switching tool to complete the switching of financial futures trading days and switch the trading day of the template machine to the required trading status;
[0040] (2) After the automatic order placing tool of the trading system obtains the above-mentioned transaction status, it starts to place orders automatically and completes the automatic establishment of the position data of the designated members and customers;
[0041] (3) If the development and testing personnel have the need to open accounts in batches, they can use the million-customer batch account opening tool to open accounts. The resulting customer data can be used as input for the trading system's automatic order placement tool.
[0042] (4) When the trading day switches to the Treasury bond delivery day, use the delivery simulation tool to provide development and testing personnel with rolling delivery and centralized delivery data of Treasury bond futures products, enrich basic test data, and improve development and testing efficiency.
[0043] Furthermore, the accuracy and validity of the template machine data are continuously maintained through a variety of methods. The specific process is as follows:
[0044] S221: Obtain the demand for the template machine to import online production data;
[0045] S222: Each department reviews whether the above data import requirements are reasonable;
[0046] S223: If the demand is unreasonable, then: send an email to the corresponding department; if the demand is reasonable, then: go to S224;
[0047] S224: Based on the provided data import script, the security department evaluates whether the script has security risks; if there are security risks, then: feedback is given and the data import script is required to be re-provided; if there are no security risks, then: the process goes to S225;
[0048] S225: Use the above data import script to obtain online production data and import it into the corresponding four databases;
[0049] S226: Verify the business logic relationship between the imported desensitized data to ensure the business continuity and integrity of the desensitized data between Oracle, MySQL, PostgreSQL and gbase on the template machine.
[0050] The Oracle and MySQL databases regularly obtain the real online data table structure through the above process, and compare the differences between the template machine and the online data table structure in batches through the automated comparison tool;
[0051] The kingbase database and gbase database are used to import online real desensitized data into the template machine through the above process to maintain the integrity of the basic data in the database.
[0052] The present invention also provides a financial futures software development and testing system based on environment and basic data simulation, including a memory and a processor, wherein the memory stores a computer program, and the processor calls the computer program to execute the steps of the method described above.
[0053] Compared with the prior art, the present invention has the following advantages:
[0054] (1) This embodiment proposes to establish and maintain two sets of template machines, corresponding to the online production and simulation environments respectively, so as to achieve the update and iteration of the online version of the test software to be developed, generate a continuously updated template machine image, and build a test environment;
[0055] The present invention ensures the continuous availability of the test basic environment by continuously maintaining and pushing the latest image of the template machine, thereby providing a basis for the rapid creation of the test environment, and realizing a development and testing environment that is built on demand and destroyed when used up, and in which basic test data can be quickly generated.
[0056] (2) When verifying the validity of the template machine, the traditional method is to manually verify the validity of each system and component. The verification scope is small, the labor cost is high, and the container omits the verification of important business, making the entire test environment unusable.
[0057] In the process of constructing the template machine of the present invention, the connectivity between the various components and systems of the template machine is verified by running the template machine automatic verification use case set, ensuring that the core systems such as the trading system, settlement management system, and exchange management system on the template machine are available, and the core interfaces of the above systems are interconnected and available. By verifying the basic business of multiple trading days such as ordinary trading days, stock index delivery days, and treasury bond delivery days, the basic functions of the financial futures system are verified to be normal in many aspects.
[0058] By establishing an automated use case set for the template machine, the present invention can quickly verify whether the core system on the template machine is available and whether the core components are connected. The verification speed is fast, which ensures the effectiveness of the template machine and creates the prerequisite for the rapid creation of a development and testing environment.
[0059] (3) Traditional system development and testing is inefficient due to incomplete basic data.
[0060] The basic data in the template machine proposed by the present invention includes financial futures data such as members, customers, contracts, and positions. These basic data can be used by all development and testing personnel as the template machine image is continuously updated, reducing the process of development and testing personnel creating basic data and greatly improving development and testing efficiency.
[0061] (4) The template machine of the present invention can provide a variety of different testing tools according to the needs of development and testing personnel, and provide personalized test data for development and testing personnel. The template machine has a built-in trading system automatic order placing tool, which can realize the self-service and rapid order placing of the trading system, and provide the position data of designated members and customers. At the same time, it contains a tool for batch opening of accounts for millions of customers, which can provide a large number of customer account openings in a short period of time, and provide data support for performance testing by development and testing personnel. By simulating the rolling delivery and centralized delivery process of treasury bond futures products, the delivery process data is automatically generated, including the automatic delivery matching and delivery pairing, providing developers with delivery-specific data, and realizing the automatic generation of personalized data.
[0062] (5) When creating a template machine test environment, the present invention also realizes a one-click connection to a container environment. By creating a container environment, the configuration information of the basic application components on the original template machine can be modified in batches, providing a convenient development and testing environment for development and testing personnel. The template machine also provides a one-click configuration recovery script, which can restore the modified basic information on the template machine with one click, providing convenience for restoring the initial state of the template machine and facilitating development and testing personnel to quickly restore the environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1 A flowchart of a financial futures software development and testing method based on environment and basic data simulation provided in an embodiment of the present invention;
[0064] Figure 2 A schematic diagram of the classification and introduction of a template machine provided in an embodiment of the present invention;
[0065] Figure 3 A schematic diagram of a routine update image process of a template machine provided in an embodiment of the present invention;
[0066] Figure 4A schematic diagram of a template machine special requirement image update provided in an embodiment of the present invention;
[0067] Figure 5 A basic test environment quickly creates a flow chart provided in an embodiment of the present invention;
[0068] Figure 6 A schematic diagram of a template machine link container environment provided in an embodiment of the present invention;
[0069] Figure 7 A schematic diagram of database types supported by a template machine provided in an embodiment of the present invention;
[0070] Figure 8 A schematic diagram of a process using real data from an online production environment provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0071] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions 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. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0072] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0073] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0074] In the description of the present invention, it should be noted that:
[0075] The development and testing environment is the basic environment necessary for the software development and testing process. The latest version of the online system and the basic data required in the development and testing process are deployed in this environment. Development and testing personnel can use this basic environment to develop and test software.
[0076] Template machine image: The initial environment we maintain is called a template machine. It is a basic template. By continuously maintaining the template machine, we ensure that the deployed version is consistent with the online version and the basic data remains valid. We make the template machine into an image for use by all development and testing personnel. This image is called a template machine image.
[0077] The production template machine corresponds to the online production environment. The version maintained in the template machine is consistent with the online production environment. The basic data, including the financial futures business carried out and the types of new products launched, are consistent with the online production environment.
[0078] The simulation template machine corresponds to the online simulation environment. The version maintained in the template machine is consistent with the online simulation environment. The basic data, including the financial futures business carried out and the types of new products launched, are consistent with the online simulation environment.
[0079] Openstack platform: a platform that can provide various cloud services such as Iaas, Paas, Saas, etc., providing support in computing, storage, and networking, and providing users with the required IT resources.
[0080] Cloud management platform: a product for managing public clouds, private clouds and hybrid clouds. It mainly manages cloud resources, ensures cloud security, reduces cloud costs and improves automated operation and maintenance capabilities.
[0081] Trading system, settlement management system, exchange management system: The core trading and clearing systems within a financial futures exchange are important core systems of the exchange.
[0082] Member: A corporate entity or economic organization that has the qualifications to trade or settle in financial futures transactions.
[0083] Clients: The group that actually participates in financial futures transactions, including individual investors, institutional investors, etc.
[0084] Contract: A standardized contract traded in financial markets that allows traders to buy or sell a financial asset at a predetermined price on a specific date in the future.
[0085] Position: The number of open contracts held by an investor at a specific point in time.
[0086] Trading Day: A normal working day when futures contracts can be normally bought and sold.
[0087] Example 1
[0088] like Figure 1 As shown, this embodiment provides a financial futures software development and testing method based on environment and basic data simulation, comprising the following steps:
[0089] S1: Build and update the corresponding template machine according to the system online version and basic data of the software to be developed and tested, and run the template machine automated verification use case set to verify the connectivity between the various components of the template machine. The verified template mechanism is used as a template machine image and pushed to various development platforms;
[0090] S2: Each development platform creates a test environment based on the latest template machine image to carry out development and testing work; in view of the data security and system operation rules of the financial futures industry, if there is a need to strengthen the security baseline, batch operations are performed on the created test environment to update the corresponding security baseline; after the development and testing work is completed, the test environment is deleted to release resources.
[0091] This solution establishes and maintains two sets of template machines, corresponding to the online production and simulation environments respectively. The system online versions and basic data in these two environments are consistent with the online ones. As the online versions are updated and iterated, the versions in the corresponding generated test environments are also continuously updated.
[0092] Specifically, Figure 2 As shown, the constructed template machines include a production template machine and a simulation template machine. The production template machine is used for updating production applications, maintaining basic financial futures data, and maintaining new products; the simulation template machine is used for updating simulation applications, maintaining basic financial futures data, and maintaining new simulation products.
[0093] The following is a detailed description of each step of this scheme.
[0094] 1. Template machine image update mechanism
[0095] The prerequisite for the rapid creation of a development and test environment is the continued validity of the version and basic data on the template machine. By continuously maintaining and pushing the latest image of the template machine, the test basic environment is continuously available, thus providing a basis for the rapid creation of the test environment.
[0096] The image update push of the template machine is divided into regular update and emergency update, and the processes are as follows:
[0097] like Figure 3 As shown, the general update process includes the following steps:
[0098] S101: Determine whether the online version of the software to be developed and tested is a monthly version. If so, execute step S102; if not, it indicates that this version is a rapid delivery version and the version update needs to be completed within one day, and turn to step S104;
[0099] S102: Automatically obtain a list of online versions and deploy each online version to the template machine;
[0100] S103: Contact the contact persons of each development department to perform special steps after the monthly version is launched this week, and verify the integrity of the special steps; strengthen the security baseline of the template machine based on the data security and system operation rules of the financial futures industry.
[0101] S104: Run the template machine automated verification use case set to verify the connectivity between components and systems such as the trading system and the settlement core system on the template machine, ensure that the core systems such as the trading system, settlement management system, and exchange management system on the template machine are available, and the core interfaces of the above systems are interconnected and available; verify the basic business of multiple trading days such as ordinary trading days, stock index delivery days, and treasury bond delivery days, and verify that the basic functions of the financial futures system are normal in many aspects;
[0102] S105: The verified template mechanism is used as a template machine image and uploaded to the openstack platform, and the latest template machine image is pushed to the cloud management platform through the platform.
[0103] like Figure 4 As shown in the figure, each development department needs to urgently modify certain configurations on the template machine or deploy an emergency online version due to development and testing needs. The following process should be followed:
[0104] S111: Obtain template machine update requirements, which can be obtained through email or other means;
[0105] S112: Evaluate and judge whether the template machine update requirement is reasonable. If it is reasonable, execute step S113; otherwise, generate an unreasonable feedback result and notify the corresponding department by email or other means;
[0106] S114: Complete the operation steps corresponding to the template machine update requirements on the corresponding template machine and verify the correctness of the operation; strengthen the security baseline of the template machine in accordance with the data security and system operation rules of the financial futures industry.
[0107] S115: For the template machine that has passed the operation verification, run the template machine automated verification use case set to verify the connectivity between the transaction system on the template machine and the settlement core system, and whether the basic functions are normal;
[0108] S116: The verified template mechanism is used as a template machine image and pushed to various development platforms, such as by sending feedback to the corresponding department via email.
[0109] 2. Rapid creation of template machines and interconnection with container clouds
[0110] Based on the latest template machine image, each development department can quickly create a basic test environment that is ready for use and destroyed after use. Figure 5 As shown, the specific process is as follows:
[0111] S201: Determine whether the available memory and resources of each development platform are sufficient, if so, execute step S202; otherwise, execute step S202 after coordinating the memory and resources;
[0112] S202: Select the latest template machine image and create a test environment using the template machine image;
[0113] S203: Start developing and testing work in the created test environment;
[0114] S204: After the development and testing work is completed, the corresponding test environment can be deleted to release resources.
[0115] like Figure 6 As shown in the figure, in addition to the non-container development and testing environment, the development and testing environment with the container environment can also be created. By creating a container environment on the container platform, the basic configuration on the corresponding template machine can be modified with one click, including batch modification of the IP addresses in all basic applications on the template machine to the real machine IP addresses, and configuration of the corresponding container-related information in each application of the template machine, so that development and testing personnel can easily create a template machine with a container application environment, realize the efficient connection between the template machine and the container environment, and enrich the content of the development and testing environment.
[0116] The corresponding process is as follows:
[0117] S211: Determine whether the test environment to be created is configured with a container environment, if so, execute step S213; otherwise, execute step S212;
[0118] S212: Create a basic test environment based on the template machine image;
[0119] S213: Create a development and testing environment with a container environment on the container platform. After the container environment is created, modify the basic settings on the corresponding template machine in the container environment, including changing the IP addresses in all basic applications on the template machine to the real machine IP addresses, and configuring corresponding container-related information in each application of the template machine to ensure connectivity between container applications on the template machine.
[0120] At the same time, in order to efficiently restore the application configuration on the template machine, the restoration tool on the template machine was executed to restore all the configurations of the basic applications on the template machine with one click; the database rapid backup and recovery script was used to quickly restore the four databases of Oracle, MySQL, Kingbase and GBase. Through this method, all the configurations on the template machine were restored to the initial state, making it convenient for subsequent development and testing personnel to continue to use the environment, thus achieving efficient use of the development and testing environment. There is a business logic relationship between the basic data in the four databases to maintain the continuity and integrity of the basic data and business of financial futures.
[0121] 3. The template machine supports four databases to achieve rapid generation of basic data
[0122] like Figure 7As shown, the template machine is deployed with an Oracle database, a MySQL database, a Registry database, and a GBase database. In this embodiment, according to the differences between online simulation and production, specific test data for the financial futures industry are generated in the simulation template machine and the production template machine respectively, including basic data such as members, customers, contracts, and positions.
[0123] The template machine also has built-in:
[0124] The automated trading day switching tool can quickly switch trading days by calling the stored procedure of switching trading day status, and always keep the trading day of the template machine and the online environment synchronized; at the same time, by simulating customer transactions, specific members and customers can have designated position data.
[0125] By continuously maintaining the basic test data, the template machine forms a set of data that can be used for development and testing, which is convenient for developers and testers to carry out software development and testing. Developers and testers do not need to manually create data themselves, which greatly improves the efficiency of development and testing.
[0126] 4. The template machine has built-in rich testing tools to provide personalized test data
[0127] Preferably, the template machine has a built-in trading system automatic order placing tool, which encapsulates the external interface of the financial futures industry trading system, can realize self-service order placing in the trading system, and provide the position data of designated members and customers;
[0128] The template machine has a built-in tool for opening accounts in batches of millions of customers, which supports rapid account opening in a short period of time, provides rich personalized data for development and testing personnel, and provides personalized data for non-functional tests such as performance testing;
[0129] The template machine has a built-in delivery simulation tool, which simulates the rolling delivery and centralized delivery process of treasury bond futures products during the delivery period, and realizes the automatic generation of delivery process data, including automatic delivery matching and delivery pairing, providing developers with delivery-specific data and realizing the automatic generation of personalized data.
[0130] The above test tools can share data to help development testers quickly generate basic data. The details are as follows:
[0131] (1) The automatic trading day switching tool can be used to switch the trading day of financial futures and switch the trading day of the template machine to the required trading status;
[0132] (2) After the automatic order placing tool of the trading system obtains the above-mentioned transaction status, it starts to place orders automatically and completes the automatic establishment of the position data of the designated members and customers;
[0133] (3) If the development and testing personnel have the need to open accounts in batches, they can use the million-customer batch account opening tool to open accounts. The resulting customer data can be used as input for the trading system's automatic order placement tool;
[0134] (4) When the trading day switches to the Treasury bond delivery day, the delivery simulation tool can be used to provide development and testing personnel with rolling delivery and centralized delivery data of Treasury bond futures products, enrich basic test data, and improve development and testing efficiency.
[0135] 5. Ensure the accuracy and validity of basic data in the development and testing environment in a variety of ways
[0136] At present, a set of processes using real data from the online production environment has been formed to continuously maintain the accuracy and effectiveness of the template machine data through various means. Figure 8 , the specific process is as follows:
[0137] S221: Obtain the demand for the template machine to import online production data;
[0138] S222: Each department reviews whether the above data import requirements are reasonable;
[0139] S223: If the demand is unreasonable, then: send an email to the corresponding department; if the demand is reasonable, then: go to S224;
[0140] S224: Based on the provided data import script, the security department evaluates whether the script has security risks; if there are security risks, then: feedback is given and the data import script is required to be re-provided; if there are no security risks, then: the process goes to S225;
[0141] S225: Use the above data acquisition script to obtain online production data and import it into the corresponding four databases.
[0142] S226: Verify the business logic relationship between the imported desensitized data to ensure the business continuity and integrity of the desensitized data between Oracle, MySQL, PostgreSQL and gbase on the template machine.
[0143] For Oracle and MySQL databases in the development and testing environment, the above process is used to obtain the real online data table structure, and the differences between the development and testing environment and the online data table structure are compared in batches using an automated comparison tool;
[0144] For the kingbase and gbase databases, the above process is used to regularly import real online desensitized data into the development and testing environment to ensure the accuracy and effectiveness of the data in the development and testing environment.
[0145] Example 2
[0146] This embodiment also provides a financial futures software development and testing system based on environment and basic data simulation, including a memory and a processor, the memory stores a computer program, and the processor calls the computer program to execute the steps of the financial futures software development and testing method based on environment and basic data simulation as in the embodiment.
[0147] The preferred specific embodiments of the present invention are described in detail above. It should be understood that a person skilled in the art can make many modifications and changes based on the concept of the present invention without creative work. Therefore, any technical solution that can be obtained by a person skilled in the art through logical analysis, reasoning or limited experiments based on the concept of the present invention on the basis of the prior art should be within the scope of protection determined by the claims.
Claims
1. A financial futures software development and testing method based on environment and basic data simulation, characterized in that: The following steps are involved: According to the system online version of the software to be developed and tested and the basic financial futures data, the corresponding template machine is built and updated, and the template machine automated verification use case set is run to verify the connectivity between the various components of the template machine. The verified template mechanism is used as a template machine image and pushed to various development platforms; Each development platform creates a test environment based on the latest template machine image to carry out development and testing work; In view of the data security and system operation rules of the financial futures industry, if there is a need to strengthen the security baseline, batch operations are performed on the created test environment to update the corresponding security baseline; After the development and testing work is completed, delete the test environment to release resources.
2. A financial futures software development and testing method based on environment and basic data simulation according to claim 1, characterized in that: The constructed template machine includes a production template machine and a simulation template machine. The production template machine is used for updating production applications, maintaining basic financial futures data, and maintaining new products; the simulation template machine is used for updating simulation applications, maintaining basic financial futures data, and maintaining new simulation products.
3. A financial futures software development and testing method based on environment and basic data simulation according to claim 1, characterized in that: The updating method of the template machine image includes regular updating and emergency updating. The regular updating process includes the following steps: S101: Determine whether the online version of the software to be developed and tested is a monthly version. If so, execute step S102; otherwise, execute step S104; S102: Obtain a list of online versions, and deploy each online version to the template machine; S103: Perform special steps after the monthly version is launched on each development platform and verify the integrity of the special steps; strengthen the security baseline of the template machine based on the data security and system operation rules of the financial futures industry; S104: Run the template machine automated verification use case set to verify the connectivity between the trading system on the template machine and the settlement core system, and whether the basic functions are normal; S105: The verified template mechanism is used as a template machine image and pushed to various development platforms.
4. A financial futures software development and testing method based on environment and basic data simulation according to claim 3, characterized in that: The emergency update process includes the following steps: S111: Obtain template machine update requirements; S112: Evaluate and determine whether the template machine update requirement is reasonable. If so, execute step S113; otherwise, generate an unreasonable feedback result; S114: completing the operation steps corresponding to the template machine update requirements on the corresponding template machine, and verifying the correctness of the operation; strengthening the security baseline of the template machine in accordance with the data security and system operation rules of the financial futures industry; S115: For the template machine that has passed the operation verification, run the template machine automated verification use case set to verify the connectivity between the transaction system on the template machine and the settlement core system, and whether the basic functions are normal; S116: The verified template mechanism is used as a template machine image and pushed to various development platforms.
5. The financial futures software development and testing method based on environment and basic data simulation according to claim 1 is characterized in that: The process of developing and testing the above-mentioned work on each development platform includes: S201: Determine whether the available memory and resources of each development platform are sufficient, if so, execute step S202; otherwise, execute step S202 after coordinating the memory and resources; S202: Select the latest template machine image and create a test environment using the template machine image; S203: Start developing and testing work in the created test environment; S204: After the development and testing work is completed, the corresponding test environment can be deleted to release resources.
6. A financial futures software development and testing method based on environment and basic data simulation according to claim 5, characterized in that: The process of creating a test environment in step S202 also includes: S211: Determine whether the test environment to be created is configured with a container cloud environment, if so, execute step S213; otherwise, execute step S212; S212: Create a basic test environment based on the template machine image; S213: Create a development and testing environment with a container environment on the container cloud platform. After the container environment is created, modify the basic settings on the corresponding template machine in the container environment, including changing the IP addresses in all basic applications on the template machine to real machine IP addresses, and configuring corresponding container-related information in each application of the template machine to ensure connectivity between container applications on the template machine.
7. The financial futures software development and testing method based on environment and basic data simulation according to claim 1 is characterized in that: The template machine is deployed with four databases, namely, Oracle database, MySQL database, Kingbase database and GBase, for generating basic test data for corresponding industries. There is a business logic relationship between the basic data in the four databases to maintain the continuity and integrity of the basic data and business of financial futures.
8. A financial futures software development and testing method based on environment and basic data simulation according to claim 7, characterized in that: The financial futures software development and testing method is used for financial futures software development and testing in the financial futures industry. The test data includes basic data: member data, customer data, contract data and position data, and also includes personalized test data: treasury bond delivery data; The template machine also has built-in: The automated trading day switching tool switches trading days by calling the stored procedure for switching trading day status, so as to always keep the trading day of the template machine synchronized with the online environment. The trading system automatic order placing tool encapsulates the external interface of the financial futures industry trading system, which is used to realize the self-service order placing of the trading system and provide the position data of designated members and customers; Million-customer batch account opening tool, used for batch account opening for customers, provides personalized data for development and testing personnel to conduct performance testing; The delivery simulation tool simulates the rolling delivery and centralized delivery process of treasury bond futures products during the delivery period, and realizes the rapid and automatic generation of test data for the delivery process; The above test tools also share data to help development testers quickly generate basic data. The details are as follows: (1) Use the automated trading day switching tool to complete the switching of financial futures trading days and switch the trading day of the template machine to the required trading status; (2) After the automatic order placing tool of the trading system obtains the above-mentioned transaction status, it starts to place orders automatically and completes the automatic establishment of the position data of the designated members and customers; (3) If the development and testing personnel have the need to open accounts in batches, they can use the million-customer batch account opening tool to open accounts. The resulting customer data can be used as input for the trading system's automatic order placement tool. (4) When the trading day switches to the Treasury bond delivery day, use the delivery simulation tool to provide development and testing personnel with rolling delivery and centralized delivery data of Treasury bond futures products, enrich basic test data, and improve development and testing efficiency.
9. The financial futures software development and testing method based on environment and basic data simulation according to claim 7 is characterized in that: The accuracy and validity of the template machine data are continuously maintained through various means. The specific process is as follows: S221: Obtain the demand for the template machine to import online production data; S222: Each department reviews whether the above data import requirements are reasonable; S223: If the demand is unreasonable, then: send an email to the corresponding department; If the demand is reasonable, then: go to S224; S224: Based on the provided data import script, the security department evaluates whether the script has security risks; if there are security risks, then: feedback is given and the data import script is required to be re-provided; if there are no security risks, then: the process goes to S225; S225: Use the above data import script to obtain online production data and import it into the corresponding four databases; S226: Verify the business logic relationship between the imported desensitized data to ensure the business continuity and integrity of the desensitized data between Oracle, MySQL, PostgreSQL and gbase on the template machine; The Oracle and MySQL databases regularly obtain the real online data table structure through the above process, and compare the differences between the template machine and the online data table structure in batches through the automated comparison tool; The kingbase database and gbase database are used to import online real desensitized data into the template machine through the above process to maintain the integrity of the basic data in the database.
10. A financial futures software development and testing system based on environment and data simulation, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the processor calls the computer program to execute the steps of any one of the methods according to claims 1 to 9.