CN109376084A - A kind of test environment construction method and system - Google Patents
A kind of test environment construction method and system Download PDFInfo
- Publication number
- CN109376084A CN109376084A CN201811146636.1A CN201811146636A CN109376084A CN 109376084 A CN109376084 A CN 109376084A CN 201811146636 A CN201811146636 A CN 201811146636A CN 109376084 A CN109376084 A CN 109376084A
- Authority
- CN
- China
- Prior art keywords
- test environment
- resource
- test
- configuration
- virtualization
- 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
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
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of test environment construction method and systems.Be related to virtual computing platforms technology, solve the problems, such as manually build test environment it is at high cost.This method comprises: being virtualized into physical resource for virtual resource, composition virtualization resource pond;Configuration needs are received, are selected to close the virtual resource building test environment advised from the virtualization resource pond according to the configuration needs.Technical solution provided by the invention is suitable for software development process, realizes flexible and efficient test environment and builds automatically.
Description
Technical field
The present invention relates to virtual computing platforms technology, espespecially a kind of test environment construction method and system.
Background technique
For a long time, many software enterprises are especially engaged in the development of customized software, integrated enterprise, face always in this way
One problem: the considerations of for cost etc., the test environment of a project usually will not long-term preservation, once a certain version
It goes wrong in use, test environment can only be built again and debugged, or even carried out in the production system of user
Debugging, time cost, economic cost and technical risk are all very big.
Summary of the invention
In order to solve the above-mentioned technical problems, the present invention provides a kind of test environment construction method and systems.By by object
Resource virtualizing management is managed, efficient test environmental structure virtual platform is realized, solves and manually build test Environmental costs
High problem.
In order to reach the object of the invention, the present invention provides a kind of test environment construction methods, comprising:
Physical resource is virtualized into as virtual resource, composition virtualization resource pond;
Configuration needs are received, are selected to close the virtual resource structure advised from the virtualization resource pond according to the configuration needs
Build test environment.
Preferably, the physical resource includes at least any one of the following contents or any multinomial:
CPU, memory, hard disk, network.
Preferably, configuration needs are received, are selected to close the void advised from the virtualization resource pond according to the configuration needs
After the step of quasi- resource construction test environment, further includes:
After test completion, data file filing caused by the configuration file of the test environment and exploitation is saved extremely
Data center's offline storage.
Preferably, this method further include:
When being debugged or being redeveloped, recalls the configuration file of the test environment and develop generated data
File restores the test environment.
Preferably, this method further include:
For the data center configuration disaster tolerance equipment and/or alternate device.
The present invention also provides a kind of test environment construction systems, comprising:
Resource virtualizing subsystem, for being virtualized into physical resource for virtual resource, composition virtualization resource pond;
Test environment builds subsystem automatically, for receiving configuration needs, according to the configuration needs from the virtualization
The virtual resource building test environment of rule is closed in selection in resource pool.
Preferably, the physical resource includes at least any one of the following contents or any multinomial:
CPU, memory, hard disk, network,
The system further include:
Data center, for after test completion, by the configuration file of the test environment and developing generated data
Archive is saved to data center's offline storage.
Preferably, the test environment builds subsystem automatically, is also used to recall when being debugged or being redeveloped
Data file caused by the configuration file of the test environment and exploitation, restores the test environment.
Preferably, the system further include:
Safeguard protection subsystem, for being the data center configuration disaster tolerance equipment and/or alternate device.
The present invention also provides a kind of calculating equipment, including memory, processor and storage on a memory and can located
The computer instruction run on reason device, the processor realize the step of above-mentioned test environment construction method when executing described instruction
Suddenly.
The present invention provides a kind of test environment construction method and system, physical resource is virtualized into as virtual resource,
Virtualization resource pond is constituted, then receives configuration needs, is selected to close from the virtualization resource pond according to the configuration needs and be advised
Virtual resource building test environment.It realizes flexible and efficient test environment to build automatically, solves and manually build test wrapper
Border problem at high cost.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by specification, right
Specifically noted structure is achieved and obtained in claim and attached drawing.
Detailed description of the invention
Attached drawing is used to provide to further understand technical solution of the present invention, and constitutes part of specification, with this
The embodiment of application technical solution for explaining the present invention together, does not constitute the limitation to technical solution of the present invention.
Fig. 1 is a kind of flow diagram for test environment construction method that one embodiment of the invention provides;
Fig. 2 is a kind of schematic illustration for test environment construction method that one embodiment of the invention provides;
Fig. 3 is a kind of configuration diagram for test environment construction system that one embodiment of the invention provides.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention
Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application
Feature can mutual any combination.
Step shown in the flowchart of the accompanying drawings can be in a computer system such as a set of computer executable instructions
It executes.Also, although logical order is shown in flow charts, and it in some cases, can be to be different from herein suitable
Sequence executes shown or described step.
The considerations of for cost etc., the test environment of a project usually will not long-term preservation, once a certain version
It goes wrong in use, test environment can only be built again and debugged, or even carried out in the production system of user
Debugging, time cost, economic cost and technical risk are all very big.
To solve the above-mentioned problems, the embodiment of the present invention proposes a kind of test environment construction method and system, passes through
Application virtualization technology virtualizes physical resource, be abstracted as virtual logical resource, and according to developer, tester
The resources such as fictitious host computer, virtual memory and virtual network are formed a complete test environment by demand, be supplied to developer,
Tester uses.The test environmental structure time is longer, system reliability is weaker, environment change operation is numerous for effective solution
Trivial, test expendable a series of problems of environment.
One embodiment of the invention provides a kind of test environment construction method, completes test environment construction using this method
Process it is as shown in Figure 1, comprising:
Physical resource is virtualized into as virtual resource, composition virtualization resource pond by step 101.
The physical resource includes at least any one of the following contents or any multinomial:
CPU, memory, hard disk, network.
In this step, physical resource is virtualized by calculating the technologies such as virtualization, Storage Virtualization, network virtualization,
It is abstracted as virtual logical resource.The physical resources such as server, storage, network are virtualized by virtualization software.Benefit
With virtualization technology, can the resources such as CPU, memory, hard disk to on-line tuning system capacity, no replacement is required hardware, also not
In the presence of the risk of therefore bring loss of data.
Step 102 receives configuration needs, is selected to close the void advised from the virtualization resource pond according to the configuration needs
Quasi- resource construction tests environment.
In this step, virtual resource division is carried out according to configuration needs, including fictitious host computer, virtual memory, virtual
The resources such as network.Therefrom the virtual resource of rule, building test environment are closed in selection.After completing to test environment, it can be tested
And daily configuration management.The configuration needs that administrative staff provide according to tester, the money of rule is closed in selection from virtualization pool
Source composition test environment.Existing template in resource pool can be used in most resources, and only extremely least a portion of configuration needs
It regenerates, greatly improves the formation efficiency of test environment, test environment can quickly generate.
The resources such as fictitious host computer, virtual memory and virtual network are formed one according to the demand of developer, tester
A complete test platform environment.
Configuration needs can be completely new demand, and new test environment is generated based on the demand;Be also possible to part or
The demand changed is all configured, configuration adjustment is carried out to the test environment generated according to the demand.
Step 103, after test completion, by the configuration file of the test environment and data file caused by developing is returned
Shelves are saved to data center's offline storage.
In this step, after project, virtual resource filing is carried out, the information of every resource distribution in environment will be tested
And data filing caused by developing is saved to data center's offline storage.
Meanwhile discharging the test occupied virtual resource of environment and returning to the virtualization resource pond, for other test items
Configuration is called.
It preferably, can also be the data center configuration disaster tolerance equipment and/or alternate device.Due to all test environment and
Data caused by starting are stored in data center, thus disaster tolerance, backup planning can be uniformly carried out for data center, respectively
A test environment without individually consider disaster tolerance, backup problem, improve the reliability of system, also reduce disaster tolerance, back up at
This.
Preferably, any behavior that research and development local terminal carries out data center all can be recorded and be examined.
Step 104, when being debugged or being redeveloped, recall it is described test environment configuration file and exploitation produced
Raw data file restores the test environment.
After project is completed to develop and deliver user, in virtualized environment, administrator will test the configuration file of environment
With develop caused by data file be packaged dump in offline storage, debugged or again when developer needs to restore environment
When exploitation, administrator recalls the configuration file for testing environment and data file, and environment is tested in one-touch recovery.
Fig. 2 shows the principles that environment construction is tested in the embodiment of the present invention, and the test environment based on virtualization is flat
Platform administrative staff are virtualized physical resource by calculating the technologies such as virtualization, Storage Virtualization, network virtualization, are abstracted as void
Quasi- logical resource, and according to developer, tester demand by resources such as fictitious host computer, virtual memory and virtual networks
Composition one complete test environment, is supplied to developer, tester uses.All resources are managed by test platform is unified
Reason, unified allocation of resources, exploitation, tester only need a thin client or non-disk workstation, as long as access corporate networks mention
The test environment of confession can work.All test datas are all stored in data center, at the same research and develop local terminal institute into
Capable any behavior all can be recorded and be examined.Test resource can distribute according to need and being capable of dynamic adaptation.
One embodiment of the invention additionally provides a kind of test environment construction system, and the framework of the system is as shown in figure 3, packet
It includes:
Resource virtualizing subsystem 301, for being virtualized into physical resource for virtual resource, composition virtualization resource
Pond;
Test environment builds subsystem 302 automatically, for receiving configuration needs, according to the configuration needs from described virtual
Change the virtual resource building test environment that rule are closed in selection in resource pool.
Preferably, the physical resource includes at least any one of the following contents or any multinomial:
CPU, memory, hard disk, network,
The system further include:
Data center 303, for after test completion, will be counted caused by the configuration file of the test environment and exploitation
It saves according to archive to data center's offline storage.
Preferably, the test environment builds subsystem 302 automatically, is also used to when being debugged or being redeveloped,
It recalls the configuration file of the test environment and develops generated data file, restore the test environment.
Preferably, the system further include:
Safeguard protection subsystem 304, for being the data center configuration disaster tolerance equipment and/or alternate device.
The embodiment of the invention also provides a kind of calculating equipment, including memory, processor and storage are on a memory simultaneously
The computer instruction that can be run on a processor, the processor realize that the embodiment of the present invention is provided when executing described instruction
Test environment construction method the step of.
The embodiment provides a kind of test environment construction method and systems, and physical resource is virtualized into as void
Quasi- resource, constitutes virtualization resource pond, then receive configuration needs, is selected from the virtualization resource pond according to the configuration needs
Select the virtual resource building test environment for closing rule.It realizes flexible and efficient test environment to build automatically, solves and manually build
Test environment problem at high cost.It is concentrated by data center and saves test context related data, constructed needing to use
Test environment when, it is only necessary to from data center call related data can restore test environment, further improve test wrapper
Build efficiency in border.And it is configured with disaster tolerance/backup guarantee plan, improve the reliability of system.
It will appreciated by the skilled person that whole or certain steps, system, dress in method disclosed hereinabove
Functional module/unit in setting may be implemented as software, firmware, hardware and its combination appropriate.In hardware embodiment,
Division between the functional module/unit referred in the above description not necessarily corresponds to the division of physical assemblies;For example, one
Physical assemblies can have multiple functions or a function or step and can be executed by several physical assemblies cooperations.Certain groups
Part or all components may be implemented as by processor, such as the software that digital signal processor or microprocessor execute, or by
It is embodied as hardware, or is implemented as integrated circuit, such as specific integrated circuit.Such software can be distributed in computer-readable
On medium, computer-readable medium may include computer storage medium (or non-transitory medium) and communication media (or temporarily
Property medium).As known to a person of ordinary skill in the art, term computer storage medium is included in for storing information (such as
Computer readable instructions, data structure, program module or other data) any method or technique in the volatibility implemented and non-
Volatibility, removable and nonremovable medium.Computer storage medium include but is not limited to RAM, ROM, EEPROM, flash memory or its
His memory technology, CD-ROM, digital versatile disc (DVD) or other optical disc storages, magnetic holder, tape, disk storage or other
Magnetic memory apparatus or any other medium that can be used for storing desired information and can be accessed by a computer.This
Outside, known to a person of ordinary skill in the art to be, communication media generally comprises computer readable instructions, data structure, program mould
Other data in the modulated data signal of block or such as carrier wave or other transmission mechanisms etc, and may include any information
Delivery media.
Claims (10)
1. a kind of test environment construction method characterized by comprising
Physical resource is virtualized into as virtual resource, composition virtualization resource pond;
Configuration needs are received, are selected to close the virtual resource building survey advised from the virtualization resource pond according to the configuration needs
Test ring border.
2. test environment construction method according to claim 1, which is characterized in that the physical resource includes at least following
Any one of content is any multinomial:
CPU, memory, hard disk, network.
3. test environment construction method according to claim 1, which is characterized in that receive configuration needs, matched according to described
Demand is set after in the virtualization resource pond the step of virtual resource building test environment of selection conjunction rule, further includes:
After test completion, data file filing caused by the configuration file of the test environment and exploitation is saved to data
Center offline storage.
4. test environment construction method according to claim 3, which is characterized in that this method further include:
When being debugged or being redeveloped, recalls the configuration file of the test environment and develop generated data text
Part restores the test environment.
5. test environment construction method according to claim 3, which is characterized in that this method further include:
For the data center configuration disaster tolerance equipment and/or alternate device.
6. a kind of test environment construction system characterized by comprising
Resource virtualizing subsystem, for being virtualized into physical resource for virtual resource, composition virtualization resource pond;
Test environment builds subsystem automatically, for receiving configuration needs, according to the configuration needs from the virtualization resource
The virtual resource building test environment of rule is closed in selection in pond.
7. test environment construction system according to claim 6, which is characterized in that the physical resource includes at least following
Any one of content is any multinomial:
CPU, memory, hard disk, network,
The system further include:
Data center, for after test completion, by the configuration file of the test environment and developing generated data file
Filing is saved to data center's offline storage.
8. test environment construction system according to claim 7, which is characterized in that
The test environment builds subsystem automatically, is also used to when being debugged or being redeveloped, recalls the test wrapper
Data file caused by the configuration file in border and exploitation, restores the test environment.
9. test environment construction system according to claim 7, which is characterized in that the system further include:
Safeguard protection subsystem, for being the data center configuration disaster tolerance equipment and/or alternate device.
10. a kind of calculating equipment including memory, processor and stores the calculating that can be run on a memory and on a processor
Machine instruction, which is characterized in that the processor realizes claim 1-6 any one the method when executing described instruction
Step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811146636.1A CN109376084A (en) | 2018-09-29 | 2018-09-29 | A kind of test environment construction method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811146636.1A CN109376084A (en) | 2018-09-29 | 2018-09-29 | A kind of test environment construction method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109376084A true CN109376084A (en) | 2019-02-22 |
Family
ID=65402375
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811146636.1A Withdrawn CN109376084A (en) | 2018-09-29 | 2018-09-29 | A kind of test environment construction method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109376084A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130036208A1 (en) * | 2011-08-05 | 2013-02-07 | Oracle International Corporation | Systems and methods for automatic hardware provisioning based on application characteristics |
CN104506620A (en) * | 2014-12-23 | 2015-04-08 | 西安电子科技大学 | Extensible automatic computing service platform and construction method for same |
CN106789432A (en) * | 2016-12-28 | 2017-05-31 | 中软信息系统工程有限公司 | Test system based on autonomous controllable cloud platform technology |
CN107329806A (en) * | 2017-07-24 | 2017-11-07 | 郑州云海信息技术有限公司 | A kind of development environment construction method and device |
CN107368426A (en) * | 2017-08-28 | 2017-11-21 | 郑州云海信息技术有限公司 | A kind of method of testing and test device |
CN107995064A (en) * | 2017-12-14 | 2018-05-04 | 云南电网有限责任公司玉溪供电局 | Test platform building method based on virtualization technology |
-
2018
- 2018-09-29 CN CN201811146636.1A patent/CN109376084A/en not_active Withdrawn
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130036208A1 (en) * | 2011-08-05 | 2013-02-07 | Oracle International Corporation | Systems and methods for automatic hardware provisioning based on application characteristics |
CN104506620A (en) * | 2014-12-23 | 2015-04-08 | 西安电子科技大学 | Extensible automatic computing service platform and construction method for same |
CN106789432A (en) * | 2016-12-28 | 2017-05-31 | 中软信息系统工程有限公司 | Test system based on autonomous controllable cloud platform technology |
CN107329806A (en) * | 2017-07-24 | 2017-11-07 | 郑州云海信息技术有限公司 | A kind of development environment construction method and device |
CN107368426A (en) * | 2017-08-28 | 2017-11-21 | 郑州云海信息技术有限公司 | A kind of method of testing and test device |
CN107995064A (en) * | 2017-12-14 | 2018-05-04 | 云南电网有限责任公司玉溪供电局 | Test platform building method based on virtualization technology |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10678656B2 (en) | Intelligent restore-container service offering for backup validation testing and business resiliency | |
US10169173B2 (en) | Preserving management services with distributed metadata through the disaster recovery life cycle | |
US10831583B2 (en) | Reporting errors to a data storage device | |
US9632914B2 (en) | Error diagnostic in a production environment | |
US10346780B2 (en) | Extraction of system administrator actions to a workflow providing a resolution to a system issue | |
US11030049B2 (en) | Data backup management during workload migration | |
US10061665B2 (en) | Preserving management services with self-contained metadata through the disaster recovery life cycle | |
US20190227913A1 (en) | Regression testing of new software version and deployment | |
US10255140B2 (en) | Fully distributed intelligent rebuild | |
US10983822B2 (en) | Volume management by virtual machine affiliation auto-detection | |
US9501296B2 (en) | Hypervisor automation manager for starting an operation system with customization data from a disk image | |
US10942819B2 (en) | Volume group structure recovery in a virtualized server recovery environment | |
US11150981B2 (en) | Fast recovery from failures in a chronologically ordered log-structured key-value storage system | |
US9424525B1 (en) | Forecasting future states of a multi-active cloud system | |
US20160378521A1 (en) | Automated test optimization | |
US20210149771A1 (en) | Application-level recovery from an enterprise-level image copy | |
GB2604003A (en) | Machine learning based deprecated software identification | |
US10896093B2 (en) | System reboot maintenance | |
US20170109046A1 (en) | Preserving virtual product data in a computer system | |
US11775398B2 (en) | Rollback of services with a global variable change | |
US11474707B2 (en) | Data loss recovery in a secondary storage controller from a primary storage controller | |
US11163636B2 (en) | Chronologically ordered log-structured key-value store from failures during garbage collection | |
CN109376084A (en) | A kind of test environment construction method and system | |
US11662993B2 (en) | Autonomous management of temporal updates and rollbacks |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190222 |