CN108829588B - Processing method, deployment system and device for testing application program - Google Patents

Processing method, deployment system and device for testing application program Download PDF

Info

Publication number
CN108829588B
CN108829588B CN201810538806.4A CN201810538806A CN108829588B CN 108829588 B CN108829588 B CN 108829588B CN 201810538806 A CN201810538806 A CN 201810538806A CN 108829588 B CN108829588 B CN 108829588B
Authority
CN
China
Prior art keywords
address
application program
type container
tested
version number
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810538806.4A
Other languages
Chinese (zh)
Other versions
CN108829588A (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

Images

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 invention provides a processing method, a deployment system and a device for testing an application program, wherein the method comprises the following steps: if the creation triggering action of the selected test environment mirror image is detected, determining a target slave server, and acquiring a first type container corresponding to the test environment from the target slave server; if an idle IP address is obtained, binding the IP address with the first type container; and if the deployment triggering action of the program image version number of the selected application program to be tested is detected, acquiring a second type container corresponding to the application program to be tested from the target slave server, and using the IP address as the IP address to be used by the second type container. The device performs the above method. The processing method, the deployment system and the device for the test application program provided by the embodiment of the invention can improve the processing efficiency of the test application program.

Description

Processing method, deployment system and device for testing application program
Technical Field
The embodiment of the invention relates to the technical field of application program testing, in particular to a processing method, a deployment system and a device for testing an application program.
Background
With the development of software intellectualization, the software needs more and more personalized configurations, including the deployment of environment, the change of software configuration, the starting of software and the like, and the testing difficulty of software testers is also increased.
In the existing software testing work, software testers mostly manually build a testing environment in a server, and the testing environment generally comprises a Mysql database, a Redis database, an application program, a Nginx server and the like, so that the method is not fast and efficient enough. On the other hand, because the test building work relates to the deployment of a plurality of application programs, the codes of the tested application programs need to be acquired during the deployment, and the http request address modification, database address change, environment port modification and other works are carried out at the same time, the building efficiency is low, the error rate is high, and in the environment building process, IP conflicts and the like easily occur to the environments of a plurality of software testers, so that the test environments are mutually influenced.
Therefore, how to avoid the above-mentioned drawbacks and improve the processing efficiency of the test application is a problem to be solved.
Disclosure of Invention
Aiming at the problems in the prior art, the embodiment of the invention provides a processing method, a deployment system and a device for testing an application program.
In a first aspect, an embodiment of the present invention provides a processing method for testing an application program, where the method includes:
if the creation triggering action of the selected test environment mirror image is detected, determining a target slave server, and acquiring a first type container corresponding to the test environment from the target slave server;
if an idle IP address is obtained, binding the IP address with the first type container;
and if the deployment triggering action of the program image version number of the selected application program to be tested is detected, acquiring a second type container corresponding to the application program to be tested from the target slave server, and using the IP address as the IP address to be used by the second type container.
In a second aspect, an embodiment of the present invention provides a deployment system for testing an application, including a plurality of servers, where;
the server comprises an initialization module, wherein the initialization module is provided with an open-source application container engine docker, a main server is selected from the servers in a docker swap mode, and the rest servers are used as slave servers;
each slave server is provided with a plurality of virtual network cards, and each virtual network card corresponds to the first type container in each slave server one by one.
In a third aspect, an embodiment of the present invention provides a processing apparatus for testing an application, where the apparatus includes:
the determining unit is used for determining a target slave server if the creation triggering action of the selected test environment mirror image is detected, and acquiring a first type container corresponding to the test environment from the target slave server;
the binding unit is used for binding the IP address with the first type container if the idle IP address is obtained;
and the obtaining unit is used for obtaining a second type container corresponding to the application program to be tested from the target slave server and using the IP address as the IP address to be used by the second type container if the deployment triggering action of the program image version number of the selected application program to be tested is detected.
In a fourth aspect, an embodiment of the present invention provides an electronic device, including: a processor, a memory, and a bus, wherein,
the processor and the memory are communicated with each other through the bus;
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform a method comprising:
if the creation triggering action of the selected test environment mirror image is detected, determining a target slave server, and acquiring a first type container corresponding to the test environment from the target slave server;
if an idle IP address is obtained, binding the IP address with the first type container;
and if the deployment triggering action of the program image version number of the selected application program to be tested is detected, acquiring a second type container corresponding to the application program to be tested from the target slave server, and using the IP address as the IP address to be used by the second type container.
In a fifth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium, including:
the non-transitory computer readable storage medium stores computer instructions that cause the computer to perform a method comprising:
if the creation triggering action of the selected test environment mirror image is detected, determining a target slave server, and acquiring a first type container corresponding to the test environment from the target slave server;
if an idle IP address is obtained, binding the IP address with the first type container;
and if the deployment triggering action of the program image version number of the selected application program to be tested is detected, acquiring a second type container corresponding to the application program to be tested from the target slave server, and using the IP address as the IP address to be used by the second type container.
According to the processing method, the deployment system and the device for testing the application program, provided by the embodiment of the invention, the first type container corresponding to the testing environment and the second type container corresponding to the application program to be tested are obtained from the target slave server, the idle IP address is bound with the first type container and is used as the IP address to be used by the second type container, and the processing efficiency of the testing application program can be improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a flowchart illustrating a processing method for testing an application according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a deployment system of a test application according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a main server according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a slave server according to an embodiment of the present invention;
FIG. 5 is a block diagram of a processing device for testing an application according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flowchart of a processing method for testing an application according to an embodiment of the present invention, and as shown in fig. 1, the processing method for testing an application according to an embodiment of the present invention includes the following steps:
s101: and if the creation triggering action of the selected test environment mirror image is detected, determining a target slave server, and acquiring a first type container corresponding to the test environment from the target slave server.
Specifically, if the device detects a creation trigger action for the selected test environment image, the device determines a target slave server, and acquires a first type container corresponding to the test environment from the target slave server. The device can be a system comprising a plurality of servers, a login input box of the enterprise unified authentication platform uuap can be set, and if a login account input by a user (which can be a software tester) is detected and verified, a test environment mirror image can be displayed through a webpage for the user to select. The testing environment may be CentOS7 (where CentOS is short for Community Enterprise Operating System, and Chinese means Community Enterprise Operating System), and so on. Creation of the CentOS7 may be triggered by clicking on a touch screen, or the like. The device may call a docker swap, dynamically select a server with more idle resources (which may be a low CPU utilization rate and a low memory utilization rate) as a target slave server, select a server as a master server, and obtain a first type container corresponding to the CentOS7 from the target slave server, where the first type container may be understood as a container related to creating a test environment.
It should be noted that: if all the servers have no free resources, the target slave server cannot be determined, a prompt message of task failure, a failure reason that the servers have no free resources and the like can be displayed on the webpage, and the subsequent steps are terminated.
S102: and if the idle IP address is obtained, binding the IP address with the first type container.
Specifically, if the device acquires an idle IP address, the device binds the IP address with the first type container. A mapping relationship exists between the bound IP address and the first type container, and the mapping relationship may be stored in a database, and the first type container may use hash coding as an identifier. And displaying a notification message of the result of acquiring the first type container on the webpage, so that the user can know the acquisition condition (which may include acquisition success or acquisition failure) of the first type container according to the notification message. The user operation can also be recorded in a log recording mode.
It should be noted that: if the idle IP address cannot be acquired, deleting the first type container, displaying a prompt message for deleting the idle IP address on the webpage, and terminating the subsequent steps.
S103: and if the deployment triggering action of the program image version number of the selected application program to be tested is detected, acquiring a second type container corresponding to the application program to be tested from the target slave server, and using the IP address as the IP address to be used by the second type container.
Specifically, if the device detects a deployment triggering action for the program image version number of the selected application program to be tested, the device acquires a second type container corresponding to the application program to be tested from the target slave server, and uses the IP address as the IP address to be used by the second type container. The program image of the application program to be tested can be established in advance, the program image identifies the version number of the program image, and the version number is uploaded to a network for selection by a user. The docker swap may be called to obtain a second type container corresponding to the application to be tested, that is, the second type container may be understood as a container related to the application to be tested. And modifying the basic configuration in the second type container, including modifying the IP address used by the second type container into the IP address bound with the first type container, changing the database address, modifying the environment port and the like. Referring to the description of the above embodiment, a notification message for obtaining the result of the second-type container may also be displayed on the web page, so that the user can know the obtaining condition of the second-type container according to the notification message. The user operation can also be recorded in a log recording mode.
It should be noted that: the program image version number and the current version number of the application program to be tested have a corresponding relationship, for example: the current version number is V2.01, and the corresponding program image version number is V1.01.
According to the processing method for testing the application program, provided by the embodiment of the invention, the first type container corresponding to the testing environment and the second type container corresponding to the application program to be tested are obtained from the target slave server, the idle IP address is bound with the first type container and is used as the IP address to be used by the second type container, and the processing efficiency of the testing application program can be improved.
On the basis of the above embodiment, the method further includes:
and acquiring the latest version number of the application program to be tested.
Specifically, the device obtains the latest version number of the application program to be tested. Examples are as follows: suppose the latest version number of the application to be tested is V2.02. Reference may be made to the above embodiments, which are not described in detail.
And if the current version number of the application program to be tested is lower than the latest version number, downloading the updated application program to be tested corresponding to the latest version number, and updating the program image version number.
Specifically, if the device judges that the current version number of the application program to be tested is lower than the latest version number, the device downloads the updated application program to be tested corresponding to the latest version number and updates the program image version number. Referring to the above example, if the current version number of the application program to be tested is V2.01 and V2.01 is lower than V2.02, the updated application program to be tested V2.02 is downloaded, and referring to the above example, the program image version number V1.01 is updated to V1.02.
And if the deployment triggering action of the selected update program image version number is detected, acquiring a second type container corresponding to the application program to be tested from the target slave server, and using the IP address as the IP address to be used by the second type container.
Specifically, if the device detects a deployment triggering action on the selected image version number of the update program, the device acquires a second type container corresponding to the application program to be tested from the target slave server, and uses the IP address as the IP address to be used by the second type container. It can be understood that: even if the application to be tested is updated, the corresponding second-type container is the original second-type container.
According to the processing method for testing the application program, provided by the embodiment of the invention, the second type container is also adopted for the updated application program to be tested, so that equipment resources can be effectively utilized, and the consistency of the testing environment and the online deployment environment is also ensured.
On the basis of the above embodiment, the method further includes:
acquiring a third party payment application program related to the application program to be tested; correspondingly, the IP address to be used by the second type container also comprises the IP address of the payment environment for testing third party payment.
Specifically, the device acquires a third party payment application program related to the application program to be tested; correspondingly, the IP address to be used by the second type container also comprises the IP address of the payment environment for testing third party payment. Third party payment applications may include WeChat payments, Payment treasures, and the like.
According to the processing method for testing the application program, provided by the embodiment of the invention, the idle IP address is used as the IP address of the payment environment for the third party payment, so that the third party payment application program related to the application program can be comprehensively deployed.
Fig. 2 is a schematic structural diagram of a deployment system of a test application according to an embodiment of the present invention, and as shown in fig. 2, a deployment system of a test application according to an embodiment of the present invention includes a plurality of servers;
the server comprises an initialization module, wherein the initialization module is provided with an open-source application container engine docker, one main server 21 is selected from the servers in a docker swap mode, and the rest servers are used as slave servers 22; each slave server 22 is provided with a plurality of virtual network cards, and each virtual network card corresponds to the first type container in each slave server one by one.
The deployment system of the test application program provided by the embodiment of the invention ensures normal communication connection by reasonably selecting the master server and the slave servers and enabling each virtual network card in the slave servers to correspond to the first type container in each slave server one by one.
On the basis of the above embodiment, the main server 21 further includes an image management module 2101, a log management module 2102 and an account management module 2103, wherein:
fig. 3 is a schematic structural diagram of a main server according to an embodiment of the present invention, and as shown in fig. 3, the image management module 2101 is configured to provide a program image version number of a test environment image to be selected and an application program image to be tested, and manage the program image version number, including updating the program image version number, deleting an original program image version number, and the like. The log management module 2102 is used for recording user login and operation logs; may be the uuap that the user logs in, and the oplog may include configuration modifications, deployments, etc. that the user manually made. The account management module 2103 is used for logging in and logging out of the enterprise unified authentication platform. The initialization module 2104 in the master server is further configured to detect an idle IP address, assign the detected IP address to a target slave server, and record a binding relationship between the first type container and the IP address issued by the target slave server. And the user can also provide a database, a basic account and the like which are needed to be used by the testing environments such as Mysql, Redis and the like.
The deployment system of the test application program provided by the embodiment of the invention further improves the functions of the main server by arranging the mirror image management module, the log management module, the account management module and the initialization module in the main server.
On the basis of the above embodiment, the slave server 22 further includes a container management module 2201 and a deployment management module 2202, wherein:
FIG. 4 is a schematic structural diagram of a slave server according to an embodiment of the present invention, and as shown in FIG. 4, the container management module 2201 is configured to communicate with the mirror management module 2101 in the master server 21 to create, delete, and view a container; the containers comprise a first type of container and a second type of container; the deployment management module 2202 is used for deploying the application program to be tested and localizing the test configuration; and the user can also view, add, delete and the like the deployment task. The initialization module 2203 in the slave server is further configured to bind the IP address with the first type container and issue a binding relationship between the first type container and the IP address.
The deployment system of the test application program provided by the embodiment of the invention further improves the functions of the slave server by arranging the container management module, the deployment management module and the initialization module in the slave server,
on the basis of the above embodiment, the localized test configuration includes:
and modifying the IP address, the network access port and the database configuration of the application program to be tested into the configuration related to the second type container. The specific contents of the localized test configuration are not particularly limited.
The deployment system of the test application program provided by the embodiment of the invention further optimizes the functions of the slave server through specific localized test configuration.
The following examples illustrate the functional modules as follows:
currently, a logistics system needs to deploy a settlement program for function test, wherein the settlement program relates to third-party services such as WeChat, Paibao, insurance company and the like. The one-time complete deployment process of the system is as follows:
the settlement program is written by php, the mirror image management module acquires basic environment configuration information such as the settlement program and the like, creates a php basic mirror image, acquires a basic version V2.01 of the settlement program, and packages the basic version V1.01 into a settlement basic package.
The mirror image management module periodically detects the settlement program, downloads the latest code and configuration change when the version is found to be higher than V2.01, updates the settlement program, and modifies the environment configuration, such as modifying third-party services of WeChat, Payment treasures, insurance companies and the like into corresponding test environments or mock system services. After the update, the mirror management module repacks the settlement program into the test version V1.02 and releases the version.
The user selects the desired test environment to be the CentOS7 version in the web page and chooses to create the test environment. The system target acquires a CentOS7 version base image from a server, creates a CentOS7 container, calls an IP binding service to acquire an idle IP address, and issues the newly created CentOS7 container to a test network through shell script binding.
Selecting a settlement test version to be deployed in a web page by a user, acquiring a basic mirror image of the settlement test version and creating a container from a target server, and modifying services such as mysql, redis and the like to be IP addresses in a CentOS7 container created by the user; the web service address (address of network to be accessed) provided by the settlement test container can be modified to be the IP address of the CentOS7 container, and the settlement program port can be modified to be 8000 port.
By the technical scheme, the purposes of rapid deployment and testing of the application program are achieved.
Fig. 5 is a schematic structural diagram of a processing apparatus for testing an application according to an embodiment of the present invention, and as shown in fig. 5, the processing apparatus for testing an application according to an embodiment of the present invention includes a determining unit 501, a binding unit 502, and an obtaining unit 503, where:
the determining unit 501 is configured to determine a target slave server if a creation trigger action for a selected test environment image is detected, and acquire a first type container corresponding to the test environment in the target slave server; the binding unit 502 is configured to bind the IP address with the first type container if an idle IP address is obtained; the obtaining unit 503 is configured to, if a deployment triggering action for the program image version number of the selected application program to be tested is detected, obtain, in the target slave server, a second type container corresponding to the application program to be tested, and use the IP address as an IP address to be used by the second type container.
Specifically, the determining unit 501 is configured to determine a target slave server if a creation triggering action of the selected test environment image is detected, and acquire a first type container corresponding to the test environment from the target slave server; the binding unit 502 is configured to bind the IP address with the first type container if an idle IP address is obtained; the obtaining unit 503 is configured to, if a deployment triggering action for the program image version number of the selected application program to be tested is detected, obtain, in the target slave server, a second type container corresponding to the application program to be tested, and use the IP address as an IP address to be used by the second type container.
The processing device for testing the application program, provided by the embodiment of the invention, acquires the first type container corresponding to the testing environment and the second type container corresponding to the application program to be tested from the target slave server, binds the idle IP address with the first type container, and uses the idle IP address as the IP address to be used by the second type container, so that the processing efficiency of the testing application program can be improved.
The processing apparatus for testing an application according to the embodiments of the present invention may be specifically configured to execute the processing flows of the above method embodiments, and its functions are not described herein again, and refer to the detailed description of the above method embodiments.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 6, the electronic device includes: a processor (processor)601, a memory (memory)602, and a bus 603;
the processor 601 and the memory 602 complete mutual communication through a bus 603;
the processor 601 is configured to call program instructions in the memory 602 to perform the methods provided by the above-mentioned method embodiments, for example, including: if the creation triggering action of the selected test environment mirror image is detected, determining a target slave server, and acquiring a first type container corresponding to the test environment from the target slave server; if an idle IP address is obtained, binding the IP address with the first type container; and if the deployment triggering action of the program image version number of the selected application program to be tested is detected, acquiring a second type container corresponding to the application program to be tested from the target slave server, and using the IP address as the IP address to be used by the second type container.
The present embodiment discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the method provided by the above-mentioned method embodiments, for example, comprising: if the creation triggering action of the selected test environment mirror image is detected, determining a target slave server, and acquiring a first type container corresponding to the test environment from the target slave server; if an idle IP address is obtained, binding the IP address with the first type container; and if the deployment triggering action of the program image version number of the selected application program to be tested is detected, acquiring a second type container corresponding to the application program to be tested from the target slave server, and using the IP address as the IP address to be used by the second type container.
The present embodiments provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the methods provided by the above method embodiments, for example, including: if the creation triggering action of the selected test environment mirror image is detected, determining a target slave server, and acquiring a first type container corresponding to the test environment from the target slave server; if an idle IP address is obtained, binding the IP address with the first type container; and if the deployment triggering action of the program image version number of the selected application program to be tested is detected, acquiring a second type container corresponding to the application program to be tested from the target slave server, and using the IP address as the IP address to be used by the second type container.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The above-described embodiments of the electronic device and the like are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may also be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the embodiments of the present invention, and are not limited thereto; although embodiments of the present invention have been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (5)

1. A processing method for testing an application program, comprising:
if the creation triggering action of the selected test environment mirror image is detected, determining a target slave server, and acquiring a first type container corresponding to the test environment from the target slave server;
if an idle IP address is obtained, binding the IP address with the first type container;
if the deployment triggering action of the program image version number of the selected application program to be tested is detected, acquiring a second type container corresponding to the application program to be tested from the target slave server, and taking the IP address as the IP address to be used by the second type container;
the method further comprises the following steps:
acquiring the latest version 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 version number, downloading the updated application program to be tested corresponding to the latest version number, and updating the program image version number;
and if the deployment triggering action of the selected update program image version number is detected, acquiring a second type container corresponding to the application program to be tested from the target slave server, and using the IP address as the IP address to be used by the second type container.
2. The method of claim 1, further comprising:
acquiring a third party payment application program related to the application program to be tested; correspondingly, the IP address to be used by the second type container also comprises the IP address of the payment environment for testing third party payment.
3. A processing apparatus for testing an application, comprising:
the determining unit is used for determining a target slave server if the creation triggering action of the selected test environment mirror image is detected, and acquiring a first type container corresponding to the test environment from the target slave server;
the binding unit is used for binding the IP address with the first type container if the idle IP address is obtained;
the first obtaining unit is used for obtaining a second type container corresponding to the application program to be tested from the target slave server and using the IP address as an IP address to be used by the second type container if the deployment triggering action of the program image version number of the selected application program to be tested is detected;
the device further comprises:
the second obtaining unit is used for obtaining the latest version number of the application program to be tested;
the updating unit is used for downloading the updated application program to be tested corresponding to the latest version number and updating the program mirror version number if the current version number of the application program to be tested is lower than the latest version number;
and the third obtaining unit is used for obtaining a second type container corresponding to the application program to be tested from the target slave server if the deployment triggering action of the selected update program image version number is detected, and using the IP address as the IP address to be used by the second type container.
4. An electronic device, comprising: a processor, a memory, and a bus, wherein,
the processor and the memory are communicated with each other through the bus;
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1 to 2.
5. A non-transitory computer-readable storage medium storing computer instructions that cause a computer to perform the method of any one of claims 1-2.
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 CN108829588A (en) 2018-11-16
CN108829588B true 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)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109542791B (en) * 2018-11-27 2019-11-29 湖南智擎科技有限公司 A kind of program large-scale concurrent evaluating method based on container technique
CN111966442A (en) * 2019-05-20 2020-11-20 北京白山耘科技有限公司 Method, apparatus, medium, and device for container port management
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
CN111159046B (en) * 2019-12-31 2024-04-09 斑马网络技术有限公司 Test method, test device, electronic equipment, test system and storage medium
CN112532473B (en) * 2020-11-12 2023-09-01 苏宁金融科技(南京)有限公司 DNS-based multi-environment test access method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103167041B (en) * 2013-03-28 2016-04-20 广州中国科学院软件应用技术研究所 A kind ofly support the system and method that the automation of cloud environment application cluster is disposed
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
CN107797914B (en) * 2016-09-07 2021-04-09 阿里巴巴集团控股有限公司 Code processing method and device and code release system
CN106656650B (en) * 2016-10-08 2020-01-14 腾讯科技(深圳)有限公司 Method and system for generating service test environment, and method, device and system for service test

Also Published As

Publication number Publication date
CN108829588A (en) 2018-11-16

Similar Documents

Publication Publication Date Title
CN108829588B (en) Processing method, deployment system and device for testing application program
US11048620B2 (en) Distributed system test device
US10642725B2 (en) Automated test generation for multi-interface enterprise virtualization management environment
US10601680B2 (en) Application resiliency using APIs
CN107896244B (en) Version file distribution method, client and server
US11188515B2 (en) Preview processing and automatic correction of bulk data for software as a service applications
US10552306B2 (en) Automated test generation for multi-interface and multi-platform enterprise virtualization management environment
US10382313B2 (en) Test building for testing server operation
US20160380920A1 (en) Dynamically generating solution stacks
CN111897623B (en) Cluster management method, device, equipment and storage medium
CN109104368B (en) Connection request method, device, server and computer readable storage medium
CN111666079B (en) Method, apparatus, system, device and computer readable medium for software upgrade
CN113077260A (en) Data access method and device based on block chain and electronic equipment
US10997004B2 (en) Detecting co-resident services in a container cloud
CN112650689A (en) Test method, test device, electronic equipment and storage medium
CN116303309A (en) File mounting method and device and electronic equipment
US11567753B1 (en) Automated software patch mapping and recommendation
CN105577707A (en) Remote call method and remote call device
CN115080109A (en) Multi-cloud-end environment joint debugging method, device, system and equipment based on hybrid development
US20180246861A1 (en) Dynamic cognitive optimization of web applications
US10796264B2 (en) Risk assessment in online collaborative environments
CN114500268A (en) Deployment method, device, server and storage medium of chart resource
CN110806935B (en) Application program construction method, device and system
US20230409628A1 (en) Static and dynamic nbmp function image retrieval and scale ranking
US20240211221A1 (en) Automatic precision dependencies 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
GR01 Patent grant
GR01 Patent grant