CN112527685A - Automatic testing method and equipment based on hybrid cloud - Google Patents

Automatic testing method and equipment based on hybrid cloud Download PDF

Info

Publication number
CN112527685A
CN112527685A CN202011565540.6A CN202011565540A CN112527685A CN 112527685 A CN112527685 A CN 112527685A CN 202011565540 A CN202011565540 A CN 202011565540A CN 112527685 A CN112527685 A CN 112527685A
Authority
CN
China
Prior art keywords
test
redundant
tasks
public cloud
local
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011565540.6A
Other languages
Chinese (zh)
Inventor
刘磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Zstack Information Technology Co ltd
Original Assignee
Shanghai Zstack Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Zstack Information Technology Co ltd filed Critical Shanghai Zstack Information Technology Co ltd
Priority to CN202011565540.6A priority Critical patent/CN112527685A/en
Publication of CN112527685A publication Critical patent/CN112527685A/en
Pending legal-status Critical Current

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
    • 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/3684Test management for test design, e.g. generating new test cases
    • 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/3696Methods or tools to render software testable
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/505Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the load

Abstract

The invention aims to provide an automatic testing method and equipment based on a hybrid cloud, which are characterized in that whether redundant testing tasks exist locally or not is judged to cause insufficient local testing resources, and if redundant testing tasks exist, the redundant testing tasks are distributed to a public cloud so as to obtain testing results of the redundant testing tasks through the public cloud; and pulling the test results of the redundant test tasks on the public cloud to the local, and combining the test results of the redundant test tasks and the test results of the local test tasks into a local test set result. When the calculation power requirement of the automatic test is at the peak value, the calculation power of the local machine room can be more economically expanded to meet the requirement of the automatic test.

Description

Automatic testing method and equipment based on hybrid cloud
Technical Field
The invention relates to the field of computers, in particular to an automatic testing method and equipment based on a hybrid cloud.
Background
The automatic test of the software uses a machine to execute the process of replacing manual operation, and uses the machine to replace manual operation, thereby saving manpower, shortening the test period and reducing the manual uncertainty factor. With the increasing of the automatic test cases, the test time is longer and longer under the limited calculation force.
At most of the time nodes in the software development cycle, there is no specific requirement for the time to run out a round of automated test cases, and a day or even a week may be an acceptable time period. However, if there are several development cycle nodes, it is desirable that the test time is as short as possible, such as before line deadline, before release, and so on, and near these time points, there may be urgent patches to be tested.
If time is reduced without changing the coverage of the automated test, only increased computing power can be considered, i.e., money is used to replace time. However, expending a large amount of financial and material resources to expand the computing power of the local computer room for peak computing power needs is not so much to say that the newly added computing power may be idle for most of the time.
Disclosure of Invention
The invention aims to provide an automatic testing method and equipment based on a hybrid cloud.
According to one aspect of the invention, a hybrid cloud-based automated testing method is provided, which comprises the following steps:
judging whether redundant testing tasks are available locally to cause insufficient local testing resources,
if redundant test tasks exist, distributing the redundant test tasks to a public cloud so as to obtain test results of the redundant test tasks through the public cloud;
and pulling the test results of the redundant test tasks on the public cloud to the local, and combining the test results of the redundant test tasks and the test results of the local test tasks into a local test set result.
Further, in the method, distributing redundant test tasks to a public cloud includes:
the local load higher than the preset threshold value is borne and distributed to the public cloud as a redundant test task;
or distributing the test tasks in a preset proportion of all the test tasks as redundant test tasks to the public cloud.
Further, in the method, distributing the redundant test tasks to the public cloud to obtain the test results of the redundant test tasks through the public cloud includes:
and transmitting codes and test parameters corresponding to redundant test tasks to the public cloud so as to obtain test results of the redundant test tasks through the public cloud.
Further, in the method, transmitting codes and test parameters corresponding to redundant test tasks to the public cloud to obtain test results of the redundant test tasks through the public cloud includes:
deploying a storage server on the public cloud, wherein the storage server is used for storing logs and intermediate files;
deploying a Git server on the public cloud, wherein the Git server is used for receiving construction and test codes corresponding to redundant test tasks which are synchronized from the local;
deploying a control program on the public cloud, wherein the control program is used for acquiring a construction and test code from the Git server, acquiring construction and test parameters from the database to generate construction and test information, and triggering Jenkins to start construction of a corresponding test task based on the construction and test information to obtain a test result of redundant test tasks;
deploying an internal mirror image on the public cloud, wherein the internal mirror image is used for accelerating the problem of dependent downloading required by the Git server during construction and testing;
and deploying a database in the public cloud, wherein the database is used for receiving construction and test parameters corresponding to redundant test tasks synchronized from the local and recording test results of the redundant test tasks into the database.
According to another aspect of the present invention, there is also provided a hybrid cloud-based automated testing apparatus, wherein the apparatus comprises:
a judging device for judging whether the local testing resources are insufficient due to redundant testing tasks,
the distribution device is used for distributing redundant test tasks to the public cloud if the redundant test tasks exist so as to obtain test results of the redundant test tasks through the public cloud;
and the merging device is used for pulling the test results of the redundant test tasks on the public cloud to the local, and merging the test results of the redundant test tasks and the test results of the local test tasks into the local test set result.
Further, in the above device, the distribution device is configured to distribute a local load higher than a preset threshold to a public cloud as a redundant test task; or distributing the test tasks in a preset proportion of all the test tasks as redundant test tasks to the public cloud.
Further, in the above device, the allocation apparatus is configured to transmit codes and test parameters corresponding to redundant test tasks to the public cloud, so as to obtain test results of the redundant test tasks through the public cloud.
Further, in the foregoing apparatus, the allocating device is configured to:
deploying a storage server on the public cloud, wherein the storage server is used for storing logs and intermediate files;
deploying a Git server on the public cloud, wherein the Git server is used for receiving construction and test codes corresponding to redundant test tasks which are synchronized from the local;
deploying a control program on the public cloud, wherein the control program is used for acquiring a construction and test code from the Git server, acquiring construction and test parameters from the database to generate construction and test information, and triggering Jenkins to start construction of a corresponding test task based on the construction and test information to obtain a test result of redundant test tasks;
deploying an internal mirror image on the public cloud, wherein the internal mirror image is used for accelerating the problem of dependent downloading required by the Git server during construction and testing;
and deploying a database in the public cloud, wherein the database is used for receiving construction and test parameters corresponding to redundant test tasks synchronized from the local and recording test results of the redundant test tasks into the database.
According to another aspect of the present invention, there is also provided a computing-based device, including:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
judging whether redundant testing tasks are available locally to cause insufficient local testing resources,
if redundant test tasks exist, distributing the redundant test tasks to a public cloud so as to obtain test results of the redundant test tasks through the public cloud;
and pulling the test results of the redundant test tasks on the public cloud to the local, and combining the test results of the redundant test tasks and the test results of the local test tasks into a local test set result.
According to another aspect of the present invention, there is also provided a computer-readable storage medium having stored thereon computer-executable instructions, wherein the computer-executable instructions, when executed by a processor, cause the processor to:
judging whether redundant testing tasks are available locally to cause insufficient local testing resources,
if redundant test tasks exist, distributing the redundant test tasks to a public cloud so as to obtain test results of the redundant test tasks through the public cloud;
and pulling the test results of the redundant test tasks on the public cloud to the local, and combining the test results of the redundant test tasks and the test results of the local test tasks into a local test set result.
Compared with the prior art, the method and the device have the advantages that whether redundant test tasks exist locally or not is judged, so that local test resources are insufficient, if redundant test tasks exist, the redundant test tasks are distributed to the public cloud, and test results of the redundant test tasks are obtained through the public cloud; and pulling the test results of the redundant test tasks on the public cloud to the local, and combining the test results of the redundant test tasks and the test results of the local test tasks into a local test set result. When the calculation power requirement of the automatic test is at the peak value, the calculation power of the local machine room can be more economically expanded to meet the requirement of the automatic test. The invention can solve the requirement of the test on peak computing power, the local computer room is used for responding to the test requirement at ordinary times, and when the on-line date, the release and the like are close, the computing power of the public cloud is used for supplementing the local computing power, so that a balance point among time, computing power and budget is found.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
FIG. 1 illustrates a flow diagram of a hybrid cloud-based automated testing method of an embodiment of the present invention;
FIG. 2 is a flow chart illustrating testing of a public cloud according to an embodiment of the present invention;
FIG. 3 is a diagram of a test architecture for a public cloud in accordance with an embodiment of the present invention;
FIG. 4 shows a test architecture diagram of a hybrid cloud of an embodiment of the present invention.
The same or similar reference numbers in the drawings identify the same or similar elements.
Detailed Description
The present invention is described in further detail below with reference to the attached drawing figures.
In a typical configuration of the present application, the terminal, the device serving the network, and the trusted party each include one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
As shown in fig. 1, the present invention provides an automated testing method based on a hybrid cloud, the method comprising:
step S1, judging whether the local testing resources are insufficient due to redundant testing tasks,
step S2, if redundant test tasks exist, distributing the redundant test tasks to a public cloud so as to obtain test results of the redundant test tasks through the public cloud;
and step S3, pulling the test results of the redundant test tasks on the public cloud to the local, and combining the test results of the redundant test tasks and the test results of the local test tasks into the local test set result.
Here, the simple use of the public cloud provides computing power for the automated testing, which is inconvenient for log query, download, storage and software debugging, and the cost is not necessarily lower than that of the local machine room due to the specific computing power of the public cloud for long-time operation. However, the local computer room cannot solve the problem of capacity expansion calculation at any time.
When the calculation power requirement of the automatic test is at the peak value, the calculation power of the local machine room can be more economically expanded to meet the requirement of the automatic test. The invention can solve the requirement of the test on peak computing power, the local computer room is used for responding to the test requirement at ordinary times, and when the on-line date, the release and the like are close, the computing power of the public cloud is used for supplementing the local computing power, so that a balance point among time, computing power and budget is found.
In an embodiment of the automated testing method based on the hybrid cloud, in step S2, distributing redundant testing tasks to the public cloud includes:
the local load higher than the preset threshold value is borne and distributed to the public cloud as a redundant test task;
or distributing the test tasks in a preset proportion of all the test tasks as redundant test tasks to the public cloud.
In this case, the present invention determines when construction and testing are required on the public cloud. The basis of the determination may be load bearing of the local environment, for example, if the load is higher than a certain threshold, the remaining test load is distributed to the public cloud, or all the test loads are directly distributed to the public cloud according to a certain proportion.
In an embodiment of the automated testing method based on a hybrid cloud, in step S2, distributing redundant testing tasks to a public cloud to obtain testing results of the redundant testing tasks through the public cloud, including:
and transmitting codes and test parameters corresponding to redundant test tasks to the public cloud so as to obtain test results of the redundant test tasks through the public cloud.
There are many ways of code synchronization between the public cloud and the private cloud, and the mirror function of the Gitlab can be considered, or the git can be directly used to achieve the synchronization purpose. In order to reduce the number of times of synchronization as much as possible, the local control program needs to judge when synchronization is performed (usually, when a code is found to have a change and public cloud computing power is needed), determine the code amount of synchronization (that is, determine which codes are synchronized to meet the basic test requirement on the public cloud) in order to reduce the code exposure as much as possible, and transmit test parameters to one end of the public cloud.
As shown in fig. 2, in an embodiment of the automated testing method based on a hybrid cloud of the present invention, transmitting codes and testing parameters corresponding to redundant testing tasks to the public cloud to obtain testing results of the redundant testing tasks through the public cloud includes:
deploying a storage server on the public cloud, wherein the storage server is responsible for storing logs and intermediate files;
deploying a Git server on the public cloud, wherein the Git server is used for receiving construction and test codes corresponding to redundant test tasks which are synchronized from the local;
deploying a control program on the public cloud, wherein the control program is used for acquiring a construction and test code from the Git server, acquiring construction and test parameters from the database to generate construction and test information, and triggering Jenkins to start construction of a corresponding test task based on the construction and test information to obtain a test result of redundant test tasks;
deploying an internal mirror image on the public cloud, wherein the internal mirror image is used for accelerating the problem of dependent downloading required by the Git server during construction and testing;
and deploying a database on the public cloud, wherein the database is used for receiving construction and test parameters corresponding to redundant test tasks synchronized from the local and recording test results of the redundant test tasks into the database.
Here, if only the code is selected to be synchronized between the public cloud and the private cloud, it means that a set of CI/CD is required at the public cloud end to complete a set of processes from building to testing. In consideration of the cost of returning the logs of the public network, the best mode is that the logs and files generated by construction and testing are stored in the public cloud, the testing results also exist in the database of the public cloud, and the testing results are exposed out of the access interface for program query. In order to accelerate the building and testing speed, mirror images of various sources inside the testing environment may be built on the public cloud environment. In summary, the components that may need to be deployed on a public cloud are: the system comprises a storage server, a Git server, an internal source mirror image, a control program and a database. The storage server is responsible for storing the logs and the intermediate files, and considering that the NAS storage can be applied to the public network, the price of the large-capacity storage on the public network is very cost-effective and the payment is made according to the amount. The Git server has the function of providing a code library, mainly receiving construction and test codes corresponding to redundant test tasks from local synchronization, providing a code download point for construction and test, using a common cloud host instance as the Git server on the public cloud, and deploying the like control program and the database to the cloud host instance on the public cloud.
The main logic of the public cloud is that a Git server (Git server) receives construction and test codes synchronized from the local, a cloud control program receives specific construction and test codes and construction and test parameters, generates corresponding construction and test information, triggers Jenkins to start construction of related test tasks, and accelerates the problem of dependence downloading required during construction and test.
Specifically, considering that the number of cloud hosts required by the public cloud is not fixed, the invention can realize dynamic capacity expansion by means of the elastic expansion group of the public cloud. By means of automatic capacity expansion of the public cloud, the number of cloud hosts established on the public cloud is not needed to be considered, too much energy is not needed to be spent on resource cleaning, and all the cloud hosts are controlled by elastic expansion of the public cloud. A more recommended architecture on the public cloud is shown in fig. 3. In Jenkins task, only how many CPU and memory resources are needed for one construction and one test are required, taking Aricloud as an example, the elastic expansion group of the Aricloud is matched with the elastic expansion of Kubernets, when the resources (CPU/memory) are insufficient, a cloud host example can be automatically created to increase the computing power of the whole cluster, and when the resources are excessive, redundant cloud hosts can be automatically deleted, so that the purpose of saving expenses is achieved.
The test frame for the entire hybrid cloud is shown in fig. 4. In a special period of a project, under the condition that a large amount of computing power is needed to shorten a test period, a local control program selects to configure 70% of test load at one end of a public cloud, uploads necessary codes to a git server (git server) in the public cloud, meanwhile, sends specific test information to the control program at one end of the public cloud, and after receiving the construction and test information and construction and test parameters, the control program at one end of the public cloud triggers Jenkins to start construction and test. When the elastic expansion group of the public cloud detects that the CPU/memory is insufficient, the public cloud host is automatically created to increase the computational power and meet the requirements. And the test result of the public cloud end is stored at one end of the public cloud end, and the local control program polls the public cloud end to pull the test result and synchronizes the test result to the local. After the test of the public cloud end is finished, the elastic expansion group automatically recovers the cloud host, the public cloud program mark test is finished, and all test results are locally synchronized. Thus, the testing process of the whole mixed cloud is completed.
According to another aspect of the present invention, there is also provided a hybrid cloud-based automated testing apparatus, wherein the apparatus comprises:
a judging device for judging whether the local testing resources are insufficient due to redundant testing tasks,
the distribution device is used for distributing redundant test tasks to the public cloud if the redundant test tasks exist so as to obtain test results of the redundant test tasks through the public cloud;
and the merging device is used for pulling the test results of the redundant test tasks on the public cloud to the local, and merging the test results of the redundant test tasks and the test results of the local test tasks into the local test set result.
Further, in the above device, the distribution device is configured to distribute a local load higher than a preset threshold to a public cloud as a redundant test task; or distributing the test tasks in a preset proportion of all the test tasks as redundant test tasks to the public cloud.
Further, in the above device, the allocation apparatus is configured to transmit codes and test parameters corresponding to redundant test tasks to the public cloud, so as to obtain test results of the redundant test tasks through the public cloud.
Further, in the foregoing apparatus, the allocating device is configured to:
deploying a storage server on the public cloud, wherein the storage server is used for storing logs and intermediate files;
deploying a Git server on the public cloud, wherein the Git server is used for receiving construction and test codes corresponding to redundant test tasks which are synchronized from the local;
deploying a control program on the public cloud, wherein the control program is used for acquiring a construction and test code from the Git server, acquiring construction and test parameters from the database to generate construction and test information, and triggering Jenkins to start construction of a corresponding test task based on the construction and test information to obtain a test result of redundant test tasks;
deploying an internal mirror image on the public cloud, wherein the internal mirror image is used for accelerating the problem of dependent downloading required by the Git server during construction and testing;
and deploying a database in the public cloud, wherein the database is used for receiving construction and test parameters corresponding to redundant test tasks synchronized from the local and recording test results of the redundant test tasks into the database.
According to another aspect of the present invention, there is also provided a computing-based device, including:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
judging whether redundant testing tasks are available locally to cause insufficient local testing resources,
if redundant test tasks exist, distributing the redundant test tasks to a public cloud so as to obtain test results of the redundant test tasks through the public cloud;
and pulling the test results of the redundant test tasks on the public cloud to the local, and combining the test results of the redundant test tasks and the test results of the local test tasks into a local test set result.
According to another aspect of the present invention, there is also provided a computer-readable storage medium having stored thereon computer-executable instructions, wherein the computer-executable instructions, when executed by a processor, cause the processor to:
judging whether redundant testing tasks are available locally to cause insufficient local testing resources,
if redundant test tasks exist, distributing the redundant test tasks to a public cloud so as to obtain test results of the redundant test tasks through the public cloud;
and pulling the test results of the redundant test tasks on the public cloud to the local, and combining the test results of the redundant test tasks and the test results of the local test tasks into a local test set result.
For details of embodiments of each device and storage medium of the present invention, reference may be made to corresponding parts of each method embodiment, and details are not described herein again.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.
It should be noted that the present invention may be implemented in software and/or in a combination of software and hardware, for example, as an Application Specific Integrated Circuit (ASIC), a general purpose computer or any other similar hardware device. In one embodiment, the software program of the present invention may be executed by a processor to implement the steps or functions described above. Also, the software programs (including associated data structures) of the present invention can be stored in a computer readable recording medium, such as RAM memory, magnetic or optical drive or diskette and the like. Further, some of the steps or functions of the present invention may be implemented in hardware, for example, as circuitry that cooperates with the processor to perform various steps or functions.
In addition, some of the present invention can be applied as a computer program product, such as computer program instructions, which when executed by a computer, can invoke or provide the method and/or technical solution according to the present invention through the operation of the computer. Program instructions which invoke the methods of the present invention may be stored on a fixed or removable recording medium and/or transmitted via a data stream on a broadcast or other signal-bearing medium and/or stored within a working memory of a computer device operating in accordance with the program instructions. An embodiment according to the invention herein comprises an apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger the apparatus to perform a method and/or solution according to embodiments of the invention as described above.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the apparatus claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.

Claims (10)

1. An automated testing method based on a hybrid cloud, wherein the method comprises the following steps:
judging whether redundant testing tasks are available locally to cause insufficient local testing resources,
if redundant test tasks exist, distributing the redundant test tasks to a public cloud so as to obtain test results of the redundant test tasks through the public cloud;
and pulling the test results of the redundant test tasks on the public cloud to the local, and combining the test results of the redundant test tasks and the test results of the local test tasks into a local test set result.
2. The method of claim 1, wherein distributing redundant testing tasks onto a public cloud comprises:
the local load higher than the preset threshold value is borne and distributed to the public cloud as a redundant test task;
or distributing the test tasks in a preset proportion of all the test tasks as redundant test tasks to the public cloud.
3. The method of claim 1, wherein distributing redundant test tasks onto a public cloud to obtain test results of redundant test tasks through the public cloud comprises:
and transmitting codes and test parameters corresponding to redundant test tasks to the public cloud so as to obtain test results of the redundant test tasks through the public cloud.
4. The method of claim 3, wherein passing codes and test parameters corresponding to redundant test tasks to the public cloud to obtain test results of the redundant test tasks through the public cloud comprises:
deploying a storage server on the public cloud, wherein the storage server is used for storing logs and intermediate files;
deploying a Git server on the public cloud, wherein the Git server is used for receiving construction and test codes corresponding to redundant test tasks which are synchronized from the local;
deploying a control program on the public cloud, wherein the control program is used for acquiring a construction and test code from the Git server, acquiring construction and test parameters from the database to generate construction and test information, and triggering Jenkins to start construction of a corresponding test task based on the construction and test information to obtain a test result of redundant test tasks;
deploying an internal mirror image on the public cloud, wherein the internal mirror image is used for accelerating the problem of dependent downloading required by the Git server during construction and testing;
and deploying a database in the public cloud, wherein the database is used for receiving construction and test parameters corresponding to redundant test tasks synchronized from the local and recording test results of the redundant test tasks into the database.
5. A hybrid cloud based automated testing device, wherein the device comprises:
a judging device for judging whether the local testing resources are insufficient due to redundant testing tasks,
the distribution device is used for distributing redundant test tasks to the public cloud if the redundant test tasks exist so as to obtain test results of the redundant test tasks through the public cloud;
and the merging device is used for pulling the test results of the redundant test tasks on the public cloud to the local, and merging the test results of the redundant test tasks and the test results of the local test tasks into the local test set result.
6. The device according to claim 5, wherein the distribution means is configured to distribute the local load share above a preset threshold as redundant testing tasks to the public cloud; or distributing the test tasks in a preset proportion of all the test tasks as redundant test tasks to the public cloud.
7. The device according to claim 5, wherein the distribution device is configured to transfer codes and test parameters corresponding to redundant test tasks to the public cloud, so as to obtain test results of the redundant test tasks through the public cloud.
8. The apparatus of claim 7, wherein the assigning means is configured to:
deploying a storage server on the public cloud, wherein the storage server is used for storing logs and intermediate files;
deploying a Git server on the public cloud, wherein the Git server is used for receiving construction and test codes corresponding to redundant test tasks which are synchronized from the local;
deploying a control program on the public cloud, wherein the control program is used for acquiring a construction and test code from the Git server, acquiring construction and test parameters from the database to generate construction and test information, and triggering Jenkins to start construction of a corresponding test task based on the construction and test information to obtain a test result of redundant test tasks;
deploying an internal mirror image on the public cloud, wherein the internal mirror image is used for accelerating the problem of dependent downloading required by the Git server during construction and testing;
and deploying a database in the public cloud, wherein the database is used for receiving construction and test parameters corresponding to redundant test tasks synchronized from the local and recording test results of the redundant test tasks into the database.
9. A computing-based device, comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
judging whether redundant testing tasks are available locally to cause insufficient local testing resources,
if redundant test tasks exist, distributing the redundant test tasks to a public cloud so as to obtain test results of the redundant test tasks through the public cloud;
and pulling the test results of the redundant test tasks on the public cloud to the local, and combining the test results of the redundant test tasks and the test results of the local test tasks into a local test set result.
10. A computer-readable storage medium having computer-executable instructions stored thereon, wherein the computer-executable instructions, when executed by a processor, cause the processor to:
judging whether redundant testing tasks are available locally to cause insufficient local testing resources,
if redundant test tasks exist, distributing the redundant test tasks to a public cloud so as to obtain test results of the redundant test tasks through the public cloud;
and pulling the test results of the redundant test tasks on the public cloud to the local, and combining the test results of the redundant test tasks and the test results of the local test tasks into a local test set result.
CN202011565540.6A 2020-12-25 2020-12-25 Automatic testing method and equipment based on hybrid cloud Pending CN112527685A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011565540.6A CN112527685A (en) 2020-12-25 2020-12-25 Automatic testing method and equipment based on hybrid cloud

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011565540.6A CN112527685A (en) 2020-12-25 2020-12-25 Automatic testing method and equipment based on hybrid cloud

Publications (1)

Publication Number Publication Date
CN112527685A true CN112527685A (en) 2021-03-19

Family

ID=74976676

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011565540.6A Pending CN112527685A (en) 2020-12-25 2020-12-25 Automatic testing method and equipment based on hybrid cloud

Country Status (1)

Country Link
CN (1) CN112527685A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110270968A1 (en) * 2010-04-30 2011-11-03 Salsburg Michael A Decision support system for moving computing workloads to public clouds
US20140026122A1 (en) * 2012-07-18 2014-01-23 Infosys Limited Cloud-based application testing
CN104850450A (en) * 2015-05-14 2015-08-19 华中科技大学 Load balancing method and system facing mixed cloud application
CN109697159A (en) * 2017-10-23 2019-04-30 上海仪电(集团)有限公司中央研究院 A kind of development of automation operational system based on mixing cloud platform
CN111290937A (en) * 2018-12-08 2020-06-16 南京慕测信息科技有限公司 Extensible mobile application automatic test platform based on hybrid cloud

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110270968A1 (en) * 2010-04-30 2011-11-03 Salsburg Michael A Decision support system for moving computing workloads to public clouds
US20140026122A1 (en) * 2012-07-18 2014-01-23 Infosys Limited Cloud-based application testing
CN104850450A (en) * 2015-05-14 2015-08-19 华中科技大学 Load balancing method and system facing mixed cloud application
CN109697159A (en) * 2017-10-23 2019-04-30 上海仪电(集团)有限公司中央研究院 A kind of development of automation operational system based on mixing cloud platform
CN111290937A (en) * 2018-12-08 2020-06-16 南京慕测信息科技有限公司 Extensible mobile application automatic test platform based on hybrid cloud

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
罗斌: "基于OpenStack的混合云负载均衡方法研究与实现", 《中国优秀硕士学位论文全文数据库》, no. 2017, pages 139 - 101 *

Similar Documents

Publication Publication Date Title
CN106897206B (en) Service testing method and device
CN110187914B (en) Application development method, system and device
CN111176818B (en) Distributed prediction method, device, system, electronic equipment and storage medium
CN110716845B (en) Log information reading method of Android system
CN112395196A (en) Data operation development test method, device, equipment, system and storage medium
CN102255866A (en) Method and device for downloading data
CN111767226A (en) Method, system and equipment for testing cloud computing platform resources
WO2021013185A1 (en) Virtual machine migration processing and strategy generation method, apparatus and device, and storage medium
CN114006815B (en) Automatic deployment method and device for cloud platform nodes, nodes and storage medium
CN111414240B (en) Kernel state process copying method and device, container expanding method and device
CN112527685A (en) Automatic testing method and equipment based on hybrid cloud
CN116382713A (en) Method, system, device and storage medium for constructing application mirror image
CN114791884A (en) Test environment construction method and device, storage medium and electronic equipment
TW201407503A (en) System and method for work schedule of cloud platform
CN115048083A (en) Visualization method and device for assembly, storage medium and electronic equipment
CN114489999A (en) Method and device for processing pipeline task, processor and electronic equipment
CN115080309A (en) Data backup system, method, storage medium, and electronic device
CN111435320B (en) Data processing method and device
CN113900811A (en) Event-driven task scheduling method and device
CN112765129A (en) Method and equipment for realizing database data version management
CN110297625B (en) Application processing method and device
CN114124703B (en) Multi-environment service configuration method, equipment and medium based on Kubernetes
CN113051152B (en) Task data generation method and device and processing equipment
CN117472755A (en) Interface testing method, device, processor and storage medium
CN110874317B (en) Method for generating and using test cases, server and terminal thereof

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