CN110516258A - Data verification method and device, storage medium, electronic device - Google Patents
Data verification method and device, storage medium, electronic device Download PDFInfo
- Publication number
- CN110516258A CN110516258A CN201910817704.0A CN201910817704A CN110516258A CN 110516258 A CN110516258 A CN 110516258A CN 201910817704 A CN201910817704 A CN 201910817704A CN 110516258 A CN110516258 A CN 110516258A
- Authority
- CN
- China
- Prior art keywords
- data
- verified
- input
- format
- component
- 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
Links
Abstract
The present invention provides a kind of data verification method and device, storage medium, electronic devices, this method comprises: carrying out format check using to be verified data of the determining verification component to input, obtain check results, wherein, it include preset attribute format in the verification component, the checking algorithm of the data to be verified is verified, includes default input format in the checking algorithm;Determine the input of the data to be verified with the presence or absence of abnormal based on the check results.Through the invention, it solves the problems, such as to verify data present in the relevant technologies, achievees the effect that facilitate verification data.
Description
Technical field
The present invention relates to the communications fields, in particular to a kind of data verification method and device, storage medium, electronics
Device.
Background technique
During modern webpage development, developer is not only to provide a pure illustrative page to user.In
Very to often having the page and the interaction of user in the page, it is various that one of interaction is that user's needs are filled in webpage
Information.And webpage cannot limit the input of user, if not doing regular limitation for user's input results, that result may
It can be multifarious.It can not meet and use upper demand.
In view of the above technical problems, it not yet puts forward effective solutions in the related technology.
Summary of the invention
The embodiment of the invention provides a kind of data verification method and device, storage medium, electronic devices, at least to solve
The problem of data are verified in the related technology.
According to one embodiment of present invention, a kind of data verification method is provided, comprising: utilize determining verification component
Format check is carried out to the data to be verified of input, obtains check results, wherein includes preset attribute lattice in above-mentioned verification component
Formula verifies the checking algorithm of above-mentioned data to be verified, includes default input format in above-mentioned checking algorithm;Based on above-mentioned verification knot
Fruit determines the input of above-mentioned data to be verified with the presence or absence of abnormal.
Optionally, format check is carried out using to be verified data of the determining verification component to input, obtains check results
Before, the above method further include: determine above-mentioned verification component, wherein determine that above-mentioned verification component comprises determining that first assembly,
Wherein, above-mentioned first assembly is used to examine the input format of above-mentioned data to be verified, includes above-mentioned default in above-mentioned first assembly
Input format verifies the first checking algorithm of above-mentioned data entry format to be verified;Determine the second component, wherein above-mentioned second
Component is used to examine the overall format of above-mentioned data to be verified, includes default overall format in above-mentioned second component, examines above-mentioned
Second checking algorithm of the overall format of data to be verified;The combination of above-mentioned first assembly and the second component is determined as above-mentioned school
Test component, wherein above-mentioned first assembly is included in above-mentioned second component.
Optionally it is determined that after above-mentioned verification component, the above method further include: above-mentioned first assembly is registered to above-mentioned
In two components, so that above-mentioned first assembly has the ability for accessing above-mentioned second component;The defeated of above-mentioned data to be verified will be carried
Enter component to be bound with above-mentioned first assembly and above-mentioned second component.
Optionally, format check is carried out using to be verified data of the determining verification component to input, obtains check results
Before, the above method further include: define the data format of above-mentioned data to be verified, wherein the data lattice of above-mentioned data to be verified
Formula includes at least one of: language, mark, type, the data format of the table where above-mentioned data to be verified.
Optionally, format check is carried out using to be verified data of the determining verification component to input, obtains check results,
It include: in the case where determining that above-mentioned data input to be verified is completed, by belonging to above-mentioned default input for above-mentioned data to be verified
Property be compared, obtain the first comparison result, wherein include that above-mentioned data to be verified input attribute in above-mentioned first comparison result
With the presence or absence of exception;Above-mentioned data to be verified are compared with the default input format in above-mentioned checking algorithm, obtain second
Comparison result, wherein the input format in above-mentioned second comparison result including above-mentioned data to be verified is with the presence or absence of abnormal.
Optionally, determine the input of above-mentioned data to be verified with the presence or absence of abnormal including following based on above-mentioned check results
At least one: it shows that above-mentioned data input attribute to be verified is deposited in an exceptional case in above-mentioned first comparison result, determines
The input of above-mentioned data to be verified exists abnormal;The input format of above-mentioned data to be verified is shown in above-mentioned second comparison result
It deposits and determines that the input of above-mentioned data to be verified has exception in an exceptional case.
According to another embodiment of the invention, a kind of data calibration device is provided, comprising: the first determining module is used
In carrying out format check using to be verified data of the determining verification component to input, check results are obtained, wherein above-mentioned verification
Include preset attribute format in component, verify the checking algorithm of above-mentioned data to be verified, include in above-mentioned checking algorithm preset it is defeated
Entry format;Second determining module, for determining the input of above-mentioned data to be verified with the presence or absence of abnormal based on above-mentioned check results.
According to still another embodiment of the invention, a kind of storage medium is additionally provided, meter is stored in the storage medium
Calculation machine program, wherein the computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
According to still another embodiment of the invention, a kind of electronic device, including memory and processor are additionally provided, it is described
Computer program is stored in memory, the processor is arranged to run the computer program to execute any of the above-described
Step in embodiment of the method.
Through the invention, it due to carrying out format check using to be verified data of the determining verification component to input, obtains
Check results, wherein include preset attribute format in verification component, the checking algorithm of data to be verified is verified, in checking algorithm
Including presetting input format;Determine the input of data to be verified with the presence or absence of abnormal based on check results.It can be eaily
The verification to data is realized by verification component.Therefore, it can solve and ask present in the relevant technologies what data were verified
Topic achievees the effect that facilitate verification data.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of hardware block diagram of the mobile terminal of data verification method of the embodiment of the present invention;
Fig. 2 is the flow chart of data verification method according to an embodiment of the present invention;
Fig. 3 is the structural block diagram of input frame according to an embodiment of the present invention;
Fig. 4 is the schematic diagram of form validation according to embodiments of the present invention;
Fig. 5 is the code schematic diagram of alternative embodiment according to the present invention;
Fig. 6 is the structural block diagram of data calibration device according to an embodiment of the present invention.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting
In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.
Embodiment of the method provided by the embodiment of the present application can be in mobile terminal, terminal or similar operation
It is executed in device.For running on mobile terminals, Fig. 1 is a kind of mobile end of data verification method of the embodiment of the present invention
The hardware block diagram at end.As shown in Figure 1, mobile terminal 10 may include one or more (only showing one in Fig. 1) processing
Device 102 (processing unit that processor 102 can include but is not limited to Micro-processor MCV or programmable logic device FPGA etc.) and
Memory 104 for storing data, optionally, above-mentioned mobile terminal can also include the transmission device for communication function
106 and input-output equipment 108.It will appreciated by the skilled person that structure shown in FIG. 1 is only to illustrate, simultaneously
The structure of above-mentioned mobile terminal is not caused to limit.For example, mobile terminal 10 may also include it is more than shown in Fig. 1 or less
Component, or with the configuration different from shown in Fig. 1.
Memory 104 can be used for storing computer program, for example, the software program and module of application software, such as this hair
The corresponding computer program of data verification method in bright embodiment, processor 102 are stored in memory 104 by operation
Computer program realizes above-mentioned method thereby executing various function application and data processing.Memory 104 may include
High speed random access memory, may also include nonvolatile memory, as one or more magnetic storage device, flash memory or its
His non-volatile solid state memory.In some instances, memory 104 can further comprise remotely setting relative to processor 102
The memory set, these remote memories can pass through network connection to mobile terminal 10.The example of above-mentioned network includes but not
It is limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Transmitting device 106 is used to that data to be received or sent via a network.Above-mentioned network specific example may include
The wireless network that the communication providers of mobile terminal 10 provide.In an example, transmitting device 106 includes a Network adaptation
Device (Network Interface Controller, referred to as NIC), can be connected by base station with other network equipments to
It can be communicated with internet.In an example, transmitting device 106 can for radio frequency (Radio Frequency, referred to as
RF) module is used to wirelessly be communicated with internet.
A kind of data verification method is provided in the present embodiment, and Fig. 2 is data check side according to an embodiment of the present invention
The flow chart of method, as shown in Fig. 2, the process includes the following steps:
Step S202 carries out format check using to be verified data of the determining verification component to input, obtains verification knot
Fruit, wherein include preset attribute format in verification component, verify the checking algorithm of data to be verified, include pre- in checking algorithm
If input format;
Step S204 determines the input of data to be verified with the presence or absence of abnormal based on check results.
Through the above steps, it due to carrying out format check using to be verified data of the determining verification component to input, obtains
To check results, wherein include preset attribute format in verification component, verify the checking algorithm of data to be verified, checking algorithm
In include default input format;Determine the input of data to be verified with the presence or absence of abnormal based on check results.It can be more convenient
Verification to data is realized by verification component.Therefore, it can solve and data to be verified present in the relevant technologies
Problem achievees the effect that facilitate verification data.
Optionally, the executing subject of above-mentioned steps can be terminal etc., but not limited to this.
Optionally, in the present embodiment, verification component can be high-order component.The present embodiment includes but is not limited to be applied to
In the scene of list verification.
Optionally, in the present embodiment, preset attribute format includes but is not limited to the text formatting for being data to be verified, example
Such as, the input format of mailbox can be similar to " 1111111111@qq.com ", that is, what is inputted is number+character+characters' property
Format.Default input format is also possible to the input format of mailbox among the above.
In an alternative embodiment, format school is carried out using to be verified data of the determining verification component to input
It tests, before obtaining check results, method further include: determine verification component, wherein determine that verification component includes:
S1 determines first assembly, wherein first assembly is used to examining the input formats of data to be verified, in first assembly
Including presetting input format, the first checking algorithm of data entry format to be verified is verified;
S2 determines the second component, wherein the second component is used to examining the overall formats of data to be verified, in the second component
Including presetting overall format, the second checking algorithm of the overall format of data to be verified is examined;
The combination of first assembly and the second component is determined as verifying component, wherein first assembly is included in second group by S3
In part.
Optionally, in the present embodiment, first assembly include but is not limited to be FromItem component, the second component include but
It is not limited to Form component.First assembly and the second component can be high-order component.Form component is for doing the total verification of list
And function is stepped in list submission.FromItem is used to do the verification of an input item, such as an input frame.First assembly and
It can be the relationship of sub-component and parent component between two components.
In an alternative embodiment, after determining verification component, method further include:
First assembly is registered in the second component by S1, so that first assembly has the ability of the second component of access;
S2 binds the input module for carrying data to be verified and first assembly and the second component.
It is alternatively possible to which the function of From component is accomplished by the following way:
AddFromItem, for being exposed to FromItem this method, by FromItem component register into From component.
In this way regardless of whether From and FormItem are set membership, FormItem component can be accessed in From component.
RemoveFromItem is removed from From when sub-component is nullified for removing FromItem
FromItem。
Validate, for executing verification function, this method can traverse all FromItem and execution internal
The method of calibration of FromItem, the list verification being chiefly used in front of submission.
Submit exposes a submission method, the data of all editors can be returned after verifying successfully for submitting.
It is alternatively possible to which the function of FromItem component is accomplished by the following way:
Validate is used for method of calibration, and the data rule come in for transmitting is verified.It is successful then return to null character
String, failure then return to prompt information defined in message.
RulesDataInit, according to the rules option that transmitting is come in, carries out format to data for the formatting of rule
Change.The trigger condition defined of trigger in rule is registered in respective triggering function.
HandleChange, for the function that form item executes when user's change value, be form item value into
Row assignment.If there is the verification being registered in change in rule, method of calibration is executed.
HandleBlur executes method when losing focus for form item, if be registered in blur in rule
Verification executes method of calibration.
Through this embodiment, using the Context technology of React, the access ancestor components of energy cross-layer grade may be implemented, and
The From component that is accessed for capableing of cross-layer grade in FromItem component calls parent component after the completion of the rendering of FromItem component
AddFromItem current component object registration into From component.
In an alternative embodiment, format school is carried out using to be verified data of the determining verification component to input
It tests, before obtaining check results, method further include:
S1 defines the data format of data to be verified, wherein the data format of data to be verified include it is following at least it
One: language, mark, type, the data format of the table where data to be verified.
Optionally, for example, to mark id definition, for identifying the field in list.User name can be defined as,
userName.Or name, the Chinese description of data item indicate " name ".Value: the real value of data item, such as user are real
When the password that inputs.Type: the type of list, such as the entitled input frame of user, password are a Password Input frame.
Rules: the rule of the verification of list and other data item.
Optionally, array or a dictionary can be defined as rules, if rules be defined as array representation this
A form item contains one or more verification rules.An only unique check item is then indicated if it is dictionary.
It can be such defined that for single check item
Required: define whether the list is required item;
Message: the information exported after input error supports the mode of $ { } to bind dynamic template;
Trigger: when definition triggers verification, and multiple trigger conditions are directly used | it separates;
Type: the verification rule type of default can receive parameter such as max:30, indicate that receiving longest input is 30
Character.Type can support multiple custom rule types simultaneously.Used between multiple types | it separates.
Pattern: the regularity of verification;
Validator: being defined as a function, executes complicated verification rule, and function receives value conduct currently entered
Parameter, the value of right the latter Boolean type indicate that verification passes through for true, indicate verification failure for false.
In an alternative embodiment, format school is carried out using to be verified data of the determining verification component to input
It tests, obtains check results, comprising:
S1, in the case where determining that data input to be verified is completed, by being carried out with default input attribute for data to be verified
It compares, obtains the first comparison result, wherein include data to be verified input attribute in the first comparison result with the presence or absence of abnormal;
Data to be verified are compared with the default input format in checking algorithm, obtain the second comparison result by S2,
In, the input format in the second comparison result including data to be verified is with the presence or absence of abnormal.
Optionally, the present embodiment determines whether the format of input is correct by way of comparison.
In an alternative embodiment, determine the input of data to be verified with the presence or absence of abnormal, packet based on check results
Include at least one of:
S1 shows that data input attribute to be verified is deposited in an exceptional case in the first comparison result, determines to be verified
The input of data exists abnormal;
S2 shows that the input format of data to be verified is deposited in an exceptional case in the second comparison result, determines to school
There is exception in the input for testing data.
Optionally, in the present embodiment, any one then thinks that input format has exception in the presence of abnormal.As shown in figure 3, In
In the case that the Chinese name of input is not Chinese, then prompt to exist abnormal.The mode of form validation as shown in figure 4, including
The configuration of attribute.
In an alternative embodiment, determine the input of data to be verified with the presence or absence of exception based on check results
Afterwards, method further includes following one:
S1, data to be verified deposit in an exceptional case, issue prompt information, wherein prompt information for prompt to
It verifies data and there is exception;
S2 does not deposit in an exceptional case in inspection data, returns to null character string.
Optionally, in the present embodiment, prompt information include but is not limited to be voice, text etc..
In conclusion the method that the homepage that will be rendered all binds From component, the list in the page is all bound
The method of upper FromItem.User can carry out verification in real time when input to the input of user.Specific code is such as
Shown in Fig. 5.The present embodiment, it is applied widely, it is not only applicable in traditional list and submits scene, be applied equally to Table edit
Verification, for the independent verification of table a line.From list can support multi-tier, that is, multistage can carry out different
Verification.It is easy to use, directly define before the use relevant data item can, in data item by data value and verification
Rule is bound.The usage scenario and rendering business of verification component are not limited, user can collect in any DOM element
At him.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much
In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing
The part that technology contributes can be embodied in the form of software products, which is stored in a storage
In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate
Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
A kind of data calibration device is additionally provided in the present embodiment, and the device is real for realizing above-described embodiment and preferably
Mode is applied, the descriptions that have already been made will not be repeated.As used below, the soft of predetermined function may be implemented in term " module "
The combination of part and/or hardware.Although device described in following embodiment is preferably realized with software, hardware, or
The realization of the combination of software and hardware is also that may and be contemplated.
Fig. 6 is the structural block diagram of data calibration device according to an embodiment of the present invention, as shown in fig. 6, the device includes:
First determining module 62, for carrying out format check using to be verified data of the determining verification component to input,
Obtain check results, wherein include preset attribute format in the verification component, the verification for verifying the data to be verified is calculated
Method includes default input format in the checking algorithm;
Second determining module 64, for determining the input of the data to be verified with the presence or absence of different based on the check results
Often.
Optionally, above-mentioned apparatus further include:
Third determining module, for carrying out format check using to be verified data of the determining verification component to input,
Before obtaining check results, verification component is determined, wherein determine that verification component comprises determining that first assembly, wherein first group
Part is used to examine the input format of data to be verified, includes default input format in first assembly, verifies data input to be verified
First checking algorithm of format;Determining the second component, wherein the second component is used to examine the overall format of data to be verified, the
Include default overall format in two components, examines the second checking algorithm of the overall format of data to be verified;By first assembly and
The combination of second component is determined as verifying component, wherein first assembly is included in the second component.
Optionally, above-mentioned apparatus further include:
Registration module, for first assembly being registered in the second component, so that first group after determining verification component
Part has the ability of the second component of access;
Binding module, for binding the input module for carrying data to be verified with first assembly and the second component.
Optionally, above-mentioned apparatus further include:
Definition module is obtained for carrying out format check using data to be verified of the determining verification component to input
Before check results, define the data format of data to be verified, wherein the data format of data to be verified include it is following at least it
One: language, mark, type, the data format of the table where data to be verified.
Optionally, above-mentioned first determining module, comprising:
First determination unit, in the case where determining that data to be verified input is completed, by data to be verified with it is pre-
If input attribute is compared, the first comparison result is obtained, wherein include that data to be verified input attribute in the first comparison result
With the presence or absence of exception;
Second determination unit is obtained for data to be verified to be compared with the default input format in checking algorithm
Second comparison result, wherein the input format in the second comparison result including data to be verified is with the presence or absence of abnormal.
Optionally, above-mentioned second determining module, including at least one of:
Third determination unit, for showing that data input attribute to be verified has exception in the first comparison result
Under, it is abnormal to determine that the input of data to be verified exists;
4th determination unit, for showing that the input format of data to be verified has abnormal feelings in the second comparison result
Under condition, it is abnormal to determine that the input of data to be verified exists.
Optionally, above-mentioned apparatus further includes following one:
Cue module, in the input for determining data to be verified based on check results with the presence or absence of after exception, to
Data are verified there are in the case where exception, issue prompt information, wherein there are different for prompting data to be verified for prompt information
Often;
Return module returns to null character string for not depositing in an exceptional case in inspection data.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong
Following manner realization is crossed, but not limited to this: above-mentioned module is respectively positioned in same processor;Alternatively, above-mentioned modules are with any
Combined form is located in different processors.
The embodiments of the present invention also provide a kind of storage medium, computer program is stored in the storage medium, wherein
The computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store by executing based on following steps
Calculation machine program:
S1 carries out format check using to be verified data of the determining verification component to input, obtains check results,
In, verifying includes preset attribute format in component, verifies the checking algorithm of data to be verified, includes default input in checking algorithm
Format;
S2 determines the input of data to be verified with the presence or absence of abnormal based on check results.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (Read-
Only Memory, referred to as ROM), it is random access memory (Random Access Memory, referred to as RAM), mobile hard
The various media that can store computer program such as disk, magnetic or disk.
The embodiments of the present invention also provide a kind of electronic device, including memory and processor, stored in the memory
There is computer program, which is arranged to run computer program to execute the step in any of the above-described embodiment of the method
Suddenly.
Optionally, above-mentioned electronic device can also include transmission device and input-output equipment, wherein the transmission device
It is connected with above-mentioned processor, which connects with above-mentioned processor.
Optionally, in the present embodiment, above-mentioned processor can be set to execute following steps by computer program:
S1 carries out format check using to be verified data of the determining verification component to input, obtains check results,
In, verifying includes preset attribute format in component, verifies the checking algorithm of data to be verified, includes default input in checking algorithm
Format;
S2 determines the input of data to be verified with the presence or absence of abnormal based on check results.
Optionally, the specific example in the present embodiment can be with reference to described in above-described embodiment and optional embodiment
Example, details are not described herein for the present embodiment.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general
Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed
Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored
It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein
Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or
Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.It is all within principle of the invention, it is made it is any modification, etc.
With replacement, improvement etc., should all be included in the protection scope of the present invention.
Claims (9)
1. a kind of data verification method characterized by comprising
Format check is carried out using to be verified data of the determining verification component to input, obtains check results, wherein the school
Testing includes preset attribute format in component, verifies the checking algorithm of the data to be verified, includes default in the checking algorithm
Input format;
Determine the input of the data to be verified with the presence or absence of abnormal based on the check results.
2. the method according to claim 1, wherein using determining verification component to the data to be verified of input
Format check is carried out, before obtaining check results, the method also includes: determine the verification component, wherein determine the school
Testing component includes:
Determining first assembly, wherein the first assembly is used to examining the input formats of the data to be verified, and described first group
Include the default input format in part, verifies the first checking algorithm of the data entry format to be verified;
Determining the second component, wherein second component is used to examining the overall formats of the data to be verified, and described second group
Include default overall format in part, examines the second checking algorithm of the overall format of the data to be verified;
The combination of the first assembly and the second component is determined as the verification component, wherein the first assembly is included in
In second component.
3. according to the method described in claim 2, it is characterized in that, after determining the verification component, the method also includes:
The first assembly is registered in second component, so that the first assembly has access second component
Ability;
The input module for carrying the data to be verified and the first assembly and second component are bound.
4. the method according to claim 1, wherein using determining verification component to the data to be verified of input
Format check is carried out, before obtaining check results, the method also includes:
Define the data format of the data to be verified, wherein the data format of the data to be verified include it is following at least it
One: language, mark, type, the data format of the table where the data to be verified.
5. the method according to claim 1, wherein using determining verification component to the data to be verified of input
Format check is carried out, check results are obtained, comprising:
In the case where determining that the data to be verified input is completed, by the data to be verified and the default input attribute
It is compared, obtains the first comparison result, wherein include that the data input attribute to be verified is in first comparison result
It is no to there is exception;
The data to be verified are compared with the default input format in the checking algorithm, obtain the second comparison result,
Wherein, the input format in second comparison result including the data to be verified is with the presence or absence of abnormal.
6. according to the method described in claim 5, it is characterized in that, determining the data to be verified based on the check results
Input is with the presence or absence of exception, including at least one of:
Show that the data to be verified input attribute is deposited in an exceptional case in first comparison result, determine it is described to
There is exception in the input for verifying data;
Show that the input format of the data to be verified is deposited in an exceptional case in second comparison result, described in determination
The input of data to be verified exists abnormal.
7. a kind of data calibration device characterized by comprising
First determining module obtains school for carrying out format check using to be verified data of the determining verification component to input
Test result, wherein include preset attribute format in the verification component, verifies the checking algorithm of the data to be verified, it is described
It include default input format in checking algorithm;
Second determining module, for determining the input of the data to be verified with the presence or absence of abnormal based on the check results.
8. a kind of storage medium, which is characterized in that be stored with computer program in the storage medium, wherein the computer
Program is arranged to execute method described in any one of claim 1 to 6 when operation.
9. a kind of electronic device, including memory and processor, which is characterized in that be stored with computer journey in the memory
Sequence, the processor are arranged to run the computer program to execute side described in any one of claim 1 to 6
Method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910817704.0A CN110516258B (en) | 2019-08-30 | 2019-08-30 | Data verification method and device, storage medium and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910817704.0A CN110516258B (en) | 2019-08-30 | 2019-08-30 | Data verification method and device, storage medium and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110516258A true CN110516258A (en) | 2019-11-29 |
CN110516258B CN110516258B (en) | 2022-12-06 |
Family
ID=68628652
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910817704.0A Active CN110516258B (en) | 2019-08-30 | 2019-08-30 | Data verification method and device, storage medium and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110516258B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111427566A (en) * | 2020-03-18 | 2020-07-17 | 北京达佳互联信息技术有限公司 | Data processing method and device suitable for analog interface platform and server |
CN111444224A (en) * | 2020-03-24 | 2020-07-24 | 政采云有限公司 | Service data verification method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160364722A1 (en) * | 2015-06-09 | 2016-12-15 | Ca, Inc. | Alternate primary account number generation |
CN109635031A (en) * | 2018-12-19 | 2019-04-16 | 成都四方伟业软件股份有限公司 | A kind of data quality checking method, apparatus, system and storage medium |
CN109800104A (en) * | 2018-12-18 | 2019-05-24 | 盛科网络(苏州)有限公司 | Detection method, device, storage medium and the electronic device of data storage |
CN110020381A (en) * | 2018-02-23 | 2019-07-16 | 中国平安财产保险股份有限公司 | Method of calibration, device, equipment and computer storage medium based on configuration file |
-
2019
- 2019-08-30 CN CN201910817704.0A patent/CN110516258B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160364722A1 (en) * | 2015-06-09 | 2016-12-15 | Ca, Inc. | Alternate primary account number generation |
CN110020381A (en) * | 2018-02-23 | 2019-07-16 | 中国平安财产保险股份有限公司 | Method of calibration, device, equipment and computer storage medium based on configuration file |
CN109800104A (en) * | 2018-12-18 | 2019-05-24 | 盛科网络(苏州)有限公司 | Detection method, device, storage medium and the electronic device of data storage |
CN109635031A (en) * | 2018-12-19 | 2019-04-16 | 成都四方伟业软件股份有限公司 | A kind of data quality checking method, apparatus, system and storage medium |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111427566A (en) * | 2020-03-18 | 2020-07-17 | 北京达佳互联信息技术有限公司 | Data processing method and device suitable for analog interface platform and server |
CN111444224A (en) * | 2020-03-24 | 2020-07-24 | 政采云有限公司 | Service data verification method and device |
CN111444224B (en) * | 2020-03-24 | 2023-08-15 | 政采云有限公司 | Service data verification method and device |
Also Published As
Publication number | Publication date |
---|---|
CN110516258B (en) | 2022-12-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109828903A (en) | Automated testing method, device, computer installation and storage medium | |
CN109460279A (en) | Forms pages development approach, device, equipment and storage medium based on small routine | |
CN107679418A (en) | Data desensitization method, server and storage medium | |
CN110503207A (en) | Federation's study credit management method, device, equipment and readable storage medium storing program for executing | |
CN107122258A (en) | Method and apparatus for the state code check of test interface | |
CN110109817A (en) | Automatic interface testing method, device, equipment and storage medium | |
CN110515937A (en) | A kind of data verification method and device | |
CN109345200A (en) | Automatic auditing method and device, computer readable storage medium based on high-volume report | |
CN109597816A (en) | Parameter verification method, apparatus, computer storage medium and embedded device | |
CN106529229B (en) | The treating method and apparatus of permissions data | |
CN107766124A (en) | A kind of automatic verification method and device of WEB lists | |
CN110083526A (en) | Applied program testing method, device, computer installation and storage medium | |
CN108664628A (en) | A kind of deriving method and equipment of data | |
CN110516258A (en) | Data verification method and device, storage medium, electronic device | |
CN110362473A (en) | Test optimization method and device, storage medium, the terminal of environment | |
CN109828906A (en) | UI automated testing method, device, electronic equipment and storage medium | |
CN112052172A (en) | Rapid testing method and device for third-party channel and electronic equipment | |
CN112711640A (en) | Method and device for configuring business handling process | |
CN106156361A (en) | Law enforcement supervision method and device | |
CN110795305A (en) | System, apparatus and method for processing and managing WEB traffic data | |
CN110413596A (en) | Field processing method and processing device, storage medium, electronic device | |
CN109411034A (en) | Regular integrity verification method and device, the computer readable storage medium of medical inspection project | |
CN109857634A (en) | Interface testing parameter verification method, apparatus, electronic equipment and storage medium | |
CN112433935A (en) | Test method, test device, electronic equipment and storage medium | |
CN109582560A (en) | Test file edit methods, device, equipment and computer readable storage medium |
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 |