CN109766376A - A kind of test method for protecting data integrity - Google Patents

A kind of test method for protecting data integrity Download PDF

Info

Publication number
CN109766376A
CN109766376A CN201811470474.7A CN201811470474A CN109766376A CN 109766376 A CN109766376 A CN 109766376A CN 201811470474 A CN201811470474 A CN 201811470474A CN 109766376 A CN109766376 A CN 109766376A
Authority
CN
China
Prior art keywords
path
locally specified
test
data
file
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.)
Withdrawn
Application number
CN201811470474.7A
Other languages
Chinese (zh)
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.)
Huizhou Blueway Electronic Co Ltd
Original Assignee
Huizhou Blueway Electronic Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou Blueway Electronic Co Ltd filed Critical Huizhou Blueway Electronic Co Ltd
Priority to CN201811470474.7A priority Critical patent/CN109766376A/en
Publication of CN109766376A publication Critical patent/CN109766376A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The present invention relates to technical field of data storage, a kind of test method for protecting data integrity are specifically disclosed, comprising steps of test data is stored in locally specified path with document form;Timing retrieves under the locally specified path whether have file, if the file is then transmitted to server with the transmission mode of Transmission Control Protocol and HTTP, if otherwise continuing to retrieve.Test data relevant information is stored in locally specified path and backup specified path by the present invention in the form of a file, then pass through data communication, and the retrieval of file stream stream, the locally specified path transmission that will test is into server, then it is parsed in the server by new " document analysis platform ", to obtain the inside dependence test information of file, then this test information conversion is stored into tables of data corresponding in database, the server exception for avoiding directly frequent multithreading manipulation database and causing, to protect data integrity.

Description

A kind of test method for protecting data integrity
Technical field
The present invention relates to technical field of data storage more particularly to a kind of test methods for protecting data integrity.
Background technique
As the product quantity that company's test imports increases severely, retrospect of the client in terms of product manufacturing production is required increasingly Strictly, the requirement to test data integrality is higher and higher, also extremely stringent to the real-time accuracy requirement of data upload.
The direct-connected mode of traditional database is usually taken in current industry test data integrality, i.e. database directly receives survey The mode trying data and storing, directly manipulates database by software when needing to transfer test data.Such direct manipulation The mode of database is stored for the data of small lot, and server database can support reluctantly, but face large batch of data Storage, continually direct-connected manipulation database, frequentes switch on shutdown connection database meeting trigger the server database exception, is easy The accumulation or loss for leading to test data influence the integrality of data transmission;And this kind of test mode is also to " server " Hardware requirement is very high, and the construction cost of manufacturing cost and server is higher.
Summary of the invention
The technical issues of present invention provides a kind of test method for protecting data integrity, solves is to need largely Under the case where test data transimission and storage, the direct-connected mode of traditional database frequently manipulates database, is easy trigger the server Database is abnormal, leads to the accumulation or loss of test data, is unfavorable for storing batch mass data, and high hardware requirement causes to spread If higher cost.
In order to solve the above technical problems, the present invention provides a kind of test method for protecting data integrity, comprising steps of
S1. test data is stored in locally specified path with document form;
Whether have file, if then with the transmission side of Transmission Control Protocol and HTTP if S2. periodically retrieving under the locally specified path The file is transmitted to server by formula, if otherwise continuing to retrieve.
Further, the step S1 specifically:
S11. collecting test data in the form of classes;
S12. the test data is stored in the locally specified path, the locally specified path includes temporarily being arranged The locally specified backup path of locally specified main path and fixed setting;
S13. the test data is saved as the test data file with corresponding relationship by the locally specified path.
Further, it before the step S11, further comprises the steps of:
S01. in such a way that document form optimization is stored in the locally specified main path;
S02. in such a way that document form optimization is stored in the locally specified backup path.
Further, in the step S13, the test data file is described locally specified including corresponding respectively to The JSON data file of main path and the locally specified backup path;The step 13 further includes, by the JSON data When file is stored in the specified backup path, corresponding duplicated record is stored to local ACCESS database.
Further, the step S2 specifically includes step:
Whether the locally specified main path under have the JSON data file, if then being assisted with TCP if S21. periodically retrieving The JSON data file is transmitted to server by the transmission mode of the transmission mode of negotiation HTTP, if otherwise carrying out in next step;
S22. retrieve under the locally specified backup path whether have the JSON data file according to the duplicated record, If the JSON data file is then transmitted to server with the transmission mode of Transmission Control Protocol and HTTP, if otherwise returning to institute State step S21.
Further, it after the step S2, further comprises the steps of:
S3. the server is by the document analysis platform of setting to the locally specified main path or described locally specified The JSON data file that backup path uploads is parsed;
S4. the test data parsed is stored in database in corresponding tables of data.
A kind of test method for protecting data integrity provided by the invention, in the form of a file believes test data correlation Breath is stored in locally specified path and backup specified path, then passes through data communication (TCP transmission agreement and the transmission side HTTP Formula) and file stream stream retrieval, the locally specified path transmission that will test into server, (lose if it exists by data Lose, then start back mechanism, i.e., file and upload server in detection backup specified path), then pass through in the server New " document analysis platform " is parsed, to obtain the inside dependence test information of file, then this test information is turned It changes and stores into tables of data corresponding in database, it is different to avoid the server that directly frequently multithreading manipulates database and causes Often, to protect data integrity, and, the construction cost of manufacturing cost and server not high to the hardware requirement of " server " It is relatively low.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of test method for protecting data integrity provided in an embodiment of the present invention;
Fig. 2 is a kind of test flow chart of test method for protecting data integrity provided in an embodiment of the present invention.
Specific embodiment
Embodiments of the present invention are specifically illustrated with reference to the accompanying drawing, embodiment is only given for illustrative purposes, It can not be interpreted as limitation of the invention, including attached drawing is only for reference and illustrates use, not constitute and the invention patent is protected The limitation of range, because on the basis of not departing from spirit and scope of the invention many changes can be carried out to the present invention.
It is provided in an embodiment of the present invention it is a kind of protect data integrity test method, steps flow chart as shown in Figure 1, its Testing process is as shown in Figure 2.In the present embodiment, the test method of a kind of protection data integrity, comprising steps of
S1. test data is stored in locally specified path with document form;
Whether have file, if then with the transmission side of Transmission Control Protocol and HTTP if S2. periodically retrieving under the locally specified path The file is transmitted to server by formula, if otherwise continuing to retrieve.
It should be further noted that the step S1 specifically:
S11. collecting test data in the form of classes;
S12. the test data is stored in the locally specified path, the locally specified path includes temporarily being arranged (then destroying the path after completing step S4 hereafter) locally specified main path and locally specified backup path;
S13. the test data is saved as the test data file with corresponding relationship by the locally specified path.
Further, it before the step S11, further comprises the steps of:
S01. in such a way that document form optimization is stored in the locally specified main path;
S02. in such a way that document form optimization is stored in the locally specified backup path.
Further, in the step S13, the test data file is described locally specified including corresponding respectively to The JSON data file of main path and the locally specified backup path;The step 13 further includes, by the JSON data When file is stored in the specified backup path, corresponding duplicated record is stored to local ACCESS database.
Further, the step S2 specifically includes step:
Whether the locally specified main path under have the JSON data file, if then being assisted with TCP if S21. periodically retrieving The JSON data file is transmitted to server by the transmission mode of the transmission mode of negotiation HTTP, if otherwise carrying out in next step;
S22. retrieve under the locally specified backup path whether have the JSON data file according to the duplicated record, If the JSON data file is then transmitted to server with the transmission mode of Transmission Control Protocol and HTTP, if otherwise returning to institute State step S21.
Further, it after the step S2, further comprises the steps of:
S3. the server is by the document analysis platform of setting to the locally specified main path or described locally specified The JSON data file that backup path uploads is parsed;
S4. the test data parsed is stored in database in corresponding tables of data.
A kind of test method for protecting data integrity provided in an embodiment of the present invention, in the form of a file by test data Relevant information is stored in locally specified path and backup specified path, then passes through data communication (TCP transmission agreement and HTTP Transmission mode) and file stream stream retrieval, the locally specified path transmission that will test into server (if it exists Loss of data then starts back mechanism, i.e., file and upload server in detection backup specified path), then in server In parsed by new " document analysis platform ", to obtain the inside dependence test information of file, then this is tested Information conversion is stored into tables of data corresponding in database, avoids the clothes that directly frequent multithreading manipulates database and causes Device of being engaged in is abnormal, to protect data integrity, and not high to the hardware requirement of " server ", manufacturing cost and server are built If expense is relatively low.
The above embodiment is a preferred embodiment of the present invention, but embodiments of the present invention are not by above-described embodiment Limitation, other any changes, modifications, substitutions, combinations, simplifications made without departing from the spirit and principles of the present invention, It should be equivalent substitute mode, be included within the scope of the present invention.

Claims (6)

1. a kind of test method for protecting data integrity, which is characterized in that comprising steps of
S1. test data is stored in locally specified path with document form;
Whether have file, if then will with the transmission mode of Transmission Control Protocol and HTTP if S2. periodically retrieving under the locally specified path The file is transmitted to server, if otherwise continuing to retrieve.
2. a kind of test method for protecting data integrity as described in claim 1, which is characterized in that the step S1 is specific Are as follows:
S11. collecting test data in the form of classes;
S12. the test data is stored in the locally specified path, the locally specified path includes the local being temporarily arranged The locally specified backup path of specified main path and fixed setting;
S13. the test data is saved as the test data file with corresponding relationship by the locally specified path.
3. a kind of test method for protecting data integrity as claimed in claim 2, which is characterized in that in the step S11 Before, it further comprises the steps of:
S01. in such a way that document form optimization is stored in the locally specified main path;
S02. in such a way that document form optimization is stored in the locally specified backup path.
4. a kind of test method for protecting data integrity as claimed in claim 3, which is characterized in that in the step S13 In, the test data file includes corresponding respectively to the locally specified main path and the locally specified backup path JSON data file;The step 13 further includes, when the JSON data file is stored in the specified backup path, storage Corresponding duplicated record is to local ACCESS database.
5. a kind of test method for protecting data integrity as claimed in claim 4, which is characterized in that the step S2 is specific Comprising steps of
Whether S21. periodically retrieve has the JSON data file under the locally specified main path, if then with Transmission Control Protocol and The JSON data file is transmitted to server by the transmission mode of the transmission mode of HTTP, if otherwise carrying out in next step;
S22. retrieve under the locally specified backup path whether have the JSON data file according to the duplicated record, if The JSON data file is then transmitted to by server with the transmission mode of Transmission Control Protocol and HTTP, if otherwise returning to the step Rapid S21.
6. a kind of test method for protecting data integrity as claimed in claim 5, which is characterized in that in the step S2 Afterwards, it further comprises the steps of:
S3. the server is by the document analysis platform of setting to the locally specified main path or the locally specified backup The JSON data file that path uploads is parsed;
S4. the test data parsed is stored in database in corresponding tables of data.
CN201811470474.7A 2018-12-04 2018-12-04 A kind of test method for protecting data integrity Withdrawn CN109766376A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811470474.7A CN109766376A (en) 2018-12-04 2018-12-04 A kind of test method for protecting data integrity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811470474.7A CN109766376A (en) 2018-12-04 2018-12-04 A kind of test method for protecting data integrity

Publications (1)

Publication Number Publication Date
CN109766376A true CN109766376A (en) 2019-05-17

Family

ID=66451224

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811470474.7A Withdrawn CN109766376A (en) 2018-12-04 2018-12-04 A kind of test method for protecting data integrity

Country Status (1)

Country Link
CN (1) CN109766376A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111198894A (en) * 2020-01-03 2020-05-26 中国铁道科学研究院集团有限公司通信信号研究所 Method for realizing data fusion and consistency of operation line
CN112445414A (en) * 2019-08-30 2021-03-05 青岛海信移动通信技术股份有限公司 Data processing method and device
CN112904758A (en) * 2021-01-14 2021-06-04 北京经纬恒润科技股份有限公司 Data return link state monitoring method and system based on unmanned vehicle

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092718A (en) * 2011-10-27 2013-05-08 鸿富锦精密工业(深圳)有限公司 Test data backup system and method
CN105550333A (en) * 2015-12-22 2016-05-04 歌尔声学股份有限公司 MongoDB-based test data storage query method and system
CN106033390A (en) * 2015-03-12 2016-10-19 阿里巴巴集团控股有限公司 Mail style testing method and apparatus
CN107302476A (en) * 2017-08-04 2017-10-27 上海爱数信息技术股份有限公司 A kind of automated testing method and system for testing asynchronous interactive system
CN107918737A (en) * 2016-10-10 2018-04-17 北京奇虎科技有限公司 Transmission method, the apparatus and system of pressure testing data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092718A (en) * 2011-10-27 2013-05-08 鸿富锦精密工业(深圳)有限公司 Test data backup system and method
CN106033390A (en) * 2015-03-12 2016-10-19 阿里巴巴集团控股有限公司 Mail style testing method and apparatus
CN105550333A (en) * 2015-12-22 2016-05-04 歌尔声学股份有限公司 MongoDB-based test data storage query method and system
CN107918737A (en) * 2016-10-10 2018-04-17 北京奇虎科技有限公司 Transmission method, the apparatus and system of pressure testing data
CN107302476A (en) * 2017-08-04 2017-10-27 上海爱数信息技术股份有限公司 A kind of automated testing method and system for testing asynchronous interactive system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112445414A (en) * 2019-08-30 2021-03-05 青岛海信移动通信技术股份有限公司 Data processing method and device
CN112445414B (en) * 2019-08-30 2023-02-03 青岛海信移动通信技术股份有限公司 Data processing method and device
CN111198894A (en) * 2020-01-03 2020-05-26 中国铁道科学研究院集团有限公司通信信号研究所 Method for realizing data fusion and consistency of operation line
CN111198894B (en) * 2020-01-03 2023-09-22 中国铁道科学研究院集团有限公司通信信号研究所 Method for realizing operation line data fusion and consistency
CN112904758A (en) * 2021-01-14 2021-06-04 北京经纬恒润科技股份有限公司 Data return link state monitoring method and system based on unmanned vehicle
CN112904758B (en) * 2021-01-14 2022-04-26 北京经纬恒润科技股份有限公司 Data return link state monitoring method and system based on unmanned vehicle

Similar Documents

Publication Publication Date Title
CN109766376A (en) A kind of test method for protecting data integrity
US11960443B2 (en) Block data storage system in an event historian
CN110245035A (en) A kind of link trace method and device
CN105074698B (en) It is performed in parallel continuous events processing (CEP) inquiry
CN105404581B (en) A kind of evaluating method and device of database
CN101610265B (en) Service workflow process recognition method
CN101388010B (en) Oracle database audit method and system
CN106301649B (en) Self-adaptation clock/clock synchronization system and method between equipment in network
CN104809202A (en) Database synchronization method and device
CN104809201A (en) Database synchronization method and device
US20160171055A1 (en) Data query interface system in an event historian
WO2017133522A1 (en) Alarm information processing method, apparatus and system, and computer storage medium
CN109783258A (en) A kind of message treatment method, device and server
US20160035143A1 (en) System and method of video verification of rfid tag reads within an event timing system
CN107870982B (en) Data processing method, system and computer readable storage medium
CN112416708B (en) Asynchronous call link monitoring method and system
CN109376074A (en) Obtain method and device, the storage medium, electronic device of log
CN108173678A (en) Client data sending method, client connection method of displaying abnormal state and device
US9658924B2 (en) Event data merge system in an event historian
CN106446300A (en) Transaction processing method and system based on shared storage pool
CN114328566A (en) Relationship graph updating method, device, medium, equipment and generating method
CN114461445A (en) Data recovery method and device, electronic equipment and computer readable storage medium
US10810073B2 (en) Method and system for evaluation of a faulty behaviour of at least one event data generating machine and/or monitoring the regular operation of at least one event data generating machine
CN109257230A (en) A kind of Log Administration System and method of semiconductor memory burn-in test
US9830215B1 (en) Computing system error analysis based on system dump data

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20190517

WW01 Invention patent application withdrawn after publication