Creation and operation method of OTX variable system
By building the database numeric table, collection and manager of the OTX variable system, the problem of data management in the operation of OTX test sequence is solved, and the efficient management and performance improvement of the system is achieved.
Patent Information
- Application Number
- CN202411677320.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-21
- Publication Date
- 2025-03-11
AI Technical Summary
The prior art lacks a mature OTX variable system to run OTX test sequences, resulting in the inability to effectively manage and operate data during the execution of OTX.
By constructing each database numerical table of the OTX variable system in an open test sequence exchange format, and constructing a database numerical table collection and database numerical table manager based on these database numerical tables, the structured management of the OTX variable system is realized.
It realizes orderly and clear management of the OTX variable system, which is easy to maintain and expand, improves the efficiency and performance of the system, and supports different types of variable requirements and context use.
Smart Images

Figure CN119597659A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method for creating and operating an OTX variable system. Background Art
[0002] During the execution of OTX (OpenTest sequence eXchange), it is necessary to transfer and store data and status information, and perform operations such as conditional judgment and control flow. To achieve these functions, OTX needs to manage and operate data through a variable system. The variable system is responsible for tracking and maintaining various data involved in the execution of the test sequence, including input data, intermediate calculation results, status information, etc.
[0003] When an OTX test sequence is executed, the variable system creates and manages various types of variables, which can store different types of data, such as integers, floating point numbers, strings, etc. Through the variable system, the test sequence can pass data between different steps, make conditional judgments, and control the execution order of the process. However, there is currently no mature solution on the market specifically for running OTX test sequences.
[0004] Therefore, how to provide a method for creating and running an OTX variable system to realize the operation of an OTX test sequence is a technical problem that those skilled in the art urgently need to solve. Summary of the invention
[0005] Based on the above problems, the present application provides a method for creating and operating an OTX variable system, and provides a method for creating and operating an OTX variable system to implement the operation of an OTX test sequence. The present application embodiment discloses the following technical solutions:
[0006] A method for creating an OTX variable system, the method comprising:
[0007] Construct various database value tables of the open test sequence exchange format OTX variable system;
[0008] Constructing each database value table set according to each database value table, wherein one database value table set is composed of one or more first key key1 value value1 pairs; the first key value pair is a global variable function key value pair, a main function key value pair or a non-main function key value pair; one database value table set stores one database value table;
[0009] A database value table manager is constructed according to each database value table set to obtain the OTX variable system, wherein the database value table manager is composed of one or more second key key2 value2 pairs.
[0010] In a possible implementation, the construction of each database value table of the OTX variable system includes:
[0011] Define the storage location of the variable in the database value table as map, the file name or function name as key, and the shared smart pointer of the basic value item as value;
[0012] The OTX variable function in the database value table is defined according to the variable type of the OTX variable system; the basic value items associated in the OTX variable function are accessed and operated through the shared smart pointers of the basic value items.
[0013] In a possible implementation, the variable types of the OTX variable system include: process type and global type;
[0014] Defining the OTX variable function in the database value table according to the variable type of the OTX variable system includes:
[0015] When the variable type of the OTX variable system is a process type, a local variable function is defined; the local variable function is used to store a local variable defined by a function;
[0016] When the variable type of the OTX variable system is a global type, a global variable function is defined; the global variable function is used to store a global variable defined by an OTX file.
[0017] In a possible implementation, the step of constructing a set of database value tables according to the database value tables includes:
[0018] Define the storage location of the database value table in the database value table set as a map;
[0019] Define key1 as the file name or function name of the database value table;
[0020] Define value1 as a structure object of the field corresponding to key1 in the database value table.
[0021] In a possible implementation, constructing a database value table manager according to each database value table set includes:
[0022] Define the storage location of the database value table set in the database value table manager as a map;
[0023] Define key2 as the file name of the database value table;
[0024] Define value2 as a database value table collection object of the field corresponding to key2.
[0025] An operating method of an OTX variable system, the method comprising:
[0026] Identifying a set of database value tables to be run and a set of database value tables not to be run in the OTX variable system, wherein the OTX variable system is created according to the method for creating an OTX variable system according to any one of claims 1 to 5;
[0027] Creating a database value table manager object and a first database value table set object for the database value table set to be run; the database value table set object is used to store the database value table set to be run;
[0028] Creating a global variable function storage object and a local variable function storage object for the to-be-run database value table set in the first database value table set object;
[0029] Put the global variable function storage object and the local variable function storage object into the first database value table collection object to obtain a second database value table collection object;
[0030] Run the main function in the second database value table collection object.
[0031] In a possible implementation, the running of the main function in the second database value table set object includes:
[0032] When a non-main function is called during the running of the main function, determining whether the non-main function and the main function are in the same database value table in the OTX variable system;
[0033] When the non-main function and the main function are in the same database value table in the OTX variable system, create a database value table object of the non-main function, put the database value table object of the non-main function into the second database value table collection object to obtain a third database value table collection object, and run the main function and the non-main function in the third database value table collection object;
[0034] When the non-main function and the main function are not in the same database value table in the OTX variable system, query whether the database value table set of the non-main function is created;
[0035] When the database value table set of the non-main function has been created, create the database value table object of the non-main function, put the database value table object of the non-main function into the second database value table set object to obtain a fourth database value table set object, and run the main function and the non-main function in the fourth database value table set object;
[0036] When the database value table set of the non-main function has not been created, create the database value table set object and the database value table object of the non-main function, put the database value table object of the non-main function into the database value table set object of the non-main function to obtain a fifth database value table set object, and run the main function and the non-main function in the fifth database value table set object.
[0037] In a possible implementation, the method further includes:
[0038] When there is a step of accessing a basic numerical item in the process of executing the main function in the second database numerical table collection object and the accessed basic numerical item is defined in the database numerical table of the main function, querying the location where the accessed basic numerical item is defined;
[0039] When the location where the accessed basic numerical item is defined is in the main function, defining the value in the key-value pair of the main function key-value pair of the second database value table set object as the accessed basic numerical item, and returning the accessed basic numerical item to the step of accessing the basic numerical item;
[0040] When the location where the accessed basic numerical item is defined is in the target global variable function, querying whether the accessed basic numerical item exists in the global variable function storage object;
[0041] When the accessed basic numerical item exists in the global variable function storage object, returning the accessed basic numerical item to the step of accessing the basic numerical item;
[0042] When the accessed basic numerical item does not exist in the global variable function storage object, the accessed basic numerical item is created in the global variable function storage object, and the accessed basic numerical item is returned to the step of accessing the basic numerical item.
[0043] In a possible implementation, the method further includes:
[0044] When there is a step of accessing a basic numerical item in the process of executing the main function in the second database numerical table collection object and the accessed basic numerical item is not defined in the database numerical table of the main function, querying whether there is a key-value pair of the accessed basic numerical item in the global variable function storage object of the database numerical table where the accessed basic numerical item is located;
[0045] When the global variable function storage object of the database value table where the accessed basic value item is located has a key-value pair of the accessed basic value item, synchronizing the key-value pair of the accessed basic value item to the key-value pair of the global variable function storage object in the second database value table collection object;
[0046] When the key-value pair of the accessed basic numerical item does not exist in the global variable function storage object of the database numerical table where the accessed basic numerical item is located, the key-value pair of the accessed basic numerical item created in the global variable function storage object in the second database numerical table collection object is synchronized to the key-value pair of the global variable function storage object of the database numerical table where the accessed basic numerical item is located.
[0047] In a possible implementation, the method further includes:
[0048] When the main function and the non-main function are finished running, the database value table object of the non-main function in the third database value table collection object is destroyed, or the database value table object of the non-main function in the fourth database value table collection object is destroyed, or the database value table object of the non-main function in the fifth database value table collection object is destroyed;
[0049] When the database value table object of the non-main function is destroyed, if there is only the database value table of the global variable in any database value table collection object, the database value table of the global variable and the corresponding database value table collection object are destroyed.
[0050] Compared with the prior art, this application has the following beneficial effects:
[0051] The present application provides a method for creating and running an OTX variable system. Specifically, when executing the method for creating an OTX variable system provided in an embodiment of the present application, each database value table of an open test sequence exchange format OTX variable system can be first constructed. Then, each database value table set is constructed according to each database value table, wherein a database value table set is composed of one or more first key key1 value value1 pairs, the first key value pair is a global variable function key value pair, a main function key value pair or a non-main function key value pair, and a database value table set stores a database value table correspondingly. Then, a database value table manager is constructed according to each database value table set to obtain an OTX variable system, wherein the database value table manager is composed of one or more second key key2 value value2 pairs. The present application can realize structured management of the OTX variable system by constructing each database value table, a database value table set and a database value table manager. At the same time, the variable system of OTX can be made more orderly and clear, and easy to maintain and expand. And the database value table set can contain different types of key value pairs, such as global variable function key value pairs, main function key value pairs or non-main function key value pairs. This flexibility can adapt to different types of variable requirements and support the use of variables in different contexts. In addition, by building a database value table manager to manage the entire OTX variable system, the efficiency and performance of the system can be improved. The manager can provide a fast access and operation interface, making the operation of the variable system more efficient. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the technical solutions in this embodiment or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0053] Figure 1 A method flow chart of a method for creating an OTX variable system provided in an embodiment of the present application;
[0054] Figure 2 A method flow chart of an operation method of an OTX variable system provided in an embodiment of the present application;
[0055] Figure 3 A method flow chart of a method for running a main function in a second database value table set object provided by an embodiment of the present application;
[0056] Figure 4 A method flow chart of a basic numerical item access method provided in an embodiment of the present application
[0057] Figure 5 A method flow chart of another basic numerical item access method provided in an embodiment of the present application;
[0058] Figure 6 A schematic diagram of the structure of a device for creating an OTX variable system provided in an embodiment of the present application;
[0059] Figure 7 A schematic diagram of the structure of an operating device of an OTX variable system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0060] To facilitate understanding of the technical solutions provided by the embodiments of the present application, the background technology involved in the embodiments of the present application will be described below.
[0061] OTX is a standardized format and language for an open test sequence data model. OTX aims to provide a unified way to describe test sequences and interactive test processes so that test information can be exchanged and shared in different tools and environments. By using OTX, test sequences can be standardized, portable, and reusable, thereby improving test efficiency and quality.
[0062] A variable system is a set of structures or mechanisms used to store and manage data in programming or software development. The variable system is used to store various types of data during program execution and to reference these data through variable names.
[0063] In the process of executing OTX test sequence, it is necessary to transfer and store data and status information through variable system, perform condition judgment and control process, etc. However, there is a lack of mature OTX variable system in the market to run OTX test sequence.
[0064] In order to solve this problem, an embodiment of the present application provides a method for creating and running an OTX variable system, first constructing each database value table of the open test sequence exchange format OTX variable system. Then, each database value table set is constructed according to each database value table, wherein a database value table set is composed of one or more first key key1 value value1 pairs, the first key value pair is a global variable function key value pair, a main function key value pair or a non-main function key value pair, and a database value table set stores a database value table. After preprocessing each microscopic tissue image, it is bound to the corresponding aging damage level as a target data set. Finally, a database value table manager is constructed according to each database value table set to obtain an OTX variable system, wherein the database value table manager is composed of one or more second key key2 value value2 pairs. By constructing each database value table, a database value table set and a database value table manager, the structured management of the OTX variable system is realized.
[0065] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0066] See also Figure 1 , which is a flow chart of a method for creating an OTX variable system provided in an embodiment of the present application, such as Figure 1 As shown, the method for creating the OTX variable system may include steps S101-S103:
[0067] S101: construct various database value tables of the open test sequence exchange format OTX variable system.
[0068] To build the OTX variable system, you first need to define and create various database value tables for storing data. These tables will be used to store different types of variables and function information.
[0069] In a possible implementation, the construction of each database value table of the OTX variable system can be implemented in the following manner:
[0070] First, the storage location of the variable in the database value table is defined as map, the file name or function name is defined as key, and the shared smart pointer of the basic value item is defined as value. Then, the OTX variable function in the database value table is defined according to the variable type of the OTX variable system, wherein the basic value item associated in the OTX variable function is accessed and operated through the shared smart pointer of the basic value item.
[0071] Specifically, in the database value table, the storage location of the variable can use a map, file name or function name as the key, and the basic value item of the variable uses a shared smart pointer to represent its value. According to the requirements and design of the OTX variable system, it is necessary to define the corresponding OTX variable functions in the database value table and ensure that these functions can correctly access and operate the basic value items associated with them. These basic value items are referenced and operated through shared smart pointers. In the database value table, it is necessary to establish the correct association between variables and functions to ensure that the variables can be called and operated by the correct functions, and at the same time, it is also necessary to ensure that the shared smart pointers of the basic value items can be correctly accessed and operated, so as to realize the functional requirements of the OTX variable system.
[0072] It should be noted that a shared smart pointer is a type of smart pointer in the C++ language that is used to manage dynamically allocated memory resources. Its main function is to share the same object between multiple pointers and automatically manage the life cycle of the object to avoid problems such as memory leaks and dangling pointers.
[0073] Optionally, the variable types of the OTX variable system include: process type and global type.
[0074] Process type variables are local variables defined in a specific test procedure or flow. These variables are visible and usable only in the test procedure or function to which they belong. Their scope is limited to the specific test procedure in which they are defined, hence the name process type variables.
[0075] Global type variables refer to global variables defined in the entire OTX file. This means that no matter in which test procedure or function, these global variables can be accessed and used. Global type variables are visible and available to the entire OTX file, so they are called global type variables.
[0076] The variable types for the OTX variable system include: process type and global type. Accordingly, the OTX variable function in the database value table is defined according to the variable type of the OTX variable system, including:
[0077] When the variable type of the OTX variable system is a process type, a local variable function needs to be defined. This function is used to store local variables defined by a function. In other words, each test process or function can have its own local variables, and the life cycle of these variables is associated with the execution cycle of the function.
[0078] When the variable type of the OTX variable system is global, you need to define a global variable function. This function is used to store the global variables defined in the entire OTX file, which can be accessed by all functions and test processes.
[0079] Example 1: The database value table can be in the following form (DBValTable represents the database value table):
[0080] The first database value table:
[0081] DBValTable{
[0082] int a;
[0083] Void main()
[0084] {
[0085] int o;
[0086] }
[0087] Void Func1()
[0088] {
[0089] int b;
[0090] int c;
[0091] }
[0092] Void Func2()
[0093] {
[0094] int d;
[0095] int e;
[0096] }
[0097] }
[0098] The second database value table:
[0099] DBValTable{
[0100] int f;
[0101] Void main()
[0102] {
[0103] int p;
[0104] }
[0105] Void Func3()
[0106] {
[0107] int g;
[0108] int h;
[0109] }
[0110] VoidFunc4()
[0111] {
[0112] int i;
[0113] int j;
[0114] }
[0115] }
[0116] In the first DBValTable, a, o, b, c, d, and e are basic numeric items; in the second DBValTable, f, p, g, h, i, and j are also basic numeric items. These variables store basic numeric information of integer type.
[0117] DBValTable (Database Value Table) is used to store and manage various values or variables used in the program.
[0118] S102: Constructing various database value table sets according to the various database value tables.
[0119] A database value table set consists of one or more first key key1 value value1 pairs. The first key value pair is a global variable function key value pair, a main function key value pair or a non-main function key value pair. A database value table set stores a database value table.
[0120] According to the content and purpose of each database value table, they are combined into different database value table sets. Each database value table set consists of one or more key-value pairs, including global variable function key-value pairs, main function key-value pairs or non-main function key-value pairs, which are used to distinguish different types of data and functions.
[0121] In a possible implementation, constructing each database value table set based on the each database value table includes: first defining the storage location of the database value table in the database value table set as a map, then defining key1 as the file name or function name of the database value table, and defining value1 as the structure object of the field corresponding to key1 in the database value table.
[0122] That is to say, in the process of building a database value table set, a data structure with a storage location of map must be defined first. This data structure is used to store the information of each database value table in the entire database value table set. It is also necessary to specify that key1 is defined as the file name or function name of the database value table as the unique identifier of the table in the set. At the same time, value1 needs to be defined as the structure object of the field corresponding to key1. In other words, value1 stores the information of the field structure associated with a specific database value table (identified by key1).
[0123] Example 2: Based on the database value table DBValTable in Example 1, the following database value table collection DBValTableCollection can be constructed:
[0124] The first database value table collection:
[0125] DBValTableCollection{
[0126] [new2,DBValTable <a-basevalitem>]
[0127] [main,DBValTable <o-basevalitem>]
[0128] [Func1,DBValTable <b-basevalitem> <c-basevalitem>]
[0129] [Func2,DBValTable <d-basevalitem> <e-basevalitem>]}
[0130] Among them, new 2 is the file name of the first database value table. DBValTable <a-basevalitem>It means that the basic value item in DBValTable is accessed by using the shared smart pointer of the basic value item. <o-basevalitem>] refers to the use of shared smart pointers of basic numeric items to access the basic numeric items in DBValTable. <b-basevalitem> <c-basevalitem>] refers to the use of shared smart pointers of basic numeric items to access the basic numeric items in DBValTable, which are b and c. <d-basevalitem> <e-basevalitem>] refers to using the shared smart pointer of the basic numeric items to access the basic numeric items in DBValTable, which are d and e.
[0131] The second database value table collection:
[0132] DBValTableCollection{
[0133] [new3,DBValTable <f-basevalitem>]
[0134] [main,DBValTable <p-basevalitem>]
[0135] [Func3,DBValTable <g-basevalitem> <h-basevalitem>]
[0136] [Func4,DBValTable <i-basevalitem> <j-basevalitem>]}
[0137] Similarly, new 3 is the file name of the second database value table. DBValTable <f-basevalitem>It refers to the use of shared smart pointers of basic numeric items to access the basic numeric items in DBValTable. <p-basevalitem>It means using the shared smart pointer of the basic numeric item to access the basic numeric item in DBValTable is p, DBValTable <g-basevalitem> <h-basevalitem>It refers to the use of shared smart pointers of basic numeric items to access the basic numeric items in DBValTable, which are g and h. <i-basevalitem> <j-basevalitem>It means using the shared smart pointer of the basic numeric item to access the basic numeric items i and j in DBValTable.
[0138] DBValTableCollection consists of key-value pairs. In each DBValTableCollection, the key represents a specific database value table (such as "new2" and "new3"), and the value is the corresponding DBValTable, which contains the structure information and function definition of the database value table. This key-value pair structure enables DBValTableCollection to effectively store and manage multiple different DBValTables, making it easier to organize and access database value tables.
[0139] S103: constructing a database value table manager according to each database value table set to obtain the OTX variable system.
[0140] The database value table manager is composed of one or more second key key2 value2 pairs.
[0141] By integrating various database value table sets into the database value table manager, a complete OTX variable system is established. The database value table manager contains one or more key-value pairs, which are used to manage and call data in different database value table sets to ensure effective management and efficient call of data.
[0142] In a possible implementation, constructing a database value table manager according to each database value table set includes: first defining a storage location of the database value table set in the database value table manager as a map, then defining key2 as a file name of the database value table, and defining value2 as a database value table set object of a field corresponding to key2.
[0143] That is to say, in the process of building a database value table manager, a data structure with a storage location of map must be defined first. This data structure is used to store the information of the database value table collection in the database value table manager. It is also necessary to specify that key2 is to be defined as the file name of the database value table as the unique identifier of the table in the manager. At the same time, value2 needs to be defined as the database value table collection object of the field corresponding to key2. In other words, value2 stores the database value table collection object associated with a specific database value table (identified by key2).
[0144] Example 3: Based on the database value table in Example 1 and the database value table set in Example 2, the following database value table manager DBValTableManager can be constructed:
[0145] DBValTableManager
[0146] [new2,DBValTableCollection]
[0147] [new3,DBValTableCollection]
[0148] Based on the contents of S101-S103, it can be known that each database value table of the open test sequence exchange format OTX variable system is first constructed. Then, each database value table set is constructed according to each database value table. Finally, a database value table manager is constructed according to each database value table set to obtain an OTX variable system. This application can achieve structured management of the OTX variable system by constructing each database value table, a database value table set and a database value table manager.
[0149] Based on the above-mentioned embodiment of the training method of the running model of the OTX variable system, the embodiment of the present application also provides an running method of the OTX variable system. Figure 2 , Figure 2 A method flow chart of an OTX variable system operation method provided in an embodiment of the present application. Figure 2 As shown, the method includes S201-S205:
[0150] S201: Identify a set of value tables of databases to be run and a set of value tables of databases not to be run in the OTX variable system.
[0151] The OTX variable system is created according to the method for creating the OTX variable system as described above.
[0152] In order to run the OTX variable system, it is necessary to identify which are the database value table sets to be run and which are the database value table sets not to be run in the OTX variable system. This OTX variable system is created according to the creation method mentioned above. In other words, according to the creation method of the OTX variable system described above, an OTX variable system is generated. Now it is necessary to distinguish which are the database value table sets to be run and which are not to be run in this system.
[0153] S202: Create a database value table manager object and a first database value table set object for the database value table set to be run.
[0154] The database value table set object is used to store the database value table set to be run.
[0155] For the database value table set to be run, two objects need to be created: a database value table manager object and a first database value table set object.
[0156] Database value table manager object, namely DBValTableManager object: This is an object used to manage database value tables, which can contain various operations and functions to manage and control the database value tables to be run.
[0157] The first database value table collection object is the DBValTableCollection object: this object is used to store the database value table collection to be run, that is, these data tables to be run are put into this object for unified management and processing.
[0158] Optionally, you can name the DBValTableCollection object ClMain.
[0159] Creating these two objects can effectively manage and store the database value table collection to be run for subsequent operations and processing. This can better organize and manage the data table information in the system.
[0160] S203: Creating a global variable function storage object and a local variable function storage object for the to-be-run database value table set in the first database value table set object.
[0161] For the database value table set to be run in the first database value table set object, two storage objects need to be created: a global variable function storage object and a local variable function storage object.
[0162] Global variable function storage object: This object is used to store global variable functions, that is, functions that can be accessed and called throughout the system. The functions stored in the global variable function storage object can be used by any part of the system and have global properties.
[0163] Local variable function storage object: This object is used to store local variable functions, that is, functions that can only be accessed and called within a specific scope. The functions stored in the local variable function storage object are only visible within a specific scope or under certain conditions and have local properties.
[0164] Optionally, the name of the global variable function storage object can be defined as DbGlobal, and the name of the local variable function storage object can be defined as DbProcMain. The type of DbGlobal is globalType, i.e., the global type, and the type of DbProcMain is procedureType, i.e., the process type.
[0165] By creating global variable function storage objects and local variable function storage objects, you can better manage the functions in the variable system, distinguish the scope of global and local functions, and ensure the correct calling and use of functions.
[0166] S204: Put the global variable function storage object and the local variable function storage object into the first database value table set object to obtain a second database value table set object.
[0167] The previously created global variable function storage object and local variable function storage object are placed into the previously mentioned first database value table collection object, thereby forming a new object, namely, the second database value table collection object.
[0168] The previously created global variable function storage object and local variable function storage object are placed into the previously mentioned database value table collection object, thereby forming a new object, namely, the second database value table collection object.
[0169] S205: Execute the main function in the second database value table set object.
[0170] In program design, there is usually a main function, which is the entry point of the program and contains the main logic and functions of the program. By running the main function in the second database value table collection object, the operations and processes defined by the main function are executed.
[0171] The second database value table collection object contains global variable function storage objects, local variable function storage objects and other related information, and the main function is the execution entry of this information and functions. Therefore, by running the main function in the second database value table collection object, the execution process of the entire program can be started, and data can be processed and tasks can be completed according to the logic in the main function.
[0172] See also Figure 3 , Figure 3 A method flow chart of a method for running a main function in a second database value table collection object provided in an embodiment of the present application. Specifically, the method for running the main function in the second database value table collection object includes A1, A21, A22, A221 and A222:
[0173] A1: When a non-main function is called during the running of the main function, it is determined whether the non-main function and the main function are in the same database value table in the OTX variable system.
[0174] When the main function is running, if you need to call a non-main function, you must first determine whether the two functions are stored in the same database value table. In other words, you need to determine whether the two functions belong to the same data table so that you can perform corresponding processing and calls later.
[0175] A21: When the non-main function and the main function are in the same database value table in the OTX variable system, create a database value table object for the non-main function, put the database value table object for the non-main function into the second database value table collection object to obtain a third database value table collection object, and run the main function and the non-main function in the third database value table collection object.
[0176] When a non-main function and a main function are stored in the same database value table, the OTX variable system will process the following steps: First, a database value table object for the non-main function will be created. Then, the database value table object for the non-main function will be placed in the second database value table collection object to form a third database value table collection object. Finally, the main function and non-main function in the third database value table collection object will be run.
[0177] A22: When the non-main function and the main function in the OTX variable system are not in the same database value table, query whether the database value table set of the non-main function is created.
[0178] In the OTX variable system, when the non-main function and the main function are not in the same database value table, it is necessary to query and check whether the database value table set of the non-main function has been created. In other words, it is necessary to determine whether there is a set that stores the non-main function related data for subsequent processing and calling.
[0179] A221: When the database value table set of the non-main function has been created, create the database value table object of the non-main function, put the database value table object of the non-main function into the second database value table set object to obtain a fourth database value table set object, and run the main function and the non-main function in the fourth database value table set object.
[0180] In the OTX variable system, if the database value table collection of the non-main function has been created, the system will process it according to the following steps: First, the database value table object of the non-main function will be created. Then, this database value table object of the non-main function will be placed in the second database value table collection object to form the fourth database value table collection object. Finally, the main function and non-main function in the fourth database value table collection object will be run.
[0181] A222: When the database value table set of the non-main function has not been created, create the database value table set object and the database value table object of the non-main function, put the database value table object of the non-main function into the database value table set object of the non-main function to obtain a fifth database value table set object, and run the main function and the non-main function in the fifth database value table set object.
[0182] In the OTX variable system, if the database value table collection of the non-main function has not been created, the system will process it according to the following steps: First, it will create the database value table collection object and database value table object of the non-main function. Then, it will put the database value table object of the non-main function into the database value table collection object of the non-main function to form the fifth database value table collection object. Finally, the system will run the main function and non-main function in the fifth database value table collection object.
[0183] See also Figure 4 , Figure 4 A method flow chart of a basic numerical item access method provided in an embodiment of the present application. The access of the basic numerical item can be implemented through steps B1, B21, B22, B221 and B222:
[0184] B1: When there is a step of accessing basic numerical items in the process of executing the main function in the second database numerical table collection object and the accessed basic numerical items are defined in the database numerical table of the main function, query the location where the accessed basic numerical items are defined.
[0185] When executing the main function of the second database value table collection object, if there is a step that needs to access a basic value item, and this basic value item is defined in the database value table of the main function, then it is necessary to query where the basic value item being accessed is defined. In other words, it is necessary to find the definition location of this basic value item so that this value item can be correctly obtained and processed in the program. This ensures that the program can smoothly use the required basic value items without errors or failure to find the definition.
[0186] B21: When the location where the accessed basic numerical item is defined is in the main function, the value in the key-value pair of the main function key-value pair of the second database value table collection object is defined as the accessed basic numerical item, and the accessed basic numerical item is returned to the step of accessing the basic numerical item.
[0187] If the basic numerical item being accessed is defined in the main function, the value of the corresponding key-value pair in the main function of the second database value table collection object is defined as the basic numerical item being accessed. Then, the program returns the basic numerical item being accessed to the step that needs to access it. In other words, by associating the basic numerical item defined in the main function with the key-value pair in the database value table, it is ensured that the basic numerical item can be accurately obtained and processed during the execution of the program to meet the needs of the program.
[0188] B22: When the location where the accessed basic numerical item is defined is in the target global variable function, query whether the accessed basic numerical item exists in the global variable function storage object.
[0189] If the basic numerical item being accessed is defined in the target global variable function, then it is necessary to query whether the basic numerical item being accessed exists in the global variable function storage object. In other words, during execution, the program will check the global variable function storage object to see if the basic numerical item being accessed has been stored. If it exists, the program can directly obtain the numerical item from the global variable function storage object without repeatedly defining or creating it, so as to improve the efficiency of program execution and save resources.
[0190] B221: When the accessed basic numerical item exists in the global variable function storage object, the accessed basic numerical item is returned to the step of accessing the basic numerical item.
[0191] If the basic numerical item being accessed already exists in the global variable function storage object, the program will return this basic numerical item to the step that needs to access it. In other words, the program will directly obtain this numerical item from the global variable function storage object and pass it to the relevant steps to meet the program's needs for this basic numerical item. This can avoid repeated definition or creation of the same basic numerical item, improve program execution efficiency and save resources.
[0192] B222: When the accessed basic numerical item does not exist in the global variable function storage object, the accessed basic numerical item is created in the global variable function storage object, and the accessed basic numerical item is returned to the step of accessing the basic numerical item.
[0193] If the basic numerical item being accessed does not exist in the global variable function storage object, the program will create this basic numerical item in this storage object. Subsequently, the program will return the newly created basic numerical item to the step that needs to access it. In other words, when the program finds that the required basic numerical item does not exist in the global variable function storage object, the program will dynamically create the basic numerical item and provide it to the relevant steps to meet the needs of the program. This method can ensure that the program can obtain the required basic numerical items in a timely manner and create and store them when needed.
[0194] Based on the contents of B1, B21, B22, B221 and B222, the present application also provides an effective way to process the process of accessing basic numerical items in the program, and ensures that these basic numerical items can be correctly defined and retrieved. At the same time, by querying the definition location of the basic numerical items and performing corresponding processing in the main function or global variable function according to their location, it is ensured that the program can correctly find the required numerical items and use them.
[0195] See also Figure 5 , Figure 5 A method flow chart of another basic numerical item access method provided in an embodiment of the present application. The access of the basic numerical item can also be implemented through steps C1, C21 and C22:
[0196] C1: When there is a step of accessing a basic numerical item in the process of executing the main function in the second database numerical table collection object and the accessed basic numerical item is not defined in the database numerical table of the main function, query whether there is a key-value pair of the accessed basic numerical item in the global variable function storage object of the database numerical table where the accessed basic numerical item is located.
[0197] When executing the main function in the second database value table collection object, if it is found that there is a step that needs to access a basic value item, and this basic value item is not defined in the database value table of the main function, then you can query the global variable function storage object to see if there is a key-value pair of the basic value item being accessed. In other words, try to get the value of this basic value item from the global variable function storage object to meet the demand for this value in the main function, thereby ensuring normal operation.
[0198] C21: When the key-value pair of the accessed basic numerical item exists in the global variable function storage object of the database numerical table where the accessed basic numerical item is located, the key-value pair of the accessed basic numerical item is synchronized to the key-value pair of the global variable function storage object in the second database numerical table collection object.
[0199] If the key-value pair of the basic numerical item exists in the global variable function storage object of the database numerical table where the basic numerical item being accessed is located, it means that the value of the basic numerical item has been defined in the global variable function storage object. In this case, the key-value pair of the basic numerical item can be synchronized from the global variable function storage object to the global variable function storage object of the second database numerical table collection object to ensure that the second database numerical table collection object can also obtain and use the value of the basic numerical item. In this way, the consistency and accuracy of the data can be maintained, and the same numerical data can be used in different parts.
[0200] C22: When the key-value pair of the accessed basic numerical item does not exist in the global variable function storage object of the database numerical table where the accessed basic numerical item is located, the key-value pair of the accessed basic numerical item created in the global variable function storage object in the second database numerical table collection object is synchronized to the key-value pair of the global variable function storage object of the database numerical table where the accessed basic numerical item is located.
[0201] If the key-value pair of the basic numerical item does not exist in the global variable function storage object of the database numerical table where the basic numerical item being accessed is located, then the key-value pair of the basic numerical item can be created in the global variable function storage object of the second database numerical table collection object. Then, the key-value pair of the basic numerical item created in the second database numerical table collection object is synchronized to the key-value pair in the global variable function storage object of the database numerical table where the basic numerical item being accessed is located. The purpose of this is to ensure that different parts can access and use the same basic numerical item, and maintain data consistency and accuracy.
[0202] In a possible implementation, the method further includes:
[0203] When the main function and the non-main function are finished running, the database value table object of the non-main function in the third database value table collection object is destroyed; or,
[0204] When the main function and the non-main function are finished running, the database value table object of the non-main function in the fourth database value table collection object is destroyed; or,
[0205] After the main function and the non-main function are finished running, the database value table object of the non-main function in the fifth database value table collection object is destroyed.
[0206] Specifically, when the main function and non-main function finish running, one of the following operations will be performed:
[0207] If the database value table object of the non-main function is stored in the third database value table collection object, then after the main function and the non-main function are finished running, the database value table object of the non-main function in the third database value table collection object will be destroyed;
[0208] If the database value table object of the non-main function is stored in the fourth database value table collection object, then after the main function and the non-main function are finished running, the database value table object of the non-main function in the fourth database value table collection object will be destroyed;
[0209] If the database value table objects of non-main functions are stored in the fifth database value table collection object, then after the main function and the non-main function are finished running, the database value table objects of non-main functions in the fifth database value table collection object will be destroyed.
[0210] These operations ensure that no longer needed data structures are cleaned up in a timely manner after the function ends, freeing up resources and maintaining system efficiency.
[0211] In a possible implementation, the method further includes:
[0212] When the database value table object of the non-main function is destroyed and when only the database value table of global variables exists in the second database value table collection object, destroy the database value table of global variables and the second database value table collection object; or,
[0213] When the database value table object of the non-main function is destroyed and when only the database value table of global variables exists in the third database value table collection object, destroy the database value table of global variables and the third database value table collection object; or,
[0214] When the database value table object of the non-main function is destroyed and when only the database value table of global variables exists in the fourth database value table collection object, destroy the database value table of global variables and the fourth database value table collection object; or,
[0215] When the database value table object of the non-main function is destroyed and when only the database value table of global variables exists in the fifth database value table collection object, the database value table of global variables and the fifth database value table collection object are destroyed.
[0216] Specifically, in the OTX variable system, when the database value table object of a non-main function is destroyed, the system will perform one of the following operations:
[0217] If there is only a database value table of global variables in the second database value table collection object, then after the database value table object of the non-main function is destroyed, the database value table of global variables and the second database value table collection object will be destroyed;
[0218] If only the database value table of global variables exists in the third database value table collection object, then after the database value table object of the non-main function is destroyed, the database value table of global variables and the third database value table collection object will be destroyed;
[0219] If only the database value table of global variables exists in the fourth database value table collection object, then after the database value table object of the non-main function is destroyed, the database value table of global variables and the fourth database value table collection object will be destroyed;
[0220] If only the database value table of global variables exists in the fifth database value table collection object, then after the database value table object of the non-main function is destroyed, the database value table of global variables and the fifth database value table collection object will be destroyed.
[0221] That is to say, when the database value table object of the non-main function is destroyed, if there is only a database value table of global variables in any database value table collection object (including the second, third, fourth and fifth database value table collection objects), the database value table of the global variable and the corresponding database value table collection object will be destroyed.
[0222] These operations ensure that global variables and related data structures that are no longer needed are cleaned up in a timely manner to free up resources and maintain the efficiency of the system.
[0223] Based on the contents of S201-S205 above, it can be known that the set of database value tables to be run and the set of database value tables not to be run in the constructed OTX variable system can be identified, and a database value table manager object and a first database value table collection object are created for the set of database value tables to be run, and a global variable function storage object and a local variable function storage object are created for the set of database value tables to be run in the database value table collection object. Then the global variable function storage object and the local variable function storage object are placed in the database value table collection object to obtain the second database value table collection object, and the main function in the second database value table collection object is run. By identifying the set of database value tables to be run and the set of database value tables not to be run, the present application can effectively manage and distinguish different types of data tables, and improve the efficiency of data storage and processing. Moreover, creating a database value table manager object and a first database value table collection object helps to organize and store the set of database value tables to be run, making data management more structured and convenient. In addition, placing the global variable function storage object and the local variable function storage object in the database value table collection object is conducive to unified management and calling of variable functions, and improving the overall performance of the system.
[0224] See also Figure 6 , Figure 6 A schematic diagram of the structure of a device for creating an OTX variable system provided in an embodiment of the present application. Figure 6 As shown, the creation device of the OTX variable system includes:
[0225] The first construction unit 601 is used to construct various database value tables of the open test sequence exchange format OTX variable system;
[0226] The second construction unit 602 is used to construct each database value table set according to each database value table, wherein one database value table set is composed of one or more first key key1 value value1 pairs; the first key value pair is a global variable function key value pair, a main function key value pair or a non-main function key value pair; one database value table set stores one database value table;
[0227] The third construction unit 603 is used to construct a database value table manager according to the database value table sets to obtain the OTX variable system, wherein the database value table manager is composed of one or more second key key2 value2 pairs.
[0228] In a possible implementation, the first constructing unit 601 specifically includes:
[0229] A first definition unit is used to define the storage location of the variable in the database value table as map, the file name or function name as key, and the shared smart pointer of the basic value item as value;
[0230] The second definition unit is used to define the OTX variable function in the database value table according to the variable type of the OTX variable system; the basic value items associated in the OTX variable function are accessed and operated through the shared smart pointers of the basic value items.
[0231] In a possible implementation, the variable types of the OTX variable system include: process type and global type.
[0232] In a possible implementation manner, the second definition unit specifically includes:
[0233] A third definition unit, when the variable type of the OTX variable system is a process type, is used to define a local variable function; the local variable function is used to store a local variable defined by a function;
[0234] The fourth definition unit is used to define a global variable function when the variable type of the OTX variable system is a global type; the global variable function is used to store a global variable defined by an OTX file.
[0235] In a possible implementation, the second constructing unit 602 specifically includes:
[0236] a fifth definition unit, configured to define a storage location of the database value table in the database value table set as a map;
[0237] A sixth definition unit, used to define key1 as a file name or a function name of the database value table;
[0238] The seventh definition unit is used to define value1 as a structure object of a field corresponding to key1 in the database value table.
[0239] In a possible implementation, the third constructing unit 603 specifically includes:
[0240] an eighth definition unit, configured to define a storage location of the database value table set in the database value table manager as a map;
[0241] A ninth definition unit, used to define key2 as the file name of the database value table;
[0242] The tenth definition unit is used to define value2 as a database value table collection object of the field corresponding to key2.
[0243] See also Figure 7 , Figure 7 A schematic diagram of the structure of an operating device of an OTX variable system provided in an embodiment of the present application. Figure 7 As shown, the operating device of the OTX variable system includes:
[0244] An identification unit 701 is used to identify a set of database value tables to be run and a set of database value tables not to be run in the OTX variable system, wherein the OTX variable system is created according to the method for creating the OTX variable system as described above;
[0245] The first object creation unit 702 is used to create a database value table manager object and a first database value table set object for the database value table set to be run; the database value table set object is used to store the database value table set to be run;
[0246] The second object creation unit 703 is used to create a global variable function storage object and a local variable function storage object for the to-be-run database value table set in the first database value table set object;
[0247] The placing unit 704 is used to place the global variable function storage object and the local variable function storage object into the first database value table collection object to obtain a second database value table collection object;
[0248] The main function running unit 705 is used to run the main function in the second database value table set object.
[0249] In a possible implementation, the main function execution unit 705 specifically includes:
[0250] A judging unit, when a non-main function is called during the running of the main function, is used to judge whether the non-main function and the main function are in the same database value table in the OTX variable system;
[0251] The first integration unit is used for creating a database value table object of the non-main function when the non-main function and the main function are in the same database value table in the OTX variable system, putting the database value table object of the non-main function into the second database value table collection object to obtain a third database value table collection object, and running the main function and the non-main function in the third database value table collection object;
[0252] A first query unit, when the non-main function and the main function in the OTX variable system are not in the same database value table, is used to query whether the database value table set of the non-main function is created;
[0253] The second integration unit is used for creating a database value table object of the non-main function when the database value table set of the non-main function has been created, putting the database value table object of the non-main function into the second database value table set object to obtain a fourth database value table set object, and running the main function and the non-main function in the fourth database value table set object;
[0254] The third integration unit is used to create the database value table set object and the database value table object of the non-main function when the database value table set of the non-main function has not been created, put the database value table object of the non-main function into the database value table set object of the non-main function to obtain a fifth database value table set object, and run the main function and the non-main function in the fifth database value table set object.
[0255] In a possible implementation manner, the device further includes:
[0256] A second query unit, when there is a step of accessing a basic numerical item in the process of executing the main function in the second database numerical table set object and the accessed basic numerical item is defined in the database numerical table of the main function, is used to query the location where the accessed basic numerical item is defined;
[0257] an accessed basic numerical item definition unit, for defining a value in a key-value pair of a main function key-value pair of a value table set object of the second database as the accessed basic numerical item when the location where the accessed basic numerical item is defined is in the main function, and returning the accessed basic numerical item to the step of accessing the basic numerical item;
[0258] A third query unit, when the location where the accessed basic numerical item is defined is in the target global variable function, is used to query whether the accessed basic numerical item exists in the global variable function storage object;
[0259] an accessed basic numerical item returning unit, for returning the accessed basic numerical item to the step of accessing the basic numerical item when the accessed basic numerical item exists in the global variable function storage object;
[0260] A return unit is created, and when the accessed basic numerical item does not exist in the global variable function storage object, the accessed basic numerical item is created in the global variable function storage object, and is used to return the accessed basic numerical item to the step of accessing the basic numerical item.
[0261] In a possible implementation manner, the device further includes:
[0262] a fourth query unit, for querying whether there is a key-value pair of the accessed basic numerical item in the global variable function storage object of the database numerical table where the accessed basic numerical item is located, when there is a step of accessing the basic numerical item in the process of executing the main function in the second database numerical table collection object and the accessed basic numerical item is not defined in the database numerical table of the main function;
[0263] a synchronization unit, for synchronizing the key-value pair of the accessed basic numerical item to the key-value pair of the global variable function storage object in the second database numerical table collection object when the key-value pair of the accessed basic numerical item exists in the global variable function storage object of the database numerical table where the accessed basic numerical item is located;
[0264] A synchronization unit is created, and when a key-value pair of the accessed basic numerical item does not exist in the global variable function storage object of the database numerical table where the accessed basic numerical item is located, the key-value pair of the accessed basic numerical item created in the global variable function storage object in the second database numerical table collection object is synchronized with the key-value pair of the global variable function storage object of the database numerical table where the accessed basic numerical item is located.
[0265] In a possible implementation manner, the device further includes:
[0266] A first destroying unit, configured to destroy the database value table object of the non-main function in the third database value table collection object when the main function and the non-main function are finished running;
[0267] A second destroying unit, configured to destroy the database value table object of the non-main function in the fourth database value table collection object when the main function and the non-main function are finished running;
[0268] The third destroying unit is used to destroy the database value table object of the non-main function in the fifth database value table set object after the main function and the non-main function are finished running.
[0269] In a possible implementation manner, the device further includes:
[0270] a fourth destroying unit, for destroying the database value table of the global variable and the second database value table collection object when the database value table object of the non-main function is destroyed and when only the database value table of the global variable exists in the second database value table collection object;
[0271] a fifth destroying unit, for destroying the database value table of the global variable and the third database value table collection object when the database value table object of the non-main function is destroyed and when only the database value table of the global variable exists in the third database value table collection object;
[0272] a sixth destroying unit, for destroying the database value table of the global variable and the fourth database value table collection object when the database value table object of the non-main function is destroyed and when only the database value table of the global variable exists in the fourth database value table collection object;
[0273] The seventh destruction unit is used to destroy the database value table of the global variable and the fifth database value table collection object when the database value table object of the non-main function is destroyed and when only the database value table of the global variable exists in the fifth database value table collection object.
[0274] The embodiment of the present application provides a method for creating and running an OTX variable system. The creation process of the OTX variable system includes: constructing each database value table of the open test sequence exchange format OTX variable system to construct each database value table set according to each database value table. According to each database value table set, a database value table manager is constructed, so that the database value table, the database value table set and the database value table manager constitute an OTX variable system. The present application can realize structured management of the OTX variable system by constructing each database value table, the database value table set and the database value table manager. At the same time, the variable system of OTX can be made more orderly and clear, and easy to maintain and expand. And the database value table set can contain different types of key-value pairs, such as global variable function key-value pairs, main function key-value pairs or non-main function key-value pairs. This flexibility can adapt to different types of variable requirements and support the use of variables in different contexts. In addition, by building a database value table manager to manage the entire OTX variable system, the efficiency and performance of the system can be improved. The manager can provide a fast access and operation interface, making the operation of the variable system more efficient.
[0275] The above is a detailed introduction to the creation and operation method of an OTX variable system provided by the present application. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referenced to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
[0276] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element. < / i-basevalitem> < / g-basevalitem> < / i-basevalitem> < / g-basevalitem> < / d-basevalitem> < / b-basevalitem> < / d-basevalitem> < / b-basevalitem>
Claims
1. A method for creating an OTX variable system, characterized in that: The method comprises: Construct various database value tables of the open test sequence exchange format OTX variable system; Constructing each database value table set according to each database value table, wherein one database value table set is composed of one or more first key key1 value value1 pairs; the first key value pair is a global variable function key value pair, a main function key value pair or a non-main function key value pair; one database value table set stores one database value table; A database value table manager is constructed according to each database value table set to obtain the OTX variable system, wherein the database value table manager is composed of one or more second key key2 value2 pairs.
2. The method according to claim 1, characterized in that The various database value tables for constructing the OTX variable system include: Define the storage location of the variable in the database value table as map, the file name or function name as key, and the shared smart pointer of the basic value item as value; The OTX variable function in the database value table is defined according to the variable type of the OTX variable system; the basic value items associated in the OTX variable function are accessed and operated through the shared smart pointers of the basic value items.
3. The method according to claim 2, characterized in that The variable types of the OTX variable system include: process type and global type; Defining the OTX variable function in the database value table according to the variable type of the OTX variable system includes: When the variable type of the OTX variable system is a process type, a local variable function is defined; the local variable function is used to store a local variable defined by a function; When the variable type of the OTX variable system is a global type, a global variable function is defined; the global variable function is used to store a global variable defined by an OTX file.
4. The method according to claim 1, characterized in that The step of constructing each database value table set according to each database value table comprises: Define the storage location of the database value table in the database value table set as a map; Define key1 as the file name or function name of the database value table; Define value1 as a structure object of the field corresponding to key1 in the database value table.
5. The method according to claim 1, characterized in that The step of constructing a database value table manager according to each database value table set includes: Define the storage location of the database value table set in the database value table manager as a map; Define key2 as the file name of the database value table; Define value2 as a database value table collection object of the field corresponding to key2.
6. A method for operating an OTX variable system, characterized in that: The method comprises: Identifying a set of database value tables to be run and a set of database value tables not to be run in the OTX variable system, wherein the OTX variable system is created according to the method for creating an OTX variable system according to any one of claims 1 to 5; Creating a database value table manager object and a first database value table set object for the database value table set to be run; the database value table set object is used to store the database value table set to be run; Creating a global variable function storage object and a local variable function storage object for the to-be-run database value table set in the first database value table set object; Put the global variable function storage object and the local variable function storage object into the first database value table collection object to obtain a second database value table collection object; Run the main function in the second database value table collection object.
7. The method according to claim 6, characterized in that The running of the main function in the second database value table set object includes: When a non-main function is called during the running of the main function, determining whether the non-main function and the main function are in the same database value table in the OTX variable system; When the non-main function and the main function are in the same database value table in the OTX variable system, create a database value table object of the non-main function, put the database value table object of the non-main function into the second database value table collection object to obtain a third database value table collection object, and run the main function and the non-main function in the third database value table collection object; When the non-main function and the main function are not in the same database value table in the OTX variable system, query whether the database value table set of the non-main function is created; When the database value table set of the non-main function has been created, create the database value table object of the non-main function, put the database value table object of the non-main function into the second database value table set object to obtain a fourth database value table set object, and run the main function and the non-main function in the fourth database value table set object; When the database value table set of the non-main function has not been created, create the database value table set object and the database value table object of the non-main function, put the database value table object of the non-main function into the database value table set object of the non-main function to obtain a fifth database value table set object, and run the main function and the non-main function in the fifth database value table set object.
8. The method according to claim 6, characterized in that The method further comprises: When there is a step of accessing a basic numerical item in the process of executing the main function in the second database numerical table collection object and the accessed basic numerical item is defined in the database numerical table of the main function, querying the location where the accessed basic numerical item is defined; When the location where the accessed basic numerical item is defined is in the main function, defining the value in the key-value pair of the main function key-value pair of the second database value table set object as the accessed basic numerical item, and returning the accessed basic numerical item to the step of accessing the basic numerical item; When the location where the accessed basic numerical item is defined is in the target global variable function, querying whether the accessed basic numerical item exists in the global variable function storage object; When the accessed basic numerical item exists in the global variable function storage object, returning the accessed basic numerical item to the step of accessing the basic numerical item; When the accessed basic numerical item does not exist in the global variable function storage object, the accessed basic numerical item is created in the global variable function storage object, and the accessed basic numerical item is returned to the step of accessing the basic numerical item.
9. The method according to claim 6, characterized in that The method further comprises: When there is a step of accessing a basic numerical item in the process of executing the main function in the second database numerical table collection object and the accessed basic numerical item is not defined in the database numerical table of the main function, querying whether there is a key-value pair of the accessed basic numerical item in the global variable function storage object of the database numerical table where the accessed basic numerical item is located; When the global variable function storage object of the database value table where the accessed basic value item is located has a key-value pair of the accessed basic value item, synchronizing the key-value pair of the accessed basic value item to the key-value pair of the global variable function storage object in the second database value table collection object; When the key-value pair of the accessed basic numerical item does not exist in the global variable function storage object of the database numerical table where the accessed basic numerical item is located, the key-value pair of the accessed basic numerical item created in the global variable function storage object in the second database numerical table collection object is synchronized to the key-value pair of the global variable function storage object of the database numerical table where the accessed basic numerical item is located.
10. The method according to claim 7, characterized in that The method further comprises: When the main function and the non-main function are finished running, the database value table object of the non-main function in the third database value table collection object is destroyed, or the database value table object of the non-main function in the fourth database value table collection object is destroyed, or the database value table object of the non-main function in the fifth database value table collection object is destroyed; When the database value table object of the non-main function is destroyed, if there is only the database value table of the global variable in any database value table collection object, the database value table of the global variable and the corresponding database value table collection object are destroyed.