CN108829588A - A kind of processing method of test application program, deployment system and device - Google Patents

A kind of processing method of test application program, deployment system and device Download PDF

Info

Publication number
CN108829588A
CN108829588A CN201810538806.4A CN201810538806A CN108829588A CN 108829588 A CN108829588 A CN 108829588A CN 201810538806 A CN201810538806 A CN 201810538806A CN 108829588 A CN108829588 A CN 108829588A
Authority
CN
China
Prior art keywords
address
application program
container
server
tested
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.)
Granted
Application number
CN201810538806.4A
Other languages
Chinese (zh)
Other versions
CN108829588B (en
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.)
Beijing SF Intra City Technology Co Ltd
Original Assignee
Beijing SF Intra City 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 Beijing SF Intra City Technology Co Ltd filed Critical Beijing SF Intra City Technology Co Ltd
Priority to CN201810538806.4A priority Critical patent/CN108829588B/en
Publication of CN108829588A publication Critical patent/CN108829588A/en
Application granted granted Critical
Publication of CN108829588B publication Critical patent/CN108829588B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging

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 embodiment of the present invention provides processing method, deployment system and the device of a kind of test application program, the method includes:If detecting the creation trigger action to the test environment mirror selected, determine that target obtains the corresponding first kind container of the test environment from server, and in the target from server;If getting idle IP address, the IP address and the first kind container are mutually bound;If detecting the deployment trigger action of the program image version number to the application program to be tested selected, the corresponding Second Type container of the application program to be tested is obtained from server in the target, and using the IP address as Second Type container institute IP address to be used.Described device executes the above method.Processing method, deployment system and the device of test application program provided in an embodiment of the present invention, can be improved the treatment effeciency of test application program.

Description

A kind of processing method of test application program, deployment system and device
Technical field
The present embodiments relate to Application testing technical fields, and in particular to a kind of processing side of test application program Method, deployment system and device.
Background technique
With the intelligentized development of software, the individual cultivation that software needs is more and more, the deployment including environment, software The change of configuration, the starting etc. of software, also increases the difficulty of test of software test personnel.
In existing Experience of Software Testing Work, software test personnel are to build test environment in the server manually mostly, are led to Often test environment includes Mysql database, Redis database, application program, Nginx server etc., it is not fast enough efficiently.Separately On the one hand, since test building is related to the deployment of multiple application programs, when deployment, needs to obtain tested application program Code, while carry out the modification of http request address, database address change, ambient port modification etc. work, build low efficiency, Error rate is high, and during environmental structure, and the environment of multiple software test personnel is easy to appear IP conflict etc., leads to test wrapper Border interacts.
Therefore, how drawbacks described above is avoided, can be improved the treatment effeciency of test application program, become asking of need solving Topic.
Summary of the invention
In view of the problems of the existing technology, the embodiment of the present invention provides a kind of processing method of test application program, portion Administration's system and device.
In a first aspect, the embodiment of the present invention provides a kind of processing method of test application program, the method includes:
If detecting the creation trigger action to the test environment mirror selected, target is determined from server, and in institute It states target and obtains the corresponding first kind container of the test environment from server;
If getting idle IP address, the IP address and the first kind container are mutually bound;
If the deployment trigger action of the program image version number to the application program to be tested selected is detected, described Target obtains the corresponding Second Type container of the application program to be tested from server, and using the IP address as described in Second Type container institute IP address to be used.
Second aspect, the embodiment of the present invention provide a kind of deployment system of test application program, including several servers, Wherein;
The server includes initialization module, and the initialization module is deployed with the application container engine of open source Docker selects a primary server using docker swarm mode, by remaining service from several described servers Device is used as from server;
Server is each provided with multiple Microsoft Loopback Adapters, each Microsoft Loopback Adapter and each from the first kind in server Container corresponds.
The third aspect, the embodiment of the present invention provide a kind of processing unit of test application program, and described device includes:
Determination unit, if for detecting the creation trigger action to the test environment mirror selected, determine target from Server, and the corresponding first kind container of the test environment is obtained from server in the target;
Binding unit, if mutually tying up the IP address and the first kind container for getting idle IP address It is fixed;
Acquiring unit, if for detecting that the deployment to the program image version number for the application program to be tested selected is touched Start to make, obtains the corresponding Second Type container of the application program to be tested from server in the target, and will be described IP address is as Second Type container institute IP address to be used.
Fourth aspect, the embodiment of the present invention provide a kind of electronic equipment, including:Processor, memory and bus, wherein
The processor and the memory complete mutual communication by the bus;
The memory is stored with the program instruction that can be executed by the processor, and the processor calls described program to refer to Order is able to carry out following method:
If detecting the creation trigger action to the test environment mirror selected, target is determined from server, and in institute It states target and obtains the corresponding first kind container of the test environment from server;
If getting idle IP address, the IP address and the first kind container are mutually bound;
If the deployment trigger action of the program image version number to the application program to be tested selected is detected, described Target obtains the corresponding Second Type container of the application program to be tested from server, and using the IP address as described in Second Type container institute IP address to be used.
5th aspect, the embodiment of the present invention provide a kind of non-transient computer readable storage medium, including:
The non-transient computer readable storage medium stores computer instruction, and the computer instruction makes the computer Execute following method:
If detecting the creation trigger action to the test environment mirror selected, target is determined from server, and in institute It states target and obtains the corresponding first kind container of the test environment from server;
If getting idle IP address, the IP address and the first kind container are mutually bound;
If the deployment trigger action of the program image version number to the application program to be tested selected is detected, described Target obtains the corresponding Second Type container of the application program to be tested from server, and using the IP address as described in Second Type container institute IP address to be used.
Processing method, deployment system and the device of test application program provided in an embodiment of the present invention, in target from service The test corresponding first kind container of environment and the corresponding Second Type container of application program to be tested are obtained in device, by the free time IP address and first kind container are bound, and as Second Type container institute IP address to be used, can be improved test application The treatment effeciency of program.
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 this hair Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the processing method flow diagram of test application program of the embodiment of the present invention;
Fig. 2 is the deployment system structural schematic diagram of test application program of the embodiment of the present invention;
Fig. 3 is the structural schematic diagram of primary server of the embodiment of the present invention;
Fig. 4 is structural schematic diagram of the embodiment of the present invention from server;
Fig. 5 is the processing device structure diagram of test application program of the embodiment of the present invention;
Fig. 6 is electronic equipment entity structure schematic diagram provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Fig. 1 is the processing method flow diagram of test application program of the embodiment of the present invention, as shown in Figure 1, the present invention is real The processing method for applying a kind of test application program of example offer, includes the following steps:
S101:If detecting the creation trigger action to the test environment mirror selected, determine target from server, and The corresponding first kind container of test environment is obtained from server in the target.
If determining target from clothes specifically, device is detected to the creation trigger action for the test environment mirror selected Business device, and the corresponding first kind container of test environment is obtained from server in the target.Include if device can be The system of dry server, enterprise unification authentication platform uuap can be set logs in input frame, if detecting that user (can be Software test personnel) input login account, and be verified, environment mirror can be tested by web displaying, for user Selection.Testing environment can be that (wherein, CentOS is Community Enterprise Operating System to CentOS7 Abbreviation, Chinese means:Community's Enterprise Operation System) etc..It triggerings can be created by way of clicking touch screen etc. CentOS7.Device can call docker swarm, and dynamic select has more idling-resource (to can be cpu busy percentage, memory Utilization rate is lower) a server as target from server, and select a server as primary server, and in the mesh Mark obtains the corresponding first kind container of CentOS7 from server, i.e. first kind container can be understood as testing with creation The container of environmental correclation.
It should be noted that:If Servers-all without idling-resource, can not determine that target, can be with from server It is server without idling-resource etc. in prompting message, the failure cause of web displaying mission failure, and terminates subsequent step.
S102:If getting idle IP address, the IP address and the first kind container are mutually bound.
If the IP address and the first kind container are mutually bound specifically, device gets idle IP address. It there is mapping relations between IP address after binding and first kind container, the mapping relations can be saved to database In, which can be using Hash coding as mark.First kind container knot can also be obtained in web displaying The notice message of fruit, for user according to the notice message know first kind container acquisition situation (may include obtain at Function obtains failure).The operation of user can also be recorded by way of log recording.
It should be noted that:If obtained less than idle IP address, the first kind container is deleted, it can be in webpage The prompting message of idle IP address is deleted in display, and terminates subsequent step.
S103:If detecting the deployment trigger action of the program image version number to the application program to be tested selected, The corresponding Second Type container of the application program to be tested is obtained from server in the target, and the IP address is made For the Second Type container IP address to be used.
Specifically, if device detects that the deployment to the program image version number for the application program to be tested selected triggers Movement obtains the corresponding Second Type container of the application program to be tested in the target from server, and by the IP Address is as Second Type container institute IP address to be used.It can be by pre-establishing the program of application program to be tested Mirror image, program image identifies program image version number, and uploads to network, for selection by the user.Docker can be called Swarm obtains the corresponding Second Type container of application program to be tested, i.e. Second Type container can be understood as answering with to be tested With the relevant container of program.And it modifies to the configurations in Second Type container, including Second Type container is wanted The IP address used is revised as the IP address mutually bound with first kind container, database address change, ambient port modification etc.. It, can also be in the notice message of web displaying acquisition Second Type container result, for user referring to the explanation of above-described embodiment The acquisition situation of Second Type container is known according to the notice message.The behaviour of user can also be recorded by way of log recording Make.
It should be noted that:The current version number of program image version number and application program to be tested there are corresponding relationship, Such as:Current version number is V2.01, and corresponding program image version number is V1.01.
The processing method of test application program provided in an embodiment of the present invention obtains test environment in target from server Corresponding first kind container and the corresponding Second Type container of application program to be tested, by idle IP address and the first kind Container binding, and as Second Type container institute IP address to be used, it can be improved the treatment effeciency of test application program.
On the basis of the above embodiments, the method also includes:
Obtain the latest edition number of the application program to be tested.
Specifically, device obtains the latest edition number of the application program to be tested.It is illustrated below:If to be tested The latest edition number of application program is V2.02.It can refer to above-described embodiment, repeat no more.
If the current version number of the application program to be tested is lower than the latest edition number, the latest edition number is downloaded The application program to be tested of corresponding update, and update described program image release number.
Specifically, if device judgement knows the current version number of the application program to be tested lower than the latest edition Number, the application program to be tested of the corresponding update of the latest edition number is downloaded, and update described program image release number.Reference The example above, if the current version number of application program to be tested is V2.01, V2.01 is lower than V2.02, downloads the to be measured of update Application program V2.02 is tried, referring to the example above, program image version number V1.01 is updated to V1.02.
If the deployment trigger action to the update program image version number selected is detected, in the target from server It is middle to obtain the corresponding Second Type container of the application program to be tested, and using the IP address as the Second Type container Institute's IP address to be used.
Specifically, if device detects the deployment trigger action to the update program image version number selected, described Target obtains the corresponding Second Type container of the application program to be tested from server, and using the IP address as described in Second Type container institute IP address to be used.It can be understood that:Even if having updated application program to be tested, corresponding second Type of container or original Second Type container.
The processing method of test application program provided in an embodiment of the present invention also uses the application program to be tested of update Second Type container can efficiently use device resource, also ensure the consistency of deployed environment on test environment and line.
On the basis of the above embodiments, the method also includes:
Obtain Third-party payment application program relevant to the application program to be tested;Correspondingly, the Second Type Container IP address to be used further include test Third-party payment payment environment IP address.
Specifically, device obtains Third-party payment application program relevant to the application program to be tested;Correspondingly, institute State Second Type container IP address to be used further include test Third-party payment payment environment IP address.Third party's branch Paying application program may include wechat payment, Alipay etc..
The processing method of test application program provided in an embodiment of the present invention, using idle IP address as Third-party payment Payment environment IP address, can comprehensively dispose Third-party payment application program relevant to application program.
Fig. 2 is the deployment system structural schematic diagram of test application program of the embodiment of the present invention, as shown in Fig. 2, the present invention is real Applying example and providing a kind of deployment system of test application program includes several servers, wherein;
The server includes initialization module, and the initialization module is deployed with the application container engine of open source Docker selects a primary server 21 using docker swarm mode, by remaining clothes from several described servers Business device is used as from server 22;Server 22 is each provided with multiple Microsoft Loopback Adapters, each Microsoft Loopback Adapter and each from service First kind container in device corresponds.
The deployment system of test application program provided in an embodiment of the present invention, by reasonable selection primary server and from service Device, and make to correspond from each Microsoft Loopback Adapter in server and each from the first kind container in server, it ensure that Normal communication connection.
On the basis of the above embodiments, the primary server 21 further includes mirror image management module 2101, log management mould Block 2102 and account management module 2103, wherein:
Fig. 3 is the structural schematic diagram of primary server of the embodiment of the present invention, as shown in figure 3, the mirror image management module 2101 For providing the program image version number of test environment mirror and application program mirror image to be tested to be selected, and manage the journey Sequence image release number, including program image version number is updated, delete original program image version number etc..The log management mould Block 2102 is for recording user's login, operation log;It can be the uuap of user's login, operation log may include that user is manual Made configuration modification, deployment etc..The account management module 2103 is logged in, is exited for enterprise's unification authentication platform. Initialization module 2104 in primary server is also used to detect idle IP address, and the IP address that will test distribute to Target records the binding of the first kind container and the IP address issued by the target from server from server Relationship.The database that test environment needs to use such as Mysql, Redis and basic account etc. can be provided with user.
The deployment system of test application program provided in an embodiment of the present invention, by the way that mirror image management is arranged in primary server Module, log management module, account management module and initialization module, the further perfect function of primary server.
On the basis of the above embodiments, it is described from server 22 further include Container Management module 2201 and deployment management mould Block 2202, wherein:
Fig. 4 is structural schematic diagram of the embodiment of the present invention from server, as shown in figure 4, the Container Management module 2201 For being communicated with the mirror image management module 2101 in primary server 21, to carry out the creation of container, delete and check;The container Including first kind container and Second Type container;The deployment management module 2202 be used for the application program to be tested into Row deployment and localization testing configuration;Deployment task can be checked with user, increased and deleted.From server Initialization module 2203 be also used to mutually bind the IP address and first kind container, and issue the first kind container With the binding relationship of the IP address.
The deployment system of test application program provided in an embodiment of the present invention, by the way that Container Management is being arranged from server Module, deployment management module and initialization module, the further perfect function from server,
On the basis of the above embodiments, the localization testing, which configures, includes:
It is and described second by the IP address of the application program to be tested, network access port, database configuration modification The relevant configuration of type of container.The particular content of above-mentioned localization testing configuration is not especially limited.
The deployment system of test application program provided in an embodiment of the present invention is configured by specific localization testing, into Function of the one-step optimization from server.
It illustrates below and functional module is described as follows:
Need to dispose clearing program now with logistics system and carry out functional test, the clearing program be related to wechat, The third party's services such as Alipay, insurance company.By this system, once completely deployment process is as follows:
Clearing program is write by php, and mirror image management module gets the basic environments configuration informations such as clearing program, creation Php foundation image, and the basic version V2.01 of clearing program is obtained, it is packaged into clearing basis packet, version V1.01.
Mirror image management module periodic detection settles accounts program, when finding that version is higher than V2.01, downloads newest code and matches Change is set, clearing program is updated, modifies environment configurations, for example the third party's services such as wechat, Alipay, insurance company are revised as Corresponding test environment or mock system service.In the updated, it is beta version that mirror image management module, which repacks clearing program, This V1.02, and issue the version.
It is CentOS7 version that user selects the test environment needed in web page, and selects creation test environment.This Aims of systems gets CentOS7 version foundation image from server and creates CentOS7 container, then calls IP binding service Idle IP address is got, and is bound by shell script, newly created CentOS7 container is published in test network.
User selects the clearing beta version for needing to be deployed in web page, and target gets clearing from server and surveys The foundation image of test run sheet simultaneously creates container, and the services such as modification mysql, redis are in the CentOS7 container that user has created IP address;The web services address (address of network to be visited) that clearing test container provides can also be modified as CentOS7 appearance The IP address of device, modification clearing program port are 8000 ports.
Through the above technical solutions, realizing the purpose of the rapid deployment of application program, test.
Fig. 5 is the processing device structure diagram of test application program of the embodiment of the present invention, as shown in figure 5, the present invention is real Applying example and providing a kind of processing unit of test application program includes determination unit 501, binding unit 502 and acquiring unit 503, Wherein:
If determination unit 501 determines target for detecting to the creation trigger action for the test environment mirror selected The corresponding first kind container of the test environment is obtained from server from server, and in the target;Binding unit 502 If the IP address and the first kind container are mutually bound for getting idle IP address;Acquiring unit 503 is used for If detecting the deployment trigger action of the program image version number to the application program to be tested selected, in the target from clothes The corresponding Second Type container of the application program to be tested is obtained in business device, and using the IP address as the Second Type Container institute IP address to be used.
Specifically, if determination unit 501 is used to detect the creation trigger action to the test environment mirror selected, really It sets the goal from server, and obtains the corresponding first kind container of the test environment from server in the target;Binding If unit 502 is used to get idle IP address, the IP address and the first kind container are mutually bound;Acquiring unit If 503 for detecting the deployment trigger action of the program image version number to the application program to be tested selected, described Target obtains the corresponding Second Type container of the application program to be tested from server, and using the IP address as described in Second Type container institute IP address to be used.
The processing unit of test application program provided in an embodiment of the present invention obtains test environment in target from server Corresponding first kind container and the corresponding Second Type container of application program to be tested, by idle IP address and the first kind Container binding, and as Second Type container institute IP address to be used, it can be improved the treatment effeciency of test application program.
It is real that the processing unit of test application program provided in an embodiment of the present invention specifically can be used for executing above-mentioned each method The process flow of example is applied, details are not described herein for function, is referred to the detailed description of above method embodiment.
Fig. 6 is electronic equipment entity structure schematic diagram provided in an embodiment of the present invention, as shown in fig. 6, the electronic equipment Including:Processor (processor) 601, memory (memory) 602 and bus 603;
Wherein, the processor 601, memory 602 complete mutual communication by bus 603;
The processor 601 is used to call the program instruction in the memory 602, to execute above-mentioned each method embodiment Provided method, for example including:If detecting the creation trigger action to the test environment mirror selected, determine target from Server, and the corresponding first kind container of the test environment is obtained from server in the target;If getting the free time IP address, the IP address and the first kind container are mutually bound;If detecting to be tested using journey to what is selected The deployment trigger action of the program image version number of sequence obtains the application program pair to be tested in the target from server The Second Type container answered, and using the IP address as Second Type container institute IP address to be used.
The present embodiment discloses a kind of computer program product, and the computer program product includes being stored in non-transient calculating Computer program on machine readable storage medium storing program for executing, the computer program include program instruction, when described program instruction is calculated When machine executes, computer is able to carry out method provided by above-mentioned each method embodiment, for example including:If detecting to having selected Test environment mirror creation trigger action, determine target from server, and described in obtaining from server in the target Test the corresponding first kind container of environment;If getting idle IP address, the IP address and the first kind are held Device is mutually bound;If the deployment trigger action of the program image version number to the application program to be tested selected is detected, in institute It states target and obtains the corresponding Second Type container of the application program to be tested from server, and using the IP address as institute State Second Type container institute IP address to be used.
The present embodiment provides a kind of non-transient computer readable storage medium, the non-transient computer readable storage medium Computer instruction is stored, the computer instruction makes the computer execute method provided by above-mentioned each method embodiment, example Such as include:If detecting the creation trigger action to the test environment mirror selected, target is determined from server, and described Target obtains the corresponding first kind container of the test environment from server;It, will be described if getting idle IP address IP address is mutually bound with the first kind container;If detecting the program image version to the application program to be tested selected Number deployment trigger action, obtain the corresponding Second Type of the application program to be tested from server in the target and hold Device, and using the IP address as Second Type container institute IP address to be used.
Those of ordinary skill in the art will appreciate that:Realize that all or part of the steps of above method embodiment can pass through The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer readable storage medium, the program When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes:ROM, RAM, magnetic disk or light The various media that can store program code such as disk.
The embodiments such as electronic equipment described above are only schematical, wherein it is described as illustrated by the separation member Unit may or may not be physically separated, and component shown as a unit may or may not be object Manage unit, it can it is in one place, or may be distributed over multiple network units.It can select according to the actual needs Some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying wound In the case where the labour for the property made, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation Method described in certain parts of example or embodiment.
Finally it should be noted that:The above various embodiments is only to illustrate the technical solution of the embodiment of the present invention, rather than right It is limited;Although the embodiment of the present invention is described in detail referring to foregoing embodiments, the ordinary skill of this field Personnel should understand that:It is still possible to modify the technical solutions described in the foregoing embodiments, or to part Or all technical features are equivalently replaced;And these are modified or replaceed, it does not separate the essence of the corresponding technical solution The range of various embodiments of the present invention technical solution.

Claims (10)

1. a kind of processing method of test application program, which is characterized in that including:
If detecting the creation trigger action to the test environment mirror selected, target is determined from server, and in the mesh Mark obtains the corresponding first kind container of the test environment from server;
If getting idle IP address, the IP address and the first kind container are mutually bound;
If the deployment trigger action of the program image version number to the application program to be tested selected is detected, in the target The corresponding Second Type container of the application program to be tested is obtained from server, and using the IP address as described second Type of container institute IP address to be used.
2. the method according to claim 1, wherein the method also includes:
Obtain the latest edition number of the application program to be tested;
If the current version number of the application program to be tested is lower than the latest edition number, it is corresponding to download the latest edition number Update application program to be tested, and update described program image release number;
If detecting to the deployment trigger action of the update program image version number selected, obtained from server in the target The corresponding Second Type container of the application program to be tested is taken, and is wanted the IP address as the Second Type container The IP address used.
3. the method according to claim 1, wherein the method also includes:
Obtain Third-party payment application program relevant to the application program to be tested;Correspondingly, the Second Type container IP address to be used further include test Third-party payment payment environment IP address.
4. a kind of deployment system of test application program, which is characterized in that including several servers, wherein;
The server includes initialization module, and the initialization module is deployed with the application container engine docker of open source, is adopted A primary server is selected from several described servers with docker swarm mode, using remaining server as from clothes Business device;
Server is each provided with multiple Microsoft Loopback Adapters, each Microsoft Loopback Adapter and each from the first kind container in server It corresponds.
5. system according to claim 4, which is characterized in that the primary server further includes mirror image management module, log Management module and account management module, wherein:
The mirror image management module is for providing the program mirror of test environment mirror and application program mirror image to be tested to be selected As version number, and manage described program image release number;
The log management module is for recording user's login, operation log;
The account management module is logged in, is exited for enterprise's unification authentication platform;
Initialization module in primary server is also used to detect idle IP address, and the IP address that will test distribute to Target records the binding of the first kind container and the IP address issued by the target from server from server Relationship.
6. system according to claim 4, which is characterized in that it is described from server further include Container Management module and deployment Management module, wherein:
The Container Management module with the mirror image management module in primary server for communicating, to carry out the creation of container, delete With check;The container includes first kind container and Second Type container;
The deployment management module is used to carry out the application program to be tested deployment and localization testing configures;
It is also used to mutually bind the IP address and first kind container from the initialization module in server, and issues described The binding relationship of one type of container and the IP address.
7. system according to claim 6, which is characterized in that the localization testing, which configures, includes:
It is and the Second Type by the IP address of the application program to be tested, network access port, database configuration modification The relevant configuration of container.
8. a kind of processing unit of test application program, which is characterized in that including:
Determination unit, if determining target from service for detecting to the creation trigger action for the test environment mirror selected Device, and the corresponding first kind container of the test environment is obtained from server in the target;
Binding unit, if mutually binding the IP address and the first kind container for getting idle IP address;
Acquiring unit, if for detecting that the triggering of the deployment to the program image version number for the application program to be tested selected is dynamic Make, obtains the corresponding Second Type container of the application program to be tested from server in the target, and by the IP Location is as Second Type container institute IP address to be used.
9. a kind of electronic equipment, which is characterized in that including:Processor, memory and bus, wherein
The processor and the memory complete mutual communication by the bus;
The memory is stored with the program instruction that can be executed by the processor, and the processor calls described program to instruct energy Enough methods executed as described in claims 1 to 3 is any.
10. a kind of non-transient computer readable storage medium, which is characterized in that the non-transient computer readable storage medium is deposited Computer instruction is stored up, the computer instruction makes the computer execute the method as described in claims 1 to 3 is any.
CN201810538806.4A 2018-05-30 2018-05-30 Processing method, deployment system and device for testing application program Active CN108829588B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810538806.4A CN108829588B (en) 2018-05-30 2018-05-30 Processing method, deployment system and device for testing application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810538806.4A CN108829588B (en) 2018-05-30 2018-05-30 Processing method, deployment system and device for testing application program

Publications (2)

Publication Number Publication Date
CN108829588A true CN108829588A (en) 2018-11-16
CN108829588B CN108829588B (en) 2021-12-07

Family

ID=64146395

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810538806.4A Active CN108829588B (en) 2018-05-30 2018-05-30 Processing method, deployment system and device for testing application program

Country Status (1)

Country Link
CN (1) CN108829588B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109542791A (en) * 2018-11-27 2019-03-29 长沙智擎信息技术有限公司 A kind of program large-scale concurrent evaluating method based on container technique
CN110266762A (en) * 2019-05-20 2019-09-20 广州视琨电子科技有限公司 A kind of data uploading method, system, device and storage medium
CN111159046A (en) * 2019-12-31 2020-05-15 斑马网络技术有限公司 Test method, test device, electronic equipment, test system and storage medium
CN112532473A (en) * 2020-11-12 2021-03-19 苏宁金融科技(南京)有限公司 DNS (Domain name System) -based multi-environment test access method and device
CN112650662A (en) * 2019-10-10 2021-04-13 上海哔哩哔哩科技有限公司 Test environment deployment method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103167041A (en) * 2013-03-28 2013-06-19 广州中国科学院软件应用技术研究所 System and method for supporting cloud environment application cluster automation deployment
US20160371097A1 (en) * 2015-06-20 2016-12-22 Joshua Clay Magee Air Gapping / Offboarding of Software
CN106656650A (en) * 2016-10-08 2017-05-10 腾讯科技(深圳)有限公司 Business test environment generation method and system and business test method, device and system
CN107797806A (en) * 2016-08-29 2018-03-13 北京雪球信息科技有限公司 A kind of dispositions method of program
CN107797914A (en) * 2016-09-07 2018-03-13 阿里巴巴集团控股有限公司 Code process method, apparatus and code delivery system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103167041A (en) * 2013-03-28 2013-06-19 广州中国科学院软件应用技术研究所 System and method for supporting cloud environment application cluster automation deployment
US20160371097A1 (en) * 2015-06-20 2016-12-22 Joshua Clay Magee Air Gapping / Offboarding of Software
CN107797806A (en) * 2016-08-29 2018-03-13 北京雪球信息科技有限公司 A kind of dispositions method of program
CN107797914A (en) * 2016-09-07 2018-03-13 阿里巴巴集团控股有限公司 Code process method, apparatus and code delivery system
CN106656650A (en) * 2016-10-08 2017-05-10 腾讯科技(深圳)有限公司 Business test environment generation method and system and business test method, device and system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109542791A (en) * 2018-11-27 2019-03-29 长沙智擎信息技术有限公司 A kind of program large-scale concurrent evaluating method based on container technique
CN109542791B (en) * 2018-11-27 2019-11-29 湖南智擎科技有限公司 A kind of program large-scale concurrent evaluating method based on container technique
CN110266762A (en) * 2019-05-20 2019-09-20 广州视琨电子科技有限公司 A kind of data uploading method, system, device and storage medium
CN110266762B (en) * 2019-05-20 2022-03-08 广州视琨电子科技有限公司 Data uploading method, system, device and storage medium
CN112650662A (en) * 2019-10-10 2021-04-13 上海哔哩哔哩科技有限公司 Test environment deployment method and device
CN111159046A (en) * 2019-12-31 2020-05-15 斑马网络技术有限公司 Test method, test device, electronic equipment, test system and storage medium
CN111159046B (en) * 2019-12-31 2024-04-09 斑马网络技术有限公司 Test method, test device, electronic equipment, test system and storage medium
CN112532473A (en) * 2020-11-12 2021-03-19 苏宁金融科技(南京)有限公司 DNS (Domain name System) -based multi-environment test access method and device
CN112532473B (en) * 2020-11-12 2023-09-01 苏宁金融科技(南京)有限公司 DNS-based multi-environment test access method and device

Also Published As

Publication number Publication date
CN108829588B (en) 2021-12-07

Similar Documents

Publication Publication Date Title
CN108829588A (en) A kind of processing method of test application program, deployment system and device
US10671368B2 (en) Automatic creation of delivery pipelines
CN106844137B (en) Server monitoring method and device
US10642725B2 (en) Automated test generation for multi-interface enterprise virtualization management environment
CN104765678B (en) The method and device tested the application on mobile terminal device
Bass et al. DevOps: A software architect's perspective
US11455184B2 (en) End-to-end validation of virtual machines
JP2021524090A (en) Selectively provide mutual transport layer security using alternate server names
US20190129773A1 (en) Web api recommendations based on usage in cloud-provided runtimes
CN110096424B (en) Test processing method and device, electronic equipment and storage medium
US11151025B1 (en) Generating software test plans based at least in part on monitored traffic of a production application
CN108733553A (en) Configuration method, the device and system of test device based on docker
CN106708715A (en) Automatic test method and device
US10572373B2 (en) Automated test generation for multi-interface and multi-platform enterprise virtualization management environment
WO2022028144A1 (en) Blockchain management of provisioning failures
US10740080B2 (en) Preview and publishing of mobile applications
US9513948B2 (en) Automated virtual machine provisioning based on defect state
CN106934272A (en) The method of calibration and device of a kind of application message
CN110187877A (en) Icon acquisition methods and device, system, electronic equipment, storage medium
CN111666079A (en) Method, device, system, equipment and computer readable medium for software upgrading
CN109450724A (en) A kind of test method and relevant apparatus of NFS internal memory optimization function
CN108304321A (en) A kind of method, system and device creating front and back end exploitation joint debugging environment
CN110083366A (en) The generation method of application runtime environment, calculates equipment and storage medium at device
US11663339B2 (en) Security testing based on user request
CN109408104A (en) A kind of method and device for obtaining game and integrating information

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
GR01 Patent grant
GR01 Patent grant