CN111930626B - 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
CN111930626B
CN111930626B CN202010806107.0A CN202010806107A CN111930626B CN 111930626 B CN111930626 B CN 111930626B CN 202010806107 A CN202010806107 A CN 202010806107A CN 111930626 B CN111930626 B CN 111930626B
Authority
CN
China
Prior art keywords
service
information
service provider
container
host
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
CN202010806107.0A
Other languages
Chinese (zh)
Other versions
CN111930626A (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

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 automated testing method and device based on 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 the container information of the current version function test environment according to the parameters of the PaaS management platform configured by the 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 the result of the comparison; the target service provider is used for automatically testing the target service; and setting other service providers except the target service provider to a disabled state. The invention can realize service disabling, ensure the uniqueness of service providers and effectively improve the accuracy and efficiency of 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 automated testing method and device based on PaaS cloud service.
Background
The PaaS cloud is suitable for the application of high concurrency and sudden increase of traffic in the line, and can realize quick online and abnormal rollback and realize service provision with finer granularity. Because the PasS cloud is based on zookeeper to realize service registration and service discovery, the following problems are found in the process of developing automation tests: the developer registers the locally developed self-tested service to the function test environment; services of non-current versions are registered with the current version of the functional test environment. This can result in multiple service providers for the same service, and automated testing typically uses service routing to implement service invocation or zookeeper-based remote service invocation, with the possibility of ineffective automated testing or low automated script success rates when multiple service providers are present. If the testers are familiar with the container operation and maintenance on the PaaS management platform and the service management platform operation and maintenance, only one provider of the service can be reserved by disabling a single service method, so that the automation script is ensured to call the unique service of the current version functional test environment.
However, because the IP ports of the host machine corresponding to the manually restarted containers or automatically restarted installed versions are changed, and the maintenance of the containers and services is performed on different management platforms, the cost of manual maintenance service is high, and the automation scripts usually schedule and run a large number 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 need exists for a rapid, automated method of accurate automated testing of PaaS services.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides an automated testing method and device based on PaaS cloud service, which concretely comprise the following technical scheme:
in a first aspect, the present invention provides an automated testing method based on PaaS cloud services, including:
determining the container information of the current version function test environment according to the parameters of the PaaS management platform configured by the 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 the result of the comparison; the target service provider is used for automatically testing the target service;
and setting other service providers except the target service provider to a disabled state.
After the setting of the other service provider than the target service provider to disable, further comprising:
after the target service provider completes the automated test, the disabled service provider is set to an enabled state.
The parameters of the PaaS management platform include: platform address, platform application name, and platform node name.
The parameters of the service management platform include: manage platform address, service name and service version number.
The container information includes: host IP port of container of PaaS management platform.
The service information includes: the service management platform is used for registering the host IP port of the service.
The comparing the container information with the service information, determining a target service provider from a plurality of service providers according to the result of the comparing, including:
comparing the host IP port of the container in the container information with the host IP port of the service registration in the service information;
if the host IP port of the service registration exists in the host IP port list of the container, determining the service provider corresponding to the host IP port of the service registration as a target service provider.
In a second aspect, the present invention provides an automated testing apparatus based on PaaS cloud services, comprising:
the first acquisition unit is used for determining the container information of the current version functional 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 parameters of a service management platform configured by a user;
a comparison unit for comparing the container information with the service information, and determining a target service provider from a plurality of service providers according to the result of the comparison; the target service provider is used for automatically testing the target service;
and the disabling unit is used for setting other service providers except the target service provider into a disabled state.
Further comprises:
and the enabling unit is used for setting the disabled service provider to be in an enabling state after the target service provider completes the automatic test.
The comparison unit includes:
a comparing subunit, configured to compare the host IP port of the container in the container information with the host IP port of the service registration in the service information;
and the target subunit is used for determining the service provider corresponding to the host IP port of the service registration as a target service provider if the host IP port of the service registration exists in the host IP port list of the container.
In a third aspect, the present invention provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of the PaaS cloud service-based automated testing method when the program is executed by the processor.
In a fourth aspect, the present invention provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the PaaS cloud service based automated testing method.
According to the technical scheme, the invention provides an automatic testing method and device based on PaaS cloud service, 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 the result of the comparison; the target service provider is used for automatically testing the target service; and setting other service providers except the target service provider to be in a forbidden state, realizing service forbidden, ensuring the uniqueness of the service provider, solving the complexity of manually intervening the operation and maintenance container and the service by a tester, and realizing the accuracy and the 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 that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a first flow chart of an automated testing method based on PaaS cloud services according to an embodiment of the present invention.
Fig. 2 is a second flow chart of an automated testing method based on PaaS cloud services according to an embodiment of the present invention.
Fig. 3 is a full flow chart of an automated testing method based on PaaS cloud service in an embodiment of the present invention.
Fig. 4 is a first structural schematic diagram of an automated testing device based on PaaS cloud services in an embodiment of the present invention.
Fig. 5 is a second structural schematic diagram of an automated testing apparatus based on PaaS cloud services in 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
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The embodiment of the invention provides an embodiment of an automatic testing method and device based on PaaS cloud service, relates to the technical field of computer software application, and particularly relates to the technical field of cloud computing. The embodiment of the invention provides an automatic testing method and device based on PaaS cloud service, which realize service disabling by inquiring current version function testing environment container information and service information, ensure the uniqueness of a service provider, solve the complexity of manually intervening operation and maintenance containers and services by testers, and realize the accuracy of automatic testing service.
The invention provides an embodiment of an automated testing method based on PaaS cloud service, referring to FIG. 1, the automated testing method based on PaaS cloud service specifically comprises the following contents:
s11: determining the container information of the current version function test environment according to the parameters of the PaaS management platform configured by the user;
in the step, according to PaaS management platform address, platform application name and platform node name configured by a user, inquiring container information of a current version function test environment;
specifically, according to the PaaS management platform address, the platform application name and the platform node name configured by the user, the PaaS management platform return information is queried, wherein the return information comprises a container host IP port, a container name, mirror image information, a container ID and the like. The returned information in this step is the container information. In this embodiment, the container information is a host IP port of the container, and other information is recorded as auxiliary information.
It will be appreciated that the host IP port of the container is used to determine whether it is a service of the current version of the functional test environment, and the service ID, registration partition, service status are used to maintain the disablement or enablement of the service.
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 a service management platform address, a service name and a service version number configured by a user;
the method specifically comprises the steps of inquiring basic information of a service according to a service management platform address, a service name and a service version number configured by a user, and returning host IP port, zookeeper environment information, registration partition, service ID, service description and service state comprising service registration. The return information in this step is the service information. In this embodiment, the service information is a host IP port for service registration 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 the result of the comparison; the target service provider is used for automatically testing the target service;
in the step, comparing the host IP port of the container in the container information with the host IP port of the service registration in the service information;
if the service registered host IP port exists in the host IP port list of the container, determining the service provider corresponding to the service registered host IP port as a target service provider, and the rest being other providers.
It should be noted that, before the automation framework is started, the registration problem of the service is effectively found, that is, when a certain service information is queried, the current version functional test environment is described that the service registration fails, an error log is recorded, and a tester is notified.
S14: and setting other service providers except the target service provider to a disabled state.
In this step, service disabling is performed according to the other providers 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, according to the automated testing method based on PaaS cloud service provided by the embodiment of the present invention, the container information of the current version of functional testing environment is determined according to the parameters of the PaaS management platform configured by the 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 the result of the comparison; the target service provider is used for automatically testing the target service; and setting other service providers except the target service provider to be in a forbidden state, realizing service forbidden, ensuring the uniqueness of the service provider, solving the complexity of manually intervening the operation and maintenance container and the service by a tester, and realizing the accuracy and the efficiency of automatic test service.
In an embodiment of the present invention, referring to fig. 2, step S14 of the PaaS cloud service-based automated testing method further includes step S15, which specifically includes the following steps:
s15: after the target service provider completes the automated test, the disabled service provider is set to an enabled state.
In this step, after the automation script is executed, the disabled service is restored to the enabled state so as not to affect the testing of other people.
To further explain the scheme, the invention provides a full-flow embodiment of an automated testing method based on PaaS cloud service, referring to fig. 3, the automated testing method based on PaaS cloud service specifically includes the following contents:
step S101: the application system starts to start.
Step S102: the system starts to start the automation framework.
Step S103: and the container inquiry device acquires the container information of the current version of the function test environment according to the user configuration environment information.
Step S104: the service inquiry device obtains service information of the current version functional 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, an error log is recorded.
Step S105: and (3) disabling the service, and disabling other providers of the service according to logic judgment to ensure that the automatic script tests the service of the current version functional test environment. If the discovery service is other providers, the container provider without the current version of the functional test environment exists, namely the problem registration failure exists, and the error log is recorded.
Step S106: the automation framework is successfully started.
Step S107: after the automation script is completed, other service providers are restored to enablement. And the test of other people is not affected.
Step S108: other processes of the system are applied.
From the above description, the service disabling is realized by querying the current version function test environment container information and the service information, so that the uniqueness of the service provider is ensured, the complexity of the operation and maintenance container and the service manually intervened by the tester is solved, the accuracy of the automatic test service is realized, and the method has the following beneficial effects:
(1) According to the user configuration environment information, service disabling is automatically realized, the uniqueness of service providers is ensured, and the problems of invalid automatic test and low automatic success rate in the process of multiple providers are solved.
(2) Program problems such as service registration failure can be effectively found before the script of the automatic test framework runs, and the workload of analysis after the script fails is reduced.
(3) And after the running of the automatic frame script is finished, the service can be restored to the starting state in time, so that the interference to other testing works is avoided.
The embodiment of the invention provides a specific implementation manner of an automated testing device based on PaaS cloud service, which can realize all contents in the automated testing method based on PaaS cloud service, and referring to FIG. 4, the automated testing device based on PaaS cloud service specifically comprises the following contents:
the first collecting unit 10 is configured to determine container information of a current version of functional testing environment according to parameters of the PaaS management platform configured by a user;
a second acquisition unit 20 for determining service information based on parameters of a service management platform configured by a user;
a comparing unit 30 for comparing the container information with the service information, and determining a target service provider from among the plurality of service providers according to a result of the comparison; the target service provider is used for automatically testing the target service;
and a disabling unit 40, configured to set other service providers than the target service provider to a disabled state.
Wherein the comparing unit 30 includes:
a comparing subunit, configured to compare the host IP port of the container in the container information with the host IP port of the service registration in the service information;
and the target subunit is used for determining the service provider corresponding to the host IP port of the service registration as a target service provider if the host IP port of the service registration exists in the host IP port list of the container.
Further, the parameters of the PaaS management platform include: platform address, platform application name, and platform node name. The parameters of the service management platform include: manage platform address, service name and service version number. The container information includes: host IP port of container of PaaS management platform. The service information includes: the service management platform is used for registering the host IP port of the service.
Based on the foregoing embodiments, the embodiment of the present invention provides a specific implementation manner of an automated testing apparatus based on PaaS cloud service, referring to fig. 5, further including:
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 PaaS cloud service-based automatic testing device provided by the invention can be particularly used for executing the processing flow of the embodiment of the PaaS cloud service-based automatic testing method in the embodiment, and the functions of the embodiment are not repeated herein, and can be referred to in the detailed description of the method embodiment.
As can be seen from the above description, the automated testing device based on PaaS cloud service provided by the embodiment of the present invention determines the container information of the current version of functional testing environment according to the parameters of the PaaS management platform configured by the 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 the result of the comparison; the target service provider is used for automatically testing the target service; and setting other service providers except the target service provider to be in a forbidden state, realizing service forbidden, ensuring the uniqueness of the service provider, solving the complexity of manually intervening the operation and maintenance container and the service by a tester, and realizing the accuracy and the efficiency of automatic test service.
The application provides an embodiment of an electronic device for implementing all or part of contents in an automated testing method based on PaaS cloud service, wherein the electronic device specifically comprises 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 communication with each other 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, etc., and the embodiment is not limited thereto. In this embodiment, the electronic device may be implemented with reference to an embodiment of the method for implementing the PaaS cloud service-based automated test method and an embodiment of the apparatus for implementing the PaaS cloud service-based automated test device, and the contents thereof are incorporated herein and are not repeated here.
Fig. 6 is a schematic block diagram of a system configuration of an electronic device 9600 of an embodiment of the present application. As shown in fig. 6, the electronic device 9600 may 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 structures to implement telecommunications functions or other functions.
In one embodiment, automated testing functionality based on PaaS cloud services may be integrated into the central processor 9100. The central processor 9100 may be configured to perform the following control:
determining the container information of the current version function test environment according to the parameters of the PaaS management platform configured by the 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 the result of the comparison; the target service provider is used for automatically testing the target service; and setting other service providers except the target service provider to a disabled state.
As can be seen from the above description, the electronic device provided in the embodiments of the present application determines the container information of the current version of the functional test environment according to the parameters of the PaaS management platform configured by the 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 the result of the comparison; the target service provider is used for automatically testing the target service; and setting other service providers except the target service provider to be in a forbidden state, realizing service forbidden, ensuring the uniqueness of the service provider, solving the complexity of manually intervening the operation and maintenance container and the service by a tester, and realizing the accuracy and the efficiency of automatic test service.
In another embodiment, the PaaS cloud service-based automation test device may be configured separately from the central processor 9100, for example, the PaaS cloud service-based automation test may be configured as a chip connected to the central processor 9100, and the PaaS cloud service-based automation test function is implemented by 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 need not include all of the components shown in fig. 6; in addition, the electronic device 9600 may further include components not shown in fig. 6, and reference may be made to the related art.
As shown in fig. 6, the central processor 9100, sometimes referred to as a controller or operational control, may include a microprocessor or other processor device and/or logic device, which central processor 9100 receives inputs and controls the operation of the various components of the electronic device 9600.
The memory 9140 may 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 about failure may be stored, and a program for executing the information may be stored. And the central processor 9100 can execute the program stored in the memory 9140 to realize information storage or processing, and 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. The power supply 9170 is used to provide power to the electronic device 9600. The display 9160 is used for displaying display objects such as images and characters. The display may be, for example, but not limited to, an LCD display.
The memory 9140 may be a solid state memory such as Read Only Memory (ROM), random Access Memory (RAM), SIM card, etc. But also a memory which holds information even when powered down, can be selectively erased and provided with further data, an example of which is sometimes referred to as EPROM or the like. The memory 9140 may also be some other type of device. The 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 storing application programs and function programs or a flow for executing operations of the electronic device 9600 by the central processor 9100.
The memory 9140 may also include a data store 9143, the data store 9143 for storing 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 of the electronic device for communication functions and/or for performing other functions of the electronic device (e.g., messaging applications, address book applications, etc.).
The communication module 9110 is a transmitter/receiver 9110 that transmits and receives signals via an antenna 9111. A communication module (transmitter/receiver) 9110 is coupled to the central processor 9100 to provide input signals and receive output signals, as in the case of conventional mobile communication terminals.
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, etc., 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 to receive audio input from the microphone 9132 to implement usual telecommunications functions. The audio processor 9130 can include any suitable buffers, decoders, amplifiers and so forth. In addition, the audio processor 9130 is also coupled to the central processor 9100 so that sound can be recorded locally through the microphone 9132 and sound stored locally can be played through the speaker 9131.
An embodiment of the present invention further provides a computer readable storage medium capable of implementing all the steps in the PaaS cloud service-based automatic test method in the above embodiment, where the computer readable storage medium stores a computer program, and when the computer program is executed by a processor, the computer program implements all the steps in the PaaS cloud service-based automatic test method in the above embodiment, for example, the processor implements the following steps when executing the computer program:
determining the container information of the current version function test environment according to the parameters of the PaaS management platform configured by the 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 the result of the comparison; the target service provider is used for automatically testing the target service; and setting other service providers except the target service provider to a disabled state.
As can be seen from the above description, the computer readable storage medium provided by the embodiments of the present invention determines the container information of the current version of the functional test environment according to the parameters of the PaaS management platform configured by the 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 the result of the comparison; the target service provider is used for automatically testing the target service; and setting other service providers except the target service provider to be in a forbidden state, realizing service forbidden, ensuring the uniqueness of the service provider, solving the complexity of manually intervening the operation and maintenance container and the service by a tester, and realizing the accuracy and the efficiency of automatic test service.
Although the invention provides method operational steps as described in the examples or flowcharts, more or fewer operational steps may be included based on conventional or non-inventive labor. The order of steps recited in the embodiments is merely one way of performing the order of steps and does not represent a unique order of execution. When implemented by an actual device or client product, the instructions may be executed sequentially or in parallel (e.g., in a parallel processor or multi-threaded processing environment) as shown in the embodiments or figures.
It will be appreciated by those skilled in the art that embodiments of the present description may be provided as a method, apparatus (system) or computer program product. Accordingly, the present specification embodiments 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 flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments. 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. Moreover, 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 meaning of the above terms in the present invention can be understood by those of ordinary skill in the art according to the specific circumstances. It should be noted that, without conflict, the embodiments of the present invention and features of the embodiments may be combined with each other. The present invention is not limited to any single aspect, nor to any single embodiment, nor to any combination and/or permutation of these aspects and/or embodiments. Moreover, each aspect and/or embodiment of the invention may be used alone or in combination with one or more other aspects and/or embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention, and are intended to be included within the scope of the appended claims and description.

Claims (10)

1. An automated testing method based on PaaS cloud service is characterized by comprising the following steps:
determining the container information of the current version function test environment according to the parameters of the PaaS management platform configured by the 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 the result of the comparison; the target service provider is used for automatically testing the target service;
setting other service providers than the target service provider to a disabled state;
wherein the comparing the container information with the service information, determining a target service provider from a plurality of service providers according to a result of the comparing, includes:
comparing the host IP port of the container in the container information with the host IP port of the service registration in the service information;
if the host IP port of the service registration exists in the host IP port list of the container, determining the service provider corresponding to the host IP port of the service registration as a target service provider.
2. The PaaS cloud service-based automated testing method of claim 1, further comprising, after the setting of the other service providers than the target service provider to disable:
after the target service provider completes the automated test, the disabled service provider is set to an enabled state.
3. The automated testing method based on PaaS cloud service of claim 1, wherein the parameters of the PaaS management platform comprise: platform address, platform application name, and platform node name.
4. The PaaS cloud service-based automated testing method of claim 1, wherein the parameters of the service management platform comprise: manage 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: host IP port of container of PaaS management platform.
6. The PaaS cloud service-based automated testing method of claim 1, wherein the service information comprises: the service management platform is used for registering the host IP port of the service.
7. An automated testing device based on PaaS cloud service, comprising:
the first acquisition unit is used for determining the container information of the current version functional 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 parameters of a service management platform configured by a user;
a comparison unit for comparing the container information with the service information, and determining a target service provider from a plurality of service providers according to the result of the comparison; the target service provider is used for automatically testing the target service;
a disabling unit configured to set other service providers than the target service provider to a disabled state;
wherein the comparing unit includes:
a comparing subunit, configured to compare the host IP port of the container in the container information with the host IP port of the service registration in the service information;
and the target subunit is used for determining the service provider corresponding to the host IP port of the service registration as a target service provider if the host IP port of the service registration exists in the host IP port list of the container.
8. The PaaS defined in claim 7, further comprising:
and the enabling unit is used for setting the disabled service provider to be in an enabling state after the target service provider completes the automatic test.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the PaaS cloud service based automated test method of any of claims 1 to 6 when the program is executed by the processor.
10. A computer readable storage medium having stored thereon a computer program, characterized in that the computer program when executed by a processor implements the steps of the PaaS cloud service based automated testing method of any of claims 1 to 6.
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 CN111930626A (en) 2020-11-13
CN111930626B true 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)

Families Citing this family (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

Also Published As

Publication number Publication date
CN111930626A (en) 2020-11-13

Similar Documents

Publication Publication Date Title
CN111813601B (en) Micro-service rollback method and device for stateful distributed cluster
CN111796860B (en) Micro front end scheme implementation method and device
CN110413528B (en) Intelligent configuration method and system for test environment
CN110297658B (en) Function component sharing method and device and computer equipment
CN113312064B (en) Method and device for installing and configuring physical machine and computer readable medium
CN110543428B (en) Application system testing method and device
CN111858050B (en) Server cluster hybrid deployment method, cluster management node and related system
CN111930626B (en) Automatic testing method and device based on PaaS cloud service
CN112468574B (en) Processing method, device and system for application service publishing and subscribing mechanism
CN111158987B (en) Health check method and device for micro-service architecture
CN104104701A (en) Online service configuration updating method and system
CN103237050A (en) Method and system for intelligent voice interaction
CN112817883A (en) Method, device and system for adapting interface platform and computer readable storage medium
CN112328413A (en) Application service calling method, device and system
CN110730197B (en) Service discovery method and system
CN113377385A (en) Client automatic deployment method and device
CN111930625B (en) Log acquisition method, device and system based on cloud service platform
CN109871226B (en) Configuration method, device and medium of downloader and electronic equipment
CN115098301A (en) Snapshot generation method and system for stateful application in cloud native scene
CN111049689B (en) Data center switching method and device
CN113157481A (en) Cluster-based server jump time fault processing method, device and system
CN113791984A (en) Automatic interface testing method and device
CN110035496B (en) Cloud platform switching method and system and electronic equipment
CN110554906A (en) virtual machine configuration management method and device
US10686717B1 (en) Dynamic allocation of content requests to content providers

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