CN107168866A - A kind of Parameter analysis of electrochemical method and device of configuration file - Google Patents

A kind of Parameter analysis of electrochemical method and device of configuration file Download PDF

Info

Publication number
CN107168866A
CN107168866A CN201610131516.9A CN201610131516A CN107168866A CN 107168866 A CN107168866 A CN 107168866A CN 201610131516 A CN201610131516 A CN 201610131516A CN 107168866 A CN107168866 A CN 107168866A
Authority
CN
China
Prior art keywords
parameter
field
value
predetermined format
predetermined
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.)
Granted
Application number
CN201610131516.9A
Other languages
Chinese (zh)
Other versions
CN107168866B (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610131516.9A priority Critical patent/CN107168866B/en
Publication of CN107168866A publication Critical patent/CN107168866A/en
Application granted granted Critical
Publication of CN107168866B publication Critical patent/CN107168866B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A kind of Parameter analysis of electrochemical method and device of configuration file;Methods described includes:Respectively according to the parameter name of each first parameter to be resolved in the configuration file, the parameter value of first parameter is obtained;When including the field of one or more predetermined formats in the parameter value of first parameter, the corresponding setting value of field of each predetermined format is obtained respectively, and the field of corresponding predetermined format in the parameter value of first parameter is replaced using acquired setting value;Wherein, the information with identical meanings in different parameters value is represented using the field of same predetermined format;The parameter value that the first parameter of replacement will be completed saves as the analysis result of first parameter.The application can concentrate the modification for carrying out similar parameter, reduce the probability malfunctioned during modification.

Description

A kind of Parameter analysis of electrochemical method and device of configuration file
Technical field
The present invention relates to field, more particularly to a kind of analysis method and device of configuration file.
Background technology
The substantial amounts of parameter of configuration, such as the version returned in regression test are usually required in configuration file Number, number of times that case statement is performed etc. is all the parameter for needing to configure, because the demand of test constantly becomes Change, cause these parameters to be required for manual modification, and multiple local modifications can be related to.
Existing technical scheme is mainly all preserves a configuration file all parameters that can be related to In, and carry out characterising parameter using key (parameter name)=val (parameter value) mode.
Such as, the form of parameter is as follows in configuration file:
Key1=/test/1.0/sub_1
Key2=/test/1.0/dis_0
Key3=/test/1.0/sub_1/sub_dir
Current beta version is 1.0, and wherein major release is 1, and minor release/point release is 0;Repair if desired Change beta version, 2.1 are upgraded to from 1.0, then need the above in manual modification configuration file to be:
Key1=/test/2.1/sub_2
Key2=/test/2.1/dis_1
Key3=/test/2.1/sub_2/sub_dir
Prior art is primarily present following problem:
On the one hand, there are multiple similar parameter values if changing, then all places being related to Modification is required for, workload is larger, taken more.And during modification, if somewhere Forget to change, the result of test can be caused not meet expection.
On the other hand, the description of parameter has to comply with strict sequencing, otherwise may cause error; In such as upper example, "/test/1.0/sub_1/ " (is after modification for first half in Key3 "/test/2.1/sub_2/ ") it is Key1, therefore before Key1 must come Key3;If Key3 Come before Key1, due to the also no successfully resolveds of Key1 when being resolved to Key3, therefore parse Key3 It will fail.
The content of the invention
The application can concentrate the modification for carrying out similar parameter, reduce the probability malfunctioned during modification.
The application is adopted the following technical scheme that.
A kind of Parameter analysis of electrochemical method of configuration file, including:
Respectively according to the parameter name of each first parameter to be resolved in the configuration file, described the is obtained The parameter value of one parameter;
When including the field of one or more predetermined formats in the parameter value of first parameter, obtain respectively The corresponding setting value of field of each predetermined format is taken, described the is replaced using acquired setting value The field of corresponding predetermined format in the parameter value of one parameter;Wherein, in different parameters value have it is identical The information of implication is represented using the field of same predetermined format;The parameter for the first parameter replaced will be completed Value saves as the analysis result of first parameter.
Alternatively, the field of the predetermined format includes:
The character string combined with predetermined symbol according to predetermined way.
Alternatively, the corresponding setting value of field that each predetermined format is obtained respectively includes:
Field for each predetermined format carries out following processing respectively:By in the field of the predetermined format Character string obtains described second as the parameter name of the second parameter according to the parameter name of second parameter The parameter value of parameter, is used as the corresponding setting value of the field of the predetermined format.
Alternatively, the parameter value of first parameter that will complete replacement saves as the solution of first parameter Analysis result includes:
Judge whether the parameter value of each first parameter still includes predetermined format after replacement respectively Field;
For the parameter value of still the first parameter of the field comprising predetermined format, described obtain respectively often is returned The corresponding setting value of field of the individual predetermined format, first ginseng is replaced using acquired setting value In several parameter values the step of the field of corresponding predetermined format;
For the parameter value of the first parameter of the field in the absence of predetermined format, first parameter is saved as Analysis result.
Alternatively, described method also includes:
Corresponding predetermined format in parameter value to replacing first parameter using acquired setting value The number of times of field counted, if it exceeds predetermined maximum number of times of replacing then is reported an error.
A kind of Parameter analysis of electrochemical device of configuration file, including:
Acquisition module, for respectively according to the parameter of each first parameter to be resolved in the configuration file Name, obtains the parameter value of first parameter;
Replacement module, for when in the parameter value of first parameter comprising one or more predetermined formats During field, the corresponding setting value of field of each predetermined format is obtained respectively, is set using acquired The field of corresponding predetermined format in the parameter value of definite value replacement first parameter;Wherein, different parameters The information with identical meanings in value is represented using the field of same predetermined format;
Memory module, the parameter value for the first parameter by replacement is completed saves as first parameter Analysis result.
Alternatively, the field of the predetermined format includes:
The character string combined with predetermined symbol according to predetermined way.
Alternatively, the replacement module obtains the corresponding setting value of field of each predetermined format respectively Including:
The replacement module carries out following processing respectively for the field of each predetermined format:This pre- is fixed Character string in the field of formula as the second parameter parameter name, according to the parameter name of second parameter The parameter value of second parameter is obtained, the corresponding setting value of the field of the predetermined format is used as.
Alternatively, the parameter value for the first parameter that the memory module replaces completion saves as described first The analysis result of parameter includes:
Still whether the memory module judge the parameter value of each first parameter after replacement respectively Field comprising predetermined format;For the parameter value of still the first parameter of the field comprising predetermined format, return Back to the replacement module;For the parameter value of the first parameter of the field in the absence of predetermined format, preserve For the analysis result of first parameter.
Alternatively, described device also includes:
Detection module, for phase in the parameter value to replacing first parameter using acquired setting value The number of times of the field for the predetermined format answered is counted, if it exceeds predetermined maximum number of times of replacing then is carried out Report an error.
First the parameter value in configuration file is defined as comprising pre- at least one alternative of the application The form of the field for the formula that fixes, and the identical content in different parameters value is all defined as same make a reservation for The field of form, only needs to change the value of the field of corresponding predetermined format, it becomes possible to make when so changing The parameter value of field comprising the predetermined format all completes modification, therefore can reduce the general of modification error Rate.
It can be influenceed in another alternative of the application for parameter value by the analysis result of other parameters Parameter (such as above in example, Key3 parameter value is influenceed by Key1 analysis result), by this The part related to the other parameters analysis result, which is used, in the parameter value of parameter contains other ginsengs The field of the predetermined format of several parameter names represents, so as to so that parameter puts in order in configuration file Unrestricted, analytic parameter fails caused by reducing reference order problem.
Another alternative of the application check that whether configuration parameter is deposited by counting parsing number of times In conflict, so as to find the situation of parameter configuration error.
Certainly, implementing any product of the application must be not necessarily required to while reaching all the above excellent Point.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of the Parameter analysis of electrochemical method of the configuration file of embodiment one;
Fig. 2 is the schematic diagram of the Parameter analysis of electrochemical device of the configuration file of embodiment two.
Embodiment
The technical scheme of the application is described in detail below in conjunction with drawings and Examples.
If it should be noted that not conflicting, each feature in the embodiment of the present application and embodiment can To be combined with each other, within the protection domain of the application.Patrolled in addition, though showing in flow charts Volume order, but in some cases, can be shown or described to be performed different from order herein Step.
In a typical configuration, the computing device of client or Verification System may include one or more Processor (CPU), input/output interface, network interface and internal memory (memory).
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory And/or the form, such as read-only storage (ROM) or flash memory (flash such as Nonvolatile memory (RAM) RAM).Internal memory is the example of computer-readable medium.Internal memory potentially includes module 1, module 2 ... ..., Module N (N is the integer more than 2).
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by Any method or technique come realize information store.Information can be computer-readable instruction, data structure, The module of program or other data.The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), dynamic random access memory (DRAM), Other kinds of random access memory (RAM), read-only storage (ROM), electrically erasable Read-only storage (EEPROM), fast flash memory bank or the read-only storage of other memory techniques, read-only optical disc Device (CD-ROM), digital versatile disc (DVD) or other optical storages, magnetic cassette tape, magnetic The storage of band magnetic rigid disk or other magnetic storage apparatus or any other non-transmission medium, can be with available for storage The information being accessed by a computing device.Defined according to herein, computer-readable medium does not include non-temporary The data-signal and carrier wave of computer readable media (transitory media), such as modulation.
Embodiment one, a kind of Parameter analysis of electrochemical method of configuration file, as shown in figure 1, including step S110~S120.
S110, respectively according to the parameter name of each first parameter to be resolved in the configuration file, obtain The parameter value of first parameter;
S120, when in the parameter value of first parameter include one or more predetermined formats field when, The corresponding setting value of field of each predetermined format is obtained respectively, is replaced using acquired setting value The field of corresponding predetermined format in the parameter value of first parameter;Wherein, the tool in different parameters value The information for having identical meanings is represented using the field of same predetermined format;
S130, the parameter value for the first parameter that will complete replacement save as the parsing knot of first parameter Really.
In the present embodiment, one or more predetermined formats can be included in the parameter value of each first parameter Field.If in the parameter value of first parameter be not present predetermined format field, can directly by The parameter value of first parameter saves as the analysis result of first parameter.
In the present embodiment, when there is multiple first parameters, it can get in step s 110 corresponding Multiple parameter values;Such as the first parameter includes A and B, and parameter value val_A and val_B are got respectively; If all there is the field of predetermined format in val_A and val_B, carry out respectively after step S120, In step s 130, val_A is completed to save as A analysis result after replacing, and val_B is completed after replacing Save as B analysis result.
In the present embodiment, the parameter value of Similar content in configuration file can be all defined as comprising fixing in advance The form of the field of formula, the parameter value of Similar content can be by the value of the field of corresponding predetermined format Obtain;The parameter value of the Similar content refers to the letter that one or more identical meanings are included in parameter value Breath, the information of identical meanings is represented with the field of identical predetermined format;In example such as above, All there is version information (including major release and small in the corresponding parameter value of Key1, Key2 and Key3 Version number), therefore parameter name Key1~corresponding parameter values of Key3 are the parameter value that Similarity Class holds, its In major release belong to the information of identical meanings, represented with the field of identical predetermined format;Small version The information of identical meanings number is fallen within, also represented with the field of identical predetermined format (but with representing big version The field of the predetermined format of this number is different).
The corresponding parameter value of Key1, Key2 and Key3 can be defined as follows:
Key1=/test/ $ { MAX_VER } $ { MIN_VER }/sub_ $ { MAX_VER }
Key2=/test/ $ { MAX_VER } $ { MIN_VER }/dis_ $ { MIN_VER }
Key3=/test/ $ { MAX_VER } $ { MIN_VER }/sub_ $ { MAX_VER }/sub_dir
Wherein, $ { MAX_VER } and $ { MIN_VER } are the field of the predetermined format, are represented respectively Major release and minor release/point release.The second parameter value corresponding to the field of predetermined format can set and repair Change, such as in this example, $ { MAX_VER } corresponds to " 1 ", and $ { MIN_VER } corresponds to " 0 ".
When need parse Key1 represent parameter when, the parameter value got according to Key1 is:
/test/${MAX_VER}.${MIN_VER}/sub_${MAX_VER};
Including the field of two predetermined formats:$ { MAX_VER } and $ { MIN_VER }.
When beta version is 1.0, the setting value obtained according to $ { MAX_VER } is " 1 ", according to The setting value that $ { MIN_VER } is obtained is " 0 ";Replaced with " 1 " in the corresponding parameter values of Key1 $ { MAX_VER }, replaces the $ { MIN_VER } in the corresponding parameter values of Key1 with " 0 ", obtains Key1 analysis result is as follows:
Key1=/test/1.0/sub_1.
Similarly, it can parse and obtain:
Key2=/test/1.0/dis_0;
Key3=/test/1.0/sub_1/sub_dir.
When beta version is changed to 2.1 by 1.0, modification $ { MAX_VER } is only needed in the present embodiment right The setting value answered, and the corresponding setting values of $ { MIN_VER }, after modification, according to $ { MAX_VER } The setting value of acquisition is " 2 ", is " 1 " according to $ { MIN_VER } setting values obtained, after replacement To analysis result:
Key1=/test/2.1/sub_2;
Key2=/test/2.1/dis_1;
Key3=/test/2.1/sub_2/sub_dir.
It can be seen that, in analysis result, the place relevant with version information is completed modification.
It can be seen that, in the case where being parsed using the method for the present embodiment, when the parameter value of Similar content When needing modification, it is only necessary to which Similar content can just be made by changing the value of the field of corresponding predetermined format Parameter value all complete modification, so only need to change a few value just can will in parameter value own The part of change is all automatically performed modification, greatly reduces the probability of modification error.
In the present embodiment, if setting value can not be obtained according to the field of predetermined format, illustrate for pre- The field for the formula that fixes is not present or can not obtained corresponding setting value, can be reported an error.
In the present embodiment, the field of the predetermined format can be regarded as global parameter;It is each described pre- The field for the formula that fixes and corresponding setting value can be stored in global parameter center, in parsing for looking into Look for;The global parameter center can be the one piece of isolated area marked off in internal memory.
In a kind of alternative of the present embodiment, the field of the predetermined format can be, but not limited to include: The character string combined with predetermined symbol according to predetermined way.
In this alternative, the corresponding setting value of field that each predetermined format is obtained respectively can With including:
Field for each predetermined format carries out following processing respectively:By in the field of the predetermined format Character string obtains described second as the parameter name of the second parameter according to the parameter name of second parameter The parameter value of parameter, is used as the corresponding setting value of the field of the predetermined format.
In such as above example, in the field " $ { MAX_VER } " of predetermined format, predetermined symbol For " $ { } ", character string is " MAX_VER ", and predetermined way is that character string is located at " { } " In.The field of predetermined format is " #MAX_VER# " for another example, and predetermined symbol is two " # ", Character string is " MAX_VER ", and predetermined way is that character string is located between two " # ".
In this alternative, the predetermined symbol, predetermined way can voluntarily be set, and be not limited to State specific example.Certainly, the field of the predetermined format can also be other forms, as long as can with Parameter value common in file is put to distinguish;Parameter value in such as configuration file is up to 6, So can using the character string of 10 as predetermined format field;It is impossible in parameter value for another example There is a certain class character, then the sequence of such character will be contained as the field of predetermined format.
In this alternative, corresponding parameter value is to set when the character string is as parameter name And can change.Such as upper example, equivalent to when beta version is 1.0, set:
MAX_VER=1;
MIN_VER=0.
When beta version is 2.0, it is revised as:
MAX_VER=2;
MIN_VER=1.
In this alternative, the character string can regard the parameter name of global parameter, the character as Character in sequence can include numeral, character and underscore;Can be, but not limited to character string and its Corresponding parameter value is stored in global parameter center, can be, but not limited to save as map forms.
In other alternatives, can also directly using the field of the predetermined format in itself as parameter name, Go the value that gets parms;Or the field of the predetermined format according to pre-defined rule is converted into parameter name, go Get parms value;Can also be according to acquisition or the field and the one-to-one corresponding of setting value of the predetermined format preserved Relation, obtains the corresponding setting value of field of predetermined format.
In a kind of alternative of the present embodiment, the parameter value of first parameter that will complete replacement is preserved Analysis result for first parameter can include:
Judge whether the parameter value of each first parameter still includes predetermined format after replacement respectively Field;
For the parameter value of still the first parameter of the field comprising predetermined format, return to step S120;
For the parameter value of the first parameter of the field in the absence of predetermined format, first parameter is saved as Analysis result.
In this alternative, the parameter value of the first parameter still suffers from the field of predetermined format after replacement One kind is probably:Character string in the field of predetermined format included in the parameter value of first parameter is The parameter name of other parameters, and also include the field of predetermined format in the parameter value of the other parameters.Such as In upper example, the corresponding parameter values of Key3 are defined as follows:
Key3=$ { Key1 }/sub_dir.
If Key1 definition is arranged in after Key3, then be first resolved to Key3, by character string The parameter value that " Key1 " is obtained as the second parameter name is as follows:
/test/${MAX_VER}.${MIN_VER}/sub_${MAX_VER};
Key3 parameter value is after replacement:
Key3=/test/ $ { MAX_VER } $ { MIN_VER }/sub_ $ { MAX_VER }/sub_dir.
Key1 parameter value will be parsed afterwards and preserves analysis result.
Because Key3 parameter value still suffers from the field of predetermined format after replacement, therefore also need to again Carry out a wheel and obtain setting value and the operation replaced, and now Key1 parameter value has been parsed, Therefore the operation for carrying out wheel acquisition setting value again and replacing can obtain the final analysis results of Key3.
It can be seen that, in this alternative, the ginseng that can be influenceed for parameter value by the analysis result of other parameters Number (such as above in example, Key3 parameter value is influenceed by Key1 analysis result), by parameter value In the part related to other parameters analysis result use the predetermined of the parameter name containing the other parameters The field of form represents, so as to so that parameter puts in order unrestricted in configuration file, reduce ginseng Analytic parameter fails caused by number sequencing problem.
In a kind of alternative of the present embodiment, it can also include:
Corresponding predetermined format in parameter value to replacing first parameter using acquired setting value The number of times of field counted, if it exceeds predetermined maximum number of times of replacing then is reported an error
This alternative can report an error to the nested situation of parameter cyclic;The maximum replacement number of times can With based on experience value or simulation result determine.If parameter cyclic is nested, such as wrapped in the parameter value of A Containing B, and A is also included in B parameter value, it will unlimited number of replace occur.
In this alternative, it could be arranged to:Then count value increase by 1 is often once replaced, such as is existed During being replaced above to Key1 parameter value, three replacements have been carried out altogether.It can also set For:The parameter value of all fields containing predetermined format in configuration file is completed after a wheel replacement, counted Value increase by 1.
In other alternatives, mistake can also be checked using other manner in advance, without in resolving In judged whether by count value error;Can also be in resolving using other sides beyond counting Formula checks whether mistake.
In a kind of alternative of the present embodiment, it can also include before the step S110:
It is empty global parameter center that one is set up in internal memory;
When starting parsing, all parameter names and its corresponding parameter value without by parsing are all preserved To the global parameter center;
In this alternative, according to parameter name get parms value when be also to enter in the global parameter center Row is searched;The analysis result will be also saved in the global parameter center.Can in other alternatives Parameter name and parameter value are preserved not concentrate, corresponding parameter name is simply associated into preservation with parameter value.
The Parameter analysis of electrochemical device of embodiment two, a kind of configuration file, as shown in Fig. 2 including:
Acquisition module 21, for respectively according to each first parameter to be resolved in the configuration file Parameter name, obtains the parameter value of first parameter;
Replacement module 22, for when pre- being fixed comprising one or more in the parameter value of first parameter During the field of formula, the corresponding setting value of field of each predetermined format is obtained respectively, using acquired The setting value replace the field of corresponding predetermined format in the parameter value of first parameter;Wherein, The information with identical meanings in different parameters value is represented using the field of same predetermined format;
Memory module 23, the parameter value for the first parameter by replacement is completed saves as first ginseng Several analysis results.
The acquisition module 21 is the part for being responsible for obtaining initial parameter value in apparatus described above, can be with It is the combination of software, hardware or both.
The replacement module 22 is the responsible field by the predetermined format in parameter value in apparatus described above The part of corresponding contents is replaced with, can be the combination of software, hardware or both.
The memory module 23 is the part of responsible storing and resolving result in apparatus described above, Ke Yishi The combination of software, hardware or both.
In a kind of alternative of the present embodiment, the field of the predetermined format can include:
The character string combined with predetermined symbol according to predetermined way.
In a kind of embodiment of this alternative, the replacement module obtains each described pre- fix respectively The corresponding setting value of field of formula can include:
The replacement module carries out following processing respectively for the field of each predetermined format:This pre- is fixed Character string in the field of formula as the second parameter parameter name, according to the parameter name of second parameter The parameter value of second parameter is obtained, the corresponding setting value of the field of the predetermined format is used as.
In a kind of alternative of the present embodiment, the memory module will complete the ginseng of the first parameter of replacement The analysis result that numerical value saves as first parameter can include:
Still whether the memory module judge the parameter value of each first parameter after replacement respectively Field comprising predetermined format;For the parameter value of still the first parameter of the field comprising predetermined format, return Back to the replacement module;For the parameter value of the first parameter of the field in the absence of predetermined format, preserve For the analysis result of first parameter.
In a kind of alternative of the present embodiment, described device can also include:
Detection module, for phase in the parameter value to replacing first parameter using acquired setting value The number of times of the field for the predetermined format answered is counted, if it exceeds predetermined maximum number of times of replacing then is carried out Report an error.
The detection module is the part for being responsible for detection mistake in apparatus described above, can be software, hard The combination of part or both.
Other implementation details can be found in embodiment one.
One of ordinary skill in the art will appreciate that all or part of step in the above method can pass through journey Sequence instructs related hardware to complete, and described program can be stored in computer-readable recording medium, such as only Read memory, disk or CD etc..Alternatively, all or part of step of above-described embodiment can also make Realized with one or more integrated circuits.Correspondingly, each module/unit in above-described embodiment can be with Realized in the form of hardware, it would however also be possible to employ the form of software function module is realized.The application is not limited In the combination of the hardware and software of any particular form.
Certainly, the application can also have other various embodiments, spiritual and its essence without departing substantially from the application In the case of, those skilled in the art work as can make various corresponding changes and change according to the application Shape, but these corresponding changes and deformation should all belong to the protection domain of claims hereof.

Claims (10)

1. a kind of Parameter analysis of electrochemical method of configuration file, including:
Respectively according to the parameter name of each first parameter to be resolved in the configuration file, described the is obtained The parameter value of one parameter;
When including the field of one or more predetermined formats in the parameter value of first parameter, obtain respectively The corresponding setting value of field of each predetermined format is taken, described the is replaced using acquired setting value The field of corresponding predetermined format in the parameter value of one parameter;Wherein, in different parameters value have it is identical The information of implication is represented using the field of same predetermined format;The parameter for the first parameter replaced will be completed Value saves as the analysis result of first parameter.
2. the method as described in claim 1, it is characterised in that the field of the predetermined format includes:
The character string combined with predetermined symbol according to predetermined way.
3. method as claimed in claim 2, it is characterised in that described to obtain each described pre- respectively The corresponding setting value of field for the formula that fixes includes:
Field for each predetermined format carries out following processing respectively:By in the field of the predetermined format Character string obtains described second as the parameter name of the second parameter according to the parameter name of second parameter The parameter value of parameter, is used as the corresponding setting value of the field of the predetermined format.
4. the method as described in claim 1, it is characterised in that described to join complete to replace first The analysis result that several parameter values saves as first parameter includes:
Judge whether the parameter value of each first parameter still includes predetermined format after replacement respectively Field;
For the parameter value of still the first parameter of the field comprising predetermined format, described obtain respectively often is returned The corresponding setting value of field of the individual predetermined format, first ginseng is replaced using acquired setting value In several parameter values the step of the field of corresponding predetermined format;
For the parameter value of the first parameter of the field in the absence of predetermined format, first parameter is saved as Analysis result.
5. the method as described in claim 1, it is characterised in that also include:
Corresponding predetermined format in parameter value to replacing first parameter using acquired setting value The number of times of field counted, if it exceeds predetermined maximum number of times of replacing then is reported an error.
6. a kind of Parameter analysis of electrochemical device of configuration file, it is characterised in that including:
Acquisition module, for respectively according to the parameter of each first parameter to be resolved in the configuration file Name, obtains the parameter value of first parameter;
Replacement module, for when in the parameter value of first parameter comprising one or more predetermined formats During field, the corresponding setting value of field of each predetermined format is obtained respectively, is set using acquired The field of corresponding predetermined format in the parameter value of definite value replacement first parameter;Wherein, different parameters The information with identical meanings in value is represented using the field of same predetermined format;
Memory module, the parameter value for the first parameter by replacement is completed saves as first parameter Analysis result.
7. device as claimed in claim 6, it is characterised in that the field of the predetermined format includes:
The character string combined with predetermined symbol according to predetermined way.
8. device as claimed in claim 7, it is characterised in that the replacement module is obtained often respectively The corresponding setting value of field of the individual predetermined format includes:
The replacement module carries out following processing respectively for the field of each predetermined format:This pre- is fixed Character string in the field of formula as the second parameter parameter name, according to the parameter name of second parameter The parameter value of second parameter is obtained, the corresponding setting value of the field of the predetermined format is used as.
9. device as claimed in claim 6, it is characterised in that the memory module will complete to replace The parameter value of the first parameter save as the analysis result of first parameter and include:
Still whether the memory module judge the parameter value of each first parameter after replacement respectively Field comprising predetermined format;For the parameter value of still the first parameter of the field comprising predetermined format, return Back to the replacement module;For the parameter value of the first parameter of the field in the absence of predetermined format, preserve For the analysis result of first parameter.
10. device as claimed in claim 6, it is characterised in that also include:
Detection module, for phase in the parameter value to replacing first parameter using acquired setting value The number of times of the field for the predetermined format answered is counted, if it exceeds predetermined maximum number of times of replacing then is carried out Report an error.
CN201610131516.9A 2016-03-08 2016-03-08 Parameter analysis method and device for configuration file Active CN107168866B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610131516.9A CN107168866B (en) 2016-03-08 2016-03-08 Parameter analysis method and device for configuration file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610131516.9A CN107168866B (en) 2016-03-08 2016-03-08 Parameter analysis method and device for configuration file

Publications (2)

Publication Number Publication Date
CN107168866A true CN107168866A (en) 2017-09-15
CN107168866B CN107168866B (en) 2021-02-02

Family

ID=59848389

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610131516.9A Active CN107168866B (en) 2016-03-08 2016-03-08 Parameter analysis method and device for configuration file

Country Status (1)

Country Link
CN (1) CN107168866B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109358992A (en) * 2018-09-17 2019-02-19 北京时代民芯科技有限公司 FPGA (field programmable Gate array) testing method based on partial reconfigurable technology and permutation algorithm
CN110096432A (en) * 2019-03-21 2019-08-06 平安普惠企业管理有限公司 Test text replacement method, device, computer equipment and storage medium
WO2019148720A1 (en) * 2018-02-01 2019-08-08 平安科技(深圳)有限公司 Electronic device, data storage method and storage medium
CN116775737A (en) * 2023-06-21 2023-09-19 上海腾道信息技术有限公司 Method and system for automatically generating ETL configuration

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102495898A (en) * 2011-12-15 2012-06-13 广东电网公司电力科学研究院 state online detection data template generation association method and device for power grid device
CN102662683A (en) * 2011-12-30 2012-09-12 广东东研网络科技有限公司 Generating and importing method for communication facility configuration file based on key-value pair format
US20150220233A1 (en) * 2014-01-31 2015-08-06 Aruba Networks, Inc. Automatic generation of forms for device configuration
CN105049281A (en) * 2015-06-25 2015-11-11 浪潮(北京)电子信息产业有限公司 Message parsing method and equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102495898A (en) * 2011-12-15 2012-06-13 广东电网公司电力科学研究院 state online detection data template generation association method and device for power grid device
CN102662683A (en) * 2011-12-30 2012-09-12 广东东研网络科技有限公司 Generating and importing method for communication facility configuration file based on key-value pair format
US20150220233A1 (en) * 2014-01-31 2015-08-06 Aruba Networks, Inc. Automatic generation of forms for device configuration
CN105049281A (en) * 2015-06-25 2015-11-11 浪潮(北京)电子信息产业有限公司 Message parsing method and equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019148720A1 (en) * 2018-02-01 2019-08-08 平安科技(深圳)有限公司 Electronic device, data storage method and storage medium
CN109358992A (en) * 2018-09-17 2019-02-19 北京时代民芯科技有限公司 FPGA (field programmable Gate array) testing method based on partial reconfigurable technology and permutation algorithm
CN109358992B (en) * 2018-09-17 2022-05-13 北京时代民芯科技有限公司 FPGA (field programmable Gate array) testing method based on partial reconfigurable technology and permutation algorithm
CN110096432A (en) * 2019-03-21 2019-08-06 平安普惠企业管理有限公司 Test text replacement method, device, computer equipment and storage medium
CN116775737A (en) * 2023-06-21 2023-09-19 上海腾道信息技术有限公司 Method and system for automatically generating ETL configuration
CN116775737B (en) * 2023-06-21 2024-04-30 上海腾道信息技术有限公司 Method and system for automatically generating ETL configuration

Also Published As

Publication number Publication date
CN107168866B (en) 2021-02-02

Similar Documents

Publication Publication Date Title
US9607063B1 (en) NoSQL relational database (RDB) data movement
US20200201560A1 (en) Data storage method, apparatus, and device for multi-layer blockchain-type ledger
CN106897205A (en) A kind of test data generating method and device
CN112181804B (en) Parameter verification method, device and storage medium
CN107168866A (en) A kind of Parameter analysis of electrochemical method and device of configuration file
CN106886509A (en) A kind of academic dissertation form automatic testing method
CN106897342B (en) Data verification method and equipment
US20120036133A1 (en) Computing device and method for searching for parameters in a data model
CN106325826A (en) Configuration file detection method and apparatus
US11431572B2 (en) Semantic detection and resolution of conflicts and redundancies in network function virtualization policies
US20210334292A1 (en) System and method for reconciliation of data in multiple systems using permutation matching
CN106776731A (en) One kind search implementation method, device and system
CN106960020A (en) A kind of method and apparatus for creating concordance list
US20160026708A1 (en) Selection of data storage settings for an application
US20190384825A1 (en) Method and device for data protection and computer readable storage medium
CN103164335B (en) The method and system of inspection unit test mass
CN112817984B (en) Data processing method and device, and data source acquisition method and device
CN104765775A (en) Log saving method and device
US8645388B1 (en) Method and system for processing a query
CN107133163A (en) A kind of method and apparatus for verifying description class API
US11176022B2 (en) Health diagnostics and analytics for object repositories
CN107196789B (en) Method and device for checking base station parameters
CN106951427B (en) Data extraction method and device for business object
US11561979B2 (en) Dynamically detecting and correcting errors in queries
US8903828B1 (en) Method and system for configuring a multi-path index

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