CN105243020B - A kind of automated testing method suitable for wide-area distribution type real-time data base - Google Patents
A kind of automated testing method suitable for wide-area distribution type real-time data base Download PDFInfo
- Publication number
- CN105243020B CN105243020B CN201510728913.XA CN201510728913A CN105243020B CN 105243020 B CN105243020 B CN 105243020B CN 201510728913 A CN201510728913 A CN 201510728913A CN 105243020 B CN105243020 B CN 105243020B
- Authority
- CN
- China
- Prior art keywords
- test
- time data
- wide
- interface
- data base
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 78
- 238000000034 method Methods 0.000 claims description 7
- 230000008569 process Effects 0.000 description 5
- 230000008859 change Effects 0.000 description 3
- 238000009227 behaviour therapy Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000013102 re-test Methods 0.000 description 2
- 238000010998 test method Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000013112 stability test Methods 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of automated testing method suitable for wide-area distribution type real-time data base, it is based on wide-area distribution type real-time data base automated test frame technology, and wide-area distribution type real-time data base is increased, deleted, the function of the interface such as reading and writing is verified.Including following steps:1)The total interface of wide-area distribution type real-time data base is defined as a test bag, each interface in bag is a test case;2)Test bag and test case are passed to test data by way of reading configuration file;3)Test case calls the integrated access interface that wide-area distribution type real-time data base provides, and realizes the access to database data.The present invention improves the high efficiency of test on the premise of the stability and correctness of each interface testing of wide-area distribution type real-time data base is ensured.
Description
Technical field
The present invention relates to a kind of automated testing method suitable for wide-area distribution type real-time data base, belongs to wide area point
Cloth Real-Time Databases System Technique field.
Background technology
Wide-area distribution type real-time dataBase system is made up of the real-time database system being distributed in several systems, is supported multiple
The real-time data memory of wide scope and shared between system.The exploitation of wide-area distribution type real-time dataBase system is one and constantly changed
The process in generation, the retest problem faced during iterative development make workload double, and testing efficiency is low.Therefore automation is surveyed
The mode of examination is converted into the behavioral test taking human as driving a kind of process of machine execution, greatly reduce both test
Workload.
The content of the invention
To overcome the shortcomings of in prior art, the present invention seeks to be to propose that one kind is based on real-time database automatic test frame
The method of testing of frame, the i.e. automated testing method suitable for wide-area distribution type real-time data base, interface are automatic according to real-time database
Change test frame to be tested, be registered in real-time database automated test frame, ensureing that wide-area distribution type real-time data base is each
On the premise of the stability and correctness of interface testing, the high efficiency of test is improved.
To achieve the above object, technical scheme is as follows:
A kind of automated testing method suitable for wide-area distribution type real-time data base, based on wide-area distribution type real time data
Storehouse automated test frame, for increasing to wide-area distribution type real-time data base, deleting, the function of the interface such as reading and writing verify, its
Comprise the steps of:
1)The total interface of wide-area distribution type real-time data base is defined as a test bag, and each interface in bag is one
Individual test case;
2)Test bag and test case are passed to test data by way of reading configuration file.
3)Test case calls the integrated access interface that wide-area distribution type real-time data base provides, and realizes to data
The access of storehouse data.
The automated testing method of foregoing wide-area distribution type real time data bank interface, wherein:In the step 1)In, extensively
The test bag that domain distributing real-time data bank interface defines is needed to be registered under real-time database automated test frame, and the automation is surveyed
It is an executable program to try framework.
The automated testing method of foregoing wide-area distribution type real time data bank interface, wherein:In the step 2)In, survey
Examination, which is wrapped, uses a configuration file, the input parameter of each interface in configuration testing use-case.Each test case is defeated in test bag
Go out result to be saved in a file.
The automated testing method of foregoing wide-area distribution type real time data bank interface, wherein:In the step 3)In, connect
Mouth shields the physical distribution state of data, can access the data of wide scope diverse location simultaneously.
The beneficial effect that the present invention is reached:
1st, the present invention realizes the correctness and stability test of wide-area distribution type real-time data base total interface;
2nd, the present invention solves the problems, such as retest, by automated execution, being converted into taking human as the behavioral test of driving
A kind of process that machine performs, the workload of test is greatly reduce both, improve testing efficiency.
3rd, the present invention is realized on the wide-area distribution type real-time data base for combine the independent development for being operated in application layer, is disobeyed
Rely in specific operating system, suitable for various operating systems.Wide-area distribution type real-time data base of the present invention it is automatic
Change method of testing and ensure that portability, can safely and steadly operate in IBM AIX, Sun with real-time database system
In the operating system platform such as Solaris, Alpha Tru64, HPUX, Linux, Windows;System programming language uses ANSI
C/C++, and meet IEEE POSIX.2 standards.
Brief description of the drawings
Fig. 1 is the wide-area distribution type real-time data base automatic testing process of the present invention.
Fig. 2 is browsing process of the automated test frame to wide-area distribution type real-time data base of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the present invention is further described in detail.
Referring to Fig. 1 and Fig. 2, a kind of automated testing method suitable for wide-area distribution type real-time data base of the invention, its
It is to be based on wide-area distribution type real-time data base automated test frame technology, wide-area distribution type real-time data base is increased, deleted, is read,
The function of the interface such as writing is verified.Including following steps:
1)The total interface of wide-area distribution type real-time data base is defined as a test bag, each interface in bag is one
Individual test case;
2)Test bag and test case are passed to test data by way of reading configuration file;
3)Test case calls the integrated access interface that wide-area distribution type real-time data base provides, and realizes to database
The access of data.
The present invention registers test bag in automated test frame first, and test case is registered in test bag.
Each bag uses a configuration file, and configuration file includes various parameters according to the input of each interface in test case
Information, the reading of configuration file are realized by a single class.
The output result of interface is whether the execution of interface is correctly saved in file, and each bag is output to a file
In, file preserves to be realized by a single class.
Automated test frame is run, the information of system where orienting real time data, is accessed real-time inside the system
The real-time data base of database or remote system.
Automatic test mode of the present invention is to combine the wide-area distribution type reality for the independent development for being operated in application layer
When database on realize, independent of specific operating system, suitable for various operating systems.Wide area distribution of the present invention
The automated testing method of formula real-time data base ensure that portability, can safely and steadly be run with real-time database system
In the operating system platform such as IBM AIX, Sun Solaris, Alpha Tru64, HPUX, Linux, Windows;System Programming
Language uses ANSI C/C++, and meets IEEE POSIX.2 standards.
The general principle and principal character and advantages of the present invention of the present invention has been shown and described above.The technology of the industry
Personnel are it should be appreciated that the present invention is not limited to the above embodiments, and the simply explanation described in above-described embodiment and specification is originally
The principle of invention, without departing from the spirit and scope of the present invention, various changes and modifications of the present invention are possible, these changes
Change and improvement all fall within the protetion scope of the claimed invention.The claimed scope of the invention by appended claims and its
Equivalent thereof.
Claims (1)
1. a kind of automated testing method suitable for wide-area distribution type real-time data base, it is characterised in that be distributed based on wide area
Formula real-time data base automated test frame, for being verified to the function of wide-area distribution type real time data bank interface, its side
Method comprises the following steps:
1)The total interface of wide-area distribution type real-time data base is defined as a test bag, each interface in above-mentioned test bag
For a test case;Test bag is registered in automated test frame, test case is registered in test bag;
2)Test bag and test case are passed to test data by way of reading configuration file;Each test bag is matched somebody with somebody using one
File is put, configuration file includes the input parameter of each interface in test case;The output result of each test case in test bag
It is saved in a file;
3)Test case calls the integrated access interface that wide-area distribution type real-time data base provides, and realizes to database data
Access;First choice operation automated test frame, the information of system where orienting real time data, is then accessed inside the system
Real-time data base or remote system real-time data base;
In the step 1)In, the test bag that wide-area distribution type real time data bank interface defines needs to be registered in real-time database automation
Under test frame, the automated test frame is an executable program;
In the step 2)In, the output result of interface is whether the execution of interface is correctly saved in configuration file, each to survey
Examination bag is output in a configuration file;
In the step 3)In, interface shields the physical distribution state of data, while may have access to wide scope diverse location
Data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510728913.XA CN105243020B (en) | 2015-10-30 | 2015-10-30 | A kind of automated testing method suitable for wide-area distribution type real-time data base |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510728913.XA CN105243020B (en) | 2015-10-30 | 2015-10-30 | A kind of automated testing method suitable for wide-area distribution type real-time data base |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105243020A CN105243020A (en) | 2016-01-13 |
CN105243020B true CN105243020B (en) | 2018-01-02 |
Family
ID=55040673
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510728913.XA Active CN105243020B (en) | 2015-10-30 | 2015-10-30 | A kind of automated testing method suitable for wide-area distribution type real-time data base |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105243020B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106484616B (en) * | 2016-09-30 | 2019-05-14 | 北京新能源汽车股份有限公司 | A kind of automatic interface testing method and device of entire car controller |
CN106953719B (en) * | 2017-04-10 | 2018-05-22 | 国网江苏省电力公司电力科学研究院 | A kind of automation of transformation substations wide area O&M interoperability test system and test method |
CN111435384B (en) * | 2019-01-14 | 2022-08-19 | 阿里巴巴集团控股有限公司 | Data security processing and data tracing method, device and equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101937435A (en) * | 2009-07-01 | 2011-01-05 | 北京科东电力控制系统有限责任公司 | Online synchronized method of distributed real-time database confronting power system |
CN103077033A (en) * | 2012-08-20 | 2013-05-01 | 南京南瑞继保电气有限公司 | Optimal configuration system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9146841B2 (en) * | 2013-03-15 | 2015-09-29 | Vmware, Inc. | Proxy server assisted product testing |
-
2015
- 2015-10-30 CN CN201510728913.XA patent/CN105243020B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101937435A (en) * | 2009-07-01 | 2011-01-05 | 北京科东电力控制系统有限责任公司 | Online synchronized method of distributed real-time database confronting power system |
CN103077033A (en) * | 2012-08-20 | 2013-05-01 | 南京南瑞继保电气有限公司 | Optimal configuration system |
Non-Patent Citations (1)
Title |
---|
电力系统实时数据库的自动化测试研究与实现;郭新雷;《中国优秀硕士学位论文全文数据库 信息科技辑》;20130615;论文第24-44页 * |
Also Published As
Publication number | Publication date |
---|---|
CN105243020A (en) | 2016-01-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105589874B (en) | Detection method, device and the ETL tool of ETL task dependence | |
WO2020233330A1 (en) | Batch testing method, apparatus, and computer-readable storage medium | |
US9280442B1 (en) | System and method for generating coverage reports for software unit tests | |
CN102323964B (en) | Digital circuit net list data processing method | |
CN105468797B (en) | A kind of information processing method and device | |
CN103425584A (en) | Large-scale application regression testing information processing method based on Java bytecode | |
CN105243020B (en) | A kind of automated testing method suitable for wide-area distribution type real-time data base | |
US10152512B2 (en) | Metadata-driven program code generation for clinical data analysis | |
CN103678115B (en) | The apparatus and method of the position of source code mistake are detected in mixed mode program | |
CN107145482A (en) | Article generation method and device, equipment and computer-readable recording medium based on artificial intelligence | |
CN110888720A (en) | Task processing method and device, computer equipment and storage medium | |
CN103095726A (en) | Processing method and device of protocol interpreter | |
US8838559B1 (en) | Data mining through property checks based upon string pattern determinations | |
CN106919612A (en) | A kind of processing method and processing device of SQL script of reaching the standard grade | |
CN107171897A (en) | A kind of interface test method and data-interface test system | |
CN105740487A (en) | Method for verifying consistency between layout and schematic on basis of process design kit | |
CN108809755A (en) | The home gateway automatic test approach and system of compatible command row and WEB interface | |
CN110082666A (en) | Chip testing analysis method, device, equipment and storage medium | |
CN106919501A (en) | Static Analysis Method and instrument based on defect mode | |
US8918765B2 (en) | Auto-documenting based on real-time analysis of code execution | |
CN106294128A (en) | A kind of automated testing method deriving report data and device | |
CN104021002B (en) | A kind of PDM system standards part storage method | |
CN113032257B (en) | Automated testing method, apparatus, computer system, and readable storage medium | |
CN114207620B (en) | Data interpretation device, method, storage medium, data integration device, method, storage medium, and digital city construction system | |
CN107368423A (en) | Interface automatic configuration system and the automatized script processing method carried out wherein |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |