CN111767226B - Cloud computing platform resource testing method, system and equipment - Google Patents

Cloud computing platform resource testing method, system and equipment Download PDF

Info

Publication number
CN111767226B
CN111767226B CN202010611086.7A CN202010611086A CN111767226B CN 111767226 B CN111767226 B CN 111767226B CN 202010611086 A CN202010611086 A CN 202010611086A CN 111767226 B CN111767226 B CN 111767226B
Authority
CN
China
Prior art keywords
test
current
tested
resource
test case
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010611086.7A
Other languages
Chinese (zh)
Other versions
CN111767226A (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 Yunzhou Information Technology Co ltd
Original Assignee
Shanghai Yunzhou 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 Yunzhou Information Technology Co ltd filed Critical Shanghai Yunzhou 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

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 application aims to provide a method, a system and equipment for testing cloud computing platform resources, wherein test case description files are generated 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 a preset environment and a 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 grammar structure; and testing the resources to be tested according to the current test conditions and the test script file. Therefore, as many cloud platform resource test combinations as possible are covered by the test case sets as few as possible, and development test efficiency is greatly improved.

Description

Cloud computing platform resource testing method, system and equipment
Technical Field
The present application relates to the field of computers, and in particular, to a method, a system, and an apparatus for testing cloud computing platform resources.
Background
In the conventional thinking of designing test cases, the coverage of the test cases should be more complete and more detailed, however, in the testing of cloud computing platform resources, because the cloud computing resources have complex program paths and functional scenes, the complete and comprehensive testing possibility cannot be exhausted and designed, and whether software defects exist in the field which is not tested cannot be determined. The large test set also greatly reduces the development and execution efficiency of the test cases.
The testing of the cloud computing platform resources not only needs to consider the testing of single resources, but also needs to consider the combined scene among different resources. While this combined scenario will not be exhaustive as the amount of resources increases, it will become very difficult for the testing of cloud computing platforms. In the existing cloud computing test framework, a part of the test is based on an API level unit test, and the test is only aimed at a program interface and cannot cover a complex scene; the other part is integrated test, and specific test cases are developed according to known scenes, and the pre-designed test cases can only cover a part of the most common fields, so that the cloud computing platform has limited test coverage and low development and test efficiency aiming at inexhaustible test combinations of cloud computing platform resources.
Disclosure of Invention
The application aims to provide a method, a system and equipment for testing cloud computing platform resources, which solve the problems that in the prior art, inexhaustible testing combination of cloud computing platform resources is difficult to fully cover and development testing efficiency is low.
According to one aspect of the present application, there is provided a method for testing cloud computing platform resources, the method comprising:
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 a preset environment and a 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 grammar structure;
and testing the resources to be tested according to the current test conditions and the test script file.
Further, the testing the resource to be tested according to the current testing condition and the testing script file includes:
judging whether the current test conditions are consistent with the test script file, if so, testing the resources to be tested according to the test script file;
checking whether the current state and data of the tested resources are correct, and if not, carrying out the test again.
Further, the generating the 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 converting each test case in the test case list one by one into a test script file according to a preset grammar structure includes:
and converting the grammar structure of each test case in the test case list based on the test action, the test object and the label into a test script file one by one according to the grammar of the script language.
Further, the method comprises:
judging whether the current test conditions are consistent with the test script file, if not, correcting the current test conditions according to the test script file;
and testing the resources to be tested based on the test script file and the corrected current test conditions.
Further, 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 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 correcting the current test condition according to the test script file includes:
correcting the current test environment according to the preset environment so that the current test environment is consistent with the preset environment;
and correcting the current resource according to the resource to be tested so that the current resource is consistent with the resource to be tested.
According to another aspect of the present application, there is also provided a testing system for 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, resources to be tested and test actions;
the data processing module is used for generating a test case list based on the test case description file, wherein 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 is used for converting each test case in the test case list into a test script file one by one according to a preset grammar structure;
and the testing module tests the resources to be tested according to the current testing conditions 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 testing conditions are consistent with the testing script file, if so, testing the resources to be tested according to the testing script file;
and the verification unit is used for verifying whether the current state and the data of the tested resource are correct or not, and if not, the test 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 of testing cloud computing platform resources as described in any of the preceding claims.
According to still 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
a 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 of the preceding claims.
Compared with the prior art, the method and the device generate the test case description file according to the preset environment, the resources to be tested and the test actions; generating a test case list based on the test case description file, wherein a preset environment and a 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 grammar structure; and testing the resources to be tested according to the current test conditions and the test script file. Therefore, as many cloud platform resource test combinations as possible are covered by the test case sets as few as possible, and development test efficiency is greatly improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the accompanying drawings in which:
FIG. 1 illustrates a flow diagram of a method for testing cloud computing platform resources, provided in accordance with an aspect of the present application;
FIG. 2 shows a sample schematic of a test case description file in a preferred embodiment of the application;
FIG. 3 is a flow chart of a method for testing cloud computing platform resources according to a preferred embodiment of the present application;
fig. 4 illustrates a schematic framework 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 refer to the same or similar parts.
Detailed Description
The application is described in further detail below with reference to the accompanying drawings.
In one exemplary configuration of the application, the terminal, the device of the service network, and the trusted party each include one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
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 storage media for a computer 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 disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer readable media, as defined herein, does not include non-transitory computer readable media (transmission media), such as modulated data signals and carrier waves.
Fig. 1 is a schematic flow chart of a testing method of cloud computing platform resources according to an aspect of the present application, where the method includes: S11-S14, wherein in step S11, a test case description file is generated according to a preset environment, resources to be tested and test actions; step S12, a test case list is generated based on the test case description file, wherein a preset environment and a 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 resources to be tested according to the current test conditions and the test script file. Therefore, as many cloud platform resource test combinations as possible are covered by the test case sets as few as possible, and development test efficiency is greatly improved.
Specifically, in step S11, a test case description file is generated according to the preset environment, the resources to be tested and the test actions. The resource to be tested is a cloud computing platform resource to be tested, wherein the cloud computing platform resource is composed of computing resources, storage resources and network resources. In the test case description file, multiple 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 objects and the labels, each operation can comprise a plurality of test actions of a plurality of resources, and the plurality of test actions can mark the execution sequence in the test case description file by serial numbers without relevance; different preset environments, such as a plurality of hosts, are correspondingly set for different tests.
And 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. Here, a test case list is generated based on the pairing policy and the specified location information in the test case description file, for example, operation information or preset environment information on two specified locations in the preset environment and test action combination in the test case description file is specified to determine that the preset environment and test action combination corresponding to each test case is covered at least once. The pairing strategy is a testing method of a pairing, and the setting of the pairing strategy is as follows: when the operations at two positions in one test case are already appeared in the other case, the scene of all the two-to-two combinations in the test case is covered by the other case, and the case can be deleted. For example, one use case is three operations of A, B and C, and if other use cases such as A, B and X exist under the condition of fixed position; a, X, C; x, B, C, the use cases A, B, C can be deleted because the other three use cases cover the combination of two of A, B, C. It should be noted that the above embodiments are examples, the information on the specified positions includes operation information and environment information, and the number of the specified positions 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 cases are deleted through the pairing strategy, so that the coverage rate of a program path can be effectively improved, the number of test cases is reduced to the maximum extent, and the development efficiency is greatly improved.
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 list of the generated test cases is converted into a test script file conforming to the grammar of the scripting language according to a preset grammar structure, wherein the test script file is a file describing the testing steps, and one test case corresponds to one test script file.
And step S14, testing the resources to be tested according to the current test conditions and the test script file. Here, the current test condition is obtained before the test, wherein the current test condition is a parameter related to the test, such as a current test environment, state information of a current test resource, and the like. And based on the current test conditions, testing the resources to be tested according to the test steps in the test script file.
In a preferred embodiment of the present application, in step S14, it is determined whether the current test condition is consistent with the test script file, if yes, the resource to be tested is tested according to the test script file; checking whether the current state and data of the tested resources are correct, and if not, carrying out the test again. Comparing the current test condition with the preset test condition in the test script file, and when the current test condition is consistent with the test condition in the test script file, defining that the preset test condition in the test script is met, testing the resource to be tested according to the test step in the test script file; when the current state of the tested resource is consistent with the expected resource state and the data of the tested resource is consistent with the expected resource data, checking to determine that the current state and the data of the tested resource are correct, 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, ensuring the correctness of the test, and preferably, carrying out corresponding checking processing on the tested resource after each step of testing each use case. In a preferred embodiment of the present application, after suspending operation of the cloud host, the cloud host should be in a suspended state; after the cloud host is thermally migrated from the main storage A to the main storage B, the cloud host is in an operating state, and the main storage where the disk of the cloud host is located is the main storage B; if the three-layer network is loaded to the cloud host, the cloud host is provided with a corresponding network card, and the network card state is loaded. The above is a verification embodiment for the state of the tested resource. In another preferred embodiment of the present application, for different stored snapshot chains, a file md5 check is added in the cloud host or the cloud disk, and after the test operation of any cloud host or the cloud disk is executed, the md5 check is performed again in the resource, so as to ensure the consistency of file data.
In a preferred embodiment of the present application, in step S11, a corresponding tag 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 tag; 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. The labels corresponding to the resources to be tested are determined according to the different attributes of the resources to be tested, for example, a cloud host simplified preparation cluster 1 is created, wherein both the simplified preparation and the cluster 1 are labels, the attributes of the cloud host are specified, preferably, the attributes of the cloud host are not specified, and in the testing process, the system randomly selects an available cluster to meet the testing condition. Then, a test action combination is generated based on the resource to be tested, the test action, and the tag. It should be noted that, the preset environment includes, in addition to the storage type and the network type, preset resources required for the test, for example, 10 cloud hosts and 5 cloud disks are required before the test is started, and the preset resources also belong to one type of 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 shows a sample 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, and operations in the drawing represent test actions that need to be performed on test objects, and may be detailed descriptions of operations in the format of the test actions, the test objects, and tags, and each operation item may include multiple test actions of multiple resources, that is, each operation is a test action combination, and only represents an execution sequence of the test between operation 1 and operation 2 in the drawing, without correlation; the test object is a resource to be tested, and in the specific application environment of the 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 one by one based on the grammar structures of the test action, the test object and the tag. Each test case is converted into a test script file conforming to the grammar of the scripting language according to the grammar structures of the test action, the test object and the label, wherein the test script file is used for describing the test step, and one test case corresponds to one test script file.
In a preferred embodiment of the present application, whether the current test condition is consistent with the test script file is determined, if not, the current test condition is corrected according to the test script file; and testing the resources to be tested based on the test script file and the corrected current test conditions. When the current test conditions are inconsistent with the test conditions in the test script file, correcting the current test conditions according to the test conditions in the test script file. The test action combination in the test script file comprises a plurality of test steps, each test step can be provided with a corresponding operation module to complete the test step, and each test step is irrelevant, so that if the resource to be tested does not have the test condition corresponding to the test step, the current test condition is corrected by means of automatic supplement of the test step and the like, so that the current test condition meets the test condition in the test script file. It should be noted that, the method of correcting the current test condition is not only to supplement the test steps automatically, but also to preset each resource to be tested freely for different resources aiming at different state machine flows, 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 it is determined whether the current test environment is consistent with the preset environment; and judging whether the current resource is consistent with the resource to be tested. The current test condition comprises a current test environment and a current resource, wherein the consistency of the current resource and the resource to be tested comprises the consistency of the state of the current resource and the state of the resource to be tested.
In a preferred embodiment of the present application, the current test environment is modified according to the preset environment so that the current test environment is consistent with the preset environment; and correcting the current resource according to the resource to be tested so that the current resource is consistent with the resource to be tested. Here, when the current test condition lacks resources, a test step of generating resources is supplemented, for example, assuming that an operation of deleting a cloud disk is tested without a cloud disk, the supplemental step is to create the cloud disk. When the resource state in the current test condition is inconsistent with the resource state to be tested, corresponding state correction processing is carried out 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 is supplemented to create the cloud host; for example, the testing step is to recover the deleted cloud host, and if the current cloud host state is running, an operation of "deleting the cloud host" is supplemented. In a preferred embodiment of the present application, the inspection of the preset environment may be started only when the test case begins to run, and the current test environment may be modified according to the preset environment, where 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 flow chart of a testing method of a cloud computing platform resource according to a preferred embodiment of the present application, where the cloud computing platform resource may be preferably an IaaS resource, a test case description file is prepared, the description file may specify multiple storage and network types, an operation represents a test action required to be performed on a test object, and each operation item may include multiple test actions of multiple resources. The operation 1 and the operation 2 only represent the execution sequence of the test, and no correlation is needed. After the test case description file is prepared, a pairing strategy is used for generating a test case list, each preset environment and each operation combination in the generated cases are covered at least 1 time, the generated cases are not limited in sequence in the test case list, and the test development efficiency is greatly improved.
Then, for the generated test case list, a translation module can be used for converting the test case list into a test script file which follows the grammar of the scripting language according to the preset grammar structure of the test action, the test object and the label so as to describe the test step, wherein one test case corresponds to one test script file. Each test step in the test script file is in charge of being realized by a corresponding operation module, and because the previously generated test steps are all irrelevant, the operation module can check the current test conditions according to the acquired test case script file, and if the resources to be tested do not have the test conditions, the operation module can automatically supplement different test steps for different resources, so that the test case is more reasonable. After each test step is completed, it is checked whether the status of all resources in the current system meets expectations, and a resource data check is performed to ensure that the test is performed correctly. Therefore, as many cloud platform resource test combinations as possible are covered by the test case sets as few as possible, development test efficiency is greatly improved, and test reliability is ensured.
Fig. 4 illustrates a schematic framework of a testing system of cloud computing platform resources according to another aspect of the present application, where the system includes a generating module 100, a data processing module 200, a translating 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 test module 400 tests the resources to be tested according to the current test conditions and the test script file. Therefore, as many cloud platform resource test combinations as possible are covered by the test case sets as few as possible, and development test efficiency is greatly improved.
It should be noted that, the contents executed by the generating module 100, the data processing module 200, the translating module 300 and the testing module 400 are the same as or corresponding to the contents in the steps S11, S12, S13 and S14, and are not described herein for brevity.
In a preferred embodiment of the present application, the test module 400 includes a checking unit 401 and a checking unit 402, where the checking unit 401 is configured to determine whether a current test condition is consistent with the test script file, and if yes, test the resource to be tested according to the test script file; the checking unit 402 is configured to check whether the current state and the data of the tested resource are correct, and if not, re-perform the test. Here, the checking unit 401 is configured to compare a current test condition with a preset test condition in the test script file, and when the current test condition is consistent with the test condition in the test script file, that is, the current test condition is defined as meeting the preset test condition in the test script, then test the resource to be tested according to a test step in the test script file; the verification unit 402 verifies whether the current state and data of the tested resource are correct, when the current state of the tested resource is consistent with the expected resource state and the data of the tested resource is consistent with the expected resource data, the current state and data of the tested resource are verified to be correct, and if the current state and data of the tested resource are wrong, the test is performed on the resource to be tested according to the test script file again, so that the correctness of the test is ensured.
In addition, the embodiment of the application also provides a computer readable medium, on which computer readable instructions are stored, the computer readable instructions being executable by a processor to implement a method for testing cloud computing platform resources according to any one of the preceding claims.
According to still another aspect of the present application, there is also provided a testing apparatus for cloud computing platform resources, where 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 a method of testing cloud computing platform resources of any of the preceding claims.
For example, computer-readable instructions, when executed, cause the one or more processors to:
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 a preset environment and a 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 grammar structure; and testing the resources to be tested according to the current test conditions and the test script file.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present application without departing from the spirit or scope of the application. Thus, it is intended that the present application also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.
It should be noted that the present application may be implemented in software and/or a combination of software and hardware, e.g., using Application Specific Integrated Circuits (ASIC), a general purpose computer or any other similar hardware device. In one embodiment, the software program of the present application may be executed by a processor to perform the steps or functions described above. Likewise, the software programs of the present application (including associated data structures) may be stored on a computer readable recording medium, such as RAM memory, magnetic or optical drive or diskette and the like. In addition, some 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.
Furthermore, portions 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 by way of operation of the computer. Program instructions for invoking the inventive methods may be stored in fixed or removable recording media and/or transmitted via a data stream in a broadcast or other signal bearing medium and/or stored within a working memory of a computer device operating according to the program instructions. An embodiment according to the 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 operate a method and/or a solution according to the embodiments of the application as described above.
It will be evident to those skilled in the art that the 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 characteristics 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 evident that the word "comprising" does not exclude other elements or steps, and that the singular does not exclude a plurality. A plurality of units or means recited in the apparatus claims can also be implemented by means of one unit or means in software or hardware. The terms first, second, etc. are used to denote a name, but not any particular order.

Claims (7)

1. A method for testing cloud computing platform resources, wherein the method comprises:
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 a preset environment and a 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 grammar structure;
judging whether the current test conditions are consistent with the test script file, if so, testing the resources to be tested according to the test script file;
checking whether the current state and data of the tested resources are correct or not, and if not, carrying out the test again;
judging whether the current test conditions are consistent with the test script file, if not, correcting the current test conditions according to the test script file;
testing the resources to be tested based on the test script file and the corrected current test conditions;
the current test condition comprises a current test environment and a current resource, and the judging of whether the current test condition is consistent with the test script file comprises the following steps:
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.
2. The method of claim 1, wherein the generating the test case description file according to the preset environment, the resource to be tested, and the 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.
3. The method of claim 1, wherein the converting each test case in the test case list one by one into a test script file according to a preset syntax structure comprises:
and converting the grammar structure of each test case in the test case list based on the test action, the test object and the label into a test script file one by one according to the grammar of the script language.
4. The method of claim 1, wherein said modifying said current test condition according to said test script file comprises:
correcting the current test environment according to the preset environment so that the current test environment is consistent with the preset environment;
and correcting the current resource according to the resource to be tested so that the current resource is consistent with the resource to be tested.
5. A testing system of cloud computing platform resources, wherein the system comprises 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, resources to be tested and test actions;
the data processing module is used for generating a test case list based on the test case description file, wherein 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 is used for 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 module tests the resources to be tested according to the current test conditions and the test script file;
the test module comprises a checking unit and a checking unit, wherein,
the checking unit is used for judging whether the current testing conditions are consistent with the testing script file, if so, testing the resources to be tested according to the testing script file;
the checking unit is used for checking whether the current state and the data of the tested resource are correct or not, and if not, the test is carried out again;
the checking unit is used for judging whether the current test condition is consistent with the test script file, 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;
the checking unit is used for judging whether the current testing environment is consistent with the preset environment or not and judging whether the current resource is consistent with the resource to be tested or not.
6. A computer readable medium having stored thereon computer readable instructions executable by a processor to implement the method of any of claims 1 to 4.
7. A test 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 one of claims 1 to 4.
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 CN111767226A (en) 2020-10-13
CN111767226B true 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)

Families Citing this family (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
CN112506756B (en) * 2020-11-11 2023-06-06 东风汽车集团有限公司 Method and device for generating test case script of vehicle controller
CN113176999A (en) * 2020-11-24 2021-07-27 季明 Software testing method and system based on distributed application program
CN112799951B (en) * 2021-02-04 2023-03-31 上海云轴信息科技有限公司 Method and equipment for generating automatic test case for charging system
CN114968491B (en) * 2022-06-17 2024-02-06 中国电信股份有限公司 Virtual resource testing method and device, electronic equipment and storage medium

Citations (7)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190294536A1 (en) * 2018-03-26 2019-09-26 Ca, Inc. Automated software deployment and testing based on code coverage correlation

Patent Citations (7)

* 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
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
Toward dynamic and attribute based publication, discovery and selection for cloud computing;Andrzej Goscinski 等;《Future Generation Computer Systems》;第26卷(第7期);947-970 *
云资源弹性调度测试方法的研究与实现;黄恋;《中国优秀硕士学位论文全文数据库信息科技辑》;I138-193 *
基于云平台的移动互联网自动化测试系统的研究与实现;鲁程;《中国优秀硕士学位论文全文数据库 信息科技辑》;I139-17 *

Also Published As

Publication number Publication date
CN111767226A (en) 2020-10-13

Similar Documents

Publication Publication Date Title
CN111767226B (en) Cloud computing platform resource testing method, system and equipment
US11144439B2 (en) Emulation-based testing of a microservices architecture
US20200117586A1 (en) Method, device and computer program product for executing test cases
CN110058873B (en) Application page updating method, device, equipment and storage medium
CN107122297B (en) Method and equipment for generating request message of test interface
US9665465B1 (en) Automated determination of application permissions
CN106294113B (en) creation method and device based on programmable test service
CN112181804B (en) Parameter verification method, device and storage medium
CN110362547B (en) Method and device for encoding, analyzing and storing log file
CN107368330A (en) Client patch restorative procedure, device and system
CN110532182A (en) A kind of automated testing method and device of virtual platform
CN112860507B (en) Control method and device for sampling rate of distributed link tracking system
CN109739756B (en) Method and equipment for testing application of mobile terminal
CN111240987B (en) Method and device for detecting migration program, electronic equipment and computer readable storage medium
CN113760721A (en) Page testing method and device
US11422917B2 (en) Deriving software application dependency trees for white-box testing
CN117112060A (en) Component library construction method and device, electronic equipment and storage medium
CN115080114B (en) Application program transplanting processing method, device and medium
CN111309432B (en) Fault drilling method, device and system
CN115617668A (en) Compatibility testing method, device and equipment
CN114115982A (en) Code issuing method, device, equipment and storage medium
CN108769246B (en) NFS sharing maximization test method and system
CN112486696A (en) Method and equipment for acquiring distributed lock
CN112667491A (en) Function test method and device of virtual machine
US20240095153A1 (en) Test code generator, test code generation method, and, test code generaration program

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