CN105679375A - Automatic test system of storage equipment, and method thereof - Google Patents
Automatic test system of storage equipment, and method thereof Download PDFInfo
- Publication number
- CN105679375A CN105679375A CN201511032247.2A CN201511032247A CN105679375A CN 105679375 A CN105679375 A CN 105679375A CN 201511032247 A CN201511032247 A CN 201511032247A CN 105679375 A CN105679375 A CN 105679375A
- Authority
- CN
- China
- Prior art keywords
- test
- module
- storage device
- control module
- requirement
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 289
- 238000000034 method Methods 0.000 title claims abstract description 36
- 238000004891 communication Methods 0.000 claims description 13
- 230000003993 interaction Effects 0.000 claims description 8
- 230000008569 process Effects 0.000 abstract description 14
- 230000006870 function Effects 0.000 description 21
- 238000011161 development Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012356 Product development Methods 0.000 description 1
- 238000013142 basic testing Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000010998 test method Methods 0.000 description 1
- 230000001131 transforming effect Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C29/00—Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
- G11C29/56—External testing equipment for static stores, e.g. automatic test equipment [ATE]; Interfaces therefor
Landscapes
- Tests Of Electronic Circuits (AREA)
Abstract
本发明公开了一种存储设备的自动化测试系统及方法,该系统包括:测试模块和控制模块;所述控制模块测试流程管理等工作,测试模块受控于控制模块并且其负责具体的测试工作;具体地,所述测试模块配置有能够根据预设的测试需求对所述存储设备进行测试的测试用例;所述控制模块根据携带目标测试需求的测试指令,控制测试需求与所述目标测试需求相对应的测试模块运行自身的所述测试用例,以完成对所述存储设备的测试。可见,本发明能够对存储设备进行自动化测试,达到了提高测试效率,进而节省时间、人力和物力的目的。
The invention discloses an automatic testing system and method for a storage device. The system includes: a testing module and a control module; the control module tests process management and other tasks, and the testing module is controlled by the control module and is responsible for specific testing work; Specifically, the test module is configured with a test case capable of testing the storage device according to a preset test requirement; the control module controls the test requirement to match the target test requirement according to the test instruction carrying the target test requirement The corresponding test module runs its own test case to complete the test on the storage device. It can be seen that the present invention can automatically test the storage device, thereby achieving the purpose of improving test efficiency and further saving time, manpower and material resources.
Description
技术领域technical field
本发明涉及存储测试技术领域,特别是涉及一种存储设备的自动化测试系统及方法。The invention relates to the technical field of storage testing, in particular to an automatic testing system and method for storage equipment.
背景技术Background technique
目前,随着存储行业技术快速发展,存储软件及相关硬件日益复杂,对于企业公司来说,如何快速可靠的向市场推出产品至关重要。在产品(存储设备)开发过程中,往往要经历确定需求阶段、设计阶段、开发阶段和验证阶段,在需求确定阶段有时候会通过对其它产品进行测试来确定自己产品的相关开发需求,因此测试过程在整个产品的开发过程中扮演者重要的角色。At present, with the rapid development of technology in the storage industry, storage software and related hardware are becoming more and more complex. For enterprises, how to quickly and reliably launch products to the market is very important. In the product (storage device) development process, it often goes through the requirements determination stage, design stage, development stage and verification stage. In the requirements determination stage, sometimes the relevant development requirements of its own products are determined by testing other products, so the test Process plays an important role in the whole product development process.
当前测试的方法很多,对于测试过程中规模较小的情况,人工手动地执行测试用例就可以满足需求,但是在大规模情况下,人工测试的方法会耗费大量的时间、人力和物力,测试结果往往也不是很理想。其中,自动化测试是把人为驱动的测试行为转化为机器执行的一种过程。There are many current testing methods. For small-scale testing, manually executing test cases can meet the requirements. However, in large-scale testing, manual testing will consume a lot of time, manpower, and material resources. Often it's not ideal either. Among them, automated testing is a process of transforming human-driven testing behavior into machine execution.
发明内容Contents of the invention
有鉴于此,本发明提供了一种存储设备的自动化测试系统及方法,以实现提高测试效率,进而节省时间、人力和物力的目的。In view of this, the present invention provides an automatic test system and method for storage devices, so as to improve test efficiency and save time, manpower and material resources.
为解决上述技术问题,本发明提供一种存储设备的自动化测试系统,该系统包括:In order to solve the above technical problems, the present invention provides an automated testing system for storage devices, which includes:
测试模块和控制模块;Test module and control module;
其中,所述测试模块配置有能够根据预设的测试需求对所述存储设备进行测试的测试用例;所述控制模块根据携带目标测试需求的测试指令,控制测试需求与所述目标测试需求相对应的测试模块运行自身的所述测试用例,以完成对所述存储设备的测试。Wherein, the test module is configured with a test case capable of testing the storage device according to a preset test requirement; the control module controls the test requirement to correspond to the target test requirement according to the test instruction carrying the target test requirement The test module runs its own test case to complete the test on the storage device.
上述系统中,优选地,所述存储设备的数量为一个,所述控制模块的数量为一个,所述测试模块的数量为多个;所述控制模块通过分别控制多个所述测试模块运行各自相应的测试用例来完成对所述存储设备的所述测试。In the above system, preferably, the number of the storage device is one, the number of the control module is one, and the number of the test modules is multiple; the control module controls a plurality of the test modules to run their respective Corresponding test cases are used to complete the test on the storage device.
上述系统中,优选地,所述存储设备的数量为多个,所述控制模块的数量与多个所述存储设备的数量相等,每个所述存储设备对应一个所述控制模块;多个所述控制模块之间相互通信协作完成对多个所述存储设备的测试。In the above system, preferably, there are multiple storage devices, the number of control modules is equal to the number of multiple storage devices, and each storage device corresponds to one control module; The control modules communicate and cooperate with each other to complete the testing of multiple storage devices.
上述系统中,优选地,所述测试模块和所述控制模块具有相对应的数据交互接口。In the above system, preferably, the test module and the control module have corresponding data interaction interfaces.
上述系统中,优选地,所述预设的测试需求为测试网络通信带宽,所述测试用例包括发送端用例和接收端用例;所述控制模块通过控制所述测试模块运行所述发送端用例和接收端用例来完成对所述存储设备的测试。In the above system, preferably, the preset test requirement is to test network communication bandwidth, and the test cases include a sender use case and a receiver use case; the control module runs the sender use case and the receiver use case by controlling the test module The receiver uses a case to complete the test of the storage device.
本发明还提供了一种存储设备的自动化测试方法,该方法包括:The present invention also provides an automated testing method for a storage device, the method comprising:
控制模块根据携带目标测试需求的测试指令,控制测试需求与所述目标测试需求相对应的测试模块运行自身的测试用例,以完成对所述存储设备的测试;The control module controls the test module corresponding to the target test requirement to run its own test case according to the test instruction carrying the target test requirement, so as to complete the test of the storage device;
其中,所述测试模块配置有能够根据预设的测试需求对所述存储设备进行测试的所述测试用例。Wherein, the test module is configured with the test case capable of testing the storage device according to a preset test requirement.
上述方法中,优选地,所述存储设备的数量为一个,所述控制模块的数量为一个,所述测试模块的数量为多个;In the above method, preferably, the number of the storage device is one, the number of the control module is one, and the number of the test module is multiple;
所述控制模块通过分别控制多个所述测试模块运行各自相应的测试用例来完成对所述存储设备的所述测试。The control module completes the test on the storage device by separately controlling a plurality of the test modules to run their corresponding test cases.
上述方法中,优选地,所述存储设备的数量为多个,所述控制模块的数量与多个所述存储设备的数量相等,每个所述存储设备对应一个所述控制模块;In the above method, preferably, there are multiple storage devices, the number of control modules is equal to the number of multiple storage devices, and each storage device corresponds to one control module;
多个所述控制模块之间相互通信协作完成对多个所述存储设备的测试。The multiple control modules communicate and cooperate with each other to complete the testing of the multiple storage devices.
上述方法中,优选地,所述测试模块和所述控制模块具有相对应的数据交互接口。In the above method, preferably, the test module and the control module have corresponding data interaction interfaces.
上述方法中,优选地,所述预设的测试需求为测试网络通信带宽,所述测试用例包括发送端用例和接收端用例;In the above method, preferably, the preset test requirement is to test network communication bandwidth, and the test cases include a sender use case and a receiver use case;
所述控制模块通过控制所述测试模块运行所述发送端用例和接收端用例来完成对所述存储设备的测试。The control module completes the test of the storage device by controlling the test module to run the use case of the sending end and the use case of the receiving end.
以上本发明提供的一种存储设备的自动化测试系统及方法中,该系统包括测试模块和控制模块,所述控制模块测试流程管理等工作,测试模块受控于控制模块并且其负责具体的测试工作;具体地,所述测试模块配置有能够根据预设的测试需求对所述存储设备进行测试的测试用例;所述控制模块根据携带目标测试需求的测试指令,控制测试需求与所述目标测试需求相对应的测试模块运行自身的所述测试用例,以完成对所述存储设备的测试。可见,本发明能够对存储设备进行自动化测试,达到了提高测试效率,进而节省时间、人力和物力的目的。In the automatic testing system and method of a storage device provided by the present invention above, the system includes a testing module and a control module, and the control module tests process management, etc., and the testing module is controlled by the control module and is responsible for specific testing work ; Specifically, the test module is configured with test cases capable of testing the storage device according to preset test requirements; the control module controls the test requirements and the target test requirements according to the test instructions carrying the target test requirements The corresponding test module runs its own test case to complete the test on the storage device. It can be seen that the present invention can automatically test the storage device, thereby achieving the purpose of improving test efficiency and further saving time, manpower and material resources.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention, and those skilled in the art can also obtain other drawings according to the provided drawings without creative work.
图1为本发明实施例提供的一种存储设备的自动化测试系统的结构框图示意图;FIG. 1 is a schematic structural block diagram of an automated test system for a storage device provided by an embodiment of the present invention;
图2为本发明实施例提供的基于图1的一种实际应用场景结构图。FIG. 2 is a structural diagram of an actual application scenario based on FIG. 1 provided by an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
本发明的核心是提供一种存储设备的自动化测试系统及方法,以实现提高测试效率,进而节省时间、人力和物力的目的。The core of the present invention is to provide an automatic test system and method for storage devices, so as to improve test efficiency and save time, manpower and material resources.
为了使本技术领域的人员更好地理解本发明方案,下面结合附图和具体实施方式对本发明作进一步的详细说明。In order to enable those skilled in the art to better understand the solution of the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
参考图1,图1示出了本发明实施例提供的一种存储设备的自动化测试系统的结构框图示意图,该系统具体可以包括测试模块100和控制模块101;控制模块101测试流程管理等工作,测试模块100受控于控制模块101并且其负责具体的测试工作;具体地,测试模块100配置有能够根据预设的测试需求对存储设备进行测试的测试用例,不同的测试模块100对应不同的测试需求;控制模块101根据携带目标测试需求的测试指令,控制测试需求与目标测试需求相对应的测试模块运行自身的测试用例,以完成对存储设备的测试。Referring to FIG. 1, FIG. 1 shows a schematic structural block diagram of an automated testing system for a storage device provided in an embodiment of the present invention. The system may specifically include a testing module 100 and a control module 101; the control module 101 tests process management and other tasks, The test module 100 is controlled by the control module 101 and is responsible for specific test work; specifically, the test module 100 is configured with test cases that can test the storage device according to preset test requirements, and different test modules 100 correspond to different tests. Requirement; the control module 101 controls the test module corresponding to the test requirement to run its own test case according to the test instruction carrying the target test requirement, so as to complete the test on the storage device.
在实际应用中,还包括与上述控制模块101相连的人机交互界面,在测试人员在该界面输入目标测试需求之后,系统自动生成携带该目标测试需求的测试指令并传输至控制模块101,控制模块101根据目标测试需求控制相应的所述测试模块100运行其自身的测试用例。In practical applications, it also includes a human-computer interaction interface connected to the above-mentioned control module 101. After the tester inputs the target test requirement on the interface, the system automatically generates a test command carrying the target test requirement and transmits it to the control module 101. Control The module 101 controls the corresponding test module 100 to run its own test case according to the target test requirements.
其中,测试模块100中的测试用例也称测试用例函数,测试模块100由一组测试用例函数构成,作为基本的测试元素,这组测试用例函数形成一个数据库。函数库由测试用例决定,执行具体的测试流程并依赖于用例的定义。Wherein, the test cases in the test module 100 are also called test case functions, and the test module 100 is composed of a group of test case functions as basic test elements, and the group of test case functions forms a database. The function library is determined by the test case, executes the specific test process and depends on the definition of the use case.
从分层角度来看,本发明系统包含两层结构:上层控制层(对应控制模块101)和底层测试层(对应测试模块100),控制层可由一组控制模块101组成,每个控制模块101可对应一个或者多个测试模块100。可以理解的是,不同的测试模块100对应不同的测试需求。在实际应用中,对于控制模块101和与其对应的测试模块100的个数,可根据实际需求进行相适应的设置,本发明在此不做严格限定。From a hierarchical point of view, the system of the present invention includes a two-layer structure: an upper control layer (corresponding to the control module 101) and a bottom test layer (corresponding to the test module 100). The control layer can be composed of a group of control modules 101, each control module 101 It can correspond to one or more test modules 100 . It can be understood that different test modules 100 correspond to different test requirements. In practical applications, the number of the control module 101 and the corresponding test module 100 can be appropriately set according to actual needs, which is not strictly limited in the present invention.
在实际测试过程中往往会涉及到多个存储设备的测试,比如需要对多个主机进行测试,从模块化的角度来看,如果以一个主机为一个测试单元,为了节约资源,一个测试单元最多拥有一个控制模块101,每个控制模块101对应一个或者多个测试模块100。参考图2,示出了一种实际应用场景结构图,其中,存储设备的数量为3,基于此,测试单元的数量也为3。In the actual test process, the test of multiple storage devices is often involved. For example, multiple hosts need to be tested. From the perspective of modularization, if a host is used as a test unit, in order to save resources, a test unit can There is one control module 101 , and each control module 101 corresponds to one or more test modules 100 . Referring to FIG. 2 , it shows a structural diagram of an actual application scenario, where the number of storage devices is three, and based on this, the number of test units is also three.
具体地,当存储设备的数量为一个时,需要一个测试单元才能实现对这个存储设备的测试,因此,控制模块101的数量为一个,这里采用一个控制模块101对应多个测试模块的方案。不难理解的是,在实际应用中,控制模块101通过分别控制多个测试模块运行各自相应的测试用例来完成对存储设备的测试。Specifically, when the number of storage devices is one, one test unit is needed to test the storage device. Therefore, the number of control modules 101 is one, and a scheme in which one control module 101 corresponds to multiple test modules is adopted here. It is not difficult to understand that in practical applications, the control module 101 completes the test of the storage device by separately controlling multiple test modules to run their corresponding test cases.
当存储设备的数量为多个时,显然,需要多个测试单元,即控制模块101的数量与多个存储设备的数量相等,并且每个存储设备对应一个控制模块101。在实际应用过程中,多个控制模块101之间相互通信协作完成对多个存储设备的测试。When there are multiple storage devices, obviously, multiple test units are required, that is, the number of control modules 101 is equal to the number of multiple storage devices, and each storage device corresponds to one control module 101 . In an actual application process, multiple control modules 101 communicate and cooperate with each other to complete the testing of multiple storage devices.
本发明中,测试模块100和控制模块101具有相对应的数据交互接口。对于测试模块100来说,除了实现与具体用例实现相关的测试函数,测试模块100需要实现上层控制模块101定义的接口函数,如数据IN/OUT函数用于处理数据的输入输出,对数据进行格式化,IN函数读取用户输入的数据,OUT函数按照用户的格式要求输出测试结果。In the present invention, the test module 100 and the control module 101 have corresponding data interaction interfaces. For the test module 100, in addition to implementing the test functions related to the realization of specific use cases, the test module 100 needs to implement the interface functions defined by the upper layer control module 101, such as the data IN/OUT function is used to process the input and output of data, and format the data The IN function reads the data input by the user, and the OUT function outputs the test results according to the user's format requirements.
对于控制模块101,在实际应用中,其可以分为三层结构:通信层、逻辑层和接口层,通信层负责和其他测试单元的通信交互,接口层定义测试接口,必须需要实现的接口有:格式化输入的接口如input_format(input,output),格式化输出的接口如output_format(input,output),上述接口只是形式上说明,实际中可以根据需求做出相应改变。For the control module 101, in practical applications, it can be divided into three layers: communication layer, logic layer and interface layer. The communication layer is responsible for communication and interaction with other test units. The interface layer defines the test interface. The interfaces that must be implemented are: : The interface for formatted input is input_format(input, output), and the interface for formatted output is output_format(input, output). The above interface is just a formal description, and can be changed according to the actual needs.
另外,除了上述的必须组件之外,还可以根据需求选择配置模块,用于对测试环境的一些基本属性进行配置,也可以用于控制测试流程,即测试单元除了包括测试模块100和控制模块101之外,还可以包括配置模块。数据库中每个用例包含了多个测试点,测试点为用例需要实现的目标,比如测试带宽,获取设备状态等,通常通过函数库中的相关函数实现测试点,函数库为一组函数,管理测试点的执行流程,如顺序执行、循环执行等。In addition, in addition to the above-mentioned necessary components, configuration modules can also be selected according to requirements to configure some basic attributes of the test environment, and can also be used to control the test process, that is, the test unit includes the test module 100 and the control module 101 In addition, configuration modules can also be included. Each use case in the database contains multiple test points. The test points are the goals that the use case needs to achieve, such as testing bandwidth, obtaining device status, etc. Usually, the test points are implemented through related functions in the function library. The function library is a set of functions. Management Execution flow of test points, such as sequential execution, loop execution, etc.
可见,本发明能够对存储设备进行自动化测试,达到了提高测试效率,进而节省时间、人力和物力的目的。It can be seen that the present invention can automatically test the storage device, thereby achieving the purpose of improving test efficiency and further saving time, manpower and material resources.
另外,本发明结合了模块化和分层结构的特点,利于扩展和方便修改适用于其他测试场景,进一步提高了测试效率:In addition, the present invention combines the characteristics of modularization and layered structure, which is conducive to expansion and convenient modification, applicable to other test scenarios, and further improves the test efficiency:
(1)从分层角度来看,包含两层结构,上层控制层,下层测试层,控制层负责测试逻辑的控制和不同测试单元间的通信协同;下层测试层负责实现具体的测试用例,上下层间通过定义的接口通信;(1) From the perspective of layering, it includes two layers of structure, the upper control layer and the lower test layer. The control layer is responsible for the control of test logic and the communication coordination between different test units; the lower test layer is responsible for implementing specific test cases. Layers communicate through defined interfaces;
(2)从模块化角度来看,测试层由一组测试模块100组成,方便模块的扩展,不同模块的组合可以满足不同的测试需求,同时引入测试单元的概念,同样也是一种模块的结构利于需要主机间协作的测试场景。(2) From the perspective of modularization, the test layer is composed of a group of test modules 100, which is convenient for module expansion. The combination of different modules can meet different test requirements. At the same time, the concept of test unit is introduced, which is also a module structure Good for testing scenarios that require collaboration between hosts.
基于上述本发明实施例所公开的技术方案,在本发明另一实施例中,基于实际应用,预设的测试需求可以为测试网络通信带宽,测试用例包括发送端用例和接收端用例;控制模块101通过控制测试模块100运行发送端用例和接收端用例来完成对存储设备的测试。具体实现过程如下:Based on the technical solutions disclosed in the above-mentioned embodiments of the present invention, in another embodiment of the present invention, based on practical applications, the preset test requirement may be to test network communication bandwidth, and the test cases include sender use cases and receiver use cases; the control module 101 completes the test on the storage device by controlling the test module 100 to run the use case at the sending end and the use case at the receiving end. The specific implementation process is as follows:
(1)首先根据测试需求确定测试用例,本实例中的脚本语言采用python,测试用例为测试网络通信带宽,为了便于说明,测试用例可以简述为:采用iperf(业界普通采用测试带宽的工具)测试网络通信带宽,分2、4、6、8、16个线程五种情况,每次测试完转换方向测试一遍(即从A到B的测试方向转换为B到A的测试方向)。(1) First, determine the test case according to the test requirements. The script language in this example uses python, and the test case is to test the network communication bandwidth. For the convenience of explanation, the test case can be briefly described as: use iperf (a tool commonly used in the industry to test bandwidth) Test the network communication bandwidth, divided into five situations of 2, 4, 6, 8, and 16 threads, and test the switching direction after each test (that is, switching from the test direction from A to B to the test direction from B to A).
(2)根据测试用例即可以确定数据库,函数库负责用例测试的流程控制,在此实施例中即是按照测试线程数递增的方式测试带宽,因为带宽测试涉及到一个发送端和一个接收端,因此函数库中至少需要两个函数,一个负责运行接收端测试,一个负责运行发送端测试,发送端运行5个测试点,后者可以通过调整用例调用顺序实现。(2) database can be determined according to the test case, and the function library is responsible for the flow control of the use case test. In this embodiment, the bandwidth is tested in an incremental manner according to the number of test threads, because the bandwidth test involves a sending end and a receiving end. Therefore, at least two functions are required in the function library, one is responsible for running the test of the receiving end, the other is responsible for running the test of the sending end, and the sending end runs 5 test points, and the latter can be realized by adjusting the calling order of the use cases.
(3)确定函数库中测试用例的实现之后,需要实现上层模块(控制模块101)定义的IN/OUT接口,实现测试前测试后输出的格式化。(3) After determining the implementation of the test cases in the function library, it is necessary to implement the IN/OUT interface defined by the upper module (control module 101 ) to realize the format of the output before the test and after the test.
(4)实现测试过程中的控制逻辑,即实现上层控制模块101,在本实施例中即实现运行发送端和接收端测试用例函数,并在测试一遍之后更改测试方向继续测试一次。通过调整下层函数库中用例函数的调用顺序即可达到目的。在本实施例中控制模块101除了实现此功能外还需要实现不同测试单元间的协同,通过通信层来实现发送端和接收端的同步。(4) Realize the control logic in the test process, that is, realize the upper layer control module 101. In this embodiment, realize the function of running the test case of the sending end and the receiving end, and change the test direction after testing once to continue testing once. The goal can be achieved by adjusting the calling order of the use case functions in the lower layer function library. In this embodiment, in addition to realizing this function, the control module 101 also needs to realize the coordination between different test units, and realize the synchronization between the sending end and the receiving end through the communication layer.
(5)该步骤通常情况是需要的,但对于一些简单的测试场景下,也可以不需要此步骤,此实施例中配置文件用于配置发送端和接收端的ip地址,发送端口号和接受端口号等。(5) This step is usually required, but for some simple test scenarios, this step may not be required. In this embodiment, the configuration file is used to configure the ip address of the sending end and the receiving end, the sending port number and the receiving port etc.
基于上述本发明实施例提供的存储设备的自动化测试系统,本发明实施例还提供了一种存储设备的自动化测试方法,该方法可以包括如下内容:控制模块101根据携带目标测试需求的测试指令,控制测试需求与所述目标测试需求相对应的测试模块100运行自身的测试用例,以完成对存储设备的测试;其中,测试模块100配置有能够根据预设的测试需求对存储设备进行测试的测试用例,不同的测试模块100对应不同的测试需求。Based on the automated test system for storage devices provided by the above-mentioned embodiments of the present invention, the embodiments of the present invention also provide an automated test method for storage devices, which may include the following content: the control module 101 according to the test instruction carrying the target test requirements, The test module 100 that controls the test requirement corresponding to the target test requirement runs its own test case to complete the test of the storage device; wherein, the test module 100 is configured with a test that can test the storage device according to the preset test requirement For use cases, different test modules 100 correspond to different test requirements.
本发明中,存储设备的数量可以为一个,控制模块101的数量为一个,测试模块100的数量为多个,不同的测试模块100对应不同的测试需求;控制模块101通过分别控制多个测试模块100运行各自相应的测试用例来完成对存储设备的测试。In the present invention, the number of storage devices can be one, the number of control modules 101 is one, the number of test modules 100 is multiple, and different test modules 100 correspond to different test requirements; the control module 101 controls a plurality of test modules respectively 100 run respective test cases to complete the test on the storage device.
本发明中,存储设备的数量还可以为多个,控制模块101的数量与多个存储设备的数量相等,每个存储设备对应一个控制模块101;多个控制模块101之间相互通信协作完成对多个存储设备的测试。In the present invention, the number of storage devices can also be multiple, the number of control modules 101 is equal to the number of multiple storage devices, and each storage device corresponds to a control module 101; multiple control modules 101 communicate with each other to complete the pairing Testing of multiple storage devices.
本发明中,测试模块100和控制模块101具有相对应的数据交互接口。另外,预设的测试需求可以为测试网络通信带宽,测试用例包括发送端用例和接收端用例;控制模块101通过控制测试模块100运行发送端用例和接收端用例来完成对存储设备的测试。In the present invention, the test module 100 and the control module 101 have corresponding data interaction interfaces. In addition, the preset test requirement may be to test the network communication bandwidth, and the test cases include a sender use case and a receiver use case; the control module 101 completes the storage device test by controlling the test module 100 to run the sender use case and the receiver use case.
需要说明的是,本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。对于方法类实施例而言,由于其与方法实施例基本相似,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. For the same and similar parts in each embodiment, refer to each other, that is, Can. As for method embodiments, since they are basically similar to method embodiments, the description is relatively simple, and for relevant parts, please refer to part of the description of method embodiments.
以上对本发明所提供的一种存储设备的自动化测试系统及方法进行了详细介绍。本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。The above describes in detail the automatic testing system and method for a storage device provided by the present invention. In this paper, specific examples are used to illustrate the principle and implementation of the present invention, and the descriptions of the above embodiments are only used to help understand the method and core idea of the present invention. It should be pointed out that for those skilled in the art, without departing from the principle of the present invention, some improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511032247.2A CN105679375A (en) | 2015-12-31 | 2015-12-31 | Automatic test system of storage equipment, and method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511032247.2A CN105679375A (en) | 2015-12-31 | 2015-12-31 | Automatic test system of storage equipment, and method thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105679375A true CN105679375A (en) | 2016-06-15 |
Family
ID=56298506
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201511032247.2A Pending CN105679375A (en) | 2015-12-31 | 2015-12-31 | Automatic test system of storage equipment, and method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105679375A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106325888A (en) * | 2016-09-30 | 2017-01-11 | 深圳市九洲电器有限公司 | Unit test script writing method and system for set top box |
CN108874696A (en) * | 2017-12-29 | 2018-11-23 | 哈尔滨安天科技股份有限公司 | Automatic test approach, device and the electronic equipment of more legal power safety storage equipment |
CN109739760A (en) * | 2018-12-28 | 2019-05-10 | 东信和平科技股份有限公司 | A kind of code commissioning test method and device, storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101227350A (en) * | 2008-02-03 | 2008-07-23 | 中兴通讯股份有限公司 | System for parallel executing automatization test based on priority level scheduling and method thereof |
CN101247293A (en) * | 2008-03-11 | 2008-08-20 | 福建星网锐捷网络有限公司 | Automatic test approach and system |
CN101571830A (en) * | 2009-06-19 | 2009-11-04 | 北京航空航天大学 | Automatic closed loop test system of real-time embedded software |
CN102937932A (en) * | 2011-08-16 | 2013-02-20 | 中国银联股份有限公司 | Automated testing device and method of integrated heterogeneous testing tool |
CN103019936A (en) * | 2012-12-06 | 2013-04-03 | 武汉华中数控股份有限公司 | Numerical control software testing system |
CN103209180A (en) * | 2013-03-21 | 2013-07-17 | 大唐联仪科技有限公司 | Protocol conformance testing method and system |
CN104657262A (en) * | 2015-02-10 | 2015-05-27 | 上海创景计算机系统有限公司 | High real-time automated test system and test method |
CN105139892A (en) * | 2015-09-23 | 2015-12-09 | 浪潮(北京)电子信息产业有限公司 | Data driving test method and system applied to storage product |
-
2015
- 2015-12-31 CN CN201511032247.2A patent/CN105679375A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101227350A (en) * | 2008-02-03 | 2008-07-23 | 中兴通讯股份有限公司 | System for parallel executing automatization test based on priority level scheduling and method thereof |
CN101247293A (en) * | 2008-03-11 | 2008-08-20 | 福建星网锐捷网络有限公司 | Automatic test approach and system |
CN101571830A (en) * | 2009-06-19 | 2009-11-04 | 北京航空航天大学 | Automatic closed loop test system of real-time embedded software |
CN102937932A (en) * | 2011-08-16 | 2013-02-20 | 中国银联股份有限公司 | Automated testing device and method of integrated heterogeneous testing tool |
CN103019936A (en) * | 2012-12-06 | 2013-04-03 | 武汉华中数控股份有限公司 | Numerical control software testing system |
CN103209180A (en) * | 2013-03-21 | 2013-07-17 | 大唐联仪科技有限公司 | Protocol conformance testing method and system |
CN104657262A (en) * | 2015-02-10 | 2015-05-27 | 上海创景计算机系统有限公司 | High real-time automated test system and test method |
CN105139892A (en) * | 2015-09-23 | 2015-12-09 | 浪潮(北京)电子信息产业有限公司 | Data driving test method and system applied to storage product |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106325888A (en) * | 2016-09-30 | 2017-01-11 | 深圳市九洲电器有限公司 | Unit test script writing method and system for set top box |
WO2018059069A1 (en) * | 2016-09-30 | 2018-04-05 | 深圳市九洲电器有限公司 | Method and system for writing unit test script for set top box |
CN108874696A (en) * | 2017-12-29 | 2018-11-23 | 哈尔滨安天科技股份有限公司 | Automatic test approach, device and the electronic equipment of more legal power safety storage equipment |
CN108874696B (en) * | 2017-12-29 | 2022-09-30 | 安天科技集团股份有限公司 | Automatic testing method and device for multi-authority safety storage equipment and electronic equipment |
CN109739760A (en) * | 2018-12-28 | 2019-05-10 | 东信和平科技股份有限公司 | A kind of code commissioning test method and device, storage medium |
CN109739760B (en) * | 2018-12-28 | 2022-07-08 | 东信和平科技股份有限公司 | Code debugging test method and device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103198009B (en) | A kind of universal testing method, system and related device | |
US9323619B2 (en) | Deploying parallel data integration applications to distributed computing environments | |
CN108737168B (en) | Container-based micro-service architecture application automatic construction method | |
CN104679488A (en) | Flow path customized development platform and method | |
CN102306122A (en) | Automated testing method and equipment | |
CN104462243B (en) | A kind of ETL scheduling system and methods of combination data check | |
CN105450476A (en) | Regression test system and test method | |
CN104182345A (en) | Computer software testing system | |
CN104516809A (en) | Automated testing system and method | |
WO2016145848A1 (en) | Test connection device, system and automatic test connection method | |
CN108234246B (en) | A method and system for multi-directional testing server network performance | |
CN106502948A (en) | A kind of optionally onboard FPGA design method in I2C addresses | |
CN104298525A (en) | Automation and self-adaptation method for deploying multi-component software under complex constraint conditions and deployment management system thereof | |
CN105679375A (en) | Automatic test system of storage equipment, and method thereof | |
JP7096103B2 (en) | Model checking script conversion program, model checking program, model checking script conversion device and model checking device | |
CN107045538B (en) | A kind of web terminal exchange management method based on kettle | |
CN102306109A (en) | Method for realizing logic programming in communication management machine | |
CN112968812A (en) | Network performance testing method, device, equipment and storage medium | |
CN106776275A (en) | A kind of testing process automatic generation method based on Packet Multiplexing | |
CN112039850A (en) | A communication protocol configuration method for intelligent display control terminal test equipment | |
Cieslik et al. | PaPy: Parallel and distributed data-processing pipelines in Python | |
CN101937361A (en) | Method and device for constructing and managing a simulation subsystem | |
CN105468431A (en) | Multi-model real-time simulation system | |
US20140351643A1 (en) | Smart terminal fuzzing apparatus and method using multi-node structure | |
CN116346765A (en) | A virtual machine IP allocation method, system, device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160615 |
|
RJ01 | Rejection of invention patent application after publication |