CN115237441A - Upgrade test method, device and medium based on cloud platform - Google Patents

Upgrade test method, device and medium based on cloud platform Download PDF

Info

Publication number
CN115237441A
CN115237441A CN202210751010.3A CN202210751010A CN115237441A CN 115237441 A CN115237441 A CN 115237441A CN 202210751010 A CN202210751010 A CN 202210751010A CN 115237441 A CN115237441 A CN 115237441A
Authority
CN
China
Prior art keywords
test
upgrading
version
upgrade
cloud platform
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
CN202210751010.3A
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.)
Inspur Jinan data Technology Co ltd
Original Assignee
Inspur Jinan data 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 Inspur Jinan data Technology Co ltd filed Critical Inspur Jinan data Technology Co ltd
Priority to CN202210751010.3A priority Critical patent/CN115237441A/en
Publication of CN115237441A publication Critical patent/CN115237441A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • 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/368Test management for test version control, e.g. updating test cases to a new software version
    • 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
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses an upgrade testing method, device and medium based on a cloud platform, and is suitable for the technical field of software testing. Determining an upgrading test path according to the initial version and the target version, and combining the upgrading test path and the corresponding test scale and test scene to obtain a test configuration file; selecting a corresponding script configuration file according to a target version to obtain a use case function set by accessing an initialized test environment; and upgrading according to the upgrading test path and the case function set. And obtaining a test configuration file through the determined upgrading test path, further configuring the cloud platform to create an initialization test environment to specify a version system file, selecting a case function set applicable to a target version according to the version function difference, and uploading and upgrading an upgrading package according to the case function set and the upgrading test path. The method and the device can realize gradual upgrading of the versions, can also realize crossover upgrading of a plurality of versions, improve upgrading speed, and simultaneously, upgrade tested versions flexibly.

Description

Upgrade test method, device and medium based on cloud platform
Technical Field
The invention relates to the technical field of software testing, in particular to an upgrade testing method, device and medium based on a cloud platform.
Background
The server virtualization technology is a software definition technology, which virtually forms various hardware through software definition, so that a plurality of hosts (cloud servers) can be virtualized independently in one hardware platform. The single cloud server uses hardware devices such as an independent Central Processing Unit (CPU), a hard disk, a memory, an Input/Output (I/O), and a network card. Meanwhile, different operating systems can be installed on the virtual machine to meet different requirements of different users.
In an agile development mode, the software version is updated more quickly, and the server virtualization software is upgraded from a low version to a high version so as to solve the defects and reflect the increase of the requirements of new functions. In the existing server virtualization software upgrading test, the version can only be manually upgraded step by step, for example, from the version V1.0 to the version V2.0, and if the version is upgraded to the version V5.0, the version needs to be upgraded step by step, so that the upgrading times are increased, the upgrading speed is low, and meanwhile, the version of the upgrading test is rigid.
Therefore, how to make the test version upgrade flexible is a urgent need to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide an upgrade test method, an upgrade test device and an upgrade test medium based on a cloud platform, so that the spanning upgrade of a plurality of versions is realized, the upgrade speed is improved, and the upgrade test versions are flexible.
In order to solve the technical problem, the invention provides an upgrade testing method based on a cloud platform, which comprises the following steps:
acquiring an initial version and a target version corresponding to server virtualization software;
determining an upgrading test path according to the initial version and the target version, and combining the upgrading test path and the corresponding test scale and test scene to obtain a test configuration file;
establishing an initialization test environment for the test configuration file on the cloud platform;
selecting a corresponding script configuration file according to a target version to obtain a use case function set by accessing an initialized test environment;
and upgrading according to the upgrading test path and the use case function set to finish the upgrading test from the initial version to the target version.
Preferably, determining an upgrade test path according to the initial version and the target version includes:
acquiring the covering and skipping version numbers between the initial version and the target version;
determining an initial upgrade path between the initial version and the target version according to the relationship between the initial version and the target version;
and traversing the initial upgrading path to obtain an upgrading test path by screening and reducing the covered and skipped version numbers.
Preferably, the test configuration file is used for creating an initialization test environment on the cloud platform, and the initialization test environment comprises the following steps:
analyzing the test configuration file to obtain configuration parameters and information of the system to be tested;
calling an SDK interface corresponding to cloud platform software according to the configuration parameters to create a plurality of scales and cloud servers;
configuring system information under test in a plurality of cloud servers to create an initialized test environment.
Preferably, the step of selecting a corresponding script configuration file according to the target version to obtain a use case function set by accessing the initialization test environment includes:
identifying a target version by accessing an initialization test environment;
and selecting the corresponding script configuration file according to the target version to form a use case function set.
Preferably, after obtaining the use case function set, before performing the upgrade according to the upgrade test path and the use case function set, the method further includes:
and pre-burying resources and configuring a system in an initialization test environment so as to verify the upgraded target version after the upgrade is finished.
Preferably, after upgrading according to the upgrade test path and the use case function set, the method further includes:
and carrying out resource recovery on the cloud server for subsequent upgrading test.
Preferably, after upgrading according to the upgrade test path and the use case function set, the method further includes:
calling an SDK interface to create a snapshot for the cloud server;
collecting log information of the cloud server for subsequent verification.
In order to solve the above technical problem, the present invention further provides an upgrade testing apparatus based on a cloud platform, including:
the acquisition module is used for acquiring an initial version and a target version corresponding to the server virtualization software;
the determining module is used for determining an upgrading test path according to the initial version and the target version and obtaining a test configuration file according to the upgrading test path and the corresponding test scale and test scene combination;
the creating module is used for creating an initialization test environment for the test configuration file on the cloud platform;
the selection module is used for selecting a corresponding script configuration file according to the target version to obtain a use case function set by accessing the initialized test environment;
and the upgrading module is used for upgrading according to the upgrading test path and the use case function set so as to finish the upgrading test from the initial version to the target version.
In order to solve the above technical problem, the present invention further provides an upgrade testing apparatus based on a cloud platform, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the cloud platform-based upgrade testing method when executing the computer program.
In order to solve the technical problem, the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned cloud platform-based upgrade testing method are implemented.
The invention provides an upgrade testing method based on a cloud platform, which comprises the steps of obtaining an initial version and a target version corresponding to server virtualization software; determining an upgrading test path according to the initial version and the target version, and combining the upgrading test path and the corresponding test scale and test scene to obtain a test configuration file; establishing an initialization test environment for the test configuration file on the cloud platform; selecting a corresponding script configuration file according to a target version to obtain a use case function set by accessing an initial test environment; and upgrading according to the upgrading test path and the use case function set to finish upgrading test from the initial version to the target version. According to the method, a test configuration file is further obtained through a determined upgrading test path, a cloud platform is further configured to create an initialization test environment to designate a version system file, a case function set applicable to a target version is selected according to version function differences, and an upgrading package is uploaded and upgraded according to the case function set and the upgrading test path. The method and the device can realize gradual upgrade of the versions, can also realize cross upgrade of a plurality of versions, improve the upgrade speed, and simultaneously, the upgrade test versions are flexible.
In addition, the invention also provides an upgrade testing device and medium based on the cloud platform, and the upgrade testing device and medium based on the cloud platform have the same beneficial effects as the upgrade testing method based on the cloud platform.
Drawings
In order to illustrate the embodiments of the present invention more clearly, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart of an upgrade testing method based on a cloud platform according to an embodiment of the present invention;
fig. 2 is a structural diagram of an upgrade testing apparatus based on a cloud platform according to an embodiment of the present invention;
fig. 3 is a structural diagram of another cloud platform-based upgrade testing apparatus according to an embodiment of the present invention;
fig. 4 is an application schematic diagram of an upgrade testing apparatus based on a cloud platform according to another embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without any creative work belong to the protection scope of the present invention.
The core of the invention is to provide an upgrade test method, device and medium based on a cloud platform, which realizes the spanning upgrade of a plurality of versions, improves the upgrade speed and simultaneously has flexible upgrade test versions.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Along with the increasingly convenient network environment, the thing networking becomes fast for a long time, and the fragmentation that thing networking equipment leads to along with the product location difference is comparatively serious, and it needs iteration to update, and the product is various and complicated, is to aiming at
Fig. 1 is a flowchart of an upgrade testing method based on a cloud platform according to an embodiment of the present invention, and as shown in fig. 1, the method includes:
s11: acquiring an initial version and a target version corresponding to server virtualization software;
s12: determining an upgrading test path according to the initial version and the target version, and combining the upgrading test path, the corresponding test scale and the test scene to obtain a test configuration file;
s13: establishing an initialization test environment for the test configuration file on the cloud platform;
s14: selecting a corresponding script configuration file according to a target version to obtain a use case function set by accessing an initialized test environment;
s15: and upgrading according to the upgrading test path and the use case function set to finish the upgrading test from the initial version to the target version.
And acquiring an initial version and a target version corresponding to the server virtual software, wherein the initial version and the target version can be step-by-step or step-by-step, and the received output parameters are used for subsequent scheduling. Besides obtaining the version, it is also necessary to obtain test scenario parameters corresponding to the test software, such as the scale, pressure, or failure of the software test.
The number of the paths can be obtained through a certain algorithm, the invention is not particularly limited, and the number of the paths can also be obtained by calculating the number of the version numbers which are different from the initial version number to the target version number, if n is the number of the difference from the initial version number to the target version number, the upgrade test path is obtained through the following formula:
upgrade test path = n (n + 1)/2
In order to facilitate the test upgrade of the subsequent path, in all the upgrade test paths, a very stable version number can be skipped, or the need change is large, and the version number is required to contain an indication of the version, or in the upgrade process from the initial version to the target version, the version number covering the two versions is not required, and the version with the large need change can be ignored, so that the number of the obtained final upgrade test paths is less than the number of all the upgrade test paths which originally pass through the range from the initial version number to the target version number. The invention does not specifically limit what upgrading test path is adopted, and can be set according to actual conditions.
And combining the upgrading test paths, the test scales and the test scenes to obtain a test configuration file, wherein if the software test scale is M, the test scene parameters such as pressure or faults are S, and the determined upgrading test path is R, the test configuration file is R M S. It is to be understood that the combination form is not particularly limited, and may be a combination form of an existing upgrade test, or may be set according to a specific combination form between an initial version number and a target version number according to an actual situation.
After the test configuration file is obtained, due to the cloud platform-based upgrade test method, an initialization test environment needs to be created on the cloud platform, and mainly system environments corresponding to cloud servers of different scales and configurations are created. Initializing a test environment, meeting the requirements of memory and the like met by a cloud server to be created, and meeting the hardware compatibility condition, the operating system and the like of the virtual machine. The created initialization test environment is used for carrying later development test and other internal services.
After the initialization test environment of the cloud platform is created, the script starts to run, a target version number is identified by accessing the initialization test environment, a corresponding script configuration file is selected to form an automatic case function set according to the target version number, the case function set comprises control tests such as a text box and a button, and a set of a search replacement operation, an insertion operation and an interface test case is obtained.
And upgrading according to the selected upgrading test path and the use case function set to complete the upgrading test from the initial version to the target version. It can be understood that, when upgrading, the upgrade package needs to be uploaded, and the upgrade script is automatically executed.
The upgrade testing method based on the cloud platform comprises the steps of obtaining an initial version and a target version corresponding to server virtualization software; determining an upgrading test path according to the initial version and the target version, and combining the upgrading test path, the corresponding test scale and the test scene to obtain a test configuration file; establishing an initialization testing environment for the testing configuration file on the cloud platform; selecting a corresponding script configuration file according to a target version to obtain a use case function set by accessing an initialization test environment; and upgrading according to the upgrading test path and the case function set to finish the upgrading test from the initial version to the target version. According to the method, a test configuration file is further obtained through a determined upgrading test path, a cloud platform is further configured to create an initialization test environment to designate a version system file, a case function set applicable to a target version is selected according to version function differences, and an upgrading package is uploaded and upgraded according to the case function set and the upgrading test path. The system can realize gradual upgrade of versions, can also realize crossover upgrade of a plurality of versions, improves the upgrade speed, and simultaneously, the upgrade test version is more flexible.
On the basis of the above embodiment, in order to facilitate configuration files for the upgrade test of the subsequent path and the like, and reduce unnecessary path tests, the step S12 of determining the upgrade test path according to the initial version and the target version includes:
acquiring the covering and skipping version numbers between the initial version and the target version;
determining an initial upgrade path between the initial version and the target version according to the relationship between the initial version and the target version;
and traversing the initial upgrading path to obtain an upgrading test path by screening and reducing the covered and skipped version numbers.
It should be noted that, the overlay version number and the skipped-over version number between the initial version and the target version are obtained first, the skipped-over version number in this embodiment is skipped mainly for a very stable version number, and the overlay version number is largely changed according to a requirement and includes the overlay version number. The paths involved in the version numbers of the above two cases are screened. Therefore, an initial upgrade path between the two versions needs to be determined according to the relationship between the initial version and the target version.
And in the obtained upgrading path corresponding to the covered and skipped version number, the upgrading test path is obtained by subtracting the upgrading path corresponding to the covered and skipped version number from the initial upgrading path. The specific process is that all upgrading paths need to be traversed and judged, and upgrading paths needing to skip the version number and including the coverage version number are removed, so that the remaining upgrading test paths are obtained as the last available upgrading test path R. If the available upgrade test path R is 0, it indicates that there is no upgrade test case at present, and the test is ended.
The method and the device for acquiring the overlay and skip version numbers between the initial version and the target version provided by the embodiment of the invention; determining an initial upgrade path between the initial version and the target version according to the relationship between the initial version and the target version; and traversing the initial upgrading path to obtain an upgrading test path by screening and reducing the covering and skipped version numbers. The subsequent test upgrading is facilitated, and the efficiency of the test upgrading is improved.
On the basis of the above embodiment, the creating an initialization test environment for the test configuration file on the cloud platform in step S13 includes:
analyzing the test configuration file to obtain configuration parameters and information of the system to be tested;
calling an SDK interface corresponding to the cloud platform software according to the configuration parameters to create a plurality of scales and cloud servers;
configuring system information under test in a plurality of cloud servers to create an initialized test environment.
Specifically, the test configuration file is analyzed to obtain configuration parameters and information of the system to be tested, and then a cloud platform Software Development Kit interface, namely a Software Development Kit (SDK) interface, is called according to the configuration parameters. The SDK is generally a set of development tools used when software engineers establish application software, such as a software package, a software framework, a hardware platform, and an operating system. The kit is actually provided by a third party service provider to realize certain functions of the software product. Corresponding to an aggregation of Application Programming Interfaces (APIs) and other files. The standby SDK can provide a perfect interface and a related development environment, a plurality of scales and cloud servers are created, the development efficiency can be improved by using the SDK, and a certain function can be accessed simply. And configuring the information of the system to be tested in the cloud server to complete the establishment of the current initialization test environment. And if the cloud platform cannot meet the establishment of the test specification, stopping the current upgrading test.
In this embodiment, the test configuration file is analyzed to obtain configuration parameters and information of the system to be tested; calling an SDK interface corresponding to the cloud platform software according to the configuration parameters to create a plurality of scales and cloud servers; configuring system information under test in a plurality of cloud servers to create an initialized test environment. The cloud servers with different scales and configurations can be created conveniently, and the SDK interface is called to improve the development efficiency.
As a preferred embodiment, the step S14 of accessing the initialization test environment and selecting the corresponding script configuration file according to the target version to obtain the use case function set includes:
identifying a target version by accessing an initialization test environment;
and selecting the corresponding script configuration file according to the target version to form a use case function set.
After the initialization test environment of the cloud platform is created, the script starts to run, a target version number is identified by accessing the initialization test environment, a corresponding script configuration file is selected to form an automatic case function set according to the target version number, the case function set comprises control tests such as a text box and a button, and a set of a search replacement operation, an insertion operation and an interface test case is obtained.
According to the embodiment, the initialization test environment is accessed, and the corresponding script configuration file is selected according to the target version to obtain the use case function set, so that the subsequent version upgrading test is facilitated. And generating a self-adaptive function set according to different version numbers so as to realize the verification of the test environment before and after upgrading.
On the basis of the above embodiment, after obtaining the use case function set in step S14, before performing the upgrade according to the upgrade test path and the use case function set in step S15, the method further includes:
and pre-burying resources and configuring a system in an initialization test environment so as to verify the upgraded target version after the upgrade is finished.
Specifically, resource pre-burying and system configuration are carried out before upgrading is carried out, the resources are environment resources established for the virtual machine, the system configuration is a simulated customer environment, and the resource pre-burying is mainly used for reserving resources for a system daemon process and components, so that even if the nodes run at full load, the phenomenon of resource contention is not caused, and the nodes are hung.
The resource pre-embedding and system configuration provided by the embodiment mainly verifies the version number after upgrading, the resource and system configuration before upgrading and simultaneously inspects the environment state after upgrading in the aspect of scripts after upgrading test is finished.
According to the embodiment, the resource pre-burying and the system configuration are carried out in the initialization test environment so that the upgraded target version can be verified after the upgrade is finished. In the upgrading process, various actual client scenes are covered based on the cloud platform, and meanwhile, the target version is convenient to upgrade and verify.
On the basis of the foregoing embodiment, after the step S15 of upgrading according to the upgrade test path and the use case function set, the method further includes:
and carrying out resource recovery on the cloud server for subsequent upgrading test.
It can be understood that resource recovery is performed on the cloud server after upgrading, and one purpose is to recover resources configured in the current version upgrading process if upgrading of the current version fails. And the other is that other generated resources are recycled in the current version upgrading process, so that the resources in the subsequent version upgrading process are prevented from being occupied.
According to the method and the device, after upgrading, resource recovery is carried out on the cloud server so as to facilitate subsequent upgrading tests. The resource waste is avoided, the space occupied by the resources is saved, and multiple upgrading tests can be completed on a limited resource platform.
On the basis of the foregoing embodiment, after the step S15 of upgrading according to the upgrade test path and the use case function set, the method further includes:
calling an SDK interface to create a snapshot for the cloud server;
collecting log information of the cloud server for subsequent verification.
Specifically, the snapshot is a backup file of a cloud disk data state at a certain event point, and if a system failure or an error operation occurs, the snapshot can be used to roll back the cloud disk, so that unnecessary loss is reduced. The cloud server snapshot is a cloud server data backup mode provided by a server provider and is used for recovering data lost due to machine failure or human misoperation. The snapshot technology is derived from the photography technology, and records the image content at the current time point; when the method is applied to the field of cloud computing storage, a snapshot technology is derived, namely, data of a specific disk is stored at a certain time point, and a data backup effect is achieved.
The snapshot can capture the state, data and hardware configuration of the running cloud server, and when the server is attacked, hung or lost due to human misoperation, the snapshot function can conveniently retrieve all the previous important files and data.
The log information of the cloud server is collected, the effect of the snapshot is similar to that of the log information, verification in the upgrading process is facilitated, and if the verification fails, specific content in the upgrading process can be checked according to the content of the log information so that subsequent upgrading tests can be facilitated.
The SDK interface is called to create a snapshot for the cloud server; and collecting the log information of the cloud server for subsequent verification, wherein the snapshot function can conveniently retrieve all previous important files and data.
On the basis that the various embodiments corresponding to the upgrade testing method based on the cloud platform are described in detail, the invention further discloses an upgrade testing device based on the cloud platform corresponding to the device method, and fig. 2 is a structural diagram of the upgrade testing device based on the cloud platform provided by the embodiment of the invention. As shown in fig. 2, the upgrade testing apparatus based on a cloud platform includes:
an obtaining module 11, configured to obtain an initial version and a target version corresponding to server virtualization software;
the determining module 12 is configured to determine an upgrade test path according to the initial version and the target version, and obtain a test configuration file according to the upgrade test path and a combination of a corresponding test scale and a corresponding test scenario;
the creating module 13 is configured to create an initialization test environment for the test configuration file on the cloud platform;
the selection module 14 is configured to select a corresponding script configuration file according to the target version to obtain a use case function set by accessing the initialization test environment;
and the upgrading module 15 is used for upgrading according to the upgrading test path and the use case function set so as to complete the upgrading test from the initial version to the target version.
Since the embodiment of the apparatus portion corresponds to the above-mentioned embodiment, the embodiment of the apparatus portion is described with reference to the embodiment of the method portion, and is not described again here.
The invention provides an upgrade testing device based on a cloud platform, which comprises an initial version and a target version, wherein the initial version and the target version correspond to server virtualization software; determining an upgrading test path according to the initial version and the target version, and combining the upgrading test path and the corresponding test scale and test scene to obtain a test configuration file; establishing an initialization test environment for the test configuration file on the cloud platform; selecting a corresponding script configuration file according to a target version to obtain a use case function set by accessing an initial test environment; and upgrading according to the upgrading test path and the use case function set to finish upgrading test from the initial version to the target version. The device further obtains a test configuration file through the determined upgrading test path, further configures a cloud platform to create an initialization test environment to specify a version system file, selects a case function set applicable to a target version according to the version function difference, and uploads and upgrades the upgrading package according to the case function set and the upgrading test path. The method and the device can realize gradual upgrade of the versions, can also realize cross upgrade of a plurality of versions, improve the upgrade speed, and simultaneously, the upgrade test versions are flexible.
Fig. 3 is a structural diagram of another cloud platform-based upgrade testing apparatus according to an embodiment of the present invention, as shown in fig. 3, the apparatus includes:
a memory 21 for storing a computer program;
and the processor 22 is used for implementing the steps of the cloud platform-based upgrade testing method when executing the computer program.
The upgrade testing device based on the cloud platform provided by the embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, or a desktop computer.
The processor 22 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The Processor 22 may be implemented in hardware using at least one of a Digital Signal Processor (DSP), a Field-Programmable Gate Array (FPGA), and a Programmable Logic Array (PLA). The processor 22 may also include a main processor and a coprocessor, the main processor being a processor for processing data in the wake state, also called CPU; a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 22 may be integrated with a Graphics Processing Unit (GPU) which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, processor 22 may also include an Artificial Intelligence (AI) processor for processing computational operations related to machine learning.
Memory 21 may include one or more computer-readable storage media, which may be non-transitory. Memory 21 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 21 is at least used for storing the following computer program 201, wherein after being loaded and executed by the processor 22, the computer program can implement the relevant steps of the cloud platform-based upgrade testing method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 21 may also include an operating system 202, data 203, and the like, and the storage manner may be a transient storage manner or a permanent storage manner. Operating system 202 may include, among other things, windows, unix, linux, etc. Data 203 may include, but is not limited to, data involved with a cloud platform-based upgrade test method, and the like.
In some embodiments, the upgrade test device based on the cloud platform may further include a display screen 23, an input/output interface 24, a communication interface 25, a power supply 26, and a communication bus 27.
Those skilled in the art will appreciate that the configuration shown in fig. 3 does not constitute a limitation of a cloud platform-based upgrade test apparatus and may include more or fewer components than those shown.
The processor 22 calls the instructions stored in the memory 21 to implement the upgrade test method based on the cloud platform provided by any one of the above embodiments.
The invention provides an upgrade testing device based on a cloud platform, which comprises an initial version and a target version, wherein the initial version and the target version correspond to server virtualization software; determining an upgrading test path according to the initial version and the target version, and combining the upgrading test path and the corresponding test scale and test scene to obtain a test configuration file; establishing an initialization test environment for the test configuration file on the cloud platform; selecting a corresponding script configuration file according to a target version to obtain a use case function set by accessing an initial test environment; and upgrading according to the upgrading test path and the use case function set so as to complete upgrading test from the initial version to the target version. The device further obtains a test configuration file through the determined upgrading test path, further configures a cloud platform to create an initialization test environment to specify a version system file, selects a case function set applicable to a target version according to the version function difference, and uploads and upgrades the upgrading package according to the case function set and the upgrading test path. The method and the device can realize gradual upgrade of the versions, can also realize cross upgrade of a plurality of versions, improve the upgrade speed, and simultaneously, the upgrade test versions are flexible.
Further, the present invention also provides a computer readable storage medium, on which a computer program is stored, and the computer program, when executed by the processor 22, implements the steps of the above-mentioned cloud platform-based upgrade testing method.
It is to be understood that if the method in the above embodiments is implemented in the form of software functional units and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and performs all or part of the steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a portable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
For the introduction of the computer-readable storage medium provided by the present invention, please refer to the above method embodiment, which is not described herein again, and has the same beneficial effects as the above cloud platform-based upgrade testing method.
As an embodiment, fig. 4 is an application schematic diagram of an upgrade testing apparatus based on a cloud platform according to another embodiment of the present invention, as shown in fig. 4, the apparatus includes a management apparatus, a scheduling apparatus, a configuration apparatus, a script apparatus, and an upgrade apparatus; after the management device determines the version to be tested of the server virtualization software, a test task is started on a test management platform, test parameters are transmitted to a scheduling device, the scheduling device analyzes configuration file information to be tested, an available upgrading path is calculated, the test parameters are transmitted to the configuration device, the configuration device configures a cloud server to install system software of a specified version by calling an SDK interface according to the received parameters, the testability of the system is verified after deployment is completed, a script device logs in the environment to be tested, the version information to be tested is obtained, relevant scripts are executed according to the version, applicable version test resources are created, the upgrading device conducts upgrading package uploading and upgrading operation according to current version information and scheduling device strategies, and the testing resource state is verified after upgrading is completed.
The effective matching of the management device, the scheduling device, the configuration device, the script device and the upgrading device is realized, and the method mainly comprises the following steps:
step 1, a scheduling device selects an upgrading test path according to the test version requirement, and an upgrading device uploads an upgrading packet according to the path;
step 2, the scheduling device schedules a test scene and a test scale, and the configuration device initializes and basic configures a test environment on the basis of a cloud server on a cloud platform;
and 3, identifying the self-adaptive function set of the test environment version by the script device, and verifying the test environment before and after upgrading.
The specific implementation process is as follows:
1) Determining an upgrade test path for upgrading to a target version number;
a. the management device receives input parameters and transmits the input parameters to the scheduling device, wherein the input parameters comprise an initial version number, a target version number, a version number needing to be covered and skipped in the middle, a software test scale M, a pressure or fault test scene parameter S and the like;
b. the dispatching device calculates all upgrading paths from the initial version number to the target version number, n (n + 1)/2, wherein n is the number of version numbers with difference from the initial version number to the target version number;
c. the scheduling device performs traversal judgment on all upgrading paths, and removes the remaining available upgrading test paths R which need to skip the version number and contain the coverage version number;
d. an upgrading test configuration file R x M x S to be tested can be formed by the upgrading test path, the test scale and the test scene;
e. the dispatching device finishes the test without an upgrading test case;
2) The configuration device installs an upgrading test case configuration file and initializes a test environment on the cloud computing platform;
a. the configuration device analyzes the configuration file, calls an SDK (software development kit) interface of a cloud computing platform according to the configuration parameters, creates cloud servers with different scales and configurations, installs a system by the cloud servers, and configures information of the system to be tested;
b. the configuration device calls the SDK to create a snapshot for the cloud server when the upgrading device finishes upgrading every time;
c. the upgrading test case completes resource recovery of the cloud server, and can complete multiple upgrading tests on a limited resource platform;
d. if the cloud computing platform cannot meet the requirement of test scale creation, the upgrading test is stopped;
3) The script device identifies the version number to be tested and automatically combines the function sets
a. After the initialization of the environment to be tested is completed, the script device runs, and the version number of the environment to be tested is identified after the environment to be tested is accessed;
b. the script device selects a corresponding script configuration file to form an automatic case function set according to the version number, and pre-embedding resources and system configuration before upgrading are executed on the environment to be tested;
c. after upgrading is completed, the script device verifies the version number after upgrading, verifies the resources and system configuration before upgrading, and meanwhile patrols the environment state after upgrading;
4) The upgrading device upgrades according to the upgrading test path selected by the scheduling device, uploads the upgrading packet and automatically executes the upgrading script;
5) After the upgrading device is upgraded, the configuration device is triggered to carry out snapshot or recovery on the cloud server, and meanwhile, the cloud server logs are collected;
for the introduction of the cloud platform based upgrade testing apparatus according to another embodiment of the present invention, please refer to the above method embodiment, which is not described herein again, and has the same beneficial effects as the above cloud platform based upgrade testing method.
The upgrade test method based on the cloud platform, the upgrade test device based on the cloud platform and the medium provided by the invention are described in detail above. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the device disclosed by the embodiment, the description is relatively simple because the device corresponds to the method disclosed by the embodiment, and the relevant points can be obtained by referring to the description of the method part. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of additional identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. An upgrade test method based on a cloud platform is characterized by comprising the following steps:
acquiring an initial version and a target version corresponding to server virtualization software;
determining an upgrading test path according to the initial version and the target version, and combining the upgrading test path, the corresponding test scale and the corresponding test scene to obtain a test configuration file;
creating an initialization test environment for the test configuration file on the cloud platform;
selecting a corresponding script configuration file according to the target version to obtain a use case function set by accessing the initialized test environment;
and upgrading according to the upgrading test path and the use case function set to finish the upgrading test from the initial version to the target version.
2. The cloud platform-based upgrade testing method according to claim 1, wherein the determining an upgrade testing path according to the initial version and the target version comprises:
acquiring the covered and skipped version numbers between the initial version and the target version;
determining an initial upgrade path between the initial version and the target version according to the relationship between the initial version and the target version;
and traversing the initial upgrading path to obtain the upgrading test path by screening and reducing the covered and skipped version numbers.
3. The cloud platform-based upgrade testing method according to claim 2, wherein the creating the test configuration file into an initialized test environment on the cloud platform comprises:
analyzing the test configuration file to obtain configuration parameters and system information to be tested;
calling an SDK interface corresponding to the cloud platform software according to the configuration parameters to create a plurality of scales and cloud servers;
configuring the system under test information in a plurality of the cloud servers to create the initialization test environment.
4. The cloud platform-based upgrade testing method according to claim 3, wherein the obtaining of the use case function set by accessing the initialization testing environment and selecting the corresponding script configuration file according to the target version comprises:
identifying the target version by accessing the initialization test environment;
and selecting a corresponding script configuration file according to the target version to form the use case function set.
5. The cloud platform-based upgrade testing method according to claim 4, wherein after obtaining the use case function set, before the upgrading according to the upgrade testing path and the use case function set, the method further includes:
and pre-burying resources and configuring a system in the initialization test environment so as to verify the upgraded target version after the upgrade is finished.
6. The cloud platform-based upgrade testing method according to claim 3, wherein after the upgrade is performed according to the upgrade testing path and the use case function set, the method further includes:
and performing resource recovery on the cloud server for subsequent upgrading test.
7. The cloud platform-based upgrade testing method according to claim 4, wherein after the upgrade is performed according to the upgrade testing path and the use case function set, the method further includes:
calling the SDK interface to create a snapshot for the cloud server;
collecting log information of the cloud server for subsequent verification.
8. The utility model provides an upgrade testing arrangement based on cloud platform which characterized in that includes:
the acquisition module is used for acquiring an initial version and a target version corresponding to the server virtualization software;
the determining module is used for determining an upgrading test path according to the initial version and the target version and obtaining a test configuration file according to the upgrading test path and the corresponding test scale and test scene combination;
the creating module is used for creating an initialized test environment for the test configuration file on the cloud platform;
the selection module is used for selecting a corresponding script configuration file according to the target version to obtain a use case function set by accessing the initialized test environment;
and the upgrading module is used for upgrading according to the upgrading test path and the use case function set so as to finish the upgrading test from the initial version to the target version.
9. The utility model provides an upgrade testing arrangement based on cloud platform which characterized in that includes:
a memory for storing a computer program;
a processor for implementing the steps of the cloud platform based upgrade testing method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, carries out the steps of the cloud platform based upgrade testing method according to any one of claims 1 to 7.
CN202210751010.3A 2022-06-29 2022-06-29 Upgrade test method, device and medium based on cloud platform Pending CN115237441A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210751010.3A CN115237441A (en) 2022-06-29 2022-06-29 Upgrade test method, device and medium based on cloud platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210751010.3A CN115237441A (en) 2022-06-29 2022-06-29 Upgrade test method, device and medium based on cloud platform

Publications (1)

Publication Number Publication Date
CN115237441A true CN115237441A (en) 2022-10-25

Family

ID=83671785

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210751010.3A Pending CN115237441A (en) 2022-06-29 2022-06-29 Upgrade test method, device and medium based on cloud platform

Country Status (1)

Country Link
CN (1) CN115237441A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116866180A (en) * 2023-07-04 2023-10-10 北京志凌海纳科技有限公司 Cluster upgrading test method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116866180A (en) * 2023-07-04 2023-10-10 北京志凌海纳科技有限公司 Cluster upgrading test method and system
CN116866180B (en) * 2023-07-04 2024-03-01 北京志凌海纳科技有限公司 Cluster upgrading test method and system

Similar Documents

Publication Publication Date Title
US10216509B2 (en) Continuous and automatic application development and deployment
US10642725B2 (en) Automated test generation for multi-interface enterprise virtualization management environment
US20210406079A1 (en) Persistent Non-Homogeneous Worker Pools
US10936476B2 (en) Regression testing of new software version and deployment
CN107733985B (en) Method and device for deploying functional components of cloud computing system
CN110096424B (en) Test processing method and device, electronic equipment and storage medium
JP6788178B2 (en) Setting support program, setting support method and setting support device
US20140081615A1 (en) Virtual systems testing
CN111198695A (en) Automatic deployment method of micro-service administration management platform and electronic equipment
US10942837B2 (en) Analyzing time-series data in an automated application testing system
CN111580926A (en) Model publishing method, model deploying method, model publishing device, model deploying device, model publishing equipment and storage medium
US9898258B2 (en) Versioning of build environment information
US10552306B2 (en) Automated test generation for multi-interface and multi-platform enterprise virtualization management environment
CN111813495B (en) Node testing method and device, storage medium and electronic device
CN111258913A (en) Automatic algorithm testing method and device, computer system and readable storage medium
CN112732587A (en) Method and device for acquiring automatic test log, electronic equipment and storage medium
CN116166525A (en) Method and device for generating test script
CN115237441A (en) Upgrade test method, device and medium based on cloud platform
CN111324519B (en) Compatibility testing method, system, device and readable storage medium
US10248554B2 (en) Embedding profile tests into profile driven feedback generated binaries
CN115617668A (en) Compatibility testing method, device and equipment
CN112596750B (en) Application testing method and device, electronic equipment and computer readable storage medium
CN116225911A (en) Function test method and device for observability platform
US11269596B2 (en) Automated microservice creation based on user interaction
CN110221952B (en) Service data processing method and device and service data processing system

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