[go: up one dir, main page]

CN107800490B - Parameter processing method and system - Google Patents

Parameter processing method and system Download PDF

Info

Publication number
CN107800490B
CN107800490B CN201610757131.3A CN201610757131A CN107800490B CN 107800490 B CN107800490 B CN 107800490B CN 201610757131 A CN201610757131 A CN 201610757131A CN 107800490 B CN107800490 B CN 107800490B
Authority
CN
China
Prior art keywords
parameter
loading
loaded
parameters
requested
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610757131.3A
Other languages
Chinese (zh)
Other versions
CN107800490A (en
Inventor
王福
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Datang Linktester Technology Co ltd
Original Assignee
Datang Linktester Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Datang Linktester Technology Co ltd filed Critical Datang Linktester Technology Co ltd
Priority to CN201610757131.3A priority Critical patent/CN107800490B/en
Publication of CN107800490A publication Critical patent/CN107800490A/en
Application granted granted Critical
Publication of CN107800490B publication Critical patent/CN107800490B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a parameter processing method and a system, wherein the method comprises the following steps: matching a first parameter with a sample set, and acquiring first attribute information corresponding to the first parameter from the sample set; storing the first parameter to a first set position according to the first attribute information; receiving a parameter loading request; and acquiring and loading the parameters requested to be loaded by the parameter loading request from the first set position. The invention solves the problems of abnormal radio frequency measurement caused by frequent operations of parameter storage and loading when the existing terminal comprehensive tester tests the terminal, and the problems of large workload, repeated operation and redundancy in the parameter storage and loading function development process.

Description

Parameter processing method and system
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a parameter processing method and system.
Background
The terminal comprehensive tester can be widely applied to calibration and test in terminal production, the fields of terminal and chip research and development design and the like, and can also be applied to the certification test of the radio frequency consistency of the terminal. The terminal comprehensive tester can test a plurality of fields of the terminal, and the corresponding functions supported by the terminal comprehensive tester are very rich.
When the terminal comprehensive tester tests the terminal, the user needs to configure corresponding parameters for each test function so as to test different situations and conditions of the terminal. In general, when a parameter definition is added, a developer needs to develop a function of storing and loading the parameter, and frequent operations of storing and loading the parameter may cause an abnormal radio frequency measurement.
Secondly, for each parameter, the corresponding storage and loading functions need to be developed, and the workload is large. Repeated performance of a measurement function requires reconfiguration of the required parameters, repetitive and redundant operation. Moreover, when a large number of storage and loading functions of parameters are developed, the implementation of the storage and loading functions of individual parameters is often omitted due to negligence of developers, so that the test result is abnormal.
Disclosure of Invention
The invention provides a parameter processing method and a system, which are used for solving the problems of abnormal radio frequency measurement caused by frequent operations of parameter storage and loading when an existing terminal comprehensive tester tests a terminal and the problems of large workload, repeated operation and redundancy in the parameter storage and loading function development process.
In order to solve the above problems, the present invention discloses a parameter processing method, which comprises:
matching a first parameter with a sample set, and acquiring first attribute information corresponding to the first parameter from the sample set;
storing the first parameter to a first set position according to the first attribute information;
receiving a parameter loading request;
and acquiring and loading the parameters requested to be loaded by the parameter loading request from the first set position.
Preferably, the method further comprises:
obtaining sample parameters;
defining the sample parameters, and setting attribute information of the sample parameters to obtain the sample parameter set; wherein the attribute information includes at least one of the following information: the sample parameter comprises a default value, a valid range, a type of the sample parameter, first indication information for indicating that the sample parameter supports a storage function, and second indication information for indicating that the sample parameter supports a loading function.
Preferably, the method further comprises:
determining a type of the first parameter;
checking the first parameter according to the type of the first parameter;
and when the first parameter passes the verification, executing the step of storing the first parameter to a first set position according to the first attribute information.
Preferably, the method further comprises:
judging whether the first parameter carries first indication information or not; wherein the first indication information is used for indicating that the first parameter supports a storage function;
and if so, executing the step of storing the first parameter to a first set position according to the first attribute information.
Preferably, the obtaining and loading the parameter requested to be loaded by the parameter loading request from the first setting position includes: :
acquiring the parameters requested to be loaded by the parameter loading request from the first set position;
judging whether the obtained parameter requested to be loaded by the parameter loading request carries second indication information or not; the second indication information is used for indicating that the parameter requested to be loaded by the parameter loading request supports a loading function;
and if so, loading the parameters requested to be loaded by the acquired parameter loading request.
Preferably, the obtaining and loading the parameter requested to be loaded by the parameter loading request from the first setting position includes:
acquiring the parameters requested to be loaded by the parameter loading request from the first set position;
determining the type of the acquired parameter requested to be loaded by the parameter loading request;
verifying the parameters requested to be loaded by the parameter loading request according to the type of the parameters requested to be loaded by the parameter loading request;
and if the verification is passed, loading the parameters requested to be loaded by the acquired parameter loading request.
Preferably, the first parameter is one or more, and the parameter loading request is used to request loading of one or more parameters.
The invention also discloses a parameter processing system, comprising:
the matching acquisition module is used for matching a first parameter with a sample set and acquiring first attribute information corresponding to the first parameter from the sample set;
the storage module is used for storing the first parameter to a first set position according to the first attribute information;
the receiving module is used for receiving a parameter loading request;
and the loading module is used for acquiring and loading the parameters requested to be loaded by the parameter loading request from the first set position.
Preferably, the system further comprises:
the acquisition module is used for acquiring sample parameters;
the definition module is used for defining the sample parameters, setting the attribute information of the sample parameters and obtaining the sample parameter set; wherein the attribute information includes at least one of the following information: the sample parameter comprises a default value, a valid range, a type of the sample parameter, first indication information for indicating that the sample parameter supports a storage function, and second indication information for indicating that the sample parameter supports a loading function.
Preferably, the system further comprises:
a determining module for determining a type of the first parameter;
the checking module is used for checking the first parameter according to the type of the first parameter;
and the first execution module is used for executing the storage module when the first parameter passes the verification.
Preferably, the system further comprises:
the judging module is used for judging whether the first parameter carries first indication information; wherein the first indication information is used for indicating that the first parameter supports a storage function;
and the second execution module is used for executing the storage module when the first parameter carries first indication information.
Preferably, the loading module includes: :
the first obtaining submodule is used for obtaining the parameters requested to be loaded by the parameter loading request from the first set position;
and a judgment submodule. The device is used for judging whether the acquired parameter requested to be loaded by the parameter loading request carries second indication information or not; the second indication information is used for indicating that the parameter requested to be loaded by the parameter loading request supports a loading function;
and the first execution submodule is used for loading the parameters requested to be loaded by the acquired parameter loading request when the parameters requested to be loaded by the parameter loading request carry second indication information.
Preferably, the loading module includes:
the second obtaining submodule is used for obtaining the parameters requested to be loaded by the parameter loading request from the first set position;
the determining submodule is used for determining the type of the acquired parameter requested to be loaded by the parameter loading request;
the checking submodule is used for checking the parameters requested to be loaded by the parameter loading request according to the type of the parameters requested to be loaded by the parameter loading request;
and the second execution sub-module is used for loading the parameters requested to be loaded by the acquired parameter loading request if the parameters requested to be loaded by the parameter loading request pass the verification.
Preferably, the first parameter is one or more, and the parameter loading request is used to request loading of one or more parameters.
Compared with the prior art, the invention has the following advantages:
the invention discloses a parameter processing scheme, which can match a first parameter with a sample set and obtain first attribute information corresponding to the first parameter from the sample set; storing the first parameter to a first set position according to the first attribute information; meanwhile, receiving a parameter loading request; and acquiring and loading the parameters requested to be loaded by the parameter loading request from the first set position. Therefore, the invention realizes the self-adaptive processing of the storage and loading of different types of parameters, reduces the operation of developers, reduces the development workload and improves the development efficiency.
Secondly, the storage and loading mechanism provided by the parameter processing scheme of the invention has universality, different types of parameters can be self-adaptively stored and loaded through the parameter processing scheme of the invention, the development times of the storage and loading functions of the same parameter are reduced, the problem of abnormal frequency measurement caused by frequent development of the storage and loading functions of the parameter is avoided, the stability of the system is improved, the active operation steps of developers are reduced, and various abnormal phenomena caused by human factors are avoided.
Drawings
FIG. 1 is a flowchart illustrating a parameter processing method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a parameter processing method according to a second embodiment of the present invention;
fig. 3 is an architecture diagram of a system for implementing the parameter processing method according to a third embodiment of the present invention;
fig. 4 is a block diagram of a parameter processing system according to a fourth embodiment of the present invention. (ii) a
Fig. 5 is a block diagram of a preferred parameter processing system according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Example one
Referring to fig. 1, a flowchart illustrating a parameter processing method according to an embodiment of the present invention is shown. In this embodiment, the parameter processing method includes:
step 102, matching a first parameter with a sample set, and obtaining first attribute information corresponding to the first parameter from the sample set.
In this embodiment, the sample set may include corresponding general attribute information of various types of sample parameters, such as: default values, valid ranges, types, whether to store, etc. of sample parameters. By matching the first parameter with the sample set, the first attribute information corresponding to the first parameter can be obtained from the sample set.
And 104, storing the first parameter to a first set position according to the first attribute information.
In this embodiment, after determining the first attribute corresponding to the first parameter, the first parameter may be stored according to the determined first attribute. The first parameter may be stored in any suitable location. For example, the first parameter may be stored to a predefined first set position. The first setting position may be, but not limited to, a database, a memory, or a cache.
Step 106, receiving a parameter loading request.
In this embodiment, the loading of the stored parameter may also be implemented by receiving a parameter loading request.
And 108, acquiring and loading the parameters requested to be loaded by the parameter loading request from the first set position.
In this embodiment, the parameter requested to be loaded by the parameter loading request may be found from a first setting position for storing the parameter, and then the parameter requested to be loaded by the parameter loading request is obtained from the first setting position and loaded.
In summary, in the parameter processing method according to this embodiment, a first parameter may be matched with a sample set, and first attribute information corresponding to the first parameter is obtained from the sample set; storing the first parameter to a first set position according to the first attribute information; meanwhile, receiving a parameter loading request; and acquiring and loading the parameters requested to be loaded by the parameter loading request from the first set position. Therefore, the self-adaptive processing of the storage and the loading of the parameters of different types is realized, the operation of developers is reduced, the development workload is reduced, and the development efficiency is improved.
Secondly, the storage and loading mechanism provided by the parameter processing method of the embodiment has universality, different types of parameters can be self-adaptively stored and loaded by the parameter processing method, the development times of the storage and loading functions of the same parameter are reduced, the problem of abnormal frequency measurement caused by frequent development of the storage and loading functions of the parameter is avoided, the stability of the system is improved, the active operation steps of developers are reduced, and various abnormal phenomena caused by human factors are avoided.
Example two
Referring to fig. 2, a flowchart illustrating a parameter processing method according to a second embodiment of the present invention is shown. In this embodiment, the parameter processing method includes:
step 202, sample parameters are obtained.
In the present embodiment, the respective types of parameters may be acquired as the sample parameters in any appropriate manner. Wherein, the corresponding parameters can be selected as the sample parameters according to the test requirements or the requirements of other practical environments. The sample parameter is one or more.
Step 204, defining the sample parameter, and setting the attribute information of the sample parameter to obtain the sample parameter set.
In the present embodiment, the attribute information of the set sample parameter includes, but is not limited to, at least one of the following information: the sample parameter comprises a default value, a valid range, a type of the sample parameter, first indication information for indicating that the sample parameter supports a storage function, and second indication information for indicating that the sample parameter supports a loading function.
Step 206, matching the first parameter with a sample set, and obtaining first attribute information corresponding to the first parameter from the sample set.
In this embodiment, when a storage request is received, a first parameter used by the storage request to request storage may be matched with the sample set, and first attribute information corresponding to the first parameter may be obtained from the sample set.
In a preferable aspect of this embodiment, after obtaining the first attribute information corresponding to the first parameter from the sample set, the method may further include:
step 208, determining the type of the first parameter.
In the present embodiment, the types of the first parameter include, but are not limited to: int type parameters, double type parameters, etc.
Step 210, verifying the first parameter according to the type of the first parameter.
In this embodiment, for different parameter types, a matching verification method may be selected for verification. For example, for an int-type first parameter, it is checked whether a value of the first parameter is within an effective range, and whether a type error exists; for the first parameter of double type, it will be checked whether the decimal number of the value of the first parameter meets the requirement.
Wherein, when the first parameter passes the verification, the following step 214 may be performed. If the first parameter is not verified, the storage of the first parameter can be rejected, and meanwhile, a notification message for indicating verification failure is sent, so that a user can modify the first parameter according to the notification message.
In another preferred aspect of this embodiment, after obtaining the first attribute information corresponding to the first parameter from the sample set, the method may further include:
step 212, determining whether the first parameter carries first indication information.
As described above, the first indication information may be used to indicate that the first parameter supports a storage function; in this embodiment, if the first parameter carries the first indication information, it is determined that the first parameter can be stored, that is, the following step 214 is performed. If the first parameter does not carry the first indication information, the storage of the first parameter may be rejected.
Step 214, storing the first parameter to a first setting position according to the first attribute information.
In this embodiment, the first parameter may be stored in any suitable location, for example, the first setting location includes but is not limited to: a database and a server. Memory or cache, etc., which is not limited in this embodiment.
It should be noted that, in this embodiment, the step of verifying the first parameter (step 208 and step 210) and the step of determining whether the first parameter supports the storage function (step 212) may be executed at the same time, and the step 214 is executed when it is determined that the first parameter passes the verification and it is determined that the first parameter supports the storage function.
Step 216, receiving a parameter loading request.
In this embodiment, a loading scheme of the parameters is further provided corresponding to the storage of the parameters. That is, the parameter loading request sent by the user may be received, and the parameter requested to be loaded by the parameter loading request is further implemented.
And step 218, acquiring and loading the parameters requested to be loaded by the parameter loading request from the first set position.
In this embodiment, the parameter requested to be loaded by the parameter loading request may be searched and obtained from the first setting position, and loaded.
In particular, the amount of the solvent to be used,
in a preferable scheme of this embodiment, the step 218 may specifically include:
sub-step 2182, obtaining the parameters requested to be loaded by the parameter loading request from the first setting position.
And a substep 2184, determining whether the obtained parameter requested to be loaded by the parameter loading request carries second indication information.
As described above, the second indication information may be used to indicate that the parameter requested by the parameter loading request supports the loading function. If the parameter requested to be loaded by the parameter loading request carries the second execution information, the following substep 2186 may be executed. If the parameters requested to be loaded by the parameter loading request do not carry the second execution information, the parameter loading can be refused.
Sub-step 2186, loading the parameters requested to be loaded by the obtained parameter loading request.
In another preferable scheme of this embodiment, the step 218 may specifically include:
sub-step 2188, obtaining the parameters requested to be loaded by the parameter loading request from the first setting position.
Sub-step 21810, determining the type of the parameter requested to be loaded by the acquired parameter loading request.
As previously mentioned, the types of parameters requested to be loaded by the parameter loading request include, but are not limited to: any of the known types, int type and double type.
Sub-step 21812, checking the parameter requested to be loaded by the parameter loading request according to the type of the parameter requested to be loaded by the parameter loading request.
In this embodiment, the verification of the parameter requested to be loaded by the parameter loading request may refer to the verification process for the first parameter, which is not described herein again.
Wherein, if the parameter requested to be loaded by the parameter loading request passes the verification, the following sub-step 21814 can be executed. If the parameter verification requested to be loaded by the parameter loading request is not passed, the parameter requested to be loaded by the parameter loading request can be refused to be loaded.
And a sub-step 21814 of loading the parameters requested to be loaded by the obtained parameter loading request.
It should be noted that, in this embodiment, the step of checking the parameter requested to be loaded by the parameter loading request (sub-step 2188 and 21812) and the step of determining whether the parameter requested to be loaded by the parameter loading request supports the loading function (sub-step 2182 and 2184) may be executed at the same time, and when it is determined that the parameter requested to be loaded by the parameter loading request passes the check and it is determined that the parameter requested to be loaded by the parameter loading request supports the loading function, the parameter requested to be loaded by the obtained parameter loading request is loaded.
In addition, it should be further noted that, in this embodiment, the first parameter may be one or more parameters, and the parameter loading request is used to request loading of one or more parameters. In other words, the parameter processing method described in this embodiment supports one-click storage of a plurality of first parameters, and at the same time, the parameter processing method also supports one-click loading of a plurality of parameters.
In summary, in the parameter processing method according to this embodiment, a first parameter may be matched with a sample set, and first attribute information corresponding to the first parameter is obtained from the sample set; storing the first parameter to a first set position according to the first attribute information; meanwhile, receiving a parameter loading request; and acquiring and loading the parameters requested to be loaded by the parameter loading request from the first set position. Therefore, the self-adaptive processing of the storage and the loading of the parameters of different types is realized, the operation of developers is reduced, the development workload is reduced, and the development efficiency is improved.
Secondly, the storage and loading mechanism provided by the parameter processing method of the embodiment has universality, different types of parameters can be self-adaptively stored and loaded by the parameter processing method, the development times of the storage and loading functions of the same parameter are reduced, the problem of abnormal frequency measurement caused by frequent development of the storage and loading functions of the parameter is avoided, the stability of the system is improved, the active operation steps of developers are reduced, and various abnormal phenomena caused by human factors are avoided.
In addition, the parameter processing method can realize one-click storage and loading of the parameters, reduce the workload of realizing large-batch parameter storage and loading, and simultaneously ensure the uniformity of operation on all the parameters. The user can not care about the specific information such as the parameter type, the quantity and the like required to be stored in one measurement process, the operation is simple and easy to realize, and the use by the user is convenient.
EXAMPLE III
With reference to the foregoing embodiments, this embodiment describes the parameter processing method in detail through a specific example.
Referring to fig. 3, an architecture diagram of a system for implementing the parameter processing method in the third embodiment of the present invention is shown. In this embodiment, a system for implementing the parameter processing method may include: the system comprises a parameter storage and loading interface, a parameter general storage component, a parameter general loading component and a parameter definition component. The parameter storage and loading interface may be located at a UI layer, the parameter general storage component and the parameter general loading component may be located at a logic layer, and the parameter definition component may be located at a business layer. The parameter storage and loading interface may be configured to receive a storage and loading request of a user for a parameter, the parameter general storage component may be configured to implement storage of the parameter, the parameter general loading component may be configured to implement loading of the stored parameter, and the parameter definition component may be configured to implement definition of attribute information and the like of the parameter.
The functions of the above components will be described in detail below.
And defining the parameters in the program through the parameter definition component, and setting default values, effective ranges and types of the parameters and whether the storage is supported. Whether loading is supported, etc.
And the parameter general storage component determines whether to increase the support of a certain parameter storage function according to the attribute information corresponding to the parameter. The parameter general storage component can also be used for checking different types of parameters, such as validity checking, default value checking and the like. In addition, the parameters that need to be stored may be stored to a database. For example, during verification, verification may be performed according to the type of the parameter, and then, during verification of the range of the parameter, the parameter is stored in the database when all the verifications are passed.
The parameter general loading component can retrieve the parameters corresponding to the request loading from the database, acquire the corresponding parameters, and check the acquired corresponding parameters, such as validity check, default value check, and the like. Meanwhile, whether the obtained corresponding parameters support the loading function or not can be judged, and the obtained corresponding parameters are loaded when the obtained corresponding parameters pass the verification and support the loading function.
It should be noted that, the parameter general storage component and the parameter general loading component may be correspondingly started (invoked) after receiving a request sent through the parameter storage and loading interface.
In summary, in the parameter processing method according to this embodiment, a first parameter may be matched with a sample set, and first attribute information corresponding to the first parameter is obtained from the sample set; storing the first parameter to a first set position according to the first attribute information; meanwhile, receiving a parameter loading request; and acquiring and loading the parameters requested to be loaded by the parameter loading request from the first set position. Therefore, the self-adaptive processing of the storage and the loading of the parameters of different types is realized, the operation of developers is reduced, the development workload is reduced, and the development efficiency is improved.
Secondly, the storage and loading mechanism provided by the parameter processing method of the embodiment has universality, different types of parameters can be self-adaptively stored and loaded by the parameter processing method, the development times of the storage and loading functions of the same parameter are reduced, the problem of abnormal frequency measurement caused by frequent development of the storage and loading functions of the parameter is avoided, the stability of the system is improved, the active operation steps of developers are reduced, and various abnormal phenomena caused by human factors are avoided.
Thirdly, the parameter processing method can realize one-click storage and loading of the parameters, reduce the workload of realizing large-batch parameter storage and loading, and simultaneously ensure the uniformity of operation on all the parameters. The user can not care about the specific information such as the parameter type, the quantity and the like required to be stored in one measurement process, the operation is simple and easy to realize, and the use by the user is convenient.
Further, the parameter general storage component and the parameter general loading component described in this embodiment effectively separate the logic layer from the service layer, thereby reducing the coupling of software and further improving the stability of software.
In addition, in this embodiment, only the parameters that need to be stored may be stored, and the parameters that need to be loaded may be loaded, so that the storage and loading of the parameters are more flexible. Meanwhile, the parameter processing method has good expansibility, and developers can quickly and conveniently increase parameter types which are not supported by the components.
It should be noted that the foregoing method embodiments are described as a series of acts or combinations for simplicity in explanation, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts or acts described, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Example four
Based on the same inventive concept as the above method embodiments, referring to fig. 4, a block diagram of a parameter processing system in a fourth embodiment of the present invention is shown. In this embodiment, the parameter processing system includes:
a matching obtaining module 402, configured to match a first parameter with a sample set, and obtain first attribute information corresponding to the first parameter from the sample set.
The storage module 404 is configured to store the first parameter to a first set position according to the first attribute information.
A receiving module 406, configured to receive a parameter loading request.
And the loading module 408 is configured to obtain and load the parameter requested to be loaded by the parameter loading request from the first set position.
Therefore, the parameter processing system of the embodiment realizes the self-adaptive processing of the storage and loading of different types of parameters, reduces the operation of developers, reduces the development workload and improves the development efficiency. Secondly, the storage and loading mechanism provided by the parameter processing system of this embodiment has universality, and different types of parameters can be adaptively stored and loaded by the parameter processing system of the present invention, thereby reducing the number of times of developing the storage and loading functions of the same parameter, avoiding the problem of abnormal frequency measurement caused by frequent development of the storage and loading functions of the parameter, improving the stability of the system, reducing the active operation steps of developers, and avoiding various abnormal phenomena caused by human factors.
In a preferred embodiment of this embodiment, referring to fig. 5, a block diagram of a preferred parameter processing system in an embodiment of the present invention is shown.
Preferably, the parameter processing system may further include: an obtaining module 410 is configured to obtain the sample parameter. A defining module 412, configured to define the sample parameter, and set attribute information of the sample parameter to obtain the sample parameter set; wherein the attribute information includes at least one of the following information: the sample parameter comprises a default value, a valid range, a type of the sample parameter, first indication information for indicating that the sample parameter supports a storage function, and second indication information for indicating that the sample parameter supports a loading function.
Preferably, the parameter processing system may further include: a determining module 414 configured to determine a type of the first parameter. A checking module 416, configured to check the first parameter according to the type of the first parameter. A first executing module 418, configured to execute the storing module 404 when the first parameter passes the verification.
Preferably, the parameter processing system may further include: a determining module 420, configured to determine whether the first parameter carries first indication information; wherein the first indication information is used for indicating that the first parameter supports a storage function. A second executing module 422, configured to execute the storing module 404 when the first parameter carries the first indication information.
In a preferred embodiment of this embodiment, the loading module 408 specifically includes: a first obtaining sub-module 4082, configured to obtain, from the first set position, the parameter requested to be loaded by the parameter loading request. Decision sub-module 4084. The device is used for judging whether the acquired parameter requested to be loaded by the parameter loading request carries second indication information or not; the second indication information is used for indicating that the parameter requested to be loaded by the parameter loading request supports the loading function. The first execution sub-module 4086 is configured to load the parameter requested to be loaded by the obtained parameter loading request when the parameter requested to be loaded by the parameter loading request carries the second indication information.
In another preferred embodiment of this embodiment, the loading module 408 may specifically include: a second obtaining sub-module 4088, configured to obtain the parameter requested to be loaded by the parameter loading request from the first setting position. The determining sub-module 40810 is configured to determine the type of the acquired parameter requested to be loaded by the parameter loading request. The checking sub-module 40812 is configured to check the parameter requested to be loaded by the parameter loading request according to the type of the parameter requested to be loaded by the parameter loading request. The second execution sub-module 40814 loads the parameter requested to be loaded by the obtained parameter loading request if the parameter requested to be loaded by the parameter loading request passes the verification.
It should be noted that the first parameter is one or more, and the parameter loading request is used to request loading of one or more parameters. In other words, the parameter processing system described in this embodiment supports one-key storage and one-key loading.
In summary, the parameter processing system according to this embodiment may match a first parameter with a sample set, and obtain first attribute information corresponding to the first parameter from the sample set; storing the first parameter to a first set position according to the first attribute information; meanwhile, receiving a parameter loading request; and acquiring and loading the parameters requested to be loaded by the parameter loading request from the first set position. Therefore, the self-adaptive processing of the storage and the loading of the parameters of different types is realized, the operation of developers is reduced, the development workload is reduced, and the development efficiency is improved.
Secondly, the storage and loading mechanism provided by the parameter processing method of the embodiment has universality, different types of parameters can be stored and loaded in a self-adaptive manner through the parameter processing system, the development times of the storage and loading functions of the same parameter are reduced, the problem of abnormal frequency measurement caused by frequent development of the storage and loading functions of the parameter is avoided, the stability of the system is improved, the active operation steps of developers are reduced, and various abnormal phenomena caused by human factors are avoided.
Thirdly, the parameter processing system can realize one-click storage and loading of the parameters, reduce the workload of realizing large-batch parameter storage and loading, and simultaneously ensure the uniformity of operation on all the parameters. The user can not care about the specific information such as the parameter type, the quantity and the like required to be stored in one measurement process, the operation is simple and easy to realize, and the use by the user is convenient.
In addition, in this embodiment, only the parameters that need to be stored may be stored, and the parameters that need to be loaded may be loaded, so that the storage and loading of the parameters are more flexible. Meanwhile, the parameter processing method has good expansibility, and developers can quickly and conveniently increase parameter types which are not supported by the components.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The parameter processing method and system provided by the present invention are introduced in detail, and a specific example is applied in the text to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (12)

1. A method for configuring a parameter, comprising:
obtaining sample parameters;
defining the sample parameters, and setting attribute information of the sample parameters to obtain the sample parameter set; wherein the attribute information includes at least one of the following information: the default value, the valid range, the data type of the sample parameter, first indication information for indicating that the sample parameter supports a storage function, and second indication information for indicating that the sample parameter supports a loading function;
matching a first parameter with the sample set, and acquiring first attribute information corresponding to the first parameter from the sample set;
storing the first parameter to a first set position according to the first attribute information;
receiving a parameter loading request;
and acquiring and loading the parameters requested to be loaded by the parameter loading request from the first set position.
2. The method of claim 1, further comprising:
determining a type of the first parameter;
checking the first parameter according to the type of the first parameter;
and when the first parameter passes the verification, executing the step of storing the first parameter to a first set position according to the first attribute information.
3. The method of claim 1, further comprising:
judging whether the first parameter carries first indication information or not; wherein the first indication information is used for indicating that the first parameter supports a storage function;
and if so, executing the step of storing the first parameter to a first set position according to the first attribute information.
4. The method according to claim 1, wherein the obtaining and loading the parameters requested to be loaded by the parameter loading request from the first set position comprises:
acquiring the parameters requested to be loaded by the parameter loading request from the first set position;
judging whether the obtained parameter requested to be loaded by the parameter loading request carries second indication information or not, wherein the second indication information is used for indicating that the parameter requested to be loaded by the parameter loading request supports a loading function;
and if so, loading the parameters requested to be loaded by the acquired parameter loading request.
5. The method according to claim 1, wherein the obtaining and loading the parameters requested to be loaded by the parameter loading request from the first set position comprises:
acquiring the parameters requested to be loaded by the parameter loading request from the first set position;
determining the type of the acquired parameter requested to be loaded by the parameter loading request;
verifying the parameters requested to be loaded by the parameter loading request according to the type of the parameters requested to be loaded by the parameter loading request;
and if the verification is passed, loading the parameters requested to be loaded by the acquired parameter loading request.
6. The method of claim 1, wherein the first parameter is one or more, and wherein the parameter loading request requests loading of one or more parameters.
7. A system for configuring a parameter, comprising:
the acquisition module is used for acquiring sample parameters;
the definition module is used for defining the sample parameters, setting the attribute information of the sample parameters and obtaining the sample parameter set; wherein the attribute information includes at least one of the following information: the default value, the valid range, the data type of the sample parameter, first indication information for indicating that the sample parameter supports a storage function, and second indication information for indicating that the sample parameter supports a loading function;
the matching acquisition module is used for matching a first parameter with a sample set and acquiring first attribute information corresponding to the first parameter from the sample set;
the storage module is used for storing the first parameter to a first set position according to the first attribute information;
the receiving module is used for receiving a parameter loading request;
and the loading module is used for acquiring and loading the parameters requested to be loaded by the parameter loading request from the first set position.
8. The system of claim 7, further comprising:
a determining module for determining a type of the first parameter;
the checking module is used for checking the first parameter according to the type of the first parameter;
and the first execution module is used for executing the storage module when the first parameter passes the verification.
9. The system of claim 7, further comprising:
the judging module is used for judging whether the first parameter carries first indication information; wherein the first indication information is used for indicating that the first parameter supports a storage function;
and the second execution module is used for executing the storage module when the first parameter carries first indication information.
10. The system of claim 7, wherein the load module comprises:
the first obtaining submodule is used for obtaining the parameters requested to be loaded by the parameter loading request from the first set position;
the judging submodule is used for judging whether the acquired parameter requested to be loaded by the parameter loading request carries second indication information or not, wherein the second indication information is used for indicating that the parameter requested to be loaded by the parameter loading request supports a loading function;
and the first execution submodule is used for loading the parameters requested to be loaded by the acquired parameter loading request when the parameters requested to be loaded by the parameter loading request carry second indication information.
11. The system of claim 7, wherein the load module comprises:
the second obtaining submodule is used for obtaining the parameters requested to be loaded by the parameter loading request from the first set position;
the determining submodule is used for determining the type of the acquired parameter requested to be loaded by the parameter loading request;
the checking submodule is used for checking the parameters requested to be loaded by the parameter loading request according to the type of the parameters requested to be loaded by the parameter loading request;
and the second execution sub-module is used for loading the parameters requested to be loaded by the acquired parameter loading request if the parameters requested to be loaded by the parameter loading request pass the verification.
12. The system of claim 7, wherein the first parameter is one or more, and wherein the parameter loading request requests loading of one or more parameters.
CN201610757131.3A 2016-08-29 2016-08-29 Parameter processing method and system Active CN107800490B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610757131.3A CN107800490B (en) 2016-08-29 2016-08-29 Parameter processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610757131.3A CN107800490B (en) 2016-08-29 2016-08-29 Parameter processing method and system

Publications (2)

Publication Number Publication Date
CN107800490A CN107800490A (en) 2018-03-13
CN107800490B true CN107800490B (en) 2021-06-11

Family

ID=61529090

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610757131.3A Active CN107800490B (en) 2016-08-29 2016-08-29 Parameter processing method and system

Country Status (1)

Country Link
CN (1) CN107800490B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112825032A (en) * 2019-11-20 2021-05-21 北京配天技术有限公司 Software parameter configuration method and device with storage function

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572146A (en) * 2013-10-16 2015-04-29 北大方正集团有限公司 Drilling machine parameter configuring system and method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9361137B2 (en) * 2006-03-10 2016-06-07 International Business Machines Corporation Managing application parameters based on parameter types
JP2011221718A (en) * 2010-04-07 2011-11-04 Sony Corp Generation device, generation method, and program
US8713049B2 (en) * 2010-09-17 2014-04-29 Oracle International Corporation Support for a parameterized query/view in complex event processing
CN102364891B (en) * 2011-09-13 2014-08-27 杭州华三通信技术有限公司 Method for upgrading software of embedded Ethernet equipment and embedded Ethernet equipment
CN104615459B (en) * 2015-01-05 2018-02-09 凌云天博光电科技股份有限公司 A kind of MoCA device parameters collocation method and device
CN104615539A (en) * 2015-02-09 2015-05-13 大唐联仪科技有限公司 Measurement parameter processing method and system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572146A (en) * 2013-10-16 2015-04-29 北大方正集团有限公司 Drilling machine parameter configuring system and method

Also Published As

Publication number Publication date
CN107800490A (en) 2018-03-13

Similar Documents

Publication Publication Date Title
CN112965700B (en) Routing-based micro-service processing method and device, computer equipment and medium
CN112199300B (en) Interface testing method and device, electronic equipment and storage medium
CN111901238B (en) Dynamic routing service method, device, electronic device and storage medium
CN106201850B (en) A kind of compatibility test method and device
CN111177003A (en) Test method, device, system, electronic equipment and storage medium
CN110221948A (en) Test script generation method, device, computer installation and storage medium
CN109344066B (en) Method, system and terminal for testing browser page
CN112306568A (en) Service instance configuration method and device, electronic equipment and storage medium
CN103246601A (en) Testing method and device
CN113392010A (en) Common component testing method and device, electronic equipment and storage medium
US8676943B1 (en) Document based fleet management
CN107800490B (en) Parameter processing method and system
CN109254904B (en) A database pressure measurement method, device and electronic device
CN114968800A (en) Micro-service test method and device
CN111475400B (en) Verification method of service platform and related equipment
CN112181831A (en) Script performance verification method, device and equipment based on keywords and storage medium
US20160048629A1 (en) Automatic generation of test layouts for testing a design rule checking tool
US8359456B2 (en) Generating random addresses for verification of distributed computerized devices
CN116974928A (en) Dynamic test method, device, terminal equipment and medium based on data migration
CN113765735B (en) Application test methods, devices, equipment and storage media
CN111737129B (en) Service control method, device, computer readable medium and electronic equipment
CN115422081A (en) Multi-version software testing method and device, electronic equipment and storage medium
CN118503075A (en) Test case generation method, device, equipment and medium
CN113836012A (en) Algorithm testing method and device, electronic equipment and storage medium
CN117313856B (en) Reliability test planning system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant