CN111767226A - Method, system and equipment for testing cloud computing platform resources - Google Patents

Method, system and equipment for testing cloud computing platform resources Download PDF

Info

Publication number
CN111767226A
CN111767226A CN202010611086.7A CN202010611086A CN111767226A CN 111767226 A CN111767226 A CN 111767226A CN 202010611086 A CN202010611086 A CN 202010611086A CN 111767226 A CN111767226 A CN 111767226A
Authority
CN
China
Prior art keywords
test
resource
testing
current
tested
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
CN202010611086.7A
Other languages
Chinese (zh)
Other versions
CN111767226B (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.)
Shanghai Zstack Information Technology Co ltd
Original Assignee
Shanghai Zstack Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Zstack Information Technology Co ltd filed Critical Shanghai Zstack Information Technology Co ltd
Priority to CN202010611086.7A priority Critical patent/CN111767226B/en
Publication of CN111767226A publication Critical patent/CN111767226A/en
Application granted granted Critical
Publication of CN111767226B publication Critical patent/CN111767226B/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/3684Test management for test design, e.g. generating new test cases

Abstract

The method comprises the steps of generating a test case description file according to a preset environment, resources to be tested and test actions; generating a test case list based on the test case description file, wherein the preset environment and the test action combination corresponding to each test case in the test case list are covered at least once; converting each test case in the test case list into a test script file one by one according to a preset grammatical structure; and testing the resource to be tested according to the current testing condition and the testing script file. Therefore, as many cloud platform resource test combinations as possible are covered by as few test case sets as possible, and the development test efficiency is greatly improved.

Description

Method, system and equipment for testing cloud computing platform resources
Technical Field
The application relates to the field of computers, in particular to a method, a system and equipment for testing cloud computing platform resources.
Background
In a common idea of designing test cases, the more complete and detailed the coverage of the test cases are, the better the test cases are, however, in the test for cloud computing platform resources, because the cloud computing resources have complex program paths and function scenes, the test cases cannot be exhaustive and complete and comprehensive test possibilities cannot be designed, and then, whether software defects exist in the untested fields cannot be determined. And the development and execution efficiency of the test case can be greatly reduced by the huge test set.
The testing of the cloud computing platform resources not only needs to consider the testing of single resources, but also needs to consider a combination scenario among different resources. While such a combination scenario as the amount of resources increases, all combinations will not be exhaustive, which will become very difficult for testing of cloud computing platforms. In the existing cloud computing testing framework, one part is unit testing based on an API level, and the testing only aims at a program interface and cannot cover a complex scene; the other part is integrated test, a specific test case is developed according to a known scene, the pre-designed test case can only cover one part of the most common fields, and aiming at the inexhaustible test combination of cloud computing platform resources, the test coverage is limited, and the development and test efficiency is low.
Disclosure of Invention
An object of the present application is to provide a method, a system, and a device for testing cloud computing platform resources, which solve the problems in the prior art that inexhaustible test combinations for cloud computing platform resources are difficult to be fully covered and the development and testing efficiency is low.
According to one aspect of the application, a method for testing cloud computing platform resources is provided, and the method comprises the following steps:
generating a test case description file according to a preset environment, a resource to be tested and a test action;
generating a test case list based on the test case description file, wherein the preset environment and the test action combination corresponding to each test case in the test case list are covered at least once;
converting each test case in the test case list into a test script file one by one according to a preset grammatical structure;
and testing the resource to be tested according to the current testing condition and the testing script file.
Further, the testing the resource to be tested according to the current test condition and the test script file includes:
judging whether the current test condition is consistent with the test script file, if so, testing the resource to be tested according to the test script file;
and checking whether the current state of the tested resource and the data are correct or not, and if not, re-performing the test.
Further, the generating a test case description file according to the preset environment, the resource to be tested and the test action includes:
determining a corresponding label according to the resource to be tested, and generating a test action combination based on the resource to be tested, the test action and the label;
and generating the test case description file based on the preset environment and the test action combination, wherein the preset environment comprises a storage type and a network type.
Further, the step of converting each test case in the test case list into a test script file one by one according to a preset syntactic structure includes:
and converting each test case in the test case list into a test script file one by one according to the grammar structure of the script language based on the test action, the test object and the label.
Further, the method comprises:
judging whether the current test condition is consistent with the test script file or not, if not, correcting the current test condition according to the test script file;
and testing the resource to be tested based on the test script file and the corrected current test condition.
Further, the determining whether the current test condition is consistent with the test script file includes:
judging whether the current test environment is consistent with the preset environment or not;
and judging whether the current resource is consistent with the resource to be tested.
Further, the modifying the current test condition according to the test script file includes:
correcting the current testing environment according to the preset environment so as to enable the current testing environment to be consistent with the preset environment;
and correcting the current resource according to the resource to be tested so as to enable the current resource to be consistent with the resource to be tested.
According to another aspect of the present application, there is also provided a system for testing cloud computing platform resources, the system including a generating module, a data processing module, a translating module, and a testing module, wherein:
the generating module is used for generating a test case description file according to a preset environment, a resource to be tested and a test action;
the data processing module is used for generating a test case list based on the test case description file, wherein the preset environment and the test action combination corresponding to each test case in the test case list are covered at least once;
the translation module is used for converting each test case in the test case list into a test script file one by one according to a preset syntactic structure;
and the testing module tests the resource to be tested according to the current testing condition and the testing script file.
Further, the test module comprises a verification unit and a verification unit, wherein,
the checking unit is used for judging whether the current test condition is consistent with the test script file or not, and if so, testing the resource to be tested according to the test script file;
the checking unit is used for checking whether the current state of the tested resource and the data are correct or not, and if not, the testing is carried out again.
According to yet another aspect of the present application, there is also provided a computer readable medium having stored thereon computer readable instructions executable by a processor to implement a method for testing cloud computing platform resources as described in any one of the preceding.
According to another aspect of the present application, there is also provided a testing apparatus for cloud computing platform resources, the apparatus including:
one or more processors; and
memory storing computer readable instructions that, when executed, cause the processor to perform the operations of a method of testing cloud computing platform resources as described in any preceding claim.
Compared with the prior art, the test case description file is generated according to the preset environment, the resource to be tested and the test action; generating a test case list based on the test case description file, wherein the preset environment and the test action combination corresponding to each test case in the test case list are covered at least once; converting each test case in the test case list into a test script file one by one according to a preset grammatical structure; and testing the resource to be tested according to the current testing condition and the testing script file. Therefore, as many cloud platform resource test combinations as possible are covered by as few test case sets as possible, and the development test efficiency is greatly improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 illustrates a flow diagram of a method for testing cloud computing platform resources, according to an aspect of the present application;
FIG. 2 is a sample diagram of a test case description file in a preferred embodiment of the present application;
fig. 3 is a schematic flowchart illustrating a method for testing cloud computing platform resources according to a preferred embodiment of the present application;
fig. 4 illustrates a framework diagram of a testing system for cloud computing platform resources according to another aspect of the present application.
The same or similar reference numbers in the drawings identify the same or similar elements.
Detailed Description
The present application is described in further detail below with reference to the attached figures.
In a typical configuration of the present application, the terminal, the device serving the network, and the trusted party each include one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
Fig. 1 shows a flowchart of a method for testing cloud computing platform resources according to an aspect of the present application, where the method includes: S11-S14, wherein in the step S11, a test case description file is generated according to a preset environment, resources to be tested and test actions; step S12, generating a test case list based on the test case description file, wherein the preset environment and the test action combination corresponding to each test case in the test case list are covered at least once; step S13, converting each test case in the test case list into a test script file one by one according to a preset grammar structure; and step S14, testing the resource to be tested according to the current test condition and the test script file. Therefore, as many cloud platform resource test combinations as possible are covered by as few test case sets as possible, and the development test efficiency is greatly improved.
Specifically, in step S11, a test case description file is generated according to the preset environment, the resource to be tested, and the test action. The resources to be tested are cloud computing platform resources to be tested, wherein the cloud computing platform resources are composed of computing resources, storage resources and network resources. In the test case description file, various storage and network types can be specified for the resources to be tested; each test case description file comprises a plurality of operations, the operations represent test actions required to be performed on a test object, the operations can be described in the formats of the test actions, the test object and labels, each operation can comprise a plurality of test actions of a plurality of resources, the test actions can be marked by sequence numbers in the test case description file to execute the sequence, and the relevance is not required; different preset environments, such as a plurality of hosts, are correspondingly set for different tests.
Step S12, generating a test case list based on the test case description file, where the preset environment and the test action combination corresponding to each test case in the test case list are covered at least once. Here, the test case list is generated based on the pairing policy and the specified location information in the test case description file, for example, the preset environment and the test action combination corresponding to each test case are determined to be covered at least once by specifying the operation information or the preset environment information at two specified locations in the test case description file and the test action combination. The pairing strategy is a testing method for pairing, and is set as follows: when operations at two positions in one test case appear in other cases, the situation shows that all the scenes combined pairwise in the case are covered by other cases, and the case can be deleted. For example, one use case is three operations of a, B, and C, and if there are other use cases such as a, B, and X under the condition of fixed position; a, X, C; x, B, C, then A, B, C use case can be deleted because the other three use cases have covered the situation of combining two of A, B, C. It should be noted that, the above embodiments are examples, the information at the designated location includes operation information and environment information, and the number of the designated locations can be freely set, so as to achieve the purpose that the preset environment and the test action combination corresponding to each test case are covered at least once. The covered repeated use cases are deleted through the pairing strategy, so that the coverage rate of a program path can be effectively improved, the number of test use cases can be reduced to the maximum extent, and the development efficiency is greatly improved.
And step S13, converting each test case in the test case list into a test script file one by one according to a preset grammar structure. The test case list is converted into a test script file following the script language grammar according to a preset grammar structure aiming at the generated test case list, the test script file is a file for describing the test steps, and one test case corresponds to one test script file.
And step S14, testing the resource to be tested according to the current test condition and the test script file. Here, a current test condition is obtained before the test is performed, where the current test condition is a test-related parameter, such as a current test environment, state information of a current test resource, and the like. And testing the resource to be tested according to the testing steps in the testing script file based on the current testing condition.
In a preferred embodiment of the present application, in step S14, it is determined whether the current testing condition is consistent with the testing script file, and if so, the resource to be tested is tested according to the testing script file; and checking whether the current state of the tested resource and the data are correct or not, and if not, re-performing the test. Comparing the current test condition with the preset test condition in the test script file, and testing the resource to be tested according to the test step in the test script file when the current test condition is consistent with the test condition in the test script file, namely the current test condition is defined as meeting the preset test condition in the test script; and if the current state and the data of the tested resource are wrong, testing the resource to be tested again according to the test script file to ensure the correctness of the test, and preferably, correspondingly verifying the tested resource after each step of testing each case. In a preferred embodiment of the present application, after the operation of the cloud host is suspended, the cloud host should be in a suspended state; after the cloud host is subjected to hot migration from the main storage A to the main storage B, the cloud host is in an operating state, and the main storage where a cloud host disk is located is the main storage B; if the three-layer network is loaded to the cloud host, the cloud host needs to have a corresponding network card, and the network card state is 'loaded'. The above is an example of verification for the status of a resource after testing. In another preferred embodiment of the present application, for snapshot chains of different storages, a file md5 is verified inside the cloud host or the cloud disk, and after any test operation performed with the cloud host or the cloud disk is performed, the file md5 verification is performed inside the resource again to ensure consistency of file data.
In a preferred embodiment of the present application, in step S11, a corresponding label is determined according to the resource to be tested, and a test action combination is generated based on the resource to be tested, the test action, and the label; and generating the test case description file based on the preset environment and the test action combination, wherein the preset environment comprises a storage type and a network type. Here, the label corresponding to the resource to be tested is determined according to the respective different attributes of the resource to be tested, for example, a cloud host thin provisioning cluster 1 is created, where both the thin provisioning and the cluster 1 are labels, the attribute of the cloud host is specified, preferably, the attribute of the cloud host is not specified, and the system randomly selects an available cluster to meet the testing condition in the testing process. Next, a test action combination is generated based on the resource to be tested, the test action, and the label. It should be noted that the preset environment includes preset resources required for the test, such as 10 cloud hosts and 5 cloud disks, in addition to the storage type and the network type, before starting the test, and the preset resources also belong to one type of the preset environment.
According to the embodiment, the test case list is generated according to the preset environment, the resources to be tested and the test action pairing combination in the test case description file, and the preset environment and the test action combination in the test case description file are ensured to be covered at least once in the test case list.
Fig. 2 illustrates a sample schematic diagram of a test case description file in an embodiment of the present application, where the test case description file may specify multiple storage types and network types, an operation in the diagram represents a test action to be performed on a test object, a detailed description of the operation may be composed in a format of the test action, the test object, and a tag, each operation item may include multiple test actions of multiple resources, that is, each operation is a test action combination, and an execution sequence of the test is only represented between operation 1 and operation 2 in the diagram, which does not need to have a relationship; in a specific application environment of the present application, the resource to be tested is a cloud computing platform resource, such as a cloud host, a cloud disk, a network service, and the like.
In a preferred embodiment of the present application, in step S13, each test case in the test case list is converted into a test script file according to the script language grammar based on the grammar structure of the test action, the test object and the tag. Each test case is converted into a test script file following the grammar of the script language according to the grammatical structures of the test action, the test object and the label, wherein the test script file is used for describing the test steps, and one test case corresponds to one test script file.
In a preferred embodiment of the present application, it is determined whether the current test condition is consistent with the test script file, and if not, the current test condition is modified according to the test script file; and testing the resource to be tested based on the test script file and the corrected current test condition. Here, when the current test condition is not consistent with the test condition in the test script file, the current test condition is corrected according to the test condition in the test script file. The testing action combination in the testing script file comprises a plurality of testing steps, each testing step can be provided with a corresponding operation module to complete the testing step, and the testing steps are unrelated, so that if the resource to be tested does not have the testing condition corresponding to the testing step, the current testing condition is corrected in a mode of automatically supplementing the testing step and the like, and the current testing condition meets the testing condition in the testing script file. It should be noted that the way of correcting the current test condition is not only through the automatic supplementary test step, but also because different resources are directed to different state machine flows, the user can freely preset for each resource to be tested, so that the test can be completed according to the test script file, and the test failure is avoided.
In a preferred embodiment of the present application, the current test condition includes a current test environment and a current resource, and whether the current test environment is consistent with the preset environment is determined; and judging whether the current resource is consistent with the resource to be tested. Here, the current test condition includes a current test environment and a current resource, wherein the current resource being consistent with the resource to be tested includes a state of the current resource being consistent with a state of the resource to be tested.
In a preferred embodiment of the present application, the current testing environment is modified according to the preset environment so that the current testing environment is consistent with the preset environment; and correcting the current resource according to the resource to be tested so as to enable the current resource to be consistent with the resource to be tested. Here, when the current test condition lacks resources, the step of supplementing the test for generating resources, such as the step of creating a cloud disk, assuming that the operation of deleting the cloud disk is tested without the cloud disk. When the resource state in the current test condition is inconsistent with the resource state to be tested, performing corresponding state correction processing on different resources, wherein the correction processing is realized by a similar state machine, for example, if the first step is to delete the cloud host directly, a step of creating the cloud host is supplemented; for another example, the test step is to recover the deleted cloud host, and if the current cloud host state is in operation, an operation of "deleting the cloud host" is supplemented. In a preferred embodiment of the present application, the checking of the preset environment may be started only when the test case starts to run, and the current test environment is modified according to the preset environment, and the corresponding processing of the resource based on the operation in the test case in the subsequent test process may make the current test environment inconsistent with the preset environment, but at this time, it is not necessary to reset each test to the preset environment, so as to increase the running speed of the test.
Fig. 3 is a schematic flowchart illustrating a method for testing cloud computing platform resources in a preferred embodiment of the present application, where cloud computing platform resources may preferably be IaaS resources, a test case description file is prepared, the description file may specify multiple storage and network types, an operation represents a test action to be performed on a test object, and each operation item may include multiple test actions of multiple resources. The sequence between operation 1 and operation 2 is only the execution sequence of the test, and no relation is needed. After a test case description file is prepared, a test case list is generated by using a pairing strategy, each preset environment and each operation combination in the generated case can be covered for at least 1 time, the generated case has no sequential limitation in the test case list, and the efficiency of test development is greatly improved.
Then, aiming at the generated test case list, a translation module can be used for converting the test case list into a test script file following the script language grammar according to the preset test action, the test object and the grammar structure of the label so as to describe the test steps, wherein one test case corresponds to one test script file. Each testing step in the testing script file is provided with a corresponding operation module for realizing, and because the generated testing steps are unrelated, the operation module can check the current testing condition according to the obtained testing case script file, and if the resources to be tested do not have the testing conditions, the operation module can automatically supplement different testing steps aiming at different resources, so that the testing case is more reasonable. After each testing step is completed, checking whether the states of all resources in the current system are in accordance with expectations, and performing resource data verification to ensure that the testing is performed correctly. Therefore, as many cloud platform resource test combinations as possible are covered by as few test cases as possible, the development and test efficiency is greatly improved, and the test reliability is ensured.
Fig. 4 shows a schematic diagram of a framework structure of a testing system for cloud computing platform resources, where the system includes a generation module 100, a data processing module 200, a translation module 300, and a testing module 400, where: the generating module 100 is configured to generate a test case description file according to a preset environment, a resource to be tested, and a test action; the data processing module 200 is configured to generate a test case list based on the test case description file, where a preset environment and a test action combination corresponding to each test case in the test case list are covered at least once; the translation module 300 is configured to convert each test case in the test case list into a test script file one by one according to a preset syntax structure; the testing module 400 tests the resource to be tested according to the current testing condition and the testing script file. Therefore, as many cloud platform resource test combinations as possible are covered by as few test case sets as possible, and the development test efficiency is greatly improved.
It should be noted that the content executed by the generating module 100, the data processing module 200, the translating module 300, and the testing module 400 is the same as or corresponding to the content in the above steps S11, S12, S13, and S14, and for brevity, the description is omitted here.
In a preferred embodiment of the present application, the testing module 400 includes a checking unit 401 and a checking unit 402, where the checking unit 401 is configured to determine whether a current testing condition is consistent with the testing script file, and if so, test the resource to be tested according to the testing script file; the verifying unit 402 is configured to verify whether the current state of the tested resource and the data are correct, and if not, perform the test again. Here, the checking unit 401 is configured to compare a current test condition with a preset test condition in the test script file, and if the current test condition is consistent with the test condition in the test script file, that is, if the current test condition is defined to satisfy the preset test condition in the test script file, test the resource to be tested according to the test step in the test script file; the checking unit 402 checks whether the current state and data of the tested resource are correct, and when the current state and data of the tested resource are consistent with the expected resource state and the data of the tested resource are consistent with the expected resource data, the checking determines that the current state and data of the tested resource are correct, and if the current state and data of the tested resource are wrong, the testing is performed on the resource to be tested again according to the test script file, so that the testing correctness is ensured.
In addition, a computer readable medium is provided in the embodiments of the present application, and computer readable instructions are stored thereon, and the computer readable instructions can be executed by a processor to implement the method for testing cloud computing platform resources described in any one of the foregoing.
According to another aspect of the present application, there is also provided a testing apparatus for cloud computing platform resources, wherein the apparatus includes:
one or more processors; and
a memory storing computer readable instructions that, when executed, cause the processor to perform the operations of any of the preceding methods of testing cloud computing platform resources.
For example, the computer readable instructions, when executed, cause the one or more processors to:
generating a test case description file according to a preset environment, a resource to be tested and a test action; generating a test case list based on the test case description file, wherein the preset environment and the test action combination corresponding to each test case in the test case list are covered at least once; converting each test case in the test case list into a test script file one by one according to a preset grammatical structure; and testing the resource to be tested according to the current testing condition and the testing script file.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.
It should be noted that the present application may be implemented in software and/or a combination of software and hardware, for example, implemented using Application Specific Integrated Circuits (ASICs), general purpose computers or any other similar hardware devices. In one embodiment, the software programs of the present application may be executed by a processor to implement the steps or functions described above. Likewise, the software programs (including associated data structures) of the present application may be stored in a computer readable recording medium, such as RAM memory, magnetic or optical drive or diskette and the like. Additionally, some of the steps or functions of the present application may be implemented in hardware, for example, as circuitry that cooperates with the processor to perform various steps or functions.
In addition, some of the present application may be implemented as a computer program product, such as computer program instructions, which when executed by a computer, may invoke or provide methods and/or techniques in accordance with the present application through the operation of the computer. Program instructions which invoke the methods of the present application may be stored on a fixed or removable recording medium and/or transmitted via a data stream on a broadcast or other signal-bearing medium and/or stored within a working memory of a computer device operating in accordance with the program instructions. An embodiment according to the present application comprises an apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger the apparatus to perform a method and/or a solution according to the aforementioned embodiments of the present application.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the apparatus claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.

Claims (11)

1. A testing method of cloud computing platform resources, wherein the method comprises the following steps:
generating a test case description file according to a preset environment, a resource to be tested and a test action;
generating a test case list based on the test case description file, wherein the preset environment and the test action combination corresponding to each test case in the test case list are covered at least once;
converting each test case in the test case list into a test script file one by one according to a preset grammatical structure;
and testing the resource to be tested according to the current testing condition and the testing script file.
2. The method of claim 1, wherein said testing the resource to be tested according to the current test conditions and the test script file comprises:
judging whether the current test condition is consistent with the test script file, if so, testing the resource to be tested according to the test script file;
and checking whether the current state of the tested resource and the data are correct or not, and if not, re-performing the test.
3. The method of claim 1, wherein the generating a test case description file according to a preset environment, a resource to be tested, and a test action comprises:
determining a corresponding label according to the resource to be tested, and generating a test action combination based on the resource to be tested, the test action and the label;
and generating the test case description file based on the preset environment and the test action combination, wherein the preset environment comprises a storage type and a network type.
4. The method of claim 1, wherein the converting each test case in the test case list into a test script file one by one according to a preset syntax structure comprises:
and converting each test case in the test case list into a test script file one by one according to the grammar structure of the script language based on the test action, the test object and the label.
5. The method of claim 3, wherein the method comprises:
judging whether the current test condition is consistent with the test script file or not, if not, correcting the current test condition according to the test script file;
and testing the resource to be tested based on the test script file and the corrected current test condition.
6. The method of claim 5, wherein the current test condition includes a current test environment and a current resource, and determining whether the current test condition is consistent with the test script file comprises:
judging whether the current test environment is consistent with the preset environment or not;
and judging whether the current resource is consistent with the resource to be tested.
7. The method of claim 6, wherein said modifying said current test condition according to said test script file comprises:
correcting the current testing environment according to the preset environment so as to enable the current testing environment to be consistent with the preset environment;
and correcting the current resource according to the resource to be tested so as to enable the current resource to be consistent with the resource to be tested.
8. A test system of cloud computing platform resources, wherein the system comprises a generation module, a data processing module, a translation module and a test module, wherein:
the generating module is used for generating a test case description file according to a preset environment, a resource to be tested and a test action;
the data processing module is used for generating a test case list based on the test case description file, wherein the preset environment and the test action combination corresponding to each test case in the test case list are covered at least once;
the translation module is used for converting each test case in the test case list into a test script file one by one according to a preset syntactic structure;
and the testing module tests the resource to be tested according to the current testing condition and the testing script file.
9. The system of claim 8, wherein the test module comprises a verification unit and a verification unit, wherein,
the checking unit is used for judging whether the current test condition is consistent with the test script file or not, and if so, testing the resource to be tested according to the test script file;
the checking unit is used for checking whether the current state of the tested resource and the data are correct or not, and if not, the testing is carried out again.
10. A computer readable medium having computer readable instructions stored thereon which are executable by a processor to implement the method of any one of claims 1 to 7.
11. A testing device for cloud computing platform resources, wherein the device comprises:
one or more processors; and
a memory storing computer readable instructions that, when executed, cause the processor to perform the operations of the method of any of claims 1 to 7.
CN202010611086.7A 2020-06-30 2020-06-30 Cloud computing platform resource testing method, system and equipment Active CN111767226B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010611086.7A CN111767226B (en) 2020-06-30 2020-06-30 Cloud computing platform resource testing method, system and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010611086.7A CN111767226B (en) 2020-06-30 2020-06-30 Cloud computing platform resource testing method, system and equipment

Publications (2)

Publication Number Publication Date
CN111767226A true CN111767226A (en) 2020-10-13
CN111767226B CN111767226B (en) 2023-10-27

Family

ID=72722942

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010611086.7A Active CN111767226B (en) 2020-06-30 2020-06-30 Cloud computing platform resource testing method, system and equipment

Country Status (1)

Country Link
CN (1) CN111767226B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112346977A (en) * 2020-11-10 2021-02-09 中国信息通信研究院 Quantum cloud computing platform software function evaluation method and device
CN112395199A (en) * 2020-11-24 2021-02-23 季明 Distributed software instance testing method based on cloud computing and software development platform
CN112506756A (en) * 2020-11-11 2021-03-16 东风汽车集团有限公司 Vehicle controller test case script generation method and device
CN112799951A (en) * 2021-02-04 2021-05-14 上海云轴信息科技有限公司 Method and equipment for generating automatic test case for charging system
CN114968491A (en) * 2022-06-17 2022-08-30 中国电信股份有限公司 Virtual resource testing method and device, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104699616A (en) * 2015-03-31 2015-06-10 北京奇虎科技有限公司 Method, device and system for testing application
US9348569B1 (en) * 2012-09-11 2016-05-24 Emc Corporation Method and system for a configurable automation framework
US9396160B1 (en) * 2013-02-28 2016-07-19 Amazon Technologies, Inc. Automated test generation service
CN106649085A (en) * 2016-09-23 2017-05-10 郑州云海信息技术有限公司 Cloud computing-based software test system
CN109075991A (en) * 2016-02-26 2018-12-21 诺基亚通信公司 Cloud verifying and test automation
US20190294536A1 (en) * 2018-03-26 2019-09-26 Ca, Inc. Automated software deployment and testing based on code coverage correlation
CN110389900A (en) * 2019-07-10 2019-10-29 深圳市腾讯计算机***有限公司 A kind of distributed experiment & measurement system test method, device and storage medium
CN111124867A (en) * 2018-10-30 2020-05-08 中移(苏州)软件技术有限公司 OpenStack testing method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9348569B1 (en) * 2012-09-11 2016-05-24 Emc Corporation Method and system for a configurable automation framework
US9396160B1 (en) * 2013-02-28 2016-07-19 Amazon Technologies, Inc. Automated test generation service
CN104699616A (en) * 2015-03-31 2015-06-10 北京奇虎科技有限公司 Method, device and system for testing application
CN109075991A (en) * 2016-02-26 2018-12-21 诺基亚通信公司 Cloud verifying and test automation
CN106649085A (en) * 2016-09-23 2017-05-10 郑州云海信息技术有限公司 Cloud computing-based software test system
US20190294536A1 (en) * 2018-03-26 2019-09-26 Ca, Inc. Automated software deployment and testing based on code coverage correlation
CN111124867A (en) * 2018-10-30 2020-05-08 中移(苏州)软件技术有限公司 OpenStack testing method and device
CN110389900A (en) * 2019-07-10 2019-10-29 深圳市腾讯计算机***有限公司 A kind of distributed experiment & measurement system test method, device and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
ANDRZEJ GOSCINSKI 等: "Toward dynamic and attribute based publication, discovery and selection for cloud computing", 《FUTURE GENERATION COMPUTER SYSTEMS》, vol. 26, no. 7, pages 947 - 970, XP027076758, DOI: 10.1016/j.future.2010.03.009 *
鲁程: "基于云平台的移动互联网自动化测试***的研究与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》, pages 139 - 17 *
黄恋: "云资源弹性调度测试方法的研究与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》, pages 138 - 193 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112346977A (en) * 2020-11-10 2021-02-09 中国信息通信研究院 Quantum cloud computing platform software function evaluation method and device
CN112506756A (en) * 2020-11-11 2021-03-16 东风汽车集团有限公司 Vehicle controller test case script generation method and device
CN112506756B (en) * 2020-11-11 2023-06-06 东风汽车集团有限公司 Method and device for generating test case script of vehicle controller
CN112395199A (en) * 2020-11-24 2021-02-23 季明 Distributed software instance testing method based on cloud computing and software development platform
CN112395199B (en) * 2020-11-24 2021-07-02 罗嗣扬 Distributed software instance testing method based on cloud computing and software development platform
CN112799951A (en) * 2021-02-04 2021-05-14 上海云轴信息科技有限公司 Method and equipment for generating automatic test case for charging system
CN112799951B (en) * 2021-02-04 2023-03-31 上海云轴信息科技有限公司 Method and equipment for generating automatic test case for charging system
CN114968491A (en) * 2022-06-17 2022-08-30 中国电信股份有限公司 Virtual resource testing method and device, electronic equipment and storage medium
CN114968491B (en) * 2022-06-17 2024-02-06 中国电信股份有限公司 Virtual resource testing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111767226B (en) 2023-10-27

Similar Documents

Publication Publication Date Title
CN111767226B (en) Cloud computing platform resource testing method, system and equipment
CN107122296B (en) Method and apparatus for data assertion for test interface
CN107229559B (en) Detection method and device for testing integrity of service system
CN106940695B (en) Data source information verification method and device
CN112181804B (en) Parameter verification method, device and storage medium
CN107391333B (en) OSD disk fault testing method and system
CN107943702B (en) Hardware compatibility testing method and device
CN115080398A (en) Automatic interface test system and method
CN110532182A (en) A kind of automated testing method and device of virtual platform
CN108733525A (en) A kind of memory module tests and verifies the method and system of correctness automatically
CN113608692A (en) Method, system, equipment and medium for verifying data consistency of storage system
US9501390B1 (en) Enhancing automated mobile application testing
CN109739756B (en) Method and equipment for testing application of mobile terminal
CN107368330A (en) Client patch restorative procedure, device and system
WO2023207973A1 (en) Compiler test method and apparatus, case generation method and apparatus, and instruction storage structure
US8997048B1 (en) Method and apparatus for profiling a virtual machine
CN106874181B (en) Interface conversion verification method and device
CN117112060A (en) Component library construction method and device, electronic equipment and storage medium
CN111984367A (en) Application deployment method and system based on container cloud platform
CN113419952B (en) Cloud service management scene testing device and method
CN112860587B (en) UI automatic test method and device
US10922249B2 (en) Input/output control code filter
CN112256554B (en) Method and equipment for testing based on scene test cases
US20240095153A1 (en) Test code generator, test code generation method, and, test code generaration program
CN116610545A (en) Reliability test method and equipment for cloud management platform and computer readable medium

Legal Events

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