Search

CN-121979794-A - Test step modularized test framework implementation system and method

CN121979794ACN 121979794 ACN121979794 ACN 121979794ACN-121979794-A

Abstract

The invention belongs to the technical field of SSD test, in particular to a test step modularized test framework implementation system and a test step modularized test framework implementation method, wherein the test step modularized test framework implementation system is used for programming a function required by a test into a function through modularization of a relevant test function on an SSD test platform, and then the function is called through a public function test calling module, so that when the whole test script is programmed, only the test calling module and an error result checking module are needed, and programming of the test script is realized by calling different functional units through setting parameters in the test calling module, thereby effectively saving the time for engineers to write the test script and improving the test efficiency; the script has higher logic and readability, does not need to have python writing capability by a tester, and is simpler and more convenient to use by only adding the functional units in the test functional module according to the steps of the test case.

Inventors

  • Zong Wenqian
  • CEN BIAO
  • WANG DONG
  • Qiu Anhong

Assignees

  • 鸾起科技(苏州)有限公司

Dates

Publication Date
20260505
Application Date
20260119

Claims (10)

  1. 1. The test frame implementation system is characterized by being arranged on an SSD test platform and comprising a test case module, a test function module, a test calling module and an error result checking module, wherein test cases aiming at different SSD test requirements are arranged in the test case module, the test function module comprises a plurality of function units, each function unit is a function written for realizing a certain SSD test function, the test calling module is a common function called through the test cases and related parameters of the function units, so that the test frame is built through the test calling module, and the error result checking module is a function for checking an execution result return value of the test frame.
  2. 2. The test step modular test framework implementation system of claim 1, wherein the functional units comprise at least one of the following functional units: The device initialization unit is used for initializing and setting the SSD to be tested; A control ID acquisition unit for acquiring identifiers of the functional units; A storage space name information acquisition unit configured to acquire each storage space name; a currently used storage space name list acquisition unit for acquiring a storage space name currently being used; The SSD state information acquisition unit is used for acquiring state information of the SSD to be tested; the SSD firmware information acquisition unit is used for acquiring firmware information of the SSD to be tested; the fault information acquisition unit is used for acquiring fault information checked by the error result checking module, and the fault information comprises execution results with return values of fail and stop; a storage space name list changing unit for changing the acquired storage space name list; A power state setting and setting value checking unit for setting the voltage state of the SSD to be tested and checking the setting value; The power state acquisition unit is used for acquiring the power state of the SSD to be tested; The page table item setting and information inquiring unit is used for setting page table items of the SSD to be tested and inquiring page table item information; The memory buffer setting and buffer information inquiring unit is used for setting a memory buffer of the SSD to be tested and inquiring buffer information.
  3. 3. The system of claim 1, wherein the related parameters used by the test call module to call the test case and the functional unit include parameters stepIdx, stepSubIdx, stepMsg, functionName, functionArgs, parameters stepIdx indicate a test step index, parameters stepSubIdx indicate a step sub-index, parameters stepMsg indicate test step information, parameters functionName indicate names of functions to be called, and parameters functionArgs indicate parameters of the called functions.
  4. 4. The modular test framework implementation system of claim 1, wherein said test calling module constructs the instruction for calling the corresponding test case and functional unit by the relevant parameter as adminpassthru or iopassthru command.
  5. 5. The system for realizing the modularized test framework for the test step of claim 1, wherein the test case module, the test function module, the test calling module and the error result checking module in the system are constructed in a user interface interaction mode through UI design.
  6. 6. The system for realizing the modularized test framework of the test procedure of claim 1, wherein the test case module of the system can be added to the test case module after corresponding test cases are built according to specific test requirements, and the test function module of the system can be added to the test function module after corresponding function units are built according to specific test requirements besides the existing function units.
  7. 7. The system for realizing the modularized test framework for the test step of claim 1 is characterized in that functions corresponding to each test case in a test case module, each functional unit contained in a test functional module, a test calling module and an error result checking module of the system are code modules written in Python language.
  8. 8. A test step modular test frame implementation method, characterized in that a test step modular test frame implementation system according to any of claims 1-7 is used, the method comprising: According to the SSD test items, the corresponding test cases are called through the test calling module; According to the test steps of the called test cases, the specific content of SSD test items is combined, the corresponding functional units are called to be added through the test calling module, and a test script is built to obtain a test frame; And the test platform sends a corresponding command to the SSD through the test framework constructed by running to execute the SSD test item.
  9. 9. The method of claim 8, wherein the test platform invokes and executes the code of the built test framework via eval () function.
  10. 10. The method of claim 8, wherein the test platform sends commands to the SSD to execute the built test frame via Ioctl functions.

Description

Test step modularized test framework implementation system and method Technical Field The invention belongs to the technical field of SSD (solid State disk) test, and particularly relates to a test frame realization system and method for modularization of test steps. Background SSD RDT test (Reliability Demonstration Test) is a reliability verification test for a solid state disk, ‌ is a test method for evaluating the reliability and durability of a Solid State Disk (SSD) under different working conditions. For example, RDT tests generally include (1) a read-write test ‌, which simulates different practical application scenarios by setting data blocks (such as 4KB, 64KB, 128KB, etc.) with different sizes for read-write operation, and evaluates the performance of SSD when processing large-block data read-write. (2) Sequential and random transfer traffic test ‌ the sequential transfer traffic test simulates a continuous data access scenario, the performance of the SSD to be tested when handling large files or database operations, the random transfer traffic test simulates a fragmented data access pattern, and the SSD's response capability and performance when handling small files or frequent data access operations are evaluated. (3) And (3) high-temperature testing, namely performing functional detection on each part of the SSD in a high-temperature environment, and ensuring the reliability of the SSD under extreme conditions. The current test on SSD has the following problems that test scripts are required to be written for the test on SSD, different test projects are required to be written for different test scripts, a test engineer designing the scripts is required to have stronger code writing capability, and each test is required to write the test scripts by using code sentences, so that the workload is high and the efficiency is low. Disclosure of Invention The invention aims to provide a test step modularized test framework implementation system and a test step modularized test framework implementation method, so that the test step modularized test framework implementation system is used for modularized and convenient assembly of SSD test scripts, and the test efficiency is improved. In order to achieve the above purpose, the invention adopts the following technical scheme: The system comprises a test case module, a test function module, a test calling module and an error result checking module, wherein the test case module is internally provided with test cases aiming at different SSD test requirements, the test function module comprises a plurality of functional units, each functional unit is a function written for realizing a certain SSD test function, the test calling module is a common function called by the test cases and related parameters of the functional units so as to form a test frame by the test calling module, the error result checking module is a function for checking an execution result return value of the test frame, the return value comprises pass, fail or stop, the return value pass represents test passing, the return value fail represents test failure, and the return value stop represents test stopping. Preferably, the functional unit includes at least one of the following functional units: The device initialization unit is used for initializing and setting the SSD to be tested; A control ID acquisition unit for acquiring identifiers of the functional units; A storage space name information acquisition unit configured to acquire each storage space name; a currently used storage space name list acquisition unit for acquiring a storage space name currently being used; The SSD state information acquisition unit is used for acquiring state information of the SSD to be tested; the SSD firmware information acquisition unit is used for acquiring firmware information of the SSD to be tested; the fault information acquisition unit is used for acquiring fault information checked by the error result checking module, and the fault information comprises execution results with return values of fail and stop; a storage space name list changing unit for changing the acquired storage space name list; A power state setting and setting value checking unit for setting the voltage state of the SSD to be tested and checking the setting value; The power state acquisition unit is used for acquiring the power state of the SSD to be tested; The page table item setting and information inquiring unit is used for setting page table items of the SSD to be tested and inquiring page table item information; The memory buffer setting and buffer information inquiring unit is used for setting a memory buffer of the SSD to be tested and inquiring buffer information. Preferably, the related parameters used by the test calling module to call the test case and the functional unit include a parameter stepIdx, stepSubIdx, stepMsg, functionName, functionArgs, a parameter stepIdx represents a test step index, a parameter step