CN111930626A - Automatic testing method and device based on PaaS cloud service - Google Patents

Automatic testing method and device based on PaaS cloud service Download PDF

Info

Publication number
CN111930626A
CN111930626A CN202010806107.0A CN202010806107A CN111930626A CN 111930626 A CN111930626 A CN 111930626A CN 202010806107 A CN202010806107 A CN 202010806107A CN 111930626 A CN111930626 A CN 111930626A
Authority
CN
China
Prior art keywords
service
information
service provider
paas
target
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
CN202010806107.0A
Other languages
Chinese (zh)
Other versions
CN111930626B (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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202010806107.0A priority Critical patent/CN111930626B/en
Publication of CN111930626A publication Critical patent/CN111930626A/en
Application granted granted Critical
Publication of CN111930626B publication Critical patent/CN111930626B/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/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • 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

Abstract

The invention provides an automatic testing method and device based on a PaaS cloud service, which relate to the technical field of computer software application, in particular to the technical field of cloud computing, and the method comprises the following steps: determining container information of a current version function test environment according to parameters of a PaaS management platform configured by a user; determining service information based on parameters of a service management platform configured by a user; comparing the container information with the service information, and determining a target service provider in a plurality of service providers according to a comparison result; the target service provider is used for carrying out automatic test on the target service; setting other service providers than the target service provider to a disabled state. The invention can realize service forbidding, ensure the uniqueness of the service provider and effectively improve the accuracy and efficiency of the automatic test service.

Description

Automatic testing method and device based on PaaS cloud service
Technical Field
The invention relates to the technical field of computer software application, in particular to the technical field of cloud computing, and particularly relates to an automatic testing method and device based on PaaS cloud service.
Background
The PaaS cloud is suitable for high-concurrency applications with suddenly increased traffic, can realize quick online and abnormal backspacing, and realizes service provision with finer granularity. Because the service registration and the service discovery are realized by the PasS cloud based on zookeeper, the following problems are found in the process of developing the automatic test: a developer registers the service of local development self-test to a function test environment; services of a non-current version are registered to the functional test environment of the current version. This results in multiple service providers for the same service, and the automated test typically uses service routing to implement service invocation or zookeeper-based remote service invocation, and when multiple service providers are present, the automated test may be invalid or the automated script may have a low success rate. If the testers are familiar with the operation and maintenance of the containers on the PaaS management platform and the operation and maintenance of the service management platform, only one provider of the service can be reserved by a method of forbidding a single service, and the automatic script is ensured to call the unique service of the current version of the functional test environment.
However, because the corresponding IP port of the host is changed after the container is manually restarted or the installation version is automatically restarted, and the container and the service are maintained on different management platforms, the manual maintenance service cost is high, and the automated script generally schedules and runs a large amount of services, the manual intervention still causes low automation efficiency, and the problem of high automation failure rate cannot be effectively solved.
In summary, a method for fast and automatic PaaS service accurate automated testing is needed.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides an automatic testing method and device based on PaaS cloud service, which specifically comprises the following technical scheme:
in a first aspect, the present invention provides an automated testing method based on PaaS cloud service, including:
determining container information of a current version function test environment according to parameters of a PaaS management platform configured by a user;
determining service information based on parameters of a service management platform configured by a user;
comparing the container information with the service information, and determining a target service provider in a plurality of service providers according to a comparison result; the target service provider is used for carrying out automatic test on the target service;
setting other service providers than the target service provider to a disabled state.
After the setting of other service providers than the target service provider as disabled, further comprising:
and after the target service provider completes the automated test, setting the disabled service provider to be in an enabled state.
The parameters of the PaaS management platform comprise: platform address, platform application name, and platform node name.
The parameters of the service management platform comprise: management platform address, service name, and service version number.
The container information includes: and the PaaS manages the host machine IP port of the container of the platform.
The service information includes: and the service management platform is used for registering IP ports of the host machines.
The comparing the container information with the service information and determining a target service provider of the plurality of service providers according to a result of the comparing, includes:
comparing the IP port of the host machine of the container in the container information with the IP port of the host machine registered by the service in the service information;
and if the IP port of the host machine registered by the service exists in the IP port list of the host machine of the container, determining that the service provider corresponding to the IP port of the host machine registered by the service is a target service provider.
In a second aspect, the present invention provides an automated testing apparatus based on PaaS cloud service, including:
the first acquisition unit is used for determining the container information of the current version function test environment according to the parameters of the PaaS management platform configured by the user;
the second acquisition unit is used for determining service information based on the parameters of the service management platform configured by the user;
the comparison unit is used for comparing the container information with the service information and determining a target service provider in a plurality of service providers according to the result of comparison processing; the target service provider is used for carrying out automatic test on the target service;
and the disabling unit is used for setting other service providers except the target service provider into a disabled state.
Further comprising:
and the enabling unit is used for setting the disabled service provider into an enabling state after the target service provider completes the automatic test.
The comparison unit includes:
a comparison subunit, configured to compare the IP port of the host in the container information with the IP port of the host registered for service in the service information;
and the target subunit is used for determining that the service provider corresponding to the service registered host machine IP port is the target service provider if the service registered host machine IP port exists in the host machine IP port list of the container.
In a third aspect, the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the automation testing method based on PaaS cloud service when executing the program.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the PaaS cloud service-based automated testing method.
According to the technical scheme, the automatic testing method and device based on the PaaS cloud service are provided, and the container information of the current version function testing environment is determined according to the parameters of the PaaS management platform configured by a user; determining service information based on parameters of a service management platform configured by a user; comparing the container information with the service information, and determining a target service provider in a plurality of service providers according to a comparison result; the target service provider is used for carrying out automatic test on the target service; and setting other service providers except the target service provider into a forbidden state, realizing service forbidding, ensuring the uniqueness of the service provider, solving the complexity of manual intervention of a tester in the operation and maintenance container and service, and realizing the accuracy and efficiency of automatic test service.
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 introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a first flowchart of an automated testing method based on PaaS cloud services in an embodiment of the present invention.
Fig. 2 is a second flow diagram of an automated testing method based on PaaS cloud services in the embodiment of the present invention.
Fig. 3 is a schematic view of a full flow of an automated testing method based on PaaS cloud service in the embodiment of the present invention.
Fig. 4 is a first structural schematic diagram of an automation testing apparatus based on PaaS cloud service in the embodiment of the present invention.
Fig. 5 is a second schematic structural diagram of an automation testing apparatus based on PaaS cloud service in the embodiment of the present invention.
Fig. 6 is a schematic structural diagram of an electronic device in 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.
The embodiment of the invention provides an automatic testing method and device based on a PaaS cloud service, and relates to the technical field of computer software application, in particular to the technical field of cloud computing. The embodiment of the invention provides an automatic testing method and device based on a PaaS cloud service, which realize service forbidding by inquiring the information of a current version function testing environment container and service information, ensure the uniqueness of a service provider, solve the complexity of manual intervention of a tester in operation and maintenance of the container and the service and realize the accuracy of the automatic testing service.
The invention provides an embodiment of an automatic testing method based on a PaaS cloud service, which specifically comprises the following contents in reference to FIG. 1:
s11: determining container information of a current version function test environment according to parameters of a PaaS management platform configured by a user;
in the step, container information of the current version function test environment is inquired according to a PaaS management platform address, a platform application name and a platform node name configured by a user;
specifically, according to a PaaS management platform address, a platform application name and a platform node name configured by a user, returning information of the PaaS management platform is inquired, wherein the returning information comprises a container host machine IP port, a container name, mirror image information, a container ID and the like. Wherein, the return information in this step is container information. In this embodiment, the container information is the host IP port of the container, and other information is recorded as auxiliary information.
It will be appreciated that the container's host IP port is used to determine whether it is a service of the current version of the functional test environment, and the service ID, registry partition, service status are used to maintain service disablement or enablement.
S12: determining service information based on parameters of a service management platform configured by a user;
in the step, service information is inquired according to the service management platform address, the service name and the service version number configured by the user;
specifically, basic information of the service is inquired according to the address of a service management platform, the name of the service and the version number of the service configured by a user, and the basic information comprises a host machine IP port, zookeeper environment information, a registration partition, a service ID, service description and a service state which are registered by the service. Wherein, the returned information in this step is the service information. It should be noted that, in this embodiment, the service information is a host IP port registered by the service on the service management platform, and other information is recorded as auxiliary information.
S13: comparing the container information with the service information, and determining a target service provider in a plurality of service providers according to a comparison result; the target service provider is used for carrying out automatic test on the target service;
in this step, comparing the IP port of the host machine of the container in the container information with the IP port of the host machine registered for service in the service information;
and if the IP port of the host machine registered by the service exists in the IP port list of the host machine of the container, determining that the service provider corresponding to the IP port of the host machine registered by the service is a target service provider, and the rest are other providers.
It should be noted that, before the automated framework is started, the registration problem of the service is effectively discovered, that is, when some service information is not inquired, it is indicated that the service registration fails in the current version function test environment, and an error log is recorded to notify a tester.
S14: setting other service providers than the target service provider to a disabled state.
In this step, service disabling is performed by the other provider determined in step S13, and the service whose service status is enabled is set to disabled using the service ID and the service partition as the primary key.
As can be seen from the above description, in the automatic testing method based on PaaS cloud service provided in the embodiment of the present invention, container information of a current version of a functional testing environment is determined according to parameters of a PaaS management platform configured by a user; determining service information based on parameters of a service management platform configured by a user; comparing the container information with the service information, and determining a target service provider in a plurality of service providers according to a comparison result; the target service provider is used for carrying out automatic test on the target service; and setting other service providers except the target service provider into a forbidden state, realizing service forbidding, ensuring the uniqueness of the service provider, solving the complexity of manual intervention of a tester in the operation and maintenance container and service, and realizing the accuracy and efficiency of automatic test service.
In an embodiment of the present invention, referring to fig. 2, the step S14 of the automation testing method based on PaaS cloud service further includes a step S15, which specifically includes the following contents:
s15: and after the target service provider completes the automated test, setting the disabled service provider to be in an enabled state.
In this step, after the execution of the automation script is completed, the disabled service is restored to the enabled state so as not to affect the testing of other people.
To further illustrate the present solution, the present invention provides a full-flow embodiment of an automated testing method based on PaaS cloud service, and referring to fig. 3, the automated testing method based on PaaS cloud service specifically includes the following contents:
step S101: the application starts to boot.
Step S102: the system begins to launch the automation framework.
Step S103: and the container inquiry device acquires the container information of the current version function test environment according to the environment information configured by the user.
Step S104: and the service inquiry device acquires the service information of the current version function test environment according to the user configuration environment information, the service name and the version number which are sent by the automatic test system. If the service inquiry is not found, namely the service registration fails, recording an error log.
Step S105: and (4) service forbidding, namely forbidding other providers of the service according to logic judgment, and ensuring that the automatic script tests the service in the current version function test environment. If the service is found to be other providers, the container provider of the current version function test environment does not exist, namely, the problem registration fails, and the error log is recorded.
Step S106: the automated framework started successfully.
Step S107: and after the automation script is completed, other service providers are recovered to be started. And the test of other people is not influenced.
Step S108: other processes of the system are applied.
From the above description, by querying the container information and the service information of the current version function test environment, service disabling is realized, the uniqueness of a service provider is ensured, the complexity of manual intervention of a tester in operation and maintenance containers and services is solved, the accuracy of automatic test service is realized, and the following beneficial effects are also achieved:
(1) according to the environmental information configured by the user, service forbidding is automatically realized, the uniqueness of a service provider is ensured, and the problems of invalid automatic test and low automatic power in the case of multiple providers are solved.
(2) The problems of service registration failure and other procedures can be effectively found before the automatic test framework script runs, and the workload of reanalysis after the script fails is reduced.
(3) After the operation of the automatic frame script is finished, the service can be timely recovered to be in the starting state, and the interference to other test work is avoided.
An embodiment of the present invention provides a specific implementation manner of an automatic test apparatus based on PaaS cloud service, which can implement all contents in the automatic test method based on PaaS cloud service, and referring to fig. 4, the automatic test apparatus based on PaaS cloud service specifically includes the following contents:
the first acquisition unit 10 is configured to determine container information of a current version function test environment according to parameters of a PaaS management platform configured by a user;
the second acquisition unit 20 is used for determining service information based on parameters of a service management platform configured by a user;
a comparing unit 30, configured to compare the container information with the service information, and determine a target service provider of the multiple service providers according to a result of the comparison; the target service provider is used for carrying out automatic test on the target service;
a disabling unit 40, configured to set other service providers than the target service provider to a disabled state.
Wherein the comparing unit 30 comprises:
a comparison subunit, configured to compare the IP port of the host in the container information with the IP port of the host registered for service in the service information;
and the target subunit is used for determining that the service provider corresponding to the service registered host machine IP port is the target service provider if the service registered host machine IP port exists in the host machine IP port list of the container.
Further, parameters of the PaaS management platform include: platform address, platform application name, and platform node name. The parameters of the service management platform comprise: management platform address, service name, and service version number. The container information includes: and the PaaS manages the host machine IP port of the container of the platform. The service information includes: and the service management platform is used for registering IP ports of the host machines.
Based on the foregoing embodiment, an embodiment of the present invention provides a specific implementation manner of an automation test apparatus based on PaaS cloud service, and with reference to fig. 5, the specific implementation manner further includes:
an enabling unit 50, configured to set the disabled service provider to an enabled state after the target service provider completes the automated test.
The embodiment of the automation testing apparatus based on PaaS cloud service provided by the present invention may be specifically used for executing the processing flow of the embodiment of the automation testing method based on PaaS cloud service in the above embodiment, and the functions of the processing flow are not described herein again, and reference may be made to the detailed description of the embodiment of the method.
As can be seen from the above description, in the automation test apparatus based on PaaS cloud service provided in the embodiment of the present invention, container information of a current version of a functional test environment is determined according to parameters of a PaaS management platform configured by a user; determining service information based on parameters of a service management platform configured by a user; comparing the container information with the service information, and determining a target service provider in a plurality of service providers according to a comparison result; the target service provider is used for carrying out automatic test on the target service; and setting other service providers except the target service provider into a forbidden state, realizing service forbidding, ensuring the uniqueness of the service provider, solving the complexity of manual intervention of a tester in the operation and maintenance container and service, and realizing the accuracy and efficiency of automatic test service.
The application provides an embodiment of an electronic device for implementing all or part of contents in the automation test method based on the PaaS cloud service, where the electronic device specifically includes the following contents:
a processor (processor), a memory (memory), a communication Interface (Communications Interface), and a bus; the processor, the memory and the communication interface complete mutual communication through the bus; the communication interface is used for realizing information transmission between related devices; the electronic device may be a desktop computer, a tablet computer, a mobile terminal, and the like, but the embodiment is not limited thereto. In this embodiment, the electronic device may be implemented with reference to the embodiment for implementing the PaaS cloud service-based automatic testing method and the embodiment for implementing the PaaS cloud service-based automatic testing apparatus in the embodiment, and the contents of the electronic device are incorporated herein, and repeated details are not repeated here.
Fig. 6 is a schematic block diagram of a system configuration of an electronic device 9600 according to an embodiment of the present application. As shown in fig. 6, the electronic device 9600 can include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. Notably, this FIG. 6 is exemplary; other types of structures may also be used in addition to or in place of the structure to implement telecommunications or other functions.
In an embodiment, the automation test function based on the PaaS cloud service may be integrated into the central processor 9100. The central processor 9100 may be configured to control as follows:
determining container information of a current version function test environment according to parameters of a PaaS management platform configured by a user; determining service information based on parameters of a service management platform configured by a user; comparing the container information with the service information, and determining a target service provider in a plurality of service providers according to a comparison result; the target service provider is used for carrying out automatic test on the target service; setting other service providers than the target service provider to a disabled state.
As can be seen from the above description, in the electronic device provided in the embodiment of the present application, container information of a current version of a functional test environment is determined according to parameters of a PaaS management platform configured by a user; determining service information based on parameters of a service management platform configured by a user; comparing the container information with the service information, and determining a target service provider in a plurality of service providers according to a comparison result; the target service provider is used for carrying out automatic test on the target service; and setting other service providers except the target service provider into a forbidden state, realizing service forbidding, ensuring the uniqueness of the service provider, solving the complexity of manual intervention of a tester in the operation and maintenance container and service, and realizing the accuracy and efficiency of automatic test service.
In another embodiment, the PaaS cloud service-based automated testing apparatus may be configured separately from the central processor 9100, for example, the PaaS cloud service-based automated testing apparatus may be configured as a chip connected to the central processor 9100, and the automated testing function based on the PaaS cloud service may be implemented by the control of the central processor.
As shown in fig. 6, the electronic device 9600 may further include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is noted that the electronic device 9600 also does not necessarily include all of the components shown in fig. 6; further, the electronic device 9600 may further include components not shown in fig. 6, which may be referred to in the art.
As shown in fig. 6, a central processor 9100, sometimes referred to as a controller or operational control, can include a microprocessor or other processor device and/or logic device, which central processor 9100 receives input and controls the operation of the various components of the electronic device 9600.
The memory 9140 can be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. The information relating to the failure may be stored, and a program for executing the information may be stored. And the central processing unit 9100 can execute the program stored in the memory 9140 to realize information storage or processing, or the like.
The input unit 9120 provides input to the central processor 9100. The input unit 9120 is, for example, a key or a touch input device. Power supply 9170 is used to provide power to electronic device 9600. The display 9160 is used for displaying display objects such as images and characters. The display may be, for example, an LCD display, but is not limited thereto.
The memory 9140 can be a solid state memory, e.g., Read Only Memory (ROM), Random Access Memory (RAM), a SIM card, or the like. There may also be a memory that holds information even when power is off, can be selectively erased, and is provided with more data, an example of which is sometimes called an EPROM or the like. The memory 9140 could also be some other type of device. Memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application/function storage portion 9142, the application/function storage portion 9142 being used for storing application programs and function programs or for executing a flow of operations of the electronic device 9600 by the central processor 9100.
The memory 9140 can also include a data store 9143, the data store 9143 being used to store data, such as contacts, digital data, pictures, sounds, and/or any other data used by an electronic device. The driver storage portion 9144 of the memory 9140 may include various drivers for the electronic device for communication functions and/or for performing other functions of the electronic device (e.g., messaging applications, contact book applications, etc.).
The communication module 9110 is a transmitter/receiver 9110 that transmits and receives signals via an antenna 9111. The communication module (transmitter/receiver) 9110 is coupled to the central processor 9100 to provide input signals and receive output signals, which may be the same as in the case of a conventional mobile communication terminal.
Based on different communication technologies, a plurality of communication modules 9110, such as a cellular network module, a bluetooth module, and/or a wireless local area network module, may be provided in the same electronic device. The communication module (transmitter/receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide audio output via the speaker 9131 and receive audio input from the microphone 9132, thereby implementing ordinary telecommunications functions. The audio processor 9130 may include any suitable buffers, decoders, amplifiers and so forth. In addition, the audio processor 9130 is also coupled to the central processor 9100, thereby enabling recording locally through the microphone 9132 and enabling locally stored sounds to be played through the speaker 9131.
An embodiment of the present invention further provides a computer-readable storage medium capable of implementing all steps in the PaaS cloud service-based automated testing method in the above embodiment, where the computer-readable storage medium stores a computer program, and the computer program implements all steps of the PaaS cloud service-based automated testing method in the above embodiment when executed by a processor, for example, the processor implements the following steps when executing the computer program:
determining container information of a current version function test environment according to parameters of a PaaS management platform configured by a user; determining service information based on parameters of a service management platform configured by a user; comparing the container information with the service information, and determining a target service provider in a plurality of service providers according to a comparison result; the target service provider is used for carrying out automatic test on the target service; setting other service providers than the target service provider to a disabled state.
As can be seen from the above description, in the computer-readable storage medium provided in the embodiment of the present invention, container information of a current version of a functional test environment is determined according to parameters of a PaaS management platform configured by a user; determining service information based on parameters of a service management platform configured by a user; comparing the container information with the service information, and determining a target service provider in a plurality of service providers according to a comparison result; the target service provider is used for carrying out automatic test on the target service; and setting other service providers except the target service provider into a forbidden state, realizing service forbidding, ensuring the uniqueness of the service provider, solving the complexity of manual intervention of a tester in the operation and maintenance container and service, and realizing the accuracy and efficiency of automatic test service.
Although the present invention provides method steps as described in the examples or flowcharts, more or fewer steps may be included based on routine or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. When an actual apparatus or client product executes, it may execute sequentially or in parallel (e.g., in the context of parallel processors or multi-threaded processing) according to the embodiments or methods shown in the figures.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, apparatus (system) or computer program product. Accordingly, embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment. In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations. It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict. The present invention is not limited to any single aspect, nor is it limited to any single embodiment, nor is it limited to any combination and/or permutation of these aspects and/or embodiments. Moreover, each aspect and/or embodiment of the present invention may be utilized alone or in combination with one or more other aspects and/or embodiments thereof.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art 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; such modifications and substitutions do not depart from the spirit and scope of the present invention, and they should be construed as being included in the following claims and description.

Claims (12)

1. An automatic testing method based on PaaS cloud service is characterized by comprising the following steps:
determining container information of a current version function test environment according to parameters of a PaaS management platform configured by a user;
determining service information based on parameters of a service management platform configured by a user;
comparing the container information with the service information, and determining a target service provider in a plurality of service providers according to a comparison result; the target service provider is used for carrying out automatic test on the target service;
setting other service providers than the target service provider to a disabled state.
2. The automation test method based on PaaS cloud service according to claim 1, after the setting other service providers than the target service provider as disabled, further comprising:
and after the target service provider completes the automated test, setting the disabled service provider to be in an enabled state.
3. The automation test method based on the PaaS cloud service of claim 1, wherein the parameters of the PaaS management platform include: platform address, platform application name, and platform node name.
4. The automation test method based on PaaS cloud service of claim 1, wherein the parameters of the service management platform include: management platform address, service name, and service version number.
5. The PaaS cloud service-based automated testing method of claim 1, wherein the container information comprises: and the PaaS manages the host machine IP port of the container of the platform.
6. The automation test method based on PaaS cloud service of claim 1, wherein the service information comprises: and the service management platform is used for registering IP ports of the host machines.
7. The automation test method for PaaS cloud services according to claim 1, wherein the comparing the container information with the service information and determining a target service provider of a plurality of service providers according to a result of the comparing comprises:
comparing the IP port of the host machine of the container in the container information with the IP port of the host machine registered by the service in the service information;
and if the IP port of the host machine registered by the service exists in the IP port list of the host machine of the container, determining that the service provider corresponding to the IP port of the host machine registered by the service is a target service provider.
8. An automatic testing device based on PaaS cloud service is characterized by comprising:
the first acquisition unit is used for determining the container information of the current version function test environment according to the parameters of the PaaS management platform configured by the user;
the second acquisition unit is used for determining service information based on the parameters of the service management platform configured by the user;
the comparison unit is used for comparing the container information with the service information and determining a target service provider in a plurality of service providers according to the result of comparison processing; the target service provider is used for carrying out automatic test on the target service;
and the disabling unit is used for setting other service providers except the target service provider into a disabled state.
9. The PaaS cloud service-based automated testing apparatus of claim 8, further comprising:
and the enabling unit is used for setting the disabled service provider into an enabling state after the target service provider completes the automatic test.
10. The PaaS cloud service-based automated testing apparatus of claim 8, the comparison unit comprising:
a comparison subunit, configured to compare the IP port of the host in the container information with the IP port of the host registered for service in the service information;
and the target subunit is used for determining that the service provider corresponding to the service registered host machine IP port is the target service provider if the service registered host machine IP port exists in the host machine IP port list of the container.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program implements the steps of the PaaS cloud service based automated testing method of any one of claims 1 to 7.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the PaaS cloud service-based automated testing method of any one of claims 1 to 7.
CN202010806107.0A 2020-08-12 2020-08-12 Automatic testing method and device based on PaaS cloud service Active CN111930626B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010806107.0A CN111930626B (en) 2020-08-12 2020-08-12 Automatic testing method and device based on PaaS cloud service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010806107.0A CN111930626B (en) 2020-08-12 2020-08-12 Automatic testing method and device based on PaaS cloud service

Publications (2)

Publication Number Publication Date
CN111930626A true CN111930626A (en) 2020-11-13
CN111930626B CN111930626B (en) 2024-04-05

Family

ID=73310679

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010806107.0A Active CN111930626B (en) 2020-08-12 2020-08-12 Automatic testing method and device based on PaaS cloud service

Country Status (1)

Country Link
CN (1) CN111930626B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113434281A (en) * 2021-07-19 2021-09-24 上海幻电信息科技有限公司 Equipment scheduling method and cloud platform

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043389A (en) * 2007-04-20 2007-09-26 北京航空航天大学 Control system of grid service container
CN101272264A (en) * 2008-05-09 2008-09-24 上海华平信息技术股份有限公司 Method for integrating instant communication, network conference and monitoring system
CN105979009A (en) * 2016-07-06 2016-09-28 乾云众创(北京)信息科技研究院有限公司 Method for automatically balancing increased load of cloud application container
CN108737584A (en) * 2017-04-19 2018-11-02 中国移动通信集团山西有限公司 The access method of container service, the analytic method of network address, device and system
CN110018962A (en) * 2019-04-11 2019-07-16 重庆猪八戒知识产权服务有限公司 Service adjustment method and system based on distributed service framework and registration center
CN110413207A (en) * 2018-04-28 2019-11-05 伊姆西Ip控股有限责任公司 Reduce method, equipment and the program product of the data recovery time of storage system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043389A (en) * 2007-04-20 2007-09-26 北京航空航天大学 Control system of grid service container
CN101272264A (en) * 2008-05-09 2008-09-24 上海华平信息技术股份有限公司 Method for integrating instant communication, network conference and monitoring system
CN105979009A (en) * 2016-07-06 2016-09-28 乾云众创(北京)信息科技研究院有限公司 Method for automatically balancing increased load of cloud application container
CN108737584A (en) * 2017-04-19 2018-11-02 中国移动通信集团山西有限公司 The access method of container service, the analytic method of network address, device and system
CN110413207A (en) * 2018-04-28 2019-11-05 伊姆西Ip控股有限责任公司 Reduce method, equipment and the program product of the data recovery time of storage system
CN110018962A (en) * 2019-04-11 2019-07-16 重庆猪八戒知识产权服务有限公司 Service adjustment method and system based on distributed service framework and registration center

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113434281A (en) * 2021-07-19 2021-09-24 上海幻电信息科技有限公司 Equipment scheduling method and cloud platform

Also Published As

Publication number Publication date
CN111930626B (en) 2024-04-05

Similar Documents

Publication Publication Date Title
CN111163130B (en) Network service system and data transmission method thereof
CN111796860B (en) Micro front end scheme implementation method and device
CN111813601B (en) Micro-service rollback method and device for stateful distributed cluster
CN111125604B (en) Page management method and device, terminal equipment and storage medium
CN110764881A (en) Distributed system background retry method and device
CN111858050A (en) Server cluster mixed deployment method, cluster management node and related system
CN110543428B (en) Application system testing method and device
CN112468574B (en) Processing method, device and system for application service publishing and subscribing mechanism
CN111930626B (en) Automatic testing method and device based on PaaS cloud service
CN111158987B (en) Health check method and device for micro-service architecture
CN112328413A (en) Application service calling method, device and system
CN111782260A (en) Gray scale distribution method and gray scale distribution device
US7962799B2 (en) System and method for synchronizing test runs on separate systems
CN112286622A (en) Virtual machine migration processing and strategy generating method, device, equipment and storage medium
CN109871226B (en) Configuration method, device and medium of downloader and electronic equipment
CN114726905A (en) Method, device, equipment and storage medium for accessing Tbox network to Android system
CN113157481A (en) Cluster-based server jump time fault processing method, device and system
CN113452776A (en) PaaS platform service scheduling method and device and PaaS platform
CN113377385A (en) Client automatic deployment method and device
CN110554906A (en) virtual machine configuration management method and device
CN113050985A (en) Front-end engineering dependence automatic registration method and device
CN108924270B (en) Method for updating terminal contact information, server and storage medium
CN112130900A (en) User information management method, system, equipment and medium for BMC
CN111930624A (en) Test link message data processing method and device
CN113050978A (en) Application gray release control method, device and equipment and computer storage medium

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