CN113419952A - Cloud service management scene testing device and method - Google Patents

Cloud service management scene testing device and method Download PDF

Info

Publication number
CN113419952A
CN113419952A CN202110695041.7A CN202110695041A CN113419952A CN 113419952 A CN113419952 A CN 113419952A CN 202110695041 A CN202110695041 A CN 202110695041A CN 113419952 A CN113419952 A CN 113419952A
Authority
CN
China
Prior art keywords
test
virtual machine
node
creating
operation nodes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110695041.7A
Other languages
Chinese (zh)
Other versions
CN113419952B (en
Inventor
杨秋霞
栗霖
常乐
隗英英
赵斌
胡云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202110695041.7A priority Critical patent/CN113419952B/en
Publication of CN113419952A publication Critical patent/CN113419952A/en
Application granted granted Critical
Publication of CN113419952B publication Critical patent/CN113419952B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3676Test management for coverage analysis
    • 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/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a cloud service management scene testing device and method, and relates to the communication technology. According to the cloud service management scene testing method, the target scene information comprises a plurality of main testing flows and a plurality of different alternative testing flows under the cloud service management scene, each main testing flow comprises a plurality of operation nodes with a preset sequence relation, and each alternative testing flow comprises a plurality of operation nodes with a preset sequence relation. In this way, tasks corresponding to the first sub-test cases associated with the main test flows are executed respectively, and a plurality of first sub-test reports are generated; and executing tasks corresponding to the second sub-test cases associated with the alternative test flows respectively to generate a plurality of second sub-test reports. Furthermore, the operation of the cloud service platform in a certain management scene is covered by the tested content as much as possible, and the accuracy of testing the certain management scene of the cloud service platform is improved.

Description

Cloud service management scene testing device and method
Technical Field
The present disclosure relates to communications technologies, and in particular, to a cloud service management scenario testing apparatus and method.
Background
With the rapid development of cloud service technology, organizations such as governments, enterprises, companies, and the like have widely adopted a cloud service platform, such as an OpenStack cloud service platform, to manage data. Data are managed through a cloud service technology, and the data are low in construction, maintenance and operation cost, so that the cloud service technology is gradually becoming a mainstream development direction of future IT architectures. Generally, before the cloud service platform is put into use, some management scenarios of the cloud service platform need to be tested, for example, the installation deployment, the functions, the load and the like of the cloud service platform are tested, so as to avoid the cloud service platform from malfunctioning after being put into use.
At present, a management scenario for testing a cloud service platform mainly uses a Rally component, and when the Rally component tests a certain management scenario of the cloud service platform, only one basic stream is usually included. Therefore, the tested content cannot comprehensively cover all operations of the cloud service platform in a certain management scene, and further the accuracy of testing the certain management scene of the cloud service platform is low.
Disclosure of Invention
The application provides a cloud service management scene testing device and method, which are used for solving the problem of low accuracy of testing a certain management scene of a cloud service platform.
In a first aspect, the present application provides a method for testing a cloud service management scenario, where the method includes:
receiving target scene information from terminal equipment, wherein the target scene information comprises a plurality of main test flows and a plurality of different alternative test flows under a cloud service management scene, each main test flow comprises a plurality of operation nodes with a preset sequence relation, and each alternative test flow comprises a plurality of operation nodes with a preset sequence relation;
obtaining test scripts respectively corresponding to a plurality of operation nodes in each main test flow and test scripts respectively corresponding to a plurality of operation nodes in each alternative test flow;
generating a plurality of first sub-test cases based on test scripts respectively corresponding to a plurality of operation nodes in each main test flow; generating a plurality of second sub-test cases based on the test scripts respectively corresponding to the plurality of operation nodes in each alternative test flow;
respectively executing tasks corresponding to the first sub-test cases to generate a plurality of first sub-test reports; respectively executing tasks corresponding to the second sub-test cases to generate a plurality of second sub-test reports;
aggregating the plurality of first sub-test reports and the plurality of second sub-test reports to generate a test report of the cloud service management scenario.
In a second aspect, an embodiment of the present application further provides a cloud service management scenario testing apparatus, where the apparatus includes:
the information receiving unit is used for receiving target scene information from terminal equipment, wherein the target scene information comprises a plurality of main test flows and a plurality of different alternative test flows under a cloud service management scene, each main test flow comprises a plurality of operation nodes with a preset sequential relationship, and each alternative test flow comprises a plurality of operation nodes with a preset sequential relationship;
a data obtaining unit, configured to obtain test scripts corresponding to the multiple operation nodes in each main test stream, and test scripts corresponding to the multiple operation nodes in each alternative test stream;
the data generation unit is used for generating a plurality of first sub-test cases based on the test scripts respectively corresponding to the plurality of operation nodes in each main test flow; generating a plurality of second sub-test cases based on the test scripts respectively corresponding to the plurality of operation nodes in each alternative test flow;
the data generation unit is further configured to execute tasks corresponding to the first sub-test cases respectively and generate a plurality of first sub-test reports; respectively executing tasks corresponding to the second sub-test cases to generate a plurality of second sub-test reports;
and the data aggregation unit is used for aggregating the plurality of first sub-test reports and the plurality of second sub-test reports to generate the test report of the cloud service management scene.
In a third aspect, the present application further provides an electronic device, including: a memory, a processor;
a memory; a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the cloud service management scenario testing method as provided in the first aspect of the present application.
In a fourth aspect, the present application further provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when the computer-executable instructions are executed by a processor, the computer-readable storage medium is used to implement the cloud service management scenario testing method provided in the first aspect of the present application.
In a fifth aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the cloud service management scenario testing method according to the first aspect is provided.
According to the cloud service management scene testing device and method provided by the application, the target scene information comprises a plurality of main test flows and a plurality of different alternative test flows in the cloud service management scene, each main test flow comprises a plurality of operation nodes with a preset sequence relation, and each alternative test flow comprises a plurality of operation nodes with a preset sequence relation. In this way, the tasks corresponding to the first sub-test cases associated with the main test flows are executed respectively, and a plurality of first sub-test reports can be generated; and executing tasks corresponding to the second sub-test cases associated with the candidate test flows, respectively, so as to generate a plurality of second sub-test reports. And finally, aggregating the plurality of first sub-test reports and the plurality of second sub-test reports to generate a test report of a cloud service management scene. Furthermore, the test results contained in the test report of the cloud service management scene cover the operation of the cloud service platform in a certain management scene as much as possible, and further, the accuracy of testing a certain management scene of the cloud service platform is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic interaction diagram of a server and a terminal device according to an embodiment of the present application;
fig. 2 is a flowchart of a cloud service management scenario testing method provided in an embodiment of the present application;
FIG. 3 is a block diagram of a plurality of main test flows according to an embodiment of the present disclosure;
FIG. 4 is a block diagram of an embodiment of a test flow architecture;
FIG. 5 is a second schematic diagram illustrating a plurality of main test flows according to an embodiment of the present application;
FIG. 6 is a second schematic diagram of a plurality of alternative test flows according to an embodiment of the present application;
fig. 7 is a functional block diagram of a cloud service management scenario testing apparatus according to an embodiment of the present application;
fig. 8 is a block diagram of an electronic device according to an embodiment of the present application.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terms referred to in this application are explained first:
OpenStack: the method is a project and open source software, provides open source code software, establishes public and private clouds, provides an operating platform or tool set for deploying the clouds, and aims to: the cloud service system helps to organize the cloud which runs as a virtual computing or storage service, and provides extensible and flexible cloud computing for public clouds, private clouds, big clouds and small clouds. OpenStack comprises: the system comprises four parts, namely a control node, a computing node, a network node and a storage node. (these four nodes can also be installed on a single machine for stand-alone deployment). Wherein: the control node is responsible for controlling other nodes, including virtual machine establishment, migration, network allocation, storage allocation and the like; the computing node is responsible for running the virtual machine, the network node is responsible for communication between an external network and an internal network, and the storage node is responsible for extra storage management of the virtual machine and the like.
Rally tool: the OpenStack community source-opening testing tool is an OpenStack community source-opening testing tool and can be used for performing performance testing on each component of the OpenStack. By using the Rally component, a user can complete a series of actions of installation and deployment, functional verification, large-scale load test (performance test), test report output and the like of the OpenStack cloud computing platform.
Basic test flow: and completing the basic process of testing a certain business process.
Alternative test procedures: and completing the branch flow of testing a certain business flow.
The cloud service management scene testing method provided by the application aims at solving the technical problems in the prior art.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
The embodiment of the application provides a cloud service management scenario testing method, which is applied to a server 100. As shown in fig. 1, the server 100 is communicatively connected with the terminal device 200 for data interaction. As shown in fig. 2, the method includes:
s21: the server 100 receives the object scene information from the terminal device 200. The target scene information comprises a plurality of main test flows and a plurality of different alternative test flows in a cloud service management scene, each main test flow comprises a plurality of operation nodes with a preset sequence relation, and each alternative test flow comprises a plurality of operation nodes with a preset sequence relation.
In which the user can input the object scene information at the terminal device 200, and then the terminal device 200 can transmit the object scene information to the server 100.
In one possible implementation, the cloud service management scenario may be a scenario in which a virtual machine is created. As shown in fig. 3, the plurality of main test flows includes: a first main test flow 301, a second main test flow 302, a third main test flow 303, and a fourth main test flow 304. The plurality of operation nodes having a preset sequential relationship in the first main test flow 301 sequentially are: creating a virtual network node, configuring a virtual machine specification parameter node, creating a virtual machine mirror image node and creating a virtual machine node; the plurality of operation nodes having the preset sequential relationship in the second main test flow 302 are: creating a virtual machine mirror image node, configuring a virtual machine specification parameter node, creating a virtual network node and creating a virtual machine node; the plurality of operation nodes having the preset sequential relationship in the third main test flow 303 are: configuring a virtual machine specification parameter node, creating a virtual machine mirror image node, creating a virtual network node and creating a virtual machine node; the plurality of operation nodes having the preset sequential relationship in the fourth main test flow 304 are: creating a virtual network node, configuring a virtual machine specification parameter node, creating a virtual machine image node, and creating a virtual machine node.
Additionally, as shown in fig. 4, the plurality of alternative test flows may include: a first alternative test flow 401, a second alternative test flow 402, a third alternative test flow 403, and a fourth alternative test flow 404. The plurality of operation nodes having a preset sequential relationship in the first candidate test stream 401 sequentially are: configuring a virtual machine specification parameter node, creating a virtual machine mirror image node, configuring a virtual machine login password node, creating a virtual network node, and creating a virtual machine node. The plurality of operation nodes having the preset sequential relationship in the second candidate test stream 402 are: configuring a virtual machine specification parameter node, configuring a virtual machine key pair node, creating a virtual machine image node, creating a virtual network node, and creating a virtual machine node. The plurality of operation nodes having the preset sequential relationship in the third candidate test flow 403 are: configuring a virtual machine specification parameter node, creating a virtual machine image node, configuring a virtual machine key pair node, creating a virtual network node, and creating a virtual machine node. The plurality of operation nodes having the preset sequential relationship in the fourth candidate test stream 404 are in turn: configuring a virtual machine specification parameter node, creating a virtual machine mirror image node, creating a virtual network node, creating a virtual machine node, and adding a virtual machine to a security virtual machine group node.
In another embodiment, the cloud service management scenario is a virtual machine image management scenario. As shown in fig. 5, the plurality of main test flows includes: a fifth main test flow 501 and a sixth main test flow 502. The plurality of operation nodes having a preset sequential relationship in the fifth main test flow 501 are: creating a linux type virtual machine image node, updating the linux type virtual machine image node, and deleting the linux type virtual machine image node; the plurality of operation nodes having the preset sequential relationship in the sixth main test flow 502 are: creating a virtual machine mirror image node of the windows type, updating the virtual machine mirror image node of the windows type, and deleting the virtual machine mirror image node of the windows type.
As shown in fig. 6, the plurality of alternative test flows includes: a fifth alternative test flow 601, a sixth alternative test flow 602, and a seventh alternative test flow 603; the plurality of operation nodes having the preset sequential relationship in the fifth candidate test stream 601 are: creating a linux type virtual machine image node, updating the linux type virtual machine image node, and updating the linux type virtual machine image node again; the plurality of operation nodes having a preset sequential relationship in the sixth alternative test flow 602 are in turn: creating a virtual machine mirror image node of the windows type, updating the virtual machine mirror image node of the windows type, and updating the virtual machine mirror image node of the windows type again; the plurality of operation nodes having the preset sequential relationship in the seventh candidate test flow 603 are in turn: creating a virtual machine mirror image node of the windows type, updating the virtual machine mirror image node of the windows type, and outputting the virtual machine mirror image node of the windows type.
S22: the server 100 obtains test scripts respectively corresponding to the plurality of operation nodes in each main test flow, and obtains test scripts respectively corresponding to the plurality of operation nodes in each alternative test flow.
Specifically, the manner of obtaining the test script may specifically include:
step 1: for each operation node, judging whether a preset database has a test script corresponding to the operation node, if so, executing the step 2; if not, step 3 is executed.
Step 2: and extracting the test script corresponding to the operation node from a preset database.
And step 3: and outputting prompt information to the terminal device 200, wherein the prompt information is used for indicating that the preset database does not have the test script corresponding to the operation node.
And 4, step 4: and receiving the test script corresponding to the operating node from the terminal device 200.
How to obtain the test script is illustrated below with respect to steps 1-4:
for example, when the operation node is a node for configuring the specification parameters of the virtual machine, whether a test script for configuring the specification parameters of the virtual machine exists in a preset database is judged. And if so, extracting a test script for configuring the specification parameters of the virtual machine. If not, a text prompt message of "no script exists" is output to the terminal device 200. After the terminal device 200 refers to the text prompt information of "no script", the user may input a test script configuring the specification parameters of the virtual machine. Further, the terminal device 200 may transmit a test script configuring the virtual machine specification parameters to the server 100, and thus, the server 100 acquires the test script configuring the virtual machine specification parameters.
In addition, the server 100 may also send a test script corresponding to each operation node to the terminal device 200; the terminal device 200 displays the received test script corresponding to each operation node. In this way, the user can refer to the test script corresponding to each operation node through the terminal device 200. When the user has a modification demand for the test script corresponding to one of the operation nodes, a modification instruction may be sent to the server 100 through the terminal device 200. The server 100 receives a modification instruction from one of the test scripts of the terminal device 200, and modifies the test script.
S23: the server 100 generates a plurality of first sub-test cases based on the test scripts respectively corresponding to the plurality of operation nodes in each main test flow; and generating a plurality of second sub-test cases based on the test scripts respectively corresponding to the plurality of operation nodes in each alternative test flow.
S24: the server 100 executes tasks corresponding to the first sub-test cases respectively to generate a plurality of first sub-test reports; and executing tasks corresponding to the second sub-test cases respectively to generate a plurality of second sub-test reports.
Next, still taking the above-mentioned cloud service management scenario as a scenario for creating a virtual machine as an example, how to generate a plurality of first sub-test reports and a plurality of second sub-test reports is described.
The server 100 sequentially executes the steps of creating a virtual network node, configuring a virtual machine specification parameter node, creating a virtual machine mirror image node and creating a virtual machine node, and generates a first sub-test report; the server 100 sequentially executes the virtual machine mirror image node creation, the virtual machine specification parameter node configuration, the virtual network node creation and the virtual machine node creation to generate a first sub-test report; the server 100 sequentially executes configuration of a specification parameter node of the virtual machine, creation of a mirror image node of the virtual machine, creation of a virtual network node and creation of a virtual machine node, and generates a first sub-test report; the server 100 sequentially executes the creation of a virtual network node, the configuration of a virtual machine specification parameter node, the creation of a virtual machine mirror image node, and the creation of a virtual machine node, and generates a first sub-test report.
The server 100 sequentially executes configuration of the specification parameter node of the virtual machine, creation of the mirror image node of the virtual machine, configuration of the login password node of the virtual machine, creation of the virtual network node and creation of the virtual machine node, and generates a second sub-test report. The server 100 sequentially executes configuration of the virtual machine specification parameter node, configuration of the virtual machine key pair node, creation of the virtual machine image node, creation of the virtual network node, and creation of the virtual machine node, and generates a second sub-test report. The server 100 sequentially executes configuration of the specification parameter node of the virtual machine, creation of the mirror image node of the virtual machine, configuration of the key pair node of the virtual machine, creation of the virtual network node and creation of the virtual machine node, and generates a second sub-test report. The server 100 sequentially executes configuration of the specification parameter nodes of the virtual machines, creation of the mirror image nodes of the virtual machines, creation of the virtual network nodes, creation of the virtual machine nodes, and addition of the virtual machines into the security virtual machine group nodes, and generates a second sub-test report.
S25: the server 100 aggregates the plurality of first sub-test reports and the plurality of second sub-test reports to generate a test report of the cloud service management scenario.
It is understood that the test report of the aggregated cloud service management scenario includes the contents of the plurality of first sub-test reports and the contents of the plurality of second sub-test reports.
In addition, the above-mentioned S21-S25 may be executed by a Rally tool, or may be executed separately from the Rally tool, which is not limited herein.
Referring to fig. 7, the present application further provides a cloud service management scenario testing apparatus 700 applied to the server 100. As shown in fig. 1, the server 100 is communicatively connected with the terminal device 200 for data interaction. It should be noted that the basic principle and the generated technical effect of the cloud service management scenario testing apparatus 700 provided in the embodiment of the present application are the same as those of the foregoing embodiment, and for a brief description, for the sake of brevity, reference may be made to the corresponding contents in the foregoing embodiment. The apparatus 700 includes an information receiving unit 701, a data acquiring unit 702, a data generating unit 703, and a data aggregating unit 704.
An information receiving unit 701 configured to receive target scene information from the terminal device 200.
The target scene information comprises a plurality of main test flows and a plurality of different alternative test flows in a cloud service management scene, each main test flow comprises a plurality of operation nodes with a preset sequence relation, and each alternative test flow comprises a plurality of operation nodes with a preset sequence relation.
In one possible implementation, the cloud service management scenario may be a scenario in which a virtual machine is created. As shown in fig. 3, the plurality of main test flows includes: a first main test flow 301, a second main test flow 302, a third main test flow 303, and a fourth main test flow 304. The plurality of operation nodes having a preset sequential relationship in the first main test flow 301 sequentially are: creating a virtual network node, configuring a virtual machine specification parameter node, creating a virtual machine mirror image node and creating a virtual machine node; the plurality of operation nodes having the preset sequential relationship in the second main test flow 302 are: creating a virtual machine mirror image node, configuring a virtual machine specification parameter node, creating a virtual network node and creating a virtual machine node; the plurality of operation nodes having the preset sequential relationship in the third main test flow 303 are: configuring a virtual machine specification parameter node, creating a virtual machine mirror image node, creating a virtual network node and creating a virtual machine node; the plurality of operation nodes having the preset sequential relationship in the fourth main test flow 304 are: creating a virtual network node, configuring a virtual machine specification parameter node, creating a virtual machine image node, and creating a virtual machine node.
Additionally, as shown in fig. 4, the plurality of alternative test flows may include: a first alternative test flow 401, a second alternative test flow 402, a third alternative test flow 403, and a fourth alternative test flow 404. The plurality of operation nodes having a preset sequential relationship in the first candidate test stream 401 sequentially are: configuring a virtual machine specification parameter node, creating a virtual machine mirror image node, configuring a virtual machine login password node, creating a virtual network node, and creating a virtual machine node. The plurality of operation nodes having the preset sequential relationship in the second candidate test stream 402 are: configuring a virtual machine specification parameter node, configuring a virtual machine key pair node, creating a virtual machine image node, creating a virtual network node, and creating a virtual machine node. The plurality of operation nodes having the preset sequential relationship in the third candidate test flow 403 are: configuring a virtual machine specification parameter node, creating a virtual machine image node, configuring a virtual machine key pair node, creating a virtual network node, and creating a virtual machine node. The plurality of operation nodes having the preset sequential relationship in the fourth candidate test stream 404 are in turn: configuring a virtual machine specification parameter node, creating a virtual machine mirror image node, creating a virtual network node, creating a virtual machine node, and adding a virtual machine to a security virtual machine group node.
In another embodiment, the cloud service management scenario is a virtual machine image management scenario. As shown in fig. 5, the plurality of main test flows includes: a fifth main test flow 501 and a sixth main test flow 502. The plurality of operation nodes having a preset sequential relationship in the fifth main test flow 501 are: creating a linux type virtual machine image node, updating the linux type virtual machine image node, and deleting the linux type virtual machine image node; the plurality of operation nodes having the preset sequential relationship in the sixth main test flow 502 are: creating a virtual machine mirror image node of the windows type, updating the virtual machine mirror image node of the windows type, and deleting the virtual machine mirror image node of the windows type.
As shown in fig. 6, the plurality of alternative test flows includes: a fifth alternative test flow 601, a sixth alternative test flow 602, and a seventh alternative test flow 603; the plurality of operation nodes having the preset sequential relationship in the fifth candidate test stream 601 are: creating a linux type virtual machine image node, updating the linux type virtual machine image node, and updating the linux type virtual machine image node again; the plurality of operation nodes having a preset sequential relationship in the sixth alternative test flow 602 are in turn: creating a virtual machine mirror image node of the windows type, updating the virtual machine mirror image node of the windows type, and updating the virtual machine mirror image node of the windows type again; the plurality of operation nodes having the preset sequential relationship in the seventh candidate test flow 603 are in turn: creating a virtual machine mirror image node of the windows type, updating the virtual machine mirror image node of the windows type, and outputting the virtual machine mirror image node of the windows type.
A data obtaining unit 702, configured to obtain test scripts corresponding to the multiple operation nodes in each main test flow respectively, and obtain test scripts corresponding to the multiple operation nodes in each alternative test flow respectively.
Specifically, the data obtaining unit 702 may be specifically configured to, for each operation node, determine whether a test script corresponding to the operation node exists in a preset database; if the test script corresponding to the operation node exists, extracting the test script corresponding to the operation node from a preset database; if the test script corresponding to the operation node does not exist, outputting prompt information to the terminal device 200, wherein the prompt information is used for indicating that the preset database does not have the test script corresponding to the operation node; and receiving the test script corresponding to the operating node from the terminal device 200.
In addition, the information receiving unit 701 is further configured to send a test script corresponding to each operation node to the terminal device 200. The apparatus 700 may further comprise: and a data modification unit for receiving a modification instruction from one of the test scripts of the terminal device 200 to modify the test script.
The data generating unit 703 is configured to generate a plurality of first sub-test cases based on test scripts respectively corresponding to the plurality of operation nodes in each main test stream; and generating a plurality of second sub-test cases based on the test scripts respectively corresponding to the plurality of operation nodes in each alternative test flow.
The data generating unit 703 is further configured to execute tasks corresponding to the plurality of first sub-test cases, respectively, and generate a plurality of first sub-test reports; and executing tasks corresponding to the second sub-test cases respectively to generate a plurality of second sub-test reports.
A data aggregation unit 704, configured to aggregate the plurality of first sub-test reports and the plurality of second sub-test reports, and generate a test report of a cloud service management scenario.
Fig. 8 is a schematic structural diagram of an electronic device provided in an embodiment of the present application. Referring to fig. 8, at a hardware level, the electronic device includes a processor, and optionally further includes an internal bus, a network interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services. For example, the electronic device may be a server.
The processor, the network interface, and the memory may be connected to each other via an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 8, but that does not indicate only one bus or one type of bus.
And the memory is used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory may include both memory and non-volatile storage and provides instructions and data to the processor.
And the processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program, and the method for testing the cloud service management scene is formed on a logic level. The processor is used for executing the program stored in the memory and is specifically used for executing the following operations:
receiving target scene information from terminal equipment, wherein the target scene information comprises a plurality of main test flows and a plurality of different alternative test flows under a cloud service management scene, each main test flow comprises a plurality of operation nodes with a preset sequence relation, and each alternative test flow comprises a plurality of operation nodes with a preset sequence relation;
obtaining test scripts respectively corresponding to a plurality of operation nodes in each main test flow and test scripts respectively corresponding to a plurality of operation nodes in each alternative test flow;
generating a plurality of first sub-test cases based on test scripts respectively corresponding to a plurality of operation nodes in each main test flow; generating a plurality of second sub-test cases based on the test scripts respectively corresponding to the plurality of operation nodes in each alternative test flow;
respectively executing tasks corresponding to the first sub-test cases to generate a plurality of first sub-test reports; respectively executing tasks corresponding to the second sub-test cases to generate a plurality of second sub-test reports;
aggregating the plurality of first sub-test reports and the plurality of second sub-test reports to generate a test report of the cloud service management scenario.
The method executed by the cloud service management scenario testing apparatus according to the embodiment shown in fig. 2 of the present application may be applied to a processor, or implemented by the processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in this application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in this application may be directly implemented by a hardware decoding processor, or may be implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
The electronic device may also execute the method of fig. 2, and implement the functions of the cloud service management scenario testing apparatus in the embodiment shown in fig. 2, which are not described herein again.
Of course, besides the software implementation, the electronic device of the present application does not exclude other implementations, such as a logic device or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or a logic device.
The present application also proposes a computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by an electronic device comprising a plurality of application programs, are capable of causing the electronic device to perform the method of the embodiment shown in fig. 2.
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, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
The present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the method for testing a cloud service management scenario as shown in fig. 2 of the present application is implemented.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. A cloud service management scenario testing method is characterized by comprising the following steps:
receiving target scene information from terminal equipment, wherein the target scene information comprises a plurality of main test flows and a plurality of different alternative test flows under a cloud service management scene, each main test flow comprises a plurality of operation nodes with a preset sequence relation, and each alternative test flow comprises a plurality of operation nodes with a preset sequence relation;
obtaining test scripts respectively corresponding to a plurality of operation nodes in each main test flow and test scripts respectively corresponding to a plurality of operation nodes in each alternative test flow;
generating a plurality of first sub-test cases based on test scripts respectively corresponding to a plurality of operation nodes in each main test flow; generating a plurality of second sub-test cases based on the test scripts respectively corresponding to the plurality of operation nodes in each alternative test flow;
respectively executing tasks corresponding to the first sub-test cases to generate a plurality of first sub-test reports; respectively executing tasks corresponding to the second sub-test cases to generate a plurality of second sub-test reports;
aggregating the plurality of first sub-test reports and the plurality of second sub-test reports to generate a test report of the cloud service management scenario.
2. The method of claim 1, wherein the cloud service management scenario is a scenario of creating a virtual machine, and wherein the plurality of main test flows comprise: a first main test flow, a second main test flow, a third main test flow, and a fourth main test flow;
the plurality of operation nodes with the preset sequence relation in the first main test flow are sequentially as follows: creating a virtual network node, configuring a virtual machine specification parameter node, creating a virtual machine mirror image node and creating a virtual machine node;
the plurality of operation nodes with the preset sequence relation in the second main test flow are sequentially as follows: creating a virtual machine mirror image node, configuring a virtual machine specification parameter node, creating a virtual network node and creating a virtual machine node;
the plurality of operation nodes having the preset sequential relationship in the third main test flow are sequentially: configuring a virtual machine specification parameter node, creating a virtual machine mirror image node, creating a virtual network node and creating a virtual machine node;
the plurality of operation nodes having the preset sequential relationship in the fourth main test flow are sequentially: creating a virtual network node, configuring a virtual machine specification parameter node, creating a virtual machine image node, and creating a virtual machine node.
3. The method according to claim 1 or 2, wherein the cloud service management scenario is a scenario of creating a virtual machine, and the plurality of alternative test flows comprise: a first candidate test flow, a second candidate test flow, a third candidate test flow, and a fourth candidate test flow;
the plurality of operation nodes with the preset sequence relation in the first candidate test flow are sequentially as follows: configuring a virtual machine specification parameter node, creating a virtual machine mirror image node, configuring a virtual machine login password node, creating a virtual network node and creating a virtual machine node;
the plurality of operation nodes having the preset sequential relationship in the second candidate test stream are sequentially: configuring a virtual machine specification parameter node, configuring a virtual machine key pair node, creating a virtual machine mirror image node, creating a virtual network node and creating a virtual machine node;
the plurality of operation nodes having the preset sequential relationship in the third candidate test stream are sequentially: configuring a virtual machine specification parameter node, creating a virtual machine mirror image node, configuring a virtual machine key pair node, creating a virtual network node and creating a virtual machine node;
the plurality of operation nodes having the preset sequential relationship in the fourth candidate test stream are sequentially: configuring a virtual machine specification parameter node, creating a virtual machine mirror image node, creating a virtual network node, creating a virtual machine node, and adding a virtual machine to a security virtual machine group node.
4. The method of claim 1, wherein the cloud service management scenario is a virtual machine image management scenario, and wherein the plurality of primary test flows comprise: a fifth main test flow and a sixth main test flow;
the plurality of operation nodes having a preset sequential relationship in the fifth main test stream are: creating a linux type virtual machine image node, updating the linux type virtual machine image node, and deleting the linux type virtual machine image node;
the plurality of operation nodes having a preset sequential relationship in the sixth main test flow sequentially are: creating a virtual machine mirror image node of the windows type, updating the virtual machine mirror image node of the windows type, and deleting the virtual machine mirror image node of the windows type.
5. The method according to claim 1 or 4, wherein the cloud service management scenario is a scenario for managing virtual machine images, and the plurality of alternative test flows include: a fifth alternative test flow, a sixth alternative test flow, and a seventh alternative test flow;
the plurality of operation nodes having the preset sequential relationship in the fifth candidate test stream are sequentially: creating a linux type virtual machine image node, updating the linux type virtual machine image node, and updating the linux type virtual machine image node again;
the plurality of operation nodes having the preset sequential relationship in the sixth alternative test flow sequentially are: creating a virtual machine mirror image node of the windows type, updating the virtual machine mirror image node of the windows type, and updating the virtual machine mirror image node of the windows type again;
the plurality of operation nodes having the preset sequential relationship in the seventh candidate test stream are sequentially: creating a virtual machine mirror image node of the windows type, updating the virtual machine mirror image node of the windows type, and outputting the virtual machine mirror image node of the windows type.
6. The method according to claim 1, wherein the obtaining of the test scripts respectively corresponding to the plurality of operation nodes in each of the main test flows and the test scripts respectively corresponding to the plurality of operation nodes in each of the alternative test flows comprises:
for each operation node, judging whether a test script corresponding to the operation node exists in a preset database or not;
if the test script corresponding to the operation node exists, extracting the test script corresponding to the operation node from a preset database;
if the test script corresponding to the operation node does not exist, outputting prompt information to the terminal equipment, wherein the prompt information is used for indicating that the test script corresponding to the operation node does not exist in the preset database;
and receiving a test script corresponding to the operation node from the terminal equipment.
7. The method according to claim 1, wherein in the obtaining of the test scripts corresponding to the plurality of operation nodes in each of the main test flows and the test scripts corresponding to the plurality of operation nodes in each of the alternative test flows, the method further comprises:
sending a test script corresponding to each operation node to the terminal equipment;
and receiving a modification instruction from one of the test scripts of the terminal equipment, and modifying the test script.
8. A cloud service management scenario testing apparatus, the apparatus comprising:
the information receiving unit is used for receiving target scene information from terminal equipment, wherein the target scene information comprises a plurality of main test flows and a plurality of different alternative test flows under a cloud service management scene, each main test flow comprises a plurality of operation nodes with a preset sequential relationship, and each alternative test flow comprises a plurality of operation nodes with a preset sequential relationship;
a data obtaining unit, configured to obtain test scripts corresponding to the multiple operation nodes in each main test stream, and test scripts corresponding to the multiple operation nodes in each alternative test stream;
the data generation unit is used for generating a plurality of first sub-test cases based on the test scripts respectively corresponding to the plurality of operation nodes in each main test flow; generating a plurality of second sub-test cases based on the test scripts respectively corresponding to the plurality of operation nodes in each alternative test flow;
the data generation unit is further configured to execute tasks corresponding to the first sub-test cases respectively and generate a plurality of first sub-test reports; respectively executing tasks corresponding to the second sub-test cases to generate a plurality of second sub-test reports;
and the data aggregation unit is used for aggregating the plurality of first sub-test reports and the plurality of second sub-test reports to generate the test report of the cloud service management scene.
9. An electronic device, comprising: a memory, a processor;
a memory; a memory for storing the processor-executable instructions;
wherein the processor is configured to perform the cloud service management scenario testing method of any of claims 1-7.
10. A computer-readable storage medium having computer-executable instructions stored therein, which when executed by a processor, are configured to implement the cloud service management scenario testing method of any one of claims 1 to 7.
CN202110695041.7A 2021-06-22 2021-06-22 Cloud service management scene testing device and method Active CN113419952B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110695041.7A CN113419952B (en) 2021-06-22 2021-06-22 Cloud service management scene testing device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110695041.7A CN113419952B (en) 2021-06-22 2021-06-22 Cloud service management scene testing device and method

Publications (2)

Publication Number Publication Date
CN113419952A true CN113419952A (en) 2021-09-21
CN113419952B CN113419952B (en) 2023-06-27

Family

ID=77716172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110695041.7A Active CN113419952B (en) 2021-06-22 2021-06-22 Cloud service management scene testing device and method

Country Status (1)

Country Link
CN (1) CN113419952B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114095343A (en) * 2021-11-18 2022-02-25 深圳壹账通智能科技有限公司 Disaster recovery method, device, equipment and storage medium based on double-active system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170063573A1 (en) * 2015-08-28 2017-03-02 Vmware, Inc. Optimizing connectivity between data centers in a hybrid cloud computing system
CN107704392A (en) * 2017-09-30 2018-02-16 华为技术有限公司 The processing method and server of a kind of test case
US10678666B1 (en) * 2011-09-07 2020-06-09 Innovative Defense Technologies, LLC Method and system for implementing automated test and retest procedures in a virtual test environment
CN111444104A (en) * 2020-04-01 2020-07-24 山东汇贸电子口岸有限公司 OpenStack function test method
CN111813495A (en) * 2020-06-12 2020-10-23 北京金山云网络技术有限公司 Node testing method and device, storage medium and electronic device
CN112579399A (en) * 2020-12-28 2021-03-30 上海蓝云网络科技有限公司 Cloud service testing method and device, electronic equipment and computer storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10678666B1 (en) * 2011-09-07 2020-06-09 Innovative Defense Technologies, LLC Method and system for implementing automated test and retest procedures in a virtual test environment
US20170063573A1 (en) * 2015-08-28 2017-03-02 Vmware, Inc. Optimizing connectivity between data centers in a hybrid cloud computing system
CN107704392A (en) * 2017-09-30 2018-02-16 华为技术有限公司 The processing method and server of a kind of test case
CN111444104A (en) * 2020-04-01 2020-07-24 山东汇贸电子口岸有限公司 OpenStack function test method
CN111813495A (en) * 2020-06-12 2020-10-23 北京金山云网络技术有限公司 Node testing method and device, storage medium and electronic device
CN112579399A (en) * 2020-12-28 2021-03-30 上海蓝云网络科技有限公司 Cloud service testing method and device, electronic equipment and computer storage medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
3PILLAR GLOBAL: "HOW TO MANAGE QA ACTIVITIES WITH RALLY", pages 1 - 15, Retrieved from the Internet <URL:https://www.3pillarglobal.com/insights/blog-posts/how-to-manage-qa-activities-with-rally/> *
HONGYANG CHEN等: "A Framework of Virtual War Room and Matrix Sketch-Based Streaming Anomaly Detection for Microservice Systems", IEEE ACCESS, vol. 8, pages 43413, XP011777620, DOI: 10.1109/ACCESS.2020.2977464 *
云物互联: "OpenStack Rally 质量评估与自动化测试利器", pages 1 - 8, Retrieved from the Internet <URL:https://www.cnblogs.com/jmilkfan-fanguiju/p/10589755.html> *
故郷の雲: "云框架研究:openstack基准测试框架rally", pages 1 - 6, Retrieved from the Internet <URL:https://blog.csdn.net/xiaxianba/article/details/105067252> *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114095343A (en) * 2021-11-18 2022-02-25 深圳壹账通智能科技有限公司 Disaster recovery method, device, equipment and storage medium based on double-active system

Also Published As

Publication number Publication date
CN113419952B (en) 2023-06-27

Similar Documents

Publication Publication Date Title
US20190236000A1 (en) Distributed system test device
US9898395B2 (en) Unit-level formal verification for vehicular software systems
CN109299015B (en) Software testing method, device and system
WO2022016847A1 (en) Automatic test method and device applied to cloud platform
CN111290941A (en) Method and device for testing multiple interfaces, computing equipment and medium
CN110806971A (en) Version testing method and device and electronic equipment
CN110086872B (en) Data processing method and system of SCADA system
CN108334340B (en) Cross-environment data communication method, device and system
CN110851207B (en) State transition management method and device, electronic equipment and storage medium
CN108390786B (en) Business operation and maintenance method and device and electronic equipment
US11663113B2 (en) Real time fault localization using combinatorial test design techniques and test case priority selection
CN113419952B (en) Cloud service management scene testing device and method
CN114328250A (en) Automatic self-checking method, medium and device for software system
CN112650689A (en) Test method, test device, electronic equipment and storage medium
CN114676030A (en) System test method, device, proxy server equipment and storage medium
CN115051824B (en) Vertical override detection method, system, equipment and storage medium
CN112506781B (en) Test monitoring method, device, electronic equipment, storage medium and program product
CN105094773B (en) The method for reusing and system of functions of modules
CN113726855A (en) Service aggregation method, device, electronic equipment and computer-readable storage medium
CN115269374A (en) Test method, test device, electronic equipment and computer storage medium
CN109324966B (en) Test script generation and execution method and device
US20170200012A1 (en) Application Modification Based on a Security Vulnerability
CN118158135A (en) Cluster performance test method and device, electronic equipment and computer readable storage medium
CN115016893A (en) Kubernetes-based block chain deployment method and device
CN114253931A (en) Method, apparatus, device, medium, and program product for cloud-on-resource

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant