CN104063308A - Data verification method and device - Google Patents
Data verification method and device Download PDFInfo
- Publication number
- CN104063308A CN104063308A CN201310091300.0A CN201310091300A CN104063308A CN 104063308 A CN104063308 A CN 104063308A CN 201310091300 A CN201310091300 A CN 201310091300A CN 104063308 A CN104063308 A CN 104063308A
- Authority
- CN
- China
- Prior art keywords
- data
- service data
- operating statistic
- program
- terminal device
- 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
Landscapes
- Testing And Monitoring For Control Systems (AREA)
- Debugging And Monitoring (AREA)
Abstract
An embodiment of the invention discloses a data verification method and device and relates to the technical field of information. According to the data verification method and device, whether operating data corresponding to procedures reported by terminal equipment are matched with operating statistical data stored in a background server or not is detected automatically, so that the data verification efficiency is improved while the cost of data verification processes is reduced. The method comprises the steps as follows: firstly, obtaining the operating data corresponding to each procedure in the terminal equipment, then extracting the operating statistical data corresponding to each procedure from the background server which is used for storing the operating statistical data corresponding to all the procedures in the terminal equipment, and finally, outputting a detection result after detecting whether the operating data corresponding to each procedure are matched with the operating statistical data corresponding to each procedure or not.
Description
Technical field
The present invention relates to areas of information technology, particularly a kind of verification method of data and device.
Background technology
Along with the development of terminal device, the such as development of the terminal device such as mobile phone, panel computer, and in order to meet the different demands of user to terminal device, make the program in terminal device also more and more.For the program in terminal device carrying out before practical application; conventionally can carry out dependence test to the performance of program by Test Engineer; wherein; in the process that the performance of program is tested, whether the service data operating statistic data corresponding with this service data of background server record corresponding to program that terminal device reports mate is to affect one of the efficiency of test process and key issue of accuracy.
Normally first carry out test operation by manually treating test procedure by terminal device at present, thereby produce the service data of the program corresponding with this operation, and need this service data operating statistic data corresponding with this service data of background server record that manual detection terminal device reports whether to mate.Due to whole generation with detect the process of service data all by manually completing, cause the existing cost that manually carries out data verification mode higher, efficiency is lower.
Summary of the invention
The embodiment of the present invention provides a kind of verification method and device of data, when having reduced the cost of data verification process, has promoted the efficiency of data verification process.
The technical scheme that the embodiment of the present invention adopts is:
A verification method for data, comprising:
Obtain service data corresponding to each program difference in terminal device;
From background server, extract the operating statistic data corresponding with described service data, described background server is for preserving operating statistic data corresponding to all service datas that described terminal device is uploaded;
After detecting described service data and described operating statistic data and whether mating, output detections result.
A demo plant for data, comprising:
Acquiring unit, for obtaining service data corresponding to each program difference of terminal device;
Extraction unit, for extracting the operating statistic data corresponding with described service data from background server, described background server is for preserving operating statistic data corresponding to all service datas that described terminal device is uploaded;
Detecting unit, after whether the described operating statistic data that the described service data of obtaining for detection of described acquiring unit and described extraction unit extract mate, output detections result.
The verification method of the data that the embodiment of the present invention provides and device, carry out test operation with prior art by manually treating test procedure by terminal device, thereby produce the service data of the program corresponding with this operation, and need this service data that manual detection terminal device reports whether accurately to compare, whether service data corresponding to program that the present invention reports by robotization sense terminals equipment mates with the operating statistic data of preserving in background server, when having reduced the cost of data verification process, promote the efficiency of data verification.
Brief description of the drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The checking process flow diagram of a kind of data that Fig. 1 provides for the embodiment of the present invention;
The verification method process flow diagram of the another kind of data that Fig. 2 provides for the embodiment of the present invention;
The demo plant structural representation of a kind of data that Fig. 3 provides for the embodiment of the present invention;
The demo plant structural representation of the another kind of data that Fig. 4 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making all other embodiment that obtain under creative work prerequisite, belong to the scope of protection of the invention.
For making the advantage of technical solution of the present invention clearer, below in conjunction with drawings and Examples, the present invention is elaborated.
The embodiment of the present invention provides a kind of verification method of data, and as shown in Figure 1, described method comprises:
101, obtain service data corresponding to each program difference in terminal device.
Wherein, for example the program of operation be certain browser, and the service data now getting can be the data such as the classification functional module of each webpage of the webpage number that shows in this browser, demonstration.For example the program of operation is address list again, and the service data now getting can be carried out for terminal the daily record of the file extent log by name of management and group.
102, from background server, extract the operating statistic data corresponding with described service data.
Wherein, described background server is for preserving operating statistic data corresponding to all service datas that described terminal device is uploaded, operating statistic data are service data corresponding to each program difference that terminal device reports by network, each program reporting when terminal device is when corresponding service data is correct respectively, and operating statistic data are each program corresponding service data respectively.
103, after detecting described service data and described operating statistic data and whether mating, output detections result.
Wherein, in the time of service data and operating statistic Data Matching, the testing result of output is specifically as follows the information of Data Matching, thereby can further carry out related data analysis according to the data of coupling; In the time that service data and operating statistic data are not mated, the testing result of output is specifically as follows the unmatched warning information of data, and specifically identify unmatched service data and this service data corresponding upload static fields, thereby can revise fast unmatched service data, wherein, terminal device is in uploading service data to background server, corresponding with this service data static fields of uploading is uploaded in capital, as the mark of this service data and operating statistic data corresponding with this service data.
The verification method of a kind of data that the embodiment of the present invention provides, carry out test operation with prior art by manually treating test procedure by terminal device, thereby produce the service data of the program corresponding with this operation, and need this service data that manual detection terminal device reports whether accurately to compare, whether service data corresponding to program reporting by robotization sense terminals equipment mates with the operating statistic data of preserving in background server, when having reduced the cost of data verification process, promote the efficiency of data verification.
Further, the embodiment of the present invention provides the verification method of another kind of data, and as shown in Figure 2, described method comprises:
201, indicate described terminal device to move the program in described terminal device according to the first preset script.
Wherein, in the first preset script, specifically can configure the program in the terminal device that need to detect, and the operation that specifically need to carry out of this program to be tested, for example the first preset script can be configured to terminal device and in address list program, carry out management and group, or is configured to terminal device and in music player program, carries out music playlist management etc.Due in prior art, be need to manually operate terminal device after, the program of operation in terminal device, thus make existing mode cost higher, efficiency is lower.
202, obtain service data corresponding to each program difference in terminal device.
Wherein, for example the program of operation be certain browser, and the service data now getting can be the data such as the classification functional module of each webpage of the webpage number that shows in this browser, demonstration.For example the program of operation is address list again, and the service data now getting can be the log daily record of terminal operation.
203, according to the second preset script from described background server, extract the operating statistic data corresponding with described service data.
Wherein, the second preset script specifically can be configured according to the first preset script, in address list program, carry out management and group if for example the first preset script is configured to terminal device, the second preset script specifically can be configured to checkout equipment and from background server, obtains terminal and carry out the log daily record of management and group.
Wherein, described background server is for preserving operating statistic data corresponding to all service datas that described terminal device is uploaded, operating statistic data are service data corresponding to each program difference that terminal device reports by network, each program reporting when terminal device is when corresponding service data is correct respectively, and operating statistic data are each program corresponding service data respectively.Because in prior art being needs manually to extract operating statistic data corresponding to described each program difference from background server, thereby make existing extracting mode cost higher, efficiency is lower.
Particularly, can be according to the second preset script from described background server, extract with described service data upload operating statistic data corresponding to static fields.
204, after detecting described each program whether corresponding service data mating with operating statistic data respectively, output detections result.
Particularly, generate coupling verification rule by function library DME, then whether mate according to service data described in described coupling verification rule detection and described operating statistic data.Wherein, in DME, comprise and generated coupling verification rule all functions used, the function of using while generating coupling verification rule can comprise ActiveSheet.QueryTables.Add, Range, For, Select etc., function ActiveSheet.QueryTables.Add can be for copying running log file in Excel table, function Range can be for selecting data retrieval scope, function F or can be for circulation executable operations, and function Select can be for choosing data.
Further, if detect in described each program and have target program, generate warning information, the service data that described target program is corresponding is not mated with operating statistic data, and described warning information comprises service data and the described operating statistic data that described target program is corresponding.Wherein, target program is service data and the unmatched program of operating statistic data, thereby can realize, unmatched service data is revised fast.
Particularly, for example the first preset script indicating terminal equipment has moved 3 times a certain function of a program, match condition is that the number of run of the operating statistic data recording of background server preservation is also 3 times, if the number of run of the operating statistic data recording that background server is preserved is 2 times or 1 time, now being service data does not mate with operating statistic data, wherein, cause the unmatched reason of data to be specifically as follows network failure, terminal fault or background server fault etc., the embodiment of the present invention does not limit.If terminal device has moved 3 times a certain function of a program, and the number of run of the operating statistic data recording that background server is preserved has exceeded 3 times, also be service data and the unmatched situation of operating statistic data, now cause data unmatched former because background server fault.
Alternatively, in the time of service data corresponding to each program difference and operating statistic Data Matching, the testing result of output is specifically as follows the information of Data Matching, thereby can further carry out related data analysis according to the data of coupling.
The concrete application scenarios of the embodiment of the present invention can be as follows, comprise: first checkout equipment carries out the script of management and group in address list program by preset terminal device, indicating terminal equipment operation address list program is also carried out management and group, then obtain terminal device and carry out service data corresponding to management and group in operation address list program process, it is the daily record of file extent log by name, the static fields " EMID_PhoneBook_Group_Switch " of the service data of uploading to background server according to terminal again, from background server, extract the operating statistic data corresponding with this static fields " EMID_PhoneBook_Group_Switch ", the consistance of finally carrying out service data and operating statistic data by mating verification rule is compared.Generate warning information if two groups of information is inconsistent, and specifically orient inconsistent two groups of information and carry out analyzing and processing for terminal and backstage developer, thereby repair fast this problem.
The verification method of the another kind of data that the embodiment of the present invention provides, carry out test operation with prior art by manually treating test procedure by terminal device, thereby produce the service data of the program corresponding with this operation, and need this service data that manual detection terminal device reports whether accurately to compare, whether service data corresponding to program reporting by robotization sense terminals equipment mates with the operating statistic data of preserving in background server, when having reduced the cost of data verification process, promote the efficiency of data verification.
The embodiment of the present invention provides a kind of demo plant of data, the entity of described device can be checkout equipment, for example PC (Personal Computer, personal computer), as shown in Figure 3, described device comprises: acquiring unit 31, extraction unit 32, detecting unit 33.
Acquiring unit 31, can be for obtaining service data corresponding to each program difference in terminal device.
Extraction unit 32 can be for extracting the operating statistic data corresponding with described service data from background server, and described background server is for preserving operating statistic data corresponding to all service datas that described terminal device is uploaded.
Detecting unit 33, after whether the described operating statistic data that the described service data that can obtain for detection of described acquiring unit 31 and described extraction unit 32 extract mate, output detections result.
It should be noted that, other corresponding descriptions of the related each functional unit of device that the embodiment of the present invention provides can be described with reference to the correspondence in figure 1, do not repeat them here.
The demo plant of a kind of data that the embodiment of the present invention provides, carry out test operation with prior art by manually treating test procedure by terminal device, thereby produce the service data of the program corresponding with this operation, and need this service data that manual detection terminal device reports whether accurately to compare, whether service data corresponding to program reporting by robotization sense terminals equipment mates with the operating statistic data of preserving in background server, when having reduced the cost of data verification process, promote the efficiency of data verification.
Further, the embodiment of the present invention provides the demo plant of another kind of data, and the entity of described device can be checkout equipment, for example PC, and as shown in Figure 4, described device comprises: acquiring unit 41, extraction unit 42, detecting unit 43.
Acquiring unit 41, can be for obtaining service data corresponding to each program difference in terminal device.
Extraction unit 42 can be for extracting the operating statistic data corresponding with described service data from background server, and described background server is for preserving operating statistic data corresponding to all service datas that described terminal device is uploaded.
Detecting unit 43, after whether the described operating statistic data that the described service data that can obtain for detection of described acquiring unit 41 and described extraction unit 42 extract mate, output detections result.
Further, described device can also comprise: indicating member 44.
Indicating member 44, can be used to indicate described terminal device and move the program in described terminal device according to the first preset script.
Extraction unit 42, can for according to the second preset script from described background server, extract the operating statistic data corresponding with described service data.
Detecting unit 43 specifically can comprise: generation module 4301, detection module 4302.
Generation module 4301, can be for generating coupling verification rule by function library DME.
Whether detection module 4302, can mate for service data described in the described coupling verification rule detection generating according to described generation module 4301 and described operating statistic data.
Detecting unit 43, if can there is target program for detecting in described each program, generate warning information, the service data operating statistic data corresponding with described target program that described target program is corresponding are not mated, and described warning information comprises service data and operating statistic data corresponding to described target program that described target program is corresponding.
It should be noted that, other corresponding descriptions of the related each functional unit of device that the embodiment of the present invention provides can be described with reference to the correspondence in figure 2, do not repeat them here.
The demo plant of the another kind of data that the embodiment of the present invention provides, carry out test operation with prior art by manually treating test procedure by terminal device, thereby produce the service data of the program corresponding with this operation, and need this service data that manual detection terminal device reports whether accurately to compare, whether service data corresponding to program reporting by robotization sense terminals equipment mates with the operating statistic data of preserving in background server, when having reduced the cost of data verification process, promote the efficiency of data verification.
The above-mentioned embodiment of the method providing can be provided the demo plant of the data that the embodiment of the present invention provides, and concrete function is realized the explanation referring in embodiment of the method, does not repeat them here.Verification method and the device of the data that the embodiment of the present invention provides go for infotech, but are not limited only to this.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, can carry out the hardware that instruction is relevant by computer program to complete, described program can be stored in a computer read/write memory medium, this program, in the time carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, any be familiar with those skilled in the art the present invention disclose technical scope in; the variation that can expect easily or replacement, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claim.
Claims (10)
1. a verification method for data, is characterized in that, comprising:
Obtain service data corresponding to each program difference in terminal device;
From background server, extract the operating statistic data corresponding with described service data, described background server is for preserving operating statistic data corresponding to all service datas that described terminal device is uploaded;
After detecting described service data and described operating statistic data and whether mating, output detections result.
2. the verification method of data according to claim 1, is characterized in that, described in obtain each program in terminal device and before corresponding service data, also comprise respectively:
Indicate described terminal device to move the program in described terminal device according to the first preset script.
3. the verification method of data according to claim 1, is characterized in that, described from background server extract the operating statistic data corresponding with described service data comprise:
From described background server, extract the operating statistic data corresponding with described service data according to the second preset script.
4. the verification method of data according to claim 1, is characterized in that, whether the described service data of described detection and described operating statistic data mate comprises:
Generate coupling verification rule by function library DME;
Whether mate according to service data described in described coupling verification rule detection and described operating statistic data.
5. the verification method of data according to claim 4, is characterized in that, after whether the described service data of described detection and described operating statistic data mate, output detections result comprises:
If detect in described each program and have target program, generate warning information, the service data that described target program is corresponding is not mated with operating statistic data, and described warning information comprises service data and the described operating statistic data that described target program is corresponding.
6. a demo plant for data, is characterized in that, comprising:
Acquiring unit, for obtaining service data corresponding to each program difference of terminal device;
Extraction unit, for extracting the operating statistic data corresponding with described service data from background server, described background server is for preserving operating statistic data corresponding to all service datas that described terminal device is uploaded;
Detecting unit, after whether the described operating statistic data that the described service data of obtaining for detection of described acquiring unit and described extraction unit extract mate, output detections result.
7. the demo plant of data according to claim 6, is characterized in that, described device also comprises:
Indicating member, is used to indicate described terminal device and moves the program in described terminal device according to the first preset script.
8. the demo plant of data according to claim 6, is characterized in that,
Described extraction unit, for according to the second preset script from described background server, extract the operating statistic data corresponding with described service data.
9. the demo plant of data according to claim 6, is characterized in that, described detecting unit comprises:
Generation module, for generating coupling verification rule by function library DME;
Whether detection module, mate for service data described in the described coupling verification rule detection generating according to described generation module and described operating statistic data.
10. the demo plant of data according to claim 9, is characterized in that,
Described detecting unit, if there is target program for detecting described each program, generate warning information, the service data that described target program is corresponding is not mated with operating statistic data, and described warning information comprises service data and the described operating statistic data that described target program is corresponding.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310091300.0A CN104063308B (en) | 2013-03-20 | 2013-03-20 | The verification method and device of data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310091300.0A CN104063308B (en) | 2013-03-20 | 2013-03-20 | The verification method and device of data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104063308A true CN104063308A (en) | 2014-09-24 |
CN104063308B CN104063308B (en) | 2017-12-15 |
Family
ID=51551030
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310091300.0A Active CN104063308B (en) | 2013-03-20 | 2013-03-20 | The verification method and device of data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104063308B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105824713A (en) * | 2016-03-10 | 2016-08-03 | 中国银行股份有限公司 | Data checking method and device |
CN105868050A (en) * | 2015-12-29 | 2016-08-17 | 乐视网信息技术(北京)股份有限公司 | Verification method and device based on JSON data |
CN107168869A (en) * | 2017-04-21 | 2017-09-15 | 盛大德威国际货运代理(北京)有限公司 | A kind of data verification method and system |
CN107343091A (en) * | 2017-06-27 | 2017-11-10 | 努比亚技术有限公司 | Data reporting method and system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101179393A (en) * | 2006-12-14 | 2008-05-14 | 腾讯科技(深圳)有限公司 | Method and system for implementing document breakpoint transmission |
CN102419727A (en) * | 2011-09-30 | 2012-04-18 | 宇龙计算机通信科技(深圳)有限公司 | Automatic test method and device |
CN102541740A (en) * | 2012-01-04 | 2012-07-04 | 广东欧珀移动通信有限公司 | Android-based automatic test method for mobile phone notes |
CN102638565A (en) * | 2012-02-27 | 2012-08-15 | 无锡华赛信息技术有限公司 | Mobile phone cloud encryption backup and recovery method based on cloud architecture |
CN102946440A (en) * | 2012-12-04 | 2013-02-27 | 乐视致新电子科技(天津)有限公司 | Automatic cloud synchronization and recovery system based on cloud storage technology |
CN102957773A (en) * | 2011-08-29 | 2013-03-06 | 比亚迪股份有限公司 | Mobile phone software testing method and mobile phone software testing system |
-
2013
- 2013-03-20 CN CN201310091300.0A patent/CN104063308B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101179393A (en) * | 2006-12-14 | 2008-05-14 | 腾讯科技(深圳)有限公司 | Method and system for implementing document breakpoint transmission |
CN102957773A (en) * | 2011-08-29 | 2013-03-06 | 比亚迪股份有限公司 | Mobile phone software testing method and mobile phone software testing system |
CN102419727A (en) * | 2011-09-30 | 2012-04-18 | 宇龙计算机通信科技(深圳)有限公司 | Automatic test method and device |
CN102541740A (en) * | 2012-01-04 | 2012-07-04 | 广东欧珀移动通信有限公司 | Android-based automatic test method for mobile phone notes |
CN102638565A (en) * | 2012-02-27 | 2012-08-15 | 无锡华赛信息技术有限公司 | Mobile phone cloud encryption backup and recovery method based on cloud architecture |
CN102946440A (en) * | 2012-12-04 | 2013-02-27 | 乐视致新电子科技(天津)有限公司 | Automatic cloud synchronization and recovery system based on cloud storage technology |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105868050A (en) * | 2015-12-29 | 2016-08-17 | 乐视网信息技术(北京)股份有限公司 | Verification method and device based on JSON data |
CN105824713A (en) * | 2016-03-10 | 2016-08-03 | 中国银行股份有限公司 | Data checking method and device |
CN105824713B (en) * | 2016-03-10 | 2019-07-16 | 中国银行股份有限公司 | A kind of data verification method and device |
CN107168869A (en) * | 2017-04-21 | 2017-09-15 | 盛大德威国际货运代理(北京)有限公司 | A kind of data verification method and system |
CN107343091A (en) * | 2017-06-27 | 2017-11-10 | 努比亚技术有限公司 | Data reporting method and system |
Also Published As
Publication number | Publication date |
---|---|
CN104063308B (en) | 2017-12-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108717393A (en) | A kind of applied program testing method and mobile terminal | |
CN104182335A (en) | Software testing method and device | |
CN110992992A (en) | Hard disk test method, device and storage medium | |
CN108734304B (en) | Training method and device of data model and computer equipment | |
CN104881355A (en) | Method and system for testing test coverage | |
CN105630656A (en) | Log model based system robustness analysis method and apparatus | |
US20130111268A1 (en) | Testing device capable of simulating plugging and unplugging operations and method thereof | |
CN105740122A (en) | Method and system for monitoring mobile phone memory leak | |
CN104063308A (en) | Data verification method and device | |
CN115686961A (en) | Processor testing method and device and electronic equipment | |
US9842044B2 (en) | Commit sensitive tests | |
CN103176901A (en) | Method and system for embedded software test monitoring | |
CN111444093B (en) | Method and device for determining quality of project development process and computer equipment | |
CN117421217A (en) | Automatic software function test method, system, terminal and medium | |
Selay et al. | Adaptive random testing for image comparison in regression web testing | |
CN108228611B (en) | Document information copying method and device | |
CN110147313B (en) | Log output method and device | |
CN104298589A (en) | Performance test method and performance test equipment | |
CN107632912A (en) | A kind of memory diagnosis method of testing under windows systems | |
CN107102938B (en) | Test script updating method and device | |
CN105302700A (en) | Method and equipment for recording user operation on touch terminal | |
CN108255715B (en) | Test result processing method and terminal equipment | |
CN103914377A (en) | Interface testing method and device | |
CN109374038B (en) | Change test method of nuclear security level instrument control product based on application prototype | |
CN115687129A (en) | Coverage rate report generation method and device, storage medium and computer equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |