CN106383779A - Database adaptation pressure test method and device - Google Patents
Database adaptation pressure test method and device Download PDFInfo
- Publication number
- CN106383779A CN106383779A CN201610777845.0A CN201610777845A CN106383779A CN 106383779 A CN106383779 A CN 106383779A CN 201610777845 A CN201610777845 A CN 201610777845A CN 106383779 A CN106383779 A CN 106383779A
- Authority
- CN
- China
- Prior art keywords
- test
- test case
- pressure
- basic example
- example template
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3664—Environments for testing or debugging software
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Testing Or Calibration Of Command Recording Devices (AREA)
Abstract
The invention provides a database adaptation pressure test method and device. The method comprises the following steps of receiving a test basic case template and obtaining test environment information; generating a test case according to the test basic case template and the environment information; and executing the test case and feeding back a test result. Through generating the test case according to the test basic case template and the environment information, a test scheme can be automatically generated according to the requirements and the external environment, so that an accurate and effective comparison result can be obtained from the overall point of view, and the test efficiency is improved.
Description
Technical field
The invention belongs to database technical field, especially relate to method of testing and dress that a kind of database is adapted to pressure
Put.
Background technology
With the fast development of informationization technology, the continuous lifting of computer hardware level, computer can process and deposit
The data volume of storage is increasing, and calculating becomes increasingly complex, and the Database Systems of distributed deployment mode are arisen at the historic moment.Distributed number
Flexibility according to storehouse deployment way is greatly adapted to the needs of different data volumes and operational capability, therefore for different deployment
The diversity of the change of the pressure test under mode proposes requirement.Traditional for different test environments, hardware condition and
Deployment way, needs engineer to go out different testing schemes, generates the test data of inequality, and need to manually perform prison
The working method of control test, may be led in addition it is also necessary to greatly depend on the experience of Test Engineer except under operating efficiency
Cause test effect differ it is impossible to from overall angle draw accurately, effective comparing result.
Content of the invention
The invention provides a kind of database is adapted to method of testing and the device of pressure, to solve database in prior art
Pressure test inefficiency and do not have seek unity of standard technical problem.
On the one hand, embodiments provide the method for testing that a kind of database is adapted to pressure, including:
Receive the basic example template of test, obtain test environment information;
Test case is generated according to the basic example template of described test and environmental information;
Execute described test case, feedback test result.
Further, described test case is generated according to the basic example template of described test and environmental information include:
Multigroup test case less than limiting pressure is generated according to the basic example template of described test and environmental information.
Further, the described test case of described execution, including:
Execute described multigroup test case according to pressure order from small to large.
Further, described test environment information includes:
CPU, internal memory, disk space, IO speed and or the network bandwidth.
On the other hand, the embodiment of the present invention additionally provides the test device that a kind of database is adapted to pressure, including:
Receiving unit, for receiving the basic example template of test, obtains test environment information;
Signal generating unit, for generating test case according to the basic example template of described test and environmental information;
Performance element, for executing described test case, feedback test result.
Further, described signal generating unit, is used for:
Multigroup test case less than limiting pressure is generated according to the basic example template of described test and environmental information.
Further, described performance element is used for:
Execute described multigroup test case according to pressure order from small to large.
Further, described test environment information includes:
CPU, internal memory, disk space, IO speed and or the network bandwidth.
The embodiment of the present invention is passed through to generate test case according to the basic example template of described test and environmental information, can be according to need
Summation external environment automatically generates testing scheme, can from overall angle draw accurately, effective comparing result, and improve
Testing efficiency.
Brief description
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below will be in embodiment or description of the prior art
The accompanying drawing of required use be briefly described it should be apparent that, drawings in the following description be only the present invention some are real
Apply example, for those of ordinary skill in the art, without having to pay creative labor, can also be attached according to these
Figure obtains other accompanying drawings.
Fig. 1 is the schematic flow sheet of the method for testing that a kind of database that the embodiment of the present invention one provides is adapted to pressure;
Fig. 2 is the structural representation of the test device that the database that the embodiment of the present invention two provides is adapted to pressure.
Specific 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 carried out clear, complete
Site preparation description is it is clear that described embodiment a part of embodiment that is the present invention, rather than whole embodiments.Based on this
Embodiment in bright, the every other enforcement that those of ordinary skill in the art are obtained under the premise of not making creative work
Example, broadly falls into the scope of protection of the invention.
Embodiment one
The flow chart that Fig. 1 is adapted to the method for testing of pressure for the database that the embodiment of the present invention one provides, the present embodiment can
It is applied to the situation of test database system adaptation pressure, the method can be held by the test device that database is adapted to pressure
OK, this device can be realized by software/hardware mode, and can be integrated in database.
Referring to Fig. 1, described database is adapted to the method for testing of pressure, including:
S110, receives the basic example template of test, obtains test environment information.
Exemplary, can be realized by database automatic adaptation pressure test instrument, described database automatic adaptation
Pressure test instrument can include:Automation pressure test instrument analytic sheaf, automatic test adaptation layer and automated execution layer.
User is pre-filled with basic use-case, pressure of foundation proportional limit algorithm, test environment information, database configuration information
Deng use-case template, Database Systems receive above-mentioned template, and judge whether described use-case template meets specification, if can be correct
Parsing, and obtain the hardware information of tested environment.Described test environment information includes:CPU, internal memory, disk space, IO speed
With or the network bandwidth.
S120, generates test case according to the basic example template of described test and environmental information.
Test case generation test case is generated according to the test basis example template obtaining and environmental information.Accordingly, Ke Yigen
Generate the multigroup test case less than limiting pressure according to the basic example template of described test and environmental information.Realize different pressures degree
Test.Automatic test adaptation layer according to test template file, calculate the limiting pressure test data of corresponding test environment
With pressure number of concurrent, and according to this information generate multigroup different pressures test case
S130, executes described test case, feedback test result.
Automated execution layer, according to produced test case, executes test according to pressure order from small to large, and
Go out each group test case result, each group implementing result can be analyzed formation test report simultaneously.
The present embodiment passes through to generate test case according to the basic example template of described test and environmental information, can according to demand and
External environment automatically generates testing scheme, can from overall angle draw accurately, effective comparing result, and improve survey
Examination efficiency.
Embodiment two
Fig. 2 is the structural representation of the test device that the database that the embodiment of the present invention two provides is adapted to pressure, as Fig. 2 institute
Show, described device includes:
Receiving unit 210, for receiving the basic example template of test, obtains test environment information;
Signal generating unit 220, for generating test case according to the basic example template of described test and environmental information;
Performance element 230, for executing described test case, feedback test result.
Further, described signal generating unit, is used for:
Multigroup test case less than limiting pressure is generated according to the basic example template of described test and environmental information.
Further, described performance element is used for:
Execute described multigroup test case according to pressure order from small to large.
Further, described test environment information includes:
CPU, internal memory, disk space, IO speed and or the network bandwidth.
The embodiment of the present invention is passed through to generate test case according to the basic example template of described test and environmental information, can be according to need
Summation external environment automatically generates testing scheme, can from overall angle draw accurately, effective comparing result, and improve
Testing efficiency.
One of ordinary skill in the art will appreciate that:The all or part of step realizing above-mentioned each method embodiment can be led to
Cross the related hardware of programmed instruction to complete.Aforesaid program can be stored in a computer read/write memory medium.This journey
Sequence upon execution, executes the step including above-mentioned each method embodiment;And aforesaid storage medium includes:ROM, RAM, magnetic disc or
Person's CD etc. is various can be with the medium of store program codes.
Finally it should be noted that:Various embodiments above only in order to technical scheme to be described, is not intended to limit;To the greatest extent
Pipe has been described in detail to the present invention with reference to foregoing embodiments, it will be understood by those within the art that:Its according to
So the technical scheme described in foregoing embodiments can be modified, or wherein some or all of technical characteristic is entered
Row equivalent;And these modifications or replacement, do not make the essence of appropriate technical solution depart from various embodiments of the present invention technology
The scope of scheme.
Claims (8)
1. a kind of database is adapted to the method for testing of pressure it is characterised in that including:
Receive the basic example template of test, obtain test environment information;
Test case is generated according to the basic example template of described test and environmental information;
Execute described test case, feedback test result.
2. method according to claim 1 is it is characterised in that described test basic example template and environmental information according to described
Generate test case to include:
Multigroup test case less than limiting pressure is generated according to the basic example template of described test and environmental information.
3. method according to claim 2 is it is characterised in that the described test case of described execution, including:
Execute described multigroup test case according to pressure order from small to large.
4. method according to claim 1 is it is characterised in that described test environment information includes:
CPU, internal memory, disk space, IO speed and or the network bandwidth.
5. a kind of database is adapted to the test device of pressure it is characterised in that including:
Receiving unit, for receiving the basic example template of test, obtains test environment information;
Signal generating unit, for generating test case according to the basic example template of described test and environmental information;
Performance element, for executing described test case, feedback test result.
6. device according to claim 5, it is characterised in that described signal generating unit, is used for:
Multigroup test case less than limiting pressure is generated according to the basic example template of described test and environmental information.
7. device according to claim 6 is it is characterised in that described performance element is used for:
Execute described multigroup test case according to pressure order from small to large.
8. device according to claim 5 is it is characterised in that described test environment information includes:
CPU, internal memory, disk space, IO speed and or the network bandwidth.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610777845.0A CN106383779A (en) | 2016-08-31 | 2016-08-31 | Database adaptation pressure test method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610777845.0A CN106383779A (en) | 2016-08-31 | 2016-08-31 | Database adaptation pressure test method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106383779A true CN106383779A (en) | 2017-02-08 |
Family
ID=57938510
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610777845.0A Pending CN106383779A (en) | 2016-08-31 | 2016-08-31 | Database adaptation pressure test method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106383779A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109815130A (en) * | 2018-12-26 | 2019-05-28 | 中链科技有限公司 | The storage method and system of software compatibility test based on block chain |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110055633A1 (en) * | 2009-08-31 | 2011-03-03 | Martin Vecera | Declarative Test Execution |
CN102968374A (en) * | 2012-11-29 | 2013-03-13 | 中国移动(深圳)有限公司 | Data warehouse testing method |
CN103425683A (en) * | 2012-05-18 | 2013-12-04 | 上海宝信软件股份有限公司 | Database performance test system |
CN104182340A (en) * | 2014-08-21 | 2014-12-03 | 浪潮(北京)电子信息产业有限公司 | Database compatibility test method and system |
-
2016
- 2016-08-31 CN CN201610777845.0A patent/CN106383779A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110055633A1 (en) * | 2009-08-31 | 2011-03-03 | Martin Vecera | Declarative Test Execution |
CN103425683A (en) * | 2012-05-18 | 2013-12-04 | 上海宝信软件股份有限公司 | Database performance test system |
CN102968374A (en) * | 2012-11-29 | 2013-03-13 | 中国移动(深圳)有限公司 | Data warehouse testing method |
CN104182340A (en) * | 2014-08-21 | 2014-12-03 | 浪潮(北京)电子信息产业有限公司 | Database compatibility test method and system |
Non-Patent Citations (2)
Title |
---|
武海平等: "Web服务器通用性能测试系统的设计与实现", 《小型微型计算机系统》 * |
武海平等: "通用海量数据库性能测试系统的设计与实现", 《清华大学学报(自然科学版)》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109815130A (en) * | 2018-12-26 | 2019-05-28 | 中链科技有限公司 | The storage method and system of software compatibility test based on block chain |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104123184B (en) | A kind of method and system for being used to distribute resource for the task in building process | |
CN103425574B (en) | A kind of method and device of test application program | |
US20190068454A1 (en) | Device model to thing model mapping | |
AU2017327823B2 (en) | Test case generator built into data-integration workflow editor | |
US20100070909A1 (en) | Method and system for simulating a plurality of devices | |
CN101968770A (en) | Reusable embedded software testing and developing method and system | |
CN103605606B (en) | A kind of embedded software test use-case batch execution method that can automatically change | |
CN105138461A (en) | Interface testing method and device for application program | |
CN110162516A (en) | A kind of method and system that the data based on mass data processing are administered | |
US8725461B2 (en) | Inferring effects of configuration on performance | |
US10175686B2 (en) | Devices, methods, and systems for a distributed rule based automated fault detection | |
CN108764335A (en) | A kind of integrated energy system multi-energy requirement typical scene generation method and device | |
CN104020763A (en) | Automatic test method and system for input and output interfaces | |
CN106155833A (en) | A kind of method and apparatus of asynchronous remote copy | |
CN103425580A (en) | Method for automatically and rapidly obtaining and calibrating configuration information of cloud computing device | |
CN103473061A (en) | System and method for optimizing structural noise uncertainty | |
CN106383779A (en) | Database adaptation pressure test method and device | |
CN105373446B (en) | It is a kind of based on the system self-repairing method drilled automatically and device | |
CN103970967A (en) | Electromagnetic transient simulation analysis system of electric power system | |
CN109299910A (en) | Data summarization method, device, computer equipment and storage medium | |
CN102968305A (en) | Logical processing method, logical processing device and evaluation system | |
CN102682038A (en) | Database change method and device | |
CN115169578A (en) | AI model production method and system based on meta-space data markers | |
CN106656684A (en) | Grid resource reliability monitoring method and device | |
CN103678636A (en) | System and method for improving reliability of component software system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170208 |