CN110334029A - Test environmental system and system integration and test method - Google Patents

Test environmental system and system integration and test method Download PDF

Info

Publication number
CN110334029A
CN110334029A CN201910620270.5A CN201910620270A CN110334029A CN 110334029 A CN110334029 A CN 110334029A CN 201910620270 A CN201910620270 A CN 201910620270A CN 110334029 A CN110334029 A CN 110334029A
Authority
CN
China
Prior art keywords
application
environment
test
baseline
project
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
Application number
CN201910620270.5A
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.)
China Travelsky Technology Co Ltd
Original Assignee
China Travelsky Technology 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 China Travelsky Technology Co Ltd filed Critical China Travelsky Technology Co Ltd
Priority to CN201910620270.5A priority Critical patent/CN110334029A/en
Publication of CN110334029A publication Critical patent/CN110334029A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments 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 present invention provides a kind of test environmental system and system integration and test method, testing environmental system includes baseline environment and project environment application, the application to be tested for including is applied in the application and project environment for including by container technique carrying baseline environment, it realizes baseline environment and project environment applies isolation between each application for including, therefore during having ensured concurrent testing, each application runtime environment is not interfere with each other.And baseline environment includes the copy of all applications of the software systems of commencement of commercial operation, can carry out system integration and test with each application to be tested respectively, that is, realize using set of environmental while meeting a variety of testing requirements.Test environmental system provided by the invention when solving concurrent testing, interferes with each other problem between difference test environment under the premise of saving computer resource.

Description

Test environmental system and system integration and test method
Technical field
The present invention relates to software system test fields, more specifically to test environmental system and system integration and test method.
Background technique
The availability of software systems and stability dependency complicated production environment, therefore, in the iteration mistake of software systems Cheng Zhong, the work for researching and developing test are essential.And the quality and efficiency of test are researched and developed, have again very to the test environment of software systems Strong dependence.The research and development test on a set of basis requires to include system integration and test and abnormality test etc. to test environment.System integration and test is After referring to one or more application upgrades in software systems, needs to be linked into joint debugging in system environments, check the simultaneous of whole system Condition of showing mercy and the effect that application design is verified from the overall performance of system.Abnormality test refers to that online and offline will be to application Abnormal rehearsal is carried out, in system environments to promote the fault-tolerant ability of software systems.Abnormal conditions include data exception and network Failure etc..
A kind of existing test environmental system constructs a set of time sharing shared test environment using limited resources.The test Environmental system is tested to multiple applications, or to one application carry out different content test when, due to that can not accomplish object Reason isolation, needs to carry out queuing test, efficiency is lower.
Existing another test environmental system, still constructed according to the more set system testing environment of testing requirement building Journey takes long time, and the more set system testing environment built, between each other can not cooperative multiplex, cause a large amount of computer resources Waste.
Summary of the invention
In view of this, the present invention proposes test environmental system and system integration and test method, it is intended under the premise of economizing on resources, solves Certainly in concurrent testing, problem is interfered with each other between difference test environment.
To achieve the goals above, it is proposed that scheme it is as follows:
A kind of test environmental system, comprising: baseline environment, project environment application and application router, wherein
The baseline environment includes each identical application of application and each application fortune in the software systems with commencement of commercial operation The relied on computer resource of row, carries each application that the baseline environment includes using container technique;
The project environment, which is applied, runs relied on calculating including application to be tested and each application to be tested Machine resource carries each application to be tested using container technique;
The application router includes multi-environment management module, the multi-environment management module store the baseline environment and The project environment applies Apply Names, version number, operation address and the test environmental labels for each application for including;
The application router is applied between each application for including for the baseline environment and the project environment It calls.
Optionally, each application for keeping the baseline environment to include by synchronization mechanism, the software system with commencement of commercial operation The version of respective application is consistent in system.
A kind of system integration and test method is applied to above-mentioned test environment systematic difference router, the system integration and test method Include:
Call request is received, test environmental labels are obtained;
There are in the Apply Names and version number of mapping relations with the test environmental labels for analysis, if exists and is adjusted The identical Apply Names of target application and version number, if so, calling the target to answer from project environment application With if it is not, then calling the target application from the baseline environment.
Compared with prior art, technical solution of the present invention has the advantage that
The test environmental system that above-mentioned technical proposal provides carries the application and item that baseline environment includes by container technique The application to be tested that mesh environmental applications include, realize baseline environment and project environment apply between each application for including every From, therefore during having ensured concurrent testing, each application runtime environment is not interfere with each other.And baseline environment includes formal fortune The copy of all applications of capable software systems can carry out system integration and test with each application to be tested respectively, that is, realize benefit Meet a variety of testing requirements simultaneously with set of environmental.Test environmental system provided by the invention, before saving computer resource It puts, when solving concurrent testing, interferes with each other problem between difference test environment.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of schematic diagram for testing environmental system provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of system integration and test method provided in an embodiment of the present invention;
Fig. 3 is the process that unitem provided in an embodiment of the present invention carries out system integration and test using baseline environment 11;
Fig. 4 is the process that two projects provided in an embodiment of the present invention use the progress system integration and test of baseline environment 11 parallel;
Fig. 5 is the process that link provided in an embodiment of the present invention adjusts back that project carries out system integration and test using baseline environment 11.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
It is a kind of test environmental system provided in this embodiment referring to Fig. 1, comprising: baseline environment 11, project environment application 12 and application router 13, wherein
Baseline environment 11 is the software systems according to commencement of commercial operation, the test environment built.Baseline environment 11 is production ring The copy in border is that is, identical as production environment.Baseline environment 11 include in the software systems with commencement of commercial operation it is each application it is identical Using.Referring to Fig. 1, baseline environment 11 include using A, using B, using C, using D and apply E;What baseline environment 11 included answers With A, using B, using C, using D and apply E, it is consistent with the version of respective application in the software systems of commencement of commercial operation, this Version is 1.0 in embodiment.Baseline environment 11 further includes that each application runs relied on computer resource.Computer resource Including being not limited to operating system, server and database etc..
In one embodiment, each application for keeping baseline environment 11 to include by synchronization mechanism, with commencement of commercial operation The version of respective application is consistent in software systems.The present invention for specific synchronization mechanism without limitation, as long as can be realized base Each application that thread environment 11 includes is consistent with the version moment of respective application in the software systems of commencement of commercial operation.
The each application for including using container technique carrying baseline environment 11.Container refer to using virtualization technology reach every Run entity from purpose, container technique include but is not limited to the container techniques such as Docker, rkt and Hyper.Pass through container technique Realize the isolation between each application that baseline environment 11 includes.
Project environment includes that application to be tested and each application to be tested run relied on computer money using 12 Source.Application to be tested is the application for updating or upgrading in the software systems of commencement of commercial operation, in the present embodiment, to be measured referring to Fig. 1 Examination application include belong to the application A1.1 of first item environment and using B1.1, and belong to second item environment apply B1.2 With apply C1.1.Indicate that version number is 1.1 using A using A1.1.The application of different editions has different demands to test environment, Different editions are identified as different project environments using required different test environment in the present invention.Project environment is using 12 packets The application to be tested included is also carried using container technique, and the isolation between application to be tested is realized.
Baseline environment 11 includes the copy of all applications of the software systems of commencement of commercial operation, for the test put up in advance Environment.Project environment is to be constructed in research and development test process according to testing requirement using 12;Since project environment is using 12 packets Computer resource has been saved in the application for including update or upgrading, and reduces the test environmental structure time.
Application router 13 includes multi-environment management module 131, and multi-environment management module 131 stores baseline environment 11 and item Apply Names, version number, operation address and the test environmental labels for each application that mesh environmental applications 12 include.The present embodiment In, the information that multi-environment management module 131 stores is as shown in the table.
Apply Names Version number Run address Test environmental labels
A 1.0 Address 1 Baseline environment
B 1.0 Address 2 Baseline environment
C 1.0 Address 3 Baseline environment
D 1.0 Address 4 Baseline environment
E 1.0 Address 5 Baseline environment
A 1.1 Address 6 First item environment
B 1.1 Address 7 First item environment
B 1.2 Address 8 Second item environment
C 1.1 Address 9 Second item environment
Application router 13, for baseline environment 11 and project environment using the calling between the 12 each applications for including. Application router 13 is responsible for the routing called between application, and all call requests will pass through application router 13.
System integration and test is initiated using the application to be tested in 12 by project environment.It is preferentially answered from project environment using when calling The application needed for calling in 12, project environment are applied in 12 without required in application, calling from baseline environment 11 again.This implementation A kind of system integration and test method that example provides is applied to application router 13 shown in FIG. 1.Referring to fig. 2, the method comprising the steps of:
S11: receiving call request, obtains test environmental labels.
The call request that application router 13 receives can be project environment and send using the application to be tested in 12 , it is also possible to what the application in baseline environment 11 was sent.Project environment is other using the application to be tested transmission calling in 12 When the call request of application, the test environmental labels of the application to be tested comprising transmission call request in the call request.Baseline When application in environment 11 sends the call request for calling other application, application router 13, which obtains, initiates the to be measured of system integration and test Try the test environmental labels of application.
S12: there are in the Apply Names of mapping relations for analysis and test environmental labels, if the target for existing and being called Using identical Apply Names, if so, S13 is thened follow the steps, if it is not, thening follow the steps S14.
S13: the invocation target application from project environment application.
S14: the invocation target application from baseline environment.
The process that system integration and test is carried out using baseline environment 11 is described in detail below.Referring to Fig. 3, base is used for unitem The process of the progress system integration and test of thread environment 11.The system integration and test process is specially that A is applied to call using B, is then answered using B calling Use C.
The routing iinformation of each application shown in Fig. 3 is as shown in the table:
Apply Names Version number Run address Test environmental labels
A 1.1 Address 1 First item environment
B 1.1 Address 2 First item environment
A 1.0 Address 3 Baseline environment
B 1.0 Address 4 Baseline environment
C 1.0 Address 5 Baseline environment
D 1.0 Address 6 Baseline environment
E 1.0 Address 7 Baseline environment
Application to be tested is A1.1 and B1.1.When calling using A using B, the test wrapper of A is applied in the analysis of application router 13 Border label is first item environment, calls and applies B, applies B in the presence of corresponding with first item environment according to routing iinformation judgement, Therefore, it is called in the first item environment from project environment using 12 and applies B;When B is called using C, application router 13 divides Analysis is first item environment using the test environmental labels of B, calls and applies C, is not present and first item according to routing iinformation judgement Mesh environment is corresponding to apply C, therefore, calls from baseline environment 11 and applies C.
Referring to fig. 4, the process of system integration and test is carried out using baseline environment 11 for two projects.The system integration and test process is specific B is applied to apply A to call in first item environment, is then called in baseline environment using B and applies C;B is applied in second environment It calls and applies C, then called in baseline environment using C and apply D.
The routing iinformation of each application shown in Fig. 4 is as shown in the table:
Apply Names Version number Run address Test environmental labels
A 1.1 Address 1 First item environment
B 1.1 Address 2 First item environment
B 1.2 Address 3 Second item environment
C 1.1 Address 4 Second item environment
A 1.0 Address 5 Baseline environment
B 1.0 Address 6 Baseline environment
C 1.0 Address 7 Baseline environment
D 1.0 Address 8 Baseline environment
E 1.0 Address 9 Baseline environment
Carry out system integration and test test using first item environment: application to be tested is A1.1 and B1.1.It calls and applies using A When B, the analysis of application router 13 is first item environment using the test environmental labels of A, calls and applies B, according to routing iinformation Judgement applies B in the presence of corresponding with first item environment, therefore, calls and answers in the first item environment from project environment using 12 Use B;When B is called using C, the analysis of application router 13 is first item environment using the test environmental labels of B, calls application C applies C there is no corresponding with first item environment according to routing iinformation judgement, therefore, application is called from baseline environment 11 C。
Carry out system integration and test test using second item environment: application to be tested is B1.2 and C1.1.It calls and applies using B When C, the analysis of application router 13 is second item environment using the test environmental labels of B, calls and applies C, according to routing iinformation Judgement applies C in the presence of corresponding with second item environment, therefore, calls and answers in the second item environment from project environment using 12 Use C;When C is called using D, the analysis of application router 13 is second item environment using the test environmental labels of C, calls application D applies D there is no corresponding with second item environment according to routing iinformation judgement, therefore, application is called from baseline environment 11 D。
Referring to Fig. 5, project is adjusted back for link and uses the process of the progress system integration and test of baseline environment 11.The system integration and test process It is specially called using A and applies B, then called using B and apply C.
The routing iinformation of each application shown in fig. 5 is as shown in the table:
Application to be tested is A1.1 and C1.1.When calling using A using B, the survey of A1.1 is applied in the analysis of application router 13 Examination environmental labels are first item environment, call and apply B, there is answer corresponding with first item environment according to routing iinformation judgement It is therefore called from baseline environment 11 with B and applies B;When B is called using C, what it is due to call request is from baseline environment 11 It sends, the test environmental labels using A1.1 that this system integration and test is initiated in the analysis of application router 13 are first item ring Border calls and applies C, is therefore answered from project environment in the presence of corresponding with first item environment using C according to routing iinformation judgement C is applied with calling in 12.
System embodiment described above is only schematical, wherein described, unit can as illustrated by the separation member It is physically separated with being or may not be,.Some or all of the modules therein can be selected according to the actual needs To achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are without creative efforts, it can It understands and implements.
Herein, relational terms such as first and second and the like be used merely to by an entity or operation with it is another One entity or operation distinguish, and without necessarily requiring or implying between these entities or operation, there are any this reality Relationship or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to the packet of nonexcludability Contain, so that the process, method, article or equipment for including a series of elements not only includes those elements, but also including Other elements that are not explicitly listed, or further include for elements inherent to such a process, method, article, or device. In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including the element Process, method, article or equipment in there is also other identical elements.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other The difference of embodiment, the same or similar parts in each embodiment may refer to each other.
To the above description of disclosed embodiment of this invention, it can be realized professional and technical personnel in the field or use this Invention.Various modifications to these embodiments will be readily apparent to those skilled in the art, institute herein The General Principle of definition can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, The present invention will not be limited to the embodiments shown herein, and is to fit to special with principles disclosed herein and novelty The consistent widest scope of point.

Claims (3)

1. a kind of test environmental system characterized by comprising baseline environment, project environment application and application router, In,
The baseline environment includes each identical application of application and each application operation institute in the software systems with commencement of commercial operation The computer resource of dependence carries each application that the baseline environment includes using container technique;
The project environment, which is applied, runs relied on computer money including application to be tested and each application to be tested Source carries each application to be tested using container technique;
The application router includes multi-environment management module, and the multi-environment management module stores the baseline environment and described Project environment applies Apply Names, version number, operation address and the test environmental labels for each application for including;
The application router applies the tune between each application for including for the baseline environment and the project environment With.
2. test environmental system according to claim 1, which is characterized in that keep the baseline environment by synchronization mechanism Including each application, it is consistent with the version of respective application in the software systems of commencement of commercial operation.
3. a kind of system integration and test method, which is characterized in that be applied to application router of any of claims 1 or 2, the system Joint debugging method includes:
Call request is received, test environmental labels are obtained;
With the test environmental labels there are in the Apply Names and version number of mapping relations for analysis, if exists and is called The identical Apply Names of target application and version number, if so, the target application is called from project environment application, if It is no, then the target application is called from the baseline environment.
CN201910620270.5A 2019-07-10 2019-07-10 Test environmental system and system integration and test method Pending CN110334029A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910620270.5A CN110334029A (en) 2019-07-10 2019-07-10 Test environmental system and system integration and test method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910620270.5A CN110334029A (en) 2019-07-10 2019-07-10 Test environmental system and system integration and test method

Publications (1)

Publication Number Publication Date
CN110334029A true CN110334029A (en) 2019-10-15

Family

ID=68146164

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910620270.5A Pending CN110334029A (en) 2019-07-10 2019-07-10 Test environmental system and system integration and test method

Country Status (1)

Country Link
CN (1) CN110334029A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112231217A (en) * 2020-10-21 2021-01-15 中国银行股份有限公司 Method and device for implementing function test in copy mode
CN112256309A (en) * 2020-11-12 2021-01-22 上海达梦数据库有限公司 Program upgrading method, device, equipment and storage medium
CN112882924A (en) * 2021-01-21 2021-06-01 平安银行股份有限公司 Test environment building method, device, equipment and medium based on registration center
CN113204379A (en) * 2021-05-06 2021-08-03 携程商旅信息服务(上海)有限公司 Method, system, equipment and medium for dynamically loading test resources

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106656650A (en) * 2016-10-08 2017-05-10 腾讯科技(深圳)有限公司 Business test environment generation method and system and business test method, device and system
CN107979508A (en) * 2017-11-24 2018-05-01 深圳乐信软件技术有限公司 Micro services test method and device
US20180285247A1 (en) * 2017-03-29 2018-10-04 The Travelers Indemnity Company Systems, methods, and apparatus for automated code testing

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106656650A (en) * 2016-10-08 2017-05-10 腾讯科技(深圳)有限公司 Business test environment generation method and system and business test method, device and system
US20180285247A1 (en) * 2017-03-29 2018-10-04 The Travelers Indemnity Company Systems, methods, and apparatus for automated code testing
CN107979508A (en) * 2017-11-24 2018-05-01 深圳乐信软件技术有限公司 Micro services test method and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112231217A (en) * 2020-10-21 2021-01-15 中国银行股份有限公司 Method and device for implementing function test in copy mode
CN112231217B (en) * 2020-10-21 2023-09-22 中国银行股份有限公司 Method and device for implementing functional test in duplicate mode
CN112256309A (en) * 2020-11-12 2021-01-22 上海达梦数据库有限公司 Program upgrading method, device, equipment and storage medium
CN112882924A (en) * 2021-01-21 2021-06-01 平安银行股份有限公司 Test environment building method, device, equipment and medium based on registration center
CN112882924B (en) * 2021-01-21 2022-02-08 平安银行股份有限公司 Test environment building method, device, equipment and medium based on registration center
CN113204379A (en) * 2021-05-06 2021-08-03 携程商旅信息服务(上海)有限公司 Method, system, equipment and medium for dynamically loading test resources
CN113204379B (en) * 2021-05-06 2022-11-15 携程商旅信息服务(上海)有限公司 Method, system, equipment and medium for dynamically loading test resources

Similar Documents

Publication Publication Date Title
CN110334029A (en) Test environmental system and system integration and test method
US10185601B2 (en) Software defined SaaS platform
CA2990252C (en) Systems and methods for blueprint-based cloud management
US7823152B2 (en) System and method for collaborative hosting of applications, virtual machines, and data objects
US8321856B2 (en) Supplying software updates synchronously
US9614730B2 (en) Performing customized deployment scenarios in shared environments
US20210326197A1 (en) System And Method For Automatically Identifying And Resolving Computing Errors
US7467371B1 (en) Binding for business workflow processes
US7539987B1 (en) Exporting unique operating system features to other partitions in a partitioned environment
CN110647469A (en) Method and device for testing microservice, computer equipment and storage medium
CN111124589B (en) Service discovery system, method, device and equipment
US20180060216A1 (en) Method and system for test-execution optimization in an automated application-release-management system during source-code check-in
CN110704296A (en) Calling method and device
Zhang et al. Towards a virtual network function research agenda: A systematic literature review of vnf design considerations
CN103440298A (en) Data access management device and management method and database service platform
CN113342560A (en) Fault processing method, system, electronic equipment and storage medium
López-Viana et al. Continuous Deployment in IoT Edge Computing: A GitOps implementation
CN103678488B (en) Distributed mass dynamic task engine and method for processing data with same
Mangwani et al. Evaluation of a Multitenant SaaS Using Monolithic and Microservice Architectures
CN102811199A (en) Interface adaptation method, device and system
Ceccarelli et al. A service discovery approach for testing dynamic SOAs
CN113238956B (en) Fault analysis method, device, equipment and storage medium for abnormal application
Kumudavalli et al. Cloud computing based monolithic to containerization using elastic container service for phylogenetic analysis
CN113918305A (en) Node scheduling method and device, electronic equipment and readable storage medium
Dubey et al. Dynamic service composition towards database virtualization for efficient data management

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20191015

RJ01 Rejection of invention patent application after publication